summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author slakmagik2011-03-01 16:47:15 +0100
committer Robby Workman2011-03-01 16:47:15 +0100
commitd6ea1383d5d7b19b400f882be2ff34f3fca8b007 (patch)
treef037ea798560eb4c818c26f79fb583660fc190ba
parent36f78ba0a7458f2cbea5dc0492d9e4270b9e0f8c (diff)
downloadslackbuilds-d6ea1383d5d7b19b400f882be2ff34f3fca8b007.tar.gz
network/openrdate: Miscellaneous cleanups
Correct typo in README. Remove unneeded comments and configure flags. Use 'install-strip'. Fix old-style man page handling. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--network/openrdate/README2
-rw-r--r--network/openrdate/openrdate.SlackBuild13
2 files changed, 3 insertions, 12 deletions
diff --git a/network/openrdate/README b/network/openrdate/README
index a68bc74674..a8ff621639 100644
--- a/network/openrdate/README
+++ b/network/openrdate/README
@@ -1,5 +1,5 @@
Good-old rdate date- and time-setting software implementing RFC 868
(inetd time) and RFC 2030 (SNTP/NTP) protocols. An independent package
-of the OpenBSD's rdate program.
+of OpenBSD's rdate program.
An alternative to netdate and ntpd/ntpdate.
diff --git a/network/openrdate/openrdate.SlackBuild b/network/openrdate/openrdate.SlackBuild
index 1bed5acac8..287bcbe480 100644
--- a/network/openrdate/openrdate.SlackBuild
+++ b/network/openrdate/openrdate.SlackBuild
@@ -9,12 +9,10 @@ VERSION=${VERSION:-1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -59,21 +57,14 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
--bindir=/usr/sbin \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
make
-make DESTDIR=$PKG install
+make DESTDIR=$PKG install-strip
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-( 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
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [ACINR]* $PKG/usr/doc/$PRGNAM-$VERSION