diff options
Diffstat (limited to 'network/zmap/zmap.SlackBuild')
-rw-r--r-- | network/zmap/zmap.SlackBuild | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/network/zmap/zmap.SlackBuild b/network/zmap/zmap.SlackBuild index a5f21f27778f..dfb4dd75c119 100644 --- a/network/zmap/zmap.SlackBuild +++ b/network/zmap/zmap.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for zmap -# Copyright 2015-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2015-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # 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=zmap -VERSION=${VERSION:-2.1.0} +VERSION=${VERSION:-2.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,7 +60,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -71,17 +71,15 @@ find -L . \ sed -i "s|install(SCRIPT InstallConfFiles.cmake)|#install(SCRIPT InstallConfFiles.cmake)|" CMakeLists.txt -mkdir -p build -cd build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DENABLE_DEVELOPMENT=OFF \ - -DWITH_JSON=ON \ - -DCMAKE_BUILD_TYPE=Release .. - make - make install DESTDIR=$PKG -cd .. +cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DENABLE_DEVELOPMENT=OFF \ + -DWITH_JSON=ON \ + -DCMAKE_BUILD_TYPE=Release . +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 @@ -96,7 +94,8 @@ cp conf/zmap.conf $PKG/etc/zmap/zmap.conf.new cp conf/blacklist.conf $PKG/etc/zmap/blacklist.conf.new mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS CHANGELOG INSTALL LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS LICENSE *.md $PKG/usr/doc/$PRGNAM-$VERSION +cp -rf examples $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |