summaryrefslogtreecommitdiff
path: root/network/radvd/radvd.SlackBuild
diff options
context:
space:
mode:
authorLeigh Wedding <leigh8904@gmail.com>2014-10-26 15:09:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-10-30 20:27:25 +0700
commitd3e1cdea70e28c9e09031c89d6d1880e61c1391a (patch)
treeaf823393b9152e381c7a6f06612fc3f96d5a6f8b /network/radvd/radvd.SlackBuild
parent43126a6327f3a04221409a06967cad376b2a9870 (diff)
downloadslackbuilds-d3e1cdea70e28c9e09031c89d6d1880e61c1391a.tar.gz
network/radvd: Updated for version 2.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/radvd/radvd.SlackBuild')
-rw-r--r--network/radvd/radvd.SlackBuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/network/radvd/radvd.SlackBuild b/network/radvd/radvd.SlackBuild
index 7699ef3eb6..241895d25d 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.15
+VERSION=${VERSION:-2.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -67,15 +67,16 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
--libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --docdir=/usr/doc/radvd-$VERSION \
--with-configfile=/etc/radvd.conf \
--with-pidfile=/var/run/radvd/radvd.pid \
--build=$ARCH-slackware-linux
@@ -90,15 +91,20 @@ make install DESTDIR=$PKG
xargs strip --strip-debug 2> /dev/null || true
)
-find $PKG/usr/man -type f -exec gzip -9 {} \;
+mv $PKG/usr/share/man $PKG/usr/man
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+)
mkdir -p $PKG/etc/rc.d
-install -D -m 0644 $CWD/rc.radvd.new $PKG/etc/rc.d/rc.radvd.new
-mv $TMP/$PRGNAM-$VERSION/radvd.conf.example $PKG/etc/radvd.conf.new
+install -D -m 0644 $CWD/rc.radvd.new $PKG/etc/rc.d
+install -D -m 0644 $TMP/$PRGNAM-$VERSION/radvd.conf.example $PKG/etc
+
+mkdir -p $PKG/var/run/radvd
+chown -R daemon:daemon $PKG/var/run/radvd
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a CHANGES-1 COPYRIGHT INTRO.html README TODO \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGES COPYRIGHT INTRO.html README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install