system/runit: Updated for version 2.1.1

This commit is contained in:
David Miller 2010-05-13 00:41:41 +02:00 committed by David Somero
parent 8a863093e3
commit b02fe0b64e
2 changed files with 17 additions and 31 deletions

View file

@ -4,7 +4,7 @@
# written by David Miller dave at frop dot net
PRGNAM=runit
VERSION=${VERSION:-2.0.0}
VERSION=${VERSION:-2.1.1}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -39,49 +39,33 @@ echo gcc $SLKCFLAGS -Wall > src/conf-cc
package/compile
package/check
mkdir -p $PKG/usr/bin
cp command/* $PKG/usr/bin
install -d $PKG/usr/bin
install -m 755 command/* $PKG/usr/bin
install -D -m0750 etc/2 $PKG/sbin/runsvdir-start
mkdir $PKG/sbin
install -m0750 etc/2 $PKG/sbin/runsvdir-start
install -d $PKG/usr/man/man8
install -m 644 man/* $PKG/usr/man/man8
mkdir -p $PKG/usr/man/man8
cp man/*.8 $PKG/usr/man/man8
# Strip binaries and libraries - this can be done with 'make install-strip'
# in many source trees, and that's usually acceptable if so, but if not,
# use this:
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs str ip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs str ip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
)
# Compress man pages
# If the man pages are installed to /usr/share/man instead, you'll need to either
# add the --mandir=/usr/man flag to configure or move them manually after the
# make install process is run.
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)
# Copy program documentation into the package
# The included documentation varies from one application to another, so be sure
# to adjust your script as needed
# Also, include the SlackBuild script in the documentation directory
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a package/CHANGES package/README package/TODO package/COPYING package/THANKS \
doc/ etc/ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Copy the slack-desc (and a custom doinst.sh if necessary) into ./install
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
# Make the package; be sure to leave it in $OUTPUT
# If package symlinks need to be created during install *before*
# your custom contents of doinst.sh runs, then add the -p switch to
# the makepkg command below -- see makepkg(8) for details
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}

View file

@ -1,8 +1,10 @@
PRGNAM="runit"
VERSION="2.0.0"
VERSION="2.1.1"
HOMEPAGE="http://smarden.org/runit/"
DOWNLOAD="http://smarden.org/runit/runit-2.0.0.tar.gz"
MD5SUM="63c53d313736f444a53a7451bfa76991"
DOWNLOAD="http://smarden.org/runit/runit-2.1.1.tar.gz"
MD5SUM="8fa53ea8f71d88da9503f62793336bc3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="David Miller"
EMAIL="dave@frop.net"
APPROVED="David Somero"
APPROVED="dsomero"