View | Details | Raw Unified | Return to bug 239319 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-2 / +11 lines)
Lines 15-21 Link Here
15
BROKEN_aarch64=		fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major
15
BROKEN_aarch64=		fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major
16
BROKEN_armv6=		fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major
16
BROKEN_armv6=		fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major
17
BROKEN_armv7=		fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major
17
BROKEN_armv7=		fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major
18
BROKEN_powerpc64=	fails to compile: sse-intrinsics.c: error: emmintrin.h: No such file or directory
19
18
20
USES=		autoreconf cpe dos2unix gmake libtool ssl
19
USES=		autoreconf cpe dos2unix gmake libtool ssl
21
USE_GCC=	yes
20
USE_GCC=	yes
Lines 44-49 Link Here
44
SQLITE_USES=	sqlite
43
SQLITE_USES=	sqlite
45
SQLITE_MAKE_ARGS=	sqlite=true
44
SQLITE_MAKE_ARGS=	sqlite=true
46
45
46
.include <bsd.port.pre.mk>
47
48
.if ${ARCH} == powerpc || ${ARCH} == powerpc64
49
PLIST_SUB+=	PPC="" \
50
		X86="@comment "
51
.elif ${ARCH} == i386 || ${ARCH} == amd64
52
PLIST_SUB+=	PPC="@comment " \
53
		X86=""
54
.endif
55
47
post-patch:
56
post-patch:
48
	@${REINPLACE_CMD} \
57
	@${REINPLACE_CMD} \
49
		-e 's|%%ETCDIR%%|${ETCDIR}|' ${WRKSRC}/scripts/airodump-ng-oui-update
58
		-e 's|%%ETCDIR%%|${ETCDIR}|' ${WRKSRC}/scripts/airodump-ng-oui-update
Lines 51-54 Link Here
51
post-install:
60
post-install:
52
	${MKDIR} ${STAGEDIR}${ETCDIR}
61
	${MKDIR} ${STAGEDIR}${ETCDIR}
53
62
54
.include <bsd.port.mk>
63
.include <bsd.port.post.mk>
(-)files/patch-src_aircrack-util_trampoline__ppc.c (+26 lines)
Line 0 Link Here
1
--- src/aircrack-util/trampoline_ppc.c.orig	2019-07-19 18:16:49 UTC
2
+++ src/aircrack-util/trampoline_ppc.c
3
@@ -19,8 +19,10 @@
4
 #if defined(__ppc__) || defined(__PPC__)
5
 #ifdef HAS_AUXV
6
 #include <sys/auxv.h>
7
+#ifndef __FreeBSD__
8
 #include <bits/hwcap.h>
9
 #endif
10
+#endif
11
 #else
12
 #error "The wrong CPU architecture file has been included."
13
 #endif
14
@@ -35,7 +37,12 @@ int simd_get_supported_features(void)
15
 {
16
 	int result = 0;
17
 #ifdef HAS_AUXV
18
+#ifndef __FreeBSD__
19
 	long hwcaps = getauxval(AT_HWCAP2);
20
+#else
21
+	long hwcaps;
22
+	elf_aux_info(AT_HWCAP2, &hwcaps, sizeof(hwcaps));
23
+#endif
24
 
25
 #if defined(PPC_FEATURE2_ARCH_2_07)
26
 	if (hwcaps & PPC_FEATURE2_ARCH_2_07)
(-)pkg-plist (-6 / +10 lines)
Lines 10-21 Link Here
10
bin/packetforge-ng
10
bin/packetforge-ng
11
bin/wpaclean
11
bin/wpaclean
12
lib/libaircrack-crypto-1.3.0.so
12
lib/libaircrack-crypto-1.3.0.so
13
lib/libaircrack-crypto-x86-avx-1.3.0.so
13
%%PPC%%lib/libaircrack-crypto-ppc-altivec-1.3.0.so
14
lib/libaircrack-crypto-x86-avx.so
14
%%PPC%%lib/libaircrack-crypto-ppc-altivec.so
15
lib/libaircrack-crypto-x86-avx2-1.3.0.so
15
%%PPC%%lib/libaircrack-crypto-ppc-power8-1.3.0.so
16
lib/libaircrack-crypto-x86-avx2.so
16
%%PPC%%lib/libaircrack-crypto-ppc-power8.so
17
lib/libaircrack-crypto-x86-sse2-1.3.0.so
17
%%X86%%lib/libaircrack-crypto-x86-avx-1.3.0.so
18
lib/libaircrack-crypto-x86-sse2.so
18
%%X86%%lib/libaircrack-crypto-x86-avx.so
19
%%X86%%lib/libaircrack-crypto-x86-avx2-1.3.0.so
20
%%X86%%lib/libaircrack-crypto-x86-avx2.so
21
%%X86%%lib/libaircrack-crypto-x86-sse2-1.3.0.so
22
%%X86%%lib/libaircrack-crypto-x86-sse2.so
19
lib/libaircrack-crypto.so
23
lib/libaircrack-crypto.so
20
lib/libaircrack-osdep-1.3.0.so
24
lib/libaircrack-osdep-1.3.0.so
21
lib/libaircrack-osdep.so
25
lib/libaircrack-osdep.so

Return to bug 239319