summaryrefslogtreecommitdiffstats
path: root/security/tripwire
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2005-08-23 22:34:14 +0000
committercy <cy@FreeBSD.org>2005-08-23 22:34:14 +0000
commit545f14356003040bfb54e0160cb1494aa756eb5c (patch)
treeb5ad186d71879cd5d3f6c6c1f1b033a15e9b798b /security/tripwire
parent4dc7b5cace7e57f94f79404e337b0f33d7617770 (diff)
downloadFreeBSD-ports-545f14356003040bfb54e0160cb1494aa756eb5c.zip
FreeBSD-ports-545f14356003040bfb54e0160cb1494aa756eb5c.tar.gz
Fix for broken build under 4.X.
Approved by: portsmgr (clement)
Diffstat (limited to 'security/tripwire')
-rw-r--r--security/tripwire/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/security/tripwire/Makefile b/security/tripwire/Makefile
index 90f4698..b954e5a 100644
--- a/security/tripwire/Makefile
+++ b/security/tripwire/Makefile
@@ -27,9 +27,6 @@ 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.
@@ -55,6 +52,11 @@ TRIPWIRE_CLOBBER?= NO
PLIST_SUB+= TWCFG=${TWCFG} TWDB=${TWDB}
+.if ${OSVERSION} > 501000
+USE_GCC= 2.95
+USE_REINPLACE= YES
+.endif
+
pre-configure:
@ ${CP} ${TWPOL_TXT} ${WRKSRC}/policy/twpol.txt
@ ${MV} ${WRKSRC}/src/core/stdcore.h ${WRKSRC}/src/core/stdcore.h.orig
@@ -62,7 +64,7 @@ pre-configure:
@ ${MV} ${WRKSRC}/man/man4/twconfig.4 ${WRKSRC}/man/man5/twconfig.5
@ ${MV} ${WRKSRC}/man/man4/twpolicy.4 ${WRKSRC}/man/man5/twpolicy.5
-
+.if ${OSVERSION} > 501000
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
@@ -75,6 +77,7 @@ post-extract:
@ ${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
+.endif
install-software:
@ ${ECHO_CMD} TWPOLICY=${TWPOLICY} >> ${WRKSRC}/install/install.cfg
OpenPOWER on IntegriCloud