aboutsummaryrefslogtreecommitdiff
path: root/network/nss-mdns/nss-mdns.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/nss-mdns/nss-mdns.SlackBuild')
-rw-r--r--network/nss-mdns/nss-mdns.SlackBuild30
1 files changed, 11 insertions, 19 deletions
diff --git a/network/nss-mdns/nss-mdns.SlackBuild b/network/nss-mdns/nss-mdns.SlackBuild
index 3420a18c55d5f..f87775b83fde7 100644
--- a/network/nss-mdns/nss-mdns.SlackBuild
+++ b/network/nss-mdns/nss-mdns.SlackBuild
@@ -2,6 +2,7 @@
# Slackware build script for nss-mdns
# Written by Menno Duursma <druiloor@zonnet.nl>
+# Maintained by Robby Workman <rw@rlworkman.net>
PRGNAM=nss-mdns
VERSION=0.10
@@ -52,16 +53,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Options that may be of interest:
-#
-# --enable-avahi Enable lookups with Avahi (default=yes)
-# --enable-legacy Enable legacy unicast mDNS lookups when Avahi isn't
-# available (default=no)
-# --enable-search-domains Honour search domains from /etc/resolv.conf
-# (default=no)
-#
-# install into /lib as /usr maybe unavailable in bootstrapping
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -69,24 +60,25 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
- --enable-legacy
+ --disable-legacy \
+ --enable-avahi \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a [A-Z][A-Z]* $PKG/usr/doc/$PRGNAM-$VERSION
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
-cp -a doc/README.html $PKG/usr/doc/$PRGNAM-$VERSION/html
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \
+ grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/etc
cat $CWD/mdns.allow > $PKG/etc/mdns.allow.new
cat $CWD/nsswitch.conf-mdns > $PKG/etc/nsswitch.conf-mdns.new
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
+cp -a [A-Z][A-Z]* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a doc/README.html $PKG/usr/doc/$PRGNAM-$VERSION/html
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh