diff options
author | B. Watson <urchlay@slackware.uk> | 2024-09-02 05:05:22 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-09-07 09:08:47 +0700 |
commit | d1e75468dd9c2c9d1d25756db8412345720ce0b9 (patch) | |
tree | d1155a25de8f70416775a27b11fe24a839f7e216 /network | |
parent | dd3aa36d63b539b4a3766d7f5f1b1f4deaaaf15d (diff) |
network/macchanger: New maintainer.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/macchanger/README | 2 | ||||
-rw-r--r-- | network/macchanger/doinst.sh | 6 | ||||
-rw-r--r-- | network/macchanger/macchanger.SlackBuild | 36 | ||||
-rw-r--r-- | network/macchanger/macchanger.info | 4 |
4 files changed, 26 insertions, 22 deletions
diff --git a/network/macchanger/README b/network/macchanger/README index 72b3a2b9cc4d..cff8f7639373 100644 --- a/network/macchanger/README +++ b/network/macchanger/README @@ -1,3 +1,5 @@ +macchanger (utility for viewing and manipulating MAC addresses) + GNU MAC Changer is a utility for viewing and manipulating MAC addresses of network interfaces. diff --git a/network/macchanger/doinst.sh b/network/macchanger/doinst.sh new file mode 100644 index 000000000000..1bef5020286e --- /dev/null +++ b/network/macchanger/doinst.sh @@ -0,0 +1,6 @@ +if [ -x /usr/bin/install-info -a -d usr/info ]; then + ( cd usr/info + rm -f dir + for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done + ) +fi diff --git a/network/macchanger/macchanger.SlackBuild b/network/macchanger/macchanger.SlackBuild index 64407bbe34f2..51d03b8bd0fc 100644 --- a/network/macchanger/macchanger.SlackBuild +++ b/network/macchanger/macchanger.SlackBuild @@ -2,8 +2,9 @@ # Slackware build script for macchanger -# Copyright 2007, 2010 Kevin Myers <jwblack AT cox DOT net> -# Copyright 2020 Dominik Drobek <dominik.drobek (at) o2.pl> +# Copyright 2007, 2010 Kevin Myers +# Copyright 2020 Dominik Drobek +# Copyright 2024 B. Watson <urchlay@slackware.uk> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,11 +24,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20240902 bkw: BUILD=2 +# - new maintainer. +# - add doinst.sh for info directory. +# - remove 0-byte NEWS from doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=macchanger VERSION=${VERSION:-1.7.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +45,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -74,11 +77,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -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 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -93,23 +93,19 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG - -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 +make install-strip DESTDIR=$PKG rm -f $PKG/usr/info/dir -gzip -9 $PKG/usr/info/*.info* +gzip -9 $PKG/usr/info/*.info* $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING NEWS README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION 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 +cat $CWD/doinst.sh > $PKG/install/douninst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/network/macchanger/macchanger.info b/network/macchanger/macchanger.info index 133c3857769d..6922eb4c1565 100644 --- a/network/macchanger/macchanger.info +++ b/network/macchanger/macchanger.info @@ -6,5 +6,5 @@ MD5SUM="ca56f16142914337391dac91603eb332" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Dominik Drobek" -EMAIL="dominik.drobek (at) o2.pl" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" |