Pejman Moghadam / Slackware

Slackware 13.1 - Installing pkgutils from CRUX linux

Public domain


libarchive

cd /usr/src
wget "http://www.libarchive.org/downloads/libarchive-3.1.2.tar.gz"
tar xf libarchive-3.1.2.tar.gz
cd libarchive-3.1.2
./configure --prefix=/ && make
make install DESTDIR=/opt/pkgutils/libarchive

xz - liblzma

cd /usr/src
wget "http://tukaani.org/xz/xz-5.0.5.tar.gz"
tar xf xz-5.0.5.tar.gz
cd x z-5.0.5
./configure --prefix=/ && make
make install DESTDIR=/opt/pkgutils/xz

pkgutils

cd /usr/src
wget "http://crux.nu/files/pkgutils-5.35.5.tar.gz"
tar xf pkgutils-5.35.5.tar.gz
cd pkgutils-5.35.5
patch -p1 < ../pkgutils-5.35.5-getpwuid-getgrgid.patch
CXXFLAGS="-I/opt/pkgutils/libarchive/include/ -I/opt/pkgutils/xz/include" \
LDFLAGS="-L/opt/pkgutils/libarchive/lib/ -L/opt/pkgutils/xz/lib/" \
make
make install DESTDIR=/opt/pkgutils

Notes

install -D -m0755 pkgadd /opt/pkgutils/usr/bin/pkgadd
install -D -m0644 pkgadd.conf /opt/pkgutils/etc/pkgadd.conf
install -D -m0755 pkgmk /opt/pkgutils/usr/bin/pkgmk
install -D -m0755 rejmerge /opt/pkgutils/usr/bin/rejmerge
install -D -m0644 pkgmk.conf /opt/pkgutils/etc/pkgmk.conf
install -D -m0644 rejmerge.conf /opt/pkgutils/etc/rejmerge.conf
install -D -m0644 pkgadd.8 /opt/pkgutils/usr/man/man8/pkgadd.8
install -D -m0644 pkgrm.8 /opt/pkgutils/usr/man/man8/pkgrm.8
install -D -m0644 pkginfo.8 /opt/pkgutils/usr/man/man8/pkginfo.8
install -D -m0644 pkgmk.8 /opt/pkgutils/usr/man/man8/pkgmk.8
install -D -m0644 rejmerge.8 /opt/pkgutils/usr/man/man8/rejmerge.8
install -D -m0644 pkgmk.conf.5 /opt/pkgutils/usr/man/man5/pkgmk.conf.5
ln -sf pkgadd /opt/pkgutils/usr/bin/pkgrm
ln -sf pkgadd /opt/pkgutils/usr/bin/pkginfo

Links

http://crux.nu/gitweb/
http://crux.nu/files/
http://homepage.boetes.org/software/c4o/
http://www.gnu.org/software/automake/manual/html_node/Standard-Configuration-Variables.html
http://jw.tks6.net/files/crux/prt-get_quickstart.html

BY: Pejman Moghadam
TAG: pkgutils, crux
DATE: 2013-10-19 00:57:26


Pejman Moghadam / Slackware [ TXT ]