mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
nmap: migrate to gcc11 (#7823)
This commit is contained in:
@@ -18,36 +18,42 @@ scan results (Ndiff), and a packet generation and response analysis tool \
|
|||||||
HOMEPAGE="https://nmap.org/"
|
HOMEPAGE="https://nmap.org/"
|
||||||
COPYRIGHT="1996–2005 The Nmap Project"
|
COPYRIGHT="1996–2005 The Nmap Project"
|
||||||
LICENSE="GNU GPL v2"
|
LICENSE="GNU GPL v2"
|
||||||
REVISION="1"
|
REVISION="2"
|
||||||
SOURCE_URI="https://nmap.org/dist-old/nmap-$portVersion.tgz"
|
SOURCE_URI="https://nmap.org/dist-old/nmap-$portVersion.tgz"
|
||||||
CHECKSUM_SHA256="4ab4044b2c8a44466409f668919156b4d8429e0449c6c482ea2063730d727293"
|
CHECKSUM_SHA256="4ab4044b2c8a44466409f668919156b4d8429e0449c6c482ea2063730d727293"
|
||||||
PATCHES="nmap-$portVersion.patchset"
|
PATCHES="nmap-$portVersion.patchset"
|
||||||
|
|
||||||
ARCHITECTURES="all"
|
ARCHITECTURES="all !x86_gcc2"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
PROVIDES="
|
PROVIDES="
|
||||||
nmap = $portVersion
|
nmap$secondaryArchSuffix = $portVersion
|
||||||
cmd:nmap = $portVersion
|
cmd:nmap = $portVersion
|
||||||
"
|
"
|
||||||
REQUIRES="
|
REQUIRES="
|
||||||
haiku
|
haiku$secondaryArchSuffix
|
||||||
lib:libpcap
|
lib:libpcap$secondaryArchSuffix
|
||||||
lib:libpcre
|
lib:libpcre$secondaryArchSuffix
|
||||||
lib:libssl
|
lib:libssl$secondaryArchSuffix
|
||||||
"
|
"
|
||||||
|
|
||||||
BUILD_REQUIRES="
|
BUILD_REQUIRES="
|
||||||
haiku_devel
|
haiku${secondaryArchSuffix}_devel
|
||||||
devel:libpcap
|
devel:libpcap$secondaryArchSuffix
|
||||||
devel:libpcre
|
devel:libpcre$secondaryArchSuffix
|
||||||
devel:libssl
|
devel:libssl$secondaryArchSuffix
|
||||||
"
|
"
|
||||||
BUILD_PREREQUIRES="
|
BUILD_PREREQUIRES="
|
||||||
cmd:gcc
|
cmd:gcc$secondaryArchSuffix
|
||||||
cmd:ld
|
cmd:ld$secondaryArchSuffix
|
||||||
cmd:libtoolize
|
cmd:libtoolize
|
||||||
cmd:make
|
cmd:make
|
||||||
"
|
"
|
||||||
|
if [ $effectiveTargetArchitecture = x86 ]; then
|
||||||
|
REPLACES="
|
||||||
|
nmap
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
BUILD()
|
BUILD()
|
||||||
{
|
{
|
||||||
@@ -56,8 +62,9 @@ BUILD()
|
|||||||
libtoolize --force --copy --install
|
libtoolize --force --copy --install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
runConfigure --omit-dirs "dataRootDir docDir" \
|
runConfigure --omit-dirs "binDir dataRootDir docDir" \
|
||||||
./configure --without-nmapfe LDFLAGS=-lnetwork
|
./configure --bindir="$prefix/bin" \
|
||||||
|
--without-nmapfe LDFLAGS=-lnetwork
|
||||||
# not multi-job safe
|
# not multi-job safe
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user