diff options
author | Menno Duursma <druiloor@zonnet.nl> | 2010-05-13 00:39:51 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:39:51 +0200 |
commit | 31e431cdd38889c34a5db97d63caf2929f43de7b (patch) | |
tree | bb7219b0ce412f0c49d80c98e65b9a90088e3198 /system/chkconfig/chkconfig.SlackBuild | |
parent | 8cff5da6f72d5fa2cf1dd92c5203e917b3351df4 (diff) | |
download | slackbuilds-31e431cdd38889c34a5db97d63caf2929f43de7b.tar.gz |
system/chkconfig: Updated for version 1.3.30c
Diffstat (limited to 'system/chkconfig/chkconfig.SlackBuild')
-rw-r--r-- | system/chkconfig/chkconfig.SlackBuild | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/system/chkconfig/chkconfig.SlackBuild b/system/chkconfig/chkconfig.SlackBuild index 7b415fc168..bd7e002910 100644 --- a/system/chkconfig/chkconfig.SlackBuild +++ b/system/chkconfig/chkconfig.SlackBuild @@ -1,27 +1,37 @@ #!/bin/sh -# Slackware build script for chkconfig -# Written by Menno E. Duursma <druiloor@zonnet.nl> +# Slackware build script for Chkconfig -# Exit on most errors -set -e +# Written by Menno Duursma <druiloor@zonnet.nl> + +# This program is free software. It comes without any warranty. +# Granted WTFPL, Version 2, as published by Sam Hocevar. See +# http://sam.zoy.org/wtfpl/COPYING for more details. PRGNAM=chkconfig -VERSION=1.3.30c +VERSION=${VERSION:-1.3.30c} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} # Drop the package in /tmp +OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -e # Exit on most errors + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -39,9 +49,12 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ - --mandir=/usr/man + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux make make install-strip DESTDIR=$PKG @@ -52,13 +65,13 @@ make install-strip DESTDIR=$PKG ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a [A-Z][A-Z]* ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -# Make the package; be sure to leave it in $OUTPUT cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |