summaryrefslogtreecommitdiff
path: root/network/zmap
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-04 14:30:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-09-05 06:25:14 +0700
commitda848500d1f7fd5b196edada0087990ee5858fc0 (patch)
treef7f1aea133edf9d2a4d6540a8fec37d62aa18d7d /network/zmap
parentb5acfb316cadc62a60aab0d696431df852eb7f58 (diff)
downloadslackbuilds-da848500d1f7fd5b196edada0087990ee5858fc0.tar.gz
network/zmap: Updated for version 2.1.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/zmap')
-rw-r--r--network/zmap/zmap.SlackBuild13
-rw-r--r--network/zmap/zmap.info6
2 files changed, 11 insertions, 8 deletions
diff --git a/network/zmap/zmap.SlackBuild b/network/zmap/zmap.SlackBuild
index a65b5270a6..82c1713eea 100644
--- a/network/zmap/zmap.SlackBuild
+++ b/network/zmap/zmap.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=zmap
-VERSION=${VERSION:-1.2.1}
+VERSION=${VERSION:-2.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,6 +69,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+sed -i "s|install(SCRIPT InstallConfFiles.cmake)|#install(SCRIPT InstallConfFiles.cmake)|" CMakeLists.txt
+
mkdir -p build
cd build
cmake \
@@ -77,7 +79,7 @@ cd build
-DENABLE_DEVELOPMENT=OFF \
-DWITH_JSON=ON \
-DCMAKE_BUILD_TYPE=Release ..
- make
+ make
make install DESTDIR=$PKG
cd ..
@@ -89,11 +91,12 @@ 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
rm -rf $PKG/usr/share
-mv $PKG/etc/zmap/zmap.conf $PKG/etc/zmap/zmap.conf.new
-mv $PKG/etc/zmap/blacklist.conf $PKG/etc/zmap/blacklist.conf.new
+mkdir -p $PKG/etc/zmap/
+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 $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS CHANGELOG INSTALL LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/network/zmap/zmap.info b/network/zmap/zmap.info
index 58acf59d72..961d392ced 100644
--- a/network/zmap/zmap.info
+++ b/network/zmap/zmap.info
@@ -1,8 +1,8 @@
PRGNAM="zmap"
-VERSION="1.2.1"
+VERSION="2.1.0"
HOMEPAGE="https://zmap.io"
-DOWNLOAD="https://github.com/zmap/zmap/archive/v1.2.1.tar.gz"
-MD5SUM="3e740b54c88c29bb03494b986f440b51"
+DOWNLOAD="https://github.com/zmap/zmap/archive/v2.1.0.tar.gz"
+MD5SUM="0e6b9b0628eb1d3360fbd9ea56e36693"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="byacc gengetopt json-c"