aboutsummaryrefslogtreecommitdiff
path: root/net/tdetect
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-10-25 04:03:28 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-10-25 04:03:28 +0000
commite2c010012543e207d476ce9ea49132fee751794c (patch)
tree062de485d965ff753b7c7de698e9e8f9cabe3a71 /net/tdetect
parent6a68f456d29d905eb11bf09694864e9b656722cc (diff)
downloadports-e2c010012543e207d476ce9ea49132fee751794c.tar.gz
ports-e2c010012543e207d476ce9ea49132fee751794c.zip
Use our real binary's name in the syslog messages.
On hosts that support it, use LOG_SECURITY rather than LOG_PRIVAUTH. (why this type of thing needs to be private, I don't understand)
Notes
Notes: svn path=/head/; revision=22613
Diffstat (limited to 'net/tdetect')
-rw-r--r--net/tdetect/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/net/tdetect/Makefile b/net/tdetect/Makefile
index 75f2d135eae4..55bacf9e3d45 100644
--- a/net/tdetect/Makefile
+++ b/net/tdetect/Makefile
@@ -16,6 +16,14 @@ MASTER_SITES= http://sb.123.org/ \
MAINTAINER= shipley@dis.org
+.include <bsd.port.pre.mk>
+
+pre-configure:
+ ${PERL} -pi.dist -e 's/trdetect/tdetect/g' ${WRKSRC}/config.h
+.if ${OSVERSION} > 330002
+ ${PERL} -pi.orig -e 's/LOG_AUTHPRIV/LOG_SECURITY/g' ${WRKSRC}/config.h
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tdetect ${PREFIX}/sbin/tdetect
@@ -33,4 +41,4 @@ post-install:
${ECHO} ''; \
fi
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>