aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2008-09-13 05:00:07 +0800
committergahr <gahr@FreeBSD.org>2008-09-13 05:00:07 +0800
commit5962ff4c2e5fc01742abeaffd9997e17f7ecc7da (patch)
tree51f245631f7cb19585f9f94218e5d25676bcae14 /security
parent6f0fe9cfbb5e3fcf8ef6e64306d694f5e8220123 (diff)
downloadfreebsd-ports-gnome-5962ff4c2e5fc01742abeaffd9997e17f7ecc7da.tar.gz
freebsd-ports-gnome-5962ff4c2e5fc01742abeaffd9997e17f7ecc7da.tar.zst
freebsd-ports-gnome-5962ff4c2e5fc01742abeaffd9997e17f7ecc7da.zip
- Unbreak on 64-bit, little-endian machines (read: amd64)
Approved by: portmgr (marcus)
Diffstat (limited to 'security')
-rw-r--r--security/tripwire12/Makefile2
-rw-r--r--security/tripwire12/files/patch-aux_Makefile12
2 files changed, 14 insertions, 0 deletions
diff --git a/security/tripwire12/Makefile b/security/tripwire12/Makefile
index 275427dfd381..57bd817857ae 100644
--- a/security/tripwire12/Makefile
+++ b/security/tripwire12/Makefile
@@ -28,6 +28,8 @@ post-extract:
post-patch:
@${PERL} -pi -e 's|/secureplace/bin|${PREFIX}/bin|g;' \
-e 's|/usr/man|${PREFIX}/man|g;' ${WRKSRC}/Makefile
+ ${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|bs_ntohl|ntohl|g;s|bs_htonl|htonl|g'
pre-configure:
@ ${CP} ${FILESDIR}/conf-freebsd2.h ${WRKSRC}/configs
diff --git a/security/tripwire12/files/patch-aux_Makefile b/security/tripwire12/files/patch-aux_Makefile
new file mode 100644
index 000000000000..40f6a69614e4
--- /dev/null
+++ b/security/tripwire12/files/patch-aux_Makefile
@@ -0,0 +1,12 @@
+--- aux/Makefile.orig 2008-09-12 17:24:07.293242000 +0000
++++ aux/Makefile 2008-09-12 17:25:08.192241000 +0000
+@@ -13,7 +13,8 @@
+ @echo "### Ignore warnings about shift count negative/too large on line 36"
+ @echo "###"
+ $(CC) $(CFLAGS) $(LDFLAGS) byteorder.c -o byteorder
+- (./byteorder; cat ./ntohl.h) > $(BORDER)
++ (./byteorder; cat ./ntohl.h) > /dev/null
++ @touch $(BORDER)
+
+ $(INODE): types.sh types.c types
+ $(SHELL) ./types.sh "$(CPP)" > $(INODE)