Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142710433
D21040.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D21040.diff
View Options
Index: head/net-mgmt/aircrack-ng/Makefile
===================================================================
--- head/net-mgmt/aircrack-ng/Makefile
+++ head/net-mgmt/aircrack-ng/Makefile
@@ -16,7 +16,6 @@
BROKEN_aarch64= fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major
BROKEN_armv6= fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major
BROKEN_armv7= fails to configure: _AX_COMPILER_VERSION_GNU unknown gcc major
-BROKEN_powerpc64= fails to compile: sse-intrinsics.c: error: emmintrin.h: No such file or directory
USES= autoreconf cpe dos2unix gmake libtool ssl
USE_GCC= yes
@@ -45,6 +44,16 @@
SQLITE_USES= sqlite
SQLITE_MAKE_ARGS= sqlite=true
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == powerpc || ${ARCH} == powerpc64
+PLIST_SUB+= PPC="" \
+ X86="@comment "
+.elif ${ARCH} == amd64 || ${ARCH} == i386
+PLIST_SUB+= PPC="@comment " \
+ X86=""
+.endif
+
post-patch:
@${REINPLACE_CMD} \
-e 's|%%ETCDIR%%|${ETCDIR}|' ${WRKSRC}/scripts/airodump-ng-oui-update
@@ -52,4 +61,4 @@
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: head/net-mgmt/aircrack-ng/files/patch-src_aircrack-util_trampoline__ppc.c
===================================================================
--- head/net-mgmt/aircrack-ng/files/patch-src_aircrack-util_trampoline__ppc.c
+++ head/net-mgmt/aircrack-ng/files/patch-src_aircrack-util_trampoline__ppc.c
@@ -0,0 +1,26 @@
+--- src/aircrack-util/trampoline_ppc.c.orig 2019-07-19 18:16:49 UTC
++++ src/aircrack-util/trampoline_ppc.c
+@@ -19,8 +19,10 @@
+ #if defined(__ppc__) || defined(__PPC__)
+ #ifdef HAS_AUXV
+ #include <sys/auxv.h>
++#ifndef __FreeBSD__
+ #include <bits/hwcap.h>
+ #endif
++#endif
+ #else
+ #error "The wrong CPU architecture file has been included."
+ #endif
+@@ -35,7 +37,12 @@ int simd_get_supported_features(void)
+ {
+ int result = 0;
+ #ifdef HAS_AUXV
++#ifndef __FreeBSD__
+ long hwcaps = getauxval(AT_HWCAP2);
++#else
++ long hwcaps;
++ elf_aux_info(AT_HWCAP2, &hwcaps, sizeof(hwcaps));
++#endif
+
+ #if defined(PPC_FEATURE2_ARCH_2_07)
+ if (hwcaps & PPC_FEATURE2_ARCH_2_07)
Index: head/net-mgmt/aircrack-ng/pkg-plist
===================================================================
--- head/net-mgmt/aircrack-ng/pkg-plist
+++ head/net-mgmt/aircrack-ng/pkg-plist
@@ -10,12 +10,16 @@
bin/packetforge-ng
bin/wpaclean
lib/libaircrack-crypto-1.3.0.so
-lib/libaircrack-crypto-x86-avx-1.3.0.so
-lib/libaircrack-crypto-x86-avx.so
-lib/libaircrack-crypto-x86-avx2-1.3.0.so
-lib/libaircrack-crypto-x86-avx2.so
-lib/libaircrack-crypto-x86-sse2-1.3.0.so
-lib/libaircrack-crypto-x86-sse2.so
+%%PPC%%lib/libaircrack-crypto-ppc-altivec-1.3.0.so
+%%PPC%%lib/libaircrack-crypto-ppc-altivec.so
+%%PPC%%lib/libaircrack-crypto-ppc-power8-1.3.0.so
+%%PPC%%lib/libaircrack-crypto-ppc-power8.so
+%%X86%%lib/libaircrack-crypto-x86-avx-1.3.0.so
+%%X86%%lib/libaircrack-crypto-x86-avx.so
+%%X86%%lib/libaircrack-crypto-x86-avx2-1.3.0.so
+%%X86%%lib/libaircrack-crypto-x86-avx2.so
+%%X86%%lib/libaircrack-crypto-x86-sse2-1.3.0.so
+%%X86%%lib/libaircrack-crypto-x86-sse2.so
lib/libaircrack-crypto.so
lib/libaircrack-osdep-1.3.0.so
lib/libaircrack-osdep.so
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 23, 1:29 PM (17 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27884029
Default Alt Text
D21040.diff (3 KB)
Attached To
Mode
D21040: net-mgmt/aircrack-ng: fix build on powerpc*
Attached
Detach File
Event Timeline
Log In to Comment