# cd
/tmp/
# gunzip </tmp/foo.tar.gz | tar xf -
Launch the auto-configuration:
# cd foo
#./configure -prefix=`pwd`/../dummy_installdir --bla --bla
Launch the compilation and installation:
# make && make install
Package foo will be compiled and installed into the
# cd
/tmp/dummy_installdir
# cat > pkginfo <<EOF
CLASSES=none
BASEDIR=/usr/local/foo
TZ=GMT
PATH=/sbin:/usr/sbin:/usr/b in:/usr/sadm/install/bin
PKG=foo
NAME=foo
VERSION=42
CATEGORY=applicationD ESC=Application that doesn't do a damn thing
VENDOR=Foo Inc.
EMAIL=
PKGSAV=/var/sadm/pkg/freetds/save
EOF
Create the prototype file, containing the package directory and file structure and attributes:
# find . -print | pkgproto > prototype
Update the prototype file. Remove the following lines:
f none prototype 0644 root other
f none pkginfo 0644 root other
Add the following line at the top:
i pkginfo=./pkginfo
In
# pkgmk -r `pwd`
In
# cd
/var/spool/pkg
# pkgtrans -s `pwd`/tmp/foo.pkg
When asked which tool to package, select the foo package. Compress the package:
# cd
/tmp
# gzip/tmp/ foo.pkg
The end result is a file called foo.pkg.gz
boring.. (Score:1)
so i just started writing a perl script to automate the package buidling task. hopefully i can get out of this soon
Re:boring.. (Score:1)