aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2005-04-13 12:37:00 +0800
committercy <cy@FreeBSD.org>2005-04-13 12:37:00 +0800
commit34ca07286d8476545c94b6be1c53f64d15ce6329 (patch)
treea5b70fea5193b3198e0d456d7fab8981abbf3e25 /security
parent56ef0f1bdf081c7b91d7952118caae133b829a5a (diff)
downloadfreebsd-ports-gnome-34ca07286d8476545c94b6be1c53f64d15ce6329.tar.gz
freebsd-ports-gnome-34ca07286d8476545c94b6be1c53f64d15ce6329.tar.zst
freebsd-ports-gnome-34ca07286d8476545c94b6be1c53f64d15ce6329.zip
Workaround Fix for 5.X, until a more permanent solution can be found.
PR: 73304 Submitted by: Patrick Dung <patrick_dkt@yahoo.com>
Diffstat (limited to 'security')
-rw-r--r--security/tripwire/Makefile23
1 files changed, 20 insertions, 3 deletions
diff --git a/security/tripwire/Makefile b/security/tripwire/Makefile
index 431e3dd808e8..bac08b21ee20 100644
--- a/security/tripwire/Makefile
+++ b/security/tripwire/Makefile
@@ -26,6 +26,9 @@ ALL_TARGET= release
MAKE_ARGS= SYSPRE=${ARCH}-unknown-freebsd
IS_INTERACTIVE= yes
+USE_GCC= 2.95
+USE_REINPLACE= YES
+
# Tripwire config files are stored in TWCFG
TWCFG?= /usr/local/etc/tripwire
# Tripwire policy files are stored in TWPOLICY.
@@ -49,9 +52,9 @@ TRIPWIRE_CLOBBER?= NO
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 500000
-BROKEN= "Fails to build under 5.X"
-.endif
+#.if ${OSVERSION} >= 500000
+#BROKEN= "Fails to build under 5.X"
+#.endif
PLIST_SUB+= TWCFG=${TWCFG} TWDB=${TWDB}
@@ -62,6 +65,20 @@ pre-configure:
@ ${MV} ${WRKSRC}/man/man4/twconfig.4 ${WRKSRC}/man/man5/twconfig.5
@ ${MV} ${WRKSRC}/man/man4/twpolicy.4 ${WRKSRC}/man/man5/twpolicy.5
+
+post-extract:
+ @ ${REINPLACE_CMD} -e "s|CC \= gcc|CC \= gcc295|g" ${WRKSRC}/src/STLport-4.0/src/gcc.mak
+ @ ${REINPLACE_CMD} -e "s|CXX \= c\+\+|CXX \= g\+\+295|g" ${WRKSRC}/src/STLport-4.0/src/gcc.mak
+ @ ${REINPLACE_CMD} -e "s|ln \-s \/usr\/include\/g\+\+ include|ln \-s ${PREFIX}\/lib\/gcc\-lib\/${ARCH}\-portbld\-freebsd${OSREL}\/2.95.3\/include include|g" ${WRKSRC}/src/STLport-4.0/STLport.mak
+ @ ${REINPLACE_CMD} -e "s|CC \= cc|CC \= gcc295|g" ${WRKSRC}/src/make_include/i386-unknown-freebsd.inc
+ @ ${REINPLACE_CMD} -e "s|CXX \= c\+\+|CXX \= g\+\+295|g" ${WRKSRC}/src/make_include/i386-unknown-freebsd.inc
+ @ ${REINPLACE_CMD} -e "s|LINKFLAGS_R \= \-pthread|LINKFLAGS_R \+\= \-lpthread|g" ${WRKSRC}/src/make_include/i386-unknown-freebsd.inc
+ @ ${REINPLACE_CMD} -e "s|LINKFLAGS_D \= \-pthread|LINKFLAGS_D \+\= \-lpthread|g" ${WRKSRC}/src/make_include/i386-unknown-freebsd.inc
+ @ ${REINPLACE_CMD} -e "s|CC \= g\+\+|CC \= g\+\+295|g" ${WRKSRC}/src/cryptlib/i386-unknown-freebsd.mak
+ @ ${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/src/core/msystem.cpp
+ @ ${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/src/twparser/yylex.cpp
+ @ ${REINPLACE_CMD} -e "s|malloc.h|stdlib.h|g" ${WRKSRC}/src/tripwire/tripwiremain.cpp
+
install-software:
@ ${ECHO_CMD} TWPOLICY=${TWPOLICY} >> ${WRKSRC}/install/install.cfg
@ ${ECHO_CMD} TWSITEKEYDIR=${TWSITEKEYDIR} >> ${WRKSRC}/install/install.cfg