From b2805c385f27e98b0ce8aaf6b815734517a40e8a Mon Sep 17 00:00:00 2001 From: Dominik Drobek Date: Wed, 21 Nov 2018 06:36:05 +0700 Subject: network/cowpatty: Updated for version 4.8. Signed-off-by: Willy Sudiarto Raharjo --- network/cowpatty/cowpatty.SlackBuild | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'network/cowpatty/cowpatty.SlackBuild') diff --git a/network/cowpatty/cowpatty.SlackBuild b/network/cowpatty/cowpatty.SlackBuild index 6ed0cf0fb3fe7..230c3e91f97f6 100644 --- a/network/cowpatty/cowpatty.SlackBuild +++ b/network/cowpatty/cowpatty.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for cowpatty -# Copyright 2011-2016 Dominik Drobek +# Copyright 2011-2018 Dominik Drobek # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=cowpatty -VERSION=${VERSION:-4.6} +VERSION=${VERSION:-4.8} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -69,9 +69,18 @@ find -L . \ sed -i 14s/"-g3 -ggdb"/"-g3 -ggdb ${SLKCFLAGS}"/ Makefile make -j1 -make strip make install BINDIR=/usr/bin DESTDIR=$PKG +# Makefile doesn't provide a target for installing manuals +mkdir -p $PKG/usr/man/man1 +cp -a cowpatty.1 genpmk.1 $PKG/usr/man/man1 + +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 + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS CHANGELOG COPYING FAQ INSTALL README TODO dict file_magic *.dump \ -- cgit v1.2.3