From 5ad4dac24bf266f27d0962a9ff9c2273f5ccd6cf Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 22 Sep 2014 15:17:38 +0200 Subject: [PATCH] nmap: get rid of localized manpages. --- srcpkgs/nmap/template | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/srcpkgs/nmap/template b/srcpkgs/nmap/template index 6bf4c30b336..16615a76cd2 100644 --- a/srcpkgs/nmap/template +++ b/srcpkgs/nmap/template @@ -1,10 +1,10 @@ # Template file for 'nmap' pkgname=nmap version=6.47 -revision=1 +revision=2 build_style=gnu-configure -configure_args="--without-ndiff --with-openssl" -makedepends="libpcap-devel pcre-devel>=8.30 libressl-devel" +configure_args="--without-ndiff --with-openssl $(vopt_with lua liblua)" +makedepends="libpcap-devel pcre-devel>=8.30 libressl-devel $(vopt_if lua lua-devel)" short_desc="Utility for network discovery and security auditing" maintainer="Juan RP " license="GPL-2" @@ -16,13 +16,6 @@ checksum=8fa11e9e203ce2d81a207db5ca4f110a525f6c01c1dd0018325a7112a51aa591 build_options="lua" build_options_default="lua" -if [ "$build_option_lua" ]; then - configure_args+=" --with-liblua" - makedepends+=" lua-devel" -else - configure_args+=" --without-liblua" -fi - if [ -z "$CROSS_BUILD" ]; then subpackages="nmapfe" makedepends+=" pygtk-devel" @@ -32,6 +25,11 @@ else configure_args+=" --without-zenmap" fi +post_install() { + # Get rid of localized manpages. + find ${DESTDIR}/usr/share/man -maxdepth 1 -type d -name '[^man]*' -exec rm -rf {} + +} + nmapfe_package() { noarch=yes depends="nmap>=$version desktop-file-utils pygtk"