Date: Tuesday, November 1, 2022 @ 22:53:54
Author: felixonmars
Revision: 460020
archrelease: copy trunk to staging-x86_64
Added:
nmap/repos/staging-x86_64/
nmap/repos/staging-x86_64/PKGBUILD
(from rev 460019, nmap/trunk/PKGBUILD)
nmap/repos/staging-x86_64/keys/
----------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
Copied: nmap/repos/staging-x86_64/PKGBUILD (from rev 460019,
nmap/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2022-11-01 22:53:54 UTC (rev 460020)
@@ -0,0 +1,58 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Gaetan Bisson <[email protected]>
+# Contributor: Angel Velasquez <[email protected]>
+# Contributor: Hugo Doria <[email protected]>
+
+pkgname=nmap
+pkgver=7.92
+pkgrel=2
+pkgdesc='Utility for network discovery and security auditing'
+url='https://nmap.org/'
+arch=('x86_64')
+license=('GPL2')
+depends=('glibc' 'pcre' 'openssl' 'lua53' 'libpcap'
+ 'libssh2' 'libssh2.so' 'zlib' 'gcc-libs')
+source=("https://nmap.org/dist/${pkgname}-${pkgver}.tar.bz2"
+ "https://nmap.org/dist/sigs/${pkgname}-${pkgver}.tar.bz2.asc")
+sha256sums=('a5479f2f8a6b0b2516767d2f7189c386c1dc858d997167d7ec5cfc798c7571a1'
+ 'SKIP')
+b2sums=('0f3022e797ffca7d1d3497990c86bb60ac9a80bb93cb4ec7fcfa4f51782cb8d79d4f0aca0fa6119bfd604cfe7b89af3d4223ce13ad3e6c948c021909aebd956b'
+ 'SKIP')
+validpgpkeys=(
+ '436D66AB9A798425FDA0E3F801AF9F036B9355D0' # Nmap Project Signing Key
(http://www.insecure.org/)
+)
+
+prepare() {
+ cd "${pkgname}-${pkgver}"
+ # ensure we build devendored deps
+ rm -rf liblua libpcap libpcre macosx mwin32 libssh2 libz
+ autoreconf -fiv
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/usr \
+ --with-libpcap=/usr \
+ --with-libpcre=/usr \
+ --with-zlib=/usr \
+ --with-libssh2=/usr \
+ --with-liblua=/usr \
+ --without-ndiff \
+ --without-zenmap
+ make
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ install -Dm 644 README.md docs/nmap.usage.txt -t
"${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE docs/3rd-party-licenses.txt -t
"${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et: