diff options
author | Sean Donner <sean.donner@gmail.com> | 2010-05-13 00:38:08 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:38:08 +0200 |
commit | 6ba5faeff93c5be66c8b9d766bb0ebb9e9007ff2 (patch) | |
tree | f60f45ff0191dcde56ed78bee24c5fcb4fd7f184 /network/radvd/radvd.SlackBuild | |
parent | 74836a4355f73dc7b9150f9111884e6340fb4cf5 (diff) | |
download | slackbuilds-6ba5faeff93c5be66c8b9d766bb0ebb9e9007ff2.tar.gz |
network/radvd: Updated for version 1.5
Diffstat (limited to 'network/radvd/radvd.SlackBuild')
-rw-r--r-- | network/radvd/radvd.SlackBuild | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/network/radvd/radvd.SlackBuild b/network/radvd/radvd.SlackBuild index 2a724363ea..fbb0f31e90 100644 --- a/network/radvd/radvd.SlackBuild +++ b/network/radvd/radvd.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=radvd -VERSION=1.0 +VERSION=1.5 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -34,16 +34,23 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" -fi + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -52,37 +59,40 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --with-configfile=/etc/radvd.conf \ - --with-pidfile=/var/run/radvd/radvd.pid + --with-pidfile=/var/run/radvd/radvd.pid \ + --build=$ARCH-slackware-linux -make all || exit 1 -make install DESTDIR=$PKG || exit 1 +make all +make install DESTDIR=$PKG ( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs strip --strip-debug 2> /dev/null + find . -exec file {} + | sed -n '/ELF.*executable\|shared object/s/:.*$//p' | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . -exec file {} + | sed -n '/current ar archive/s/:.*$//p' | \ + xargs strip --strip-debug 2> /dev/null || true ) ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; ) +mkdir -p $PKG/etc/rc.d +install -D -m 0755 $CWD/rc.radvd.new $PKG/etc/rc.d/rc.radvd.new +mv $TMP/$PRGNAM-$VERSION/radvd.conf.example $PKG/etc/radvd.conf.new + +mkdir -p $PKG/var/run/radvd +chown -R daemon:daemon $PKG/var/run/radvd + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a CHANGES COPYRIGHT INTRO.html README TODO VERSION \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -mkdir -p $PKG/etc/rc.d -install -m 0755 $CWD/rc.radvd.new $PKG/etc/rc.d/rc.radvd.new -mv $TMP/$PRGNAM-$VERSION/radvd.conf.example $PKG/etc/radvd.conf.new - -mkdir -p $PKG/var/run/radvd/ -chown daemon:daemon $PKG/var/run/radvd/ - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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} |