nmap: get rid of localized manpages.
This commit is contained in:
parent
bc7570e3a6
commit
5ad4dac24b
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'nmap'
|
# Template file for 'nmap'
|
||||||
pkgname=nmap
|
pkgname=nmap
|
||||||
version=6.47
|
version=6.47
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--without-ndiff --with-openssl"
|
configure_args="--without-ndiff --with-openssl $(vopt_with lua liblua)"
|
||||||
makedepends="libpcap-devel pcre-devel>=8.30 libressl-devel"
|
makedepends="libpcap-devel pcre-devel>=8.30 libressl-devel $(vopt_if lua lua-devel)"
|
||||||
short_desc="Utility for network discovery and security auditing"
|
short_desc="Utility for network discovery and security auditing"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
@ -16,13 +16,6 @@ checksum=8fa11e9e203ce2d81a207db5ca4f110a525f6c01c1dd0018325a7112a51aa591
|
||||||
build_options="lua"
|
build_options="lua"
|
||||||
build_options_default="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
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
subpackages="nmapfe"
|
subpackages="nmapfe"
|
||||||
makedepends+=" pygtk-devel"
|
makedepends+=" pygtk-devel"
|
||||||
|
@ -32,6 +25,11 @@ else
|
||||||
configure_args+=" --without-zenmap"
|
configure_args+=" --without-zenmap"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
# Get rid of localized manpages.
|
||||||
|
find ${DESTDIR}/usr/share/man -maxdepth 1 -type d -name '[^man]*' -exec rm -rf {} +
|
||||||
|
}
|
||||||
|
|
||||||
nmapfe_package() {
|
nmapfe_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="nmap>=$version desktop-file-utils pygtk"
|
depends="nmap>=$version desktop-file-utils pygtk"
|
||||||
|
|
Loading…
Reference in New Issue