diff options
Diffstat (limited to 'network/radvd/radvd.SlackBuild')
-rw-r--r-- | network/radvd/radvd.SlackBuild | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/network/radvd/radvd.SlackBuild b/network/radvd/radvd.SlackBuild index 7699ef3eb6944..241895d25de54 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 |