IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=1.6.0 PROGNAME="checkinstall $VERSION" DESC="\ checkinstall (create a package from 'make install') \n\ \n\ Installs a compiled program from the program's source directory using \n\ 'make install' or any other command supplied on checkinstall's command \n\ line (such as a Slackware .build script), and create a binary package \n\ at the same time so that you can install and remove the package using \n\ Slackware's package management tools. \n\ \n\ checkinstall was written by Felipe Eduardo Sanchez Diaz Duran, and \n\ uses the installwatch tool by Pancrazio 'Ezio' de Mauro to monitor the \n\ installation process." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/checkinstall PKGNAME=checkinstall-$VERSION-s390x-$BUILD TAG=OPT compile() { tar -yxvf $CWD/checkinstall-$VERSION.tar.bz2 cd checkinstall-$VERSION/ chown -R root.root . find . -perm 664 | xargs chmod 644 find . -perm 775 | xargs chmod 755 # Even with the patch below, checkinstall does not do a perfect job building # Slackware packages. For example, bin directories (and binaries in them) aren't # chowned root:bin as the FSSTND recommends. Of course, this is purely cosmetic # anyway. This patch causes checkinstall to use the native Slackware package # building tool, though, and allows us to meet the "good enough" standard of # excellence. ;-) zcat $CWD/checkinstall.followspecsbetter.diff.gz | patch -p1 --verbose cat $CWD/makefile.diff | patch -p1 --backup --suffix=.orig make } install() { mkdir -p /package-checkinstall/usr/bin \ /package-checkinstall/usr/lib \ /package-checkinstall/usr/sbin make install DESTDIR=/package-checkinstall mv /package-checkinstall/etc/checkinstall/checkinstallrc \ /package-checkinstall/etc/checkinstall/checkinstallrc.new rm /package-checkinstall/etc/checkinstall/checkinstallrc-dist mkdir -p /package-checkinstall/usr/doc/checkinstall-$VERSION cp -a BUGS COPYING CREDITS Changelog FAQ INSTALL NLS_SUPPORT README RELNOTES TODO \ /package-checkinstall/usr/doc/checkinstall-$VERSION cd installwatch-0.7.0beta4 mkdir -p /package-checkinstall/usr/doc/checkinstall-$VERSION/installwatch-0.7.0beta4 cp -a BUGS CHANGELOG COPYING INSTALL README TODO VERSION \ /package-checkinstall/usr/doc/checkinstall-$VERSION/installwatch-0.7.0beta4 } attributes() { echo chown -R root.bin $PKG/package-checkinstall/usr/bin \ $PKG/package-checkinstall/usr/sbin } special() { cd $PKG mv package-checkinstall/* ./ rmdir package-checkinstall cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-checkinstall/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new # Add install script for checkinstallrc: cat << EOF >> doinst.sh #!/bin/sh config() { NEW="\$1" OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)" # If there's no config file by that name, mv it over: if [ ! -r \$OLD ]; then mv \$NEW \$OLD elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then # toss the redundant copy rm \$NEW fi # Otherwise, we leave the .new copy for the admin to consider... } config etc/checkinstall/checkinstallrc.new EOF }