Slackware and pkgsrc

Home | UNIX | Code | Phisolophy | Practical

Slackware and pkgsrc

Pkgsrc configuration (cross UNICES) : pbraun.nethence.com/doc/sysutils_bsd/pkgsrc.html
Slackware and pkgsrc : pbraun.nethence.com/doc/sysutils_linux/slackware-pkgsrc.html
NetBSD configuration : pbraun.nethence.com/doc/sysutils_bsd/netbsd.html
Slackware Linux configuration : pbraun.nethence.com/doc/sysutils_linux/slackware.html


Pkgsrc installation
- get pkgsrc (www.netbsd.org/docs/software/packages.html ==> bottom right link) and bootstrap it,
tar xzf pkgsrc-200XQX.tar.gz
mv pkgsrc /usr/
cd /usr/pkgsrc/bootstrap/
./bootstrap
(This may take a while)

- configure your shell,
vi ~/.bashrc
add,
PATH=$PATH:/usr/pkg/sbin:/usr/pkg/bin
MANPATH=$MANPATH:/usr/pkg/man


Pkgsrc configuration
- Add vulnerability list download to crontab (crontab -e),
0 3 * * * /usr/pkg/sbin/download-vulnerability-list >/dev/null 2>&1

- Audit packages each day,
cat > /etc/cron.daily/auditpkg <<EOF9
#!/bin/ksh
/usr/pkg/sbin/audit-packages
EOF9
chmod +x /etc/cron.daily/auditpkg

- Copy the example mk.conf,
cp /usr/pkg/etc/mk.conf /etc/
and add this inside the if condition,
MASTER_SITE_SOURCEFORGE=ovh.dl.sourceforge.net/sourceforge \
heanet.dl.sourceforge.net/sourceforge/ \
belnet.dl.sourceforge.net/sourceforge/
USA_RESIDENT=NO
PASSIVE_FETCH=YES


Ready to go
- Make your own packages (without bulk),
cd /usr/pkgsrc/sysutils/pwgen
bmake package
Note the 'b' for NetBSD make.
- Check it's working,
pwgen -A
- Check the package has been created,
ll /usr/pkgsrc/packages/All/
Note you can now make it available through FTP and use that binary from another slackware (pbraun.nethence.com/doc/sysutils_bsd/pkgsrc.html).


References
Slackware Home : slackware.com/
Get Slackware mirror : ftp.slackware.at/
Pkgsrc : www.netbsd.org/docs/software/packages.html
Get pkgsrc : ftp.netbsd.org/pub/pkgsrc/



Page generated Sun Feb 7 15:59:02 CET 2010
Home | Donate | Print | html/css
Copyright 2009 Pierre-Philipp Braun