diff options
author | slakmagik <slakmagik@gmail.com> | 2011-03-01 09:47:15 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-01 09:47:15 -0600 |
commit | d6ea1383d5d7b19b400f882be2ff34f3fca8b007 (patch) | |
tree | f037ea798560eb4c818c26f79fb583660fc190ba /network/openrdate | |
parent | 36f78ba0a7458f2cbea5dc0492d9e4270b9e0f8c (diff) |
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>
Diffstat (limited to 'network/openrdate')
-rw-r--r-- | network/openrdate/README | 2 | ||||
-rw-r--r-- | network/openrdate/openrdate.SlackBuild | 13 |
2 files changed, 3 insertions, 12 deletions
diff --git a/network/openrdate/README b/network/openrdate/README index a68bc74674c98..a8ff621639dfa 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 1bed5acac8699..287bcbe4804ea 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 |