kn 85788209c6 Bump potential struct ifnet consumers
sys/net/if_var.h r1.116 "Remove struct ifnet's unused if_switchport member"
should be of no concern in ports land, but some actively do

- define _KERNEL and/or
  https://codesearch.debian.net/search?q=%23%5Cs*define%5Cs%2B_KERNEL%5Cb+filetype%3Ac&literal=0
  curl -s https://codesearch.debian.net/results/a710598a524e63cb/packages.txt
- include <net/if_var.h>
  https://codesearch.debian.net/search?q=%3Cnet%2Fif_var.h%3E+filetype%3Ac&literal=1
  curl -s https://codesearch.debian.net/results/3264f4d6c8ec573a/packages.txt

Running the packages.txt files through 'sort -u' and 'comm -12', filtering
for ports we actually have and further limiting it down to individual
packages rather than the whole port (thanks sthen) leaves us with

	$ infrastructure/bin/portbump -r \
	    devel/libgtop2 \
	    games/warzone2100 \
	    mail/mozilla-thunderbird \
	    multimedia/gstreamer1/plugins-bad \
	    net/miniupnp/miniupnpd \
	    net/net-snmp,-main \
	    net/usrsctp \
	    net/zabbix,-main \
	    security/aircrack-ng \
	    www/firefox-esr \
	    www/mozilla-firefox

Bump them all to pick up the new header/struct.

Feedback OK sthen
2022-09-02 06:17:28 +00:00

67 lines
1.6 KiB
Makefile

COMMENT= 802.11 WEP and WPA-PSK keys cracking program
DISTNAME= aircrack-ng-1.5.2
REVISION= 8
CATEGORIES= security
HOMEPAGE= https://www.aircrack-ng.org/
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB+= c pthread crypto z pcre
WANTLIB+= ${COMPILER_LIBCXX} m sqlite3
MASTER_SITES= https://download.aircrack-ng.org/
BUILD_DEPENDS= devel/shtool \
devel/pkgconf
LIB_DEPENDS= databases/sqlite3 \
devel/pcre
RUN_DEPENDS+= net/arp-scan,-mac>=20190128
USE_GMAKE= Yes
.if ${MACHINE_ARCH} == "i386"
# ld: error: undefined symbol: __i686.get_pc_thunk.bx
USE_LLD= No
.endif
LIBTOOL_FLAGS= --tag=disable-static
AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.16
CONFIGURE_STYLE= autoreconf
# Disable NEON optimizations (arm, aarch64) since clang can't compile the code
# https://github.com/aircrack-ng/aircrack-ng/issues/1957
CONFIGURE_ENV+= ax_cv_neon_cflags=no ax_cv_neon_cxxflags=no
MAKE_ENV+= SQLITE=true UNSTABLE=true
MAKE_FLAGS+= CC="${CC}" CFLAGS="${CFLAGS}"
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
PKG_ARGS+= -Dx86=1
.else
PKG_ARGS+= -Dx86=0
.endif
# XXX PFRAG.arm files relate to NEON optimizations, disabled above.
#.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "aarch64"
#PKG_ARGS+= -Darm=1
#.else
PKG_ARGS+= -Darm=0
#.endif
# XXX AltiVec optimizations can't be built with clang, and POWER8 ones
# are useless on powerpc
.if ${MACHINE_ARCH} == "powerpc"
MAKE_ENV+= ALTIVEC=false POWER8=false
.endif
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/airodump-ng.h
.include <bsd.port.arch.mk>
.if !${PROPERTIES:Mclang}
CFLAGS += -std=gnu99
.endif
.include <bsd.port.mk>