On Tue, Nov 27, 2001 at 10:15:35AM -0600, Thomas T. Veldhouse wrote:
> I am looking for a really good guide to develop packages for a
> homegrown system.  I would like to build either RPM or DPKG (unless
> somebody can suggest something better).  I would like a guide for
> writing scripts (a.k.a.  SPEC file for RPM) to build binary packages.
> Everything I have found so far has not given very good advice about
> determining file lists (which files should we list and which should we
> ignore) and handling binary relocation (/usr ==> /usr/local).

Packages: cvs-buildpackage, build-essentials, debhelper, devscripts,
debian-policy, dpkg-doc, developers-reference

The jist of debian packages:

    bash$ tar -zxvf software-0.0.0.tar.gz
    bash$ cd software-0.0.0
    bash$ dh_make
    bash$ cd debian
    bash$ # edit control files, install scripts, debconf stuff
    bash$ cd ..
    bash$ dpkg-buildpackage [options] -rfakeroot
    bash$ cd ..
    bash$ sudo dpkg --install software_0.0.0-1_i386.deb

Done.

To use cvs stuff:

    bash$ export CVSROOT=/var/cvs/repository
    bash$ apt-get source software
    bash$ ls
    software-0.0.0/         software_0.0.0.orig.tar.gz
    software_0.0.0-1.dsc    software_0.0.0-1.diff.gz
    bash$ cvs-inject software_0.0.0-1.dsc
    # ... cvs-inject script imports software from original, applies
    # diff, and commits w/appropriate tags.
    bash$ cd ~/checkouts
    bash$ cvs co -d software-0.0.0 software
    #cvs co does its stuff
    bash$ cd software-0.0.0
    # make changes, edit changelog: add entry for new version 0.0.0-1.0.1
    bash$ cvs ci -m 'Made changes'
    bash$ cvs tag debian_version_0_0_0-1_0_1
    bash$ cvs-buildpackage -uc -us -sd -b software
    # cvs-buildpackage checks out source with tag matching most recent
    # changelog version under /usr/src/Packages/<package>, creates the
    # orig.tar.gz if needed, compiles the package, etc...
    bash$ cd /usr/src/Packages/software/
    bash$ dpkg --install software_0.0.0-1.0.1_i386.deb

Done.

No, I'm not a Debian bigot on television, I play one every single day of
my life. ;-)

-- 
Chad Walstrom <chewie at wookimus.net>                 | a.k.a. ^chewie
http://www.wookimus.net/                            | s.k.a. gunnarr
Get my public key, ICQ#, etc. $(mailx -s 'get info' chewie at wookimus.net)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20011204/2fcb96e8/attachment.pgp