From e2c010012543e207d476ce9ea49132fee751794c Mon Sep 17 00:00:00 2001
From: "David E. O'Brien" <obrien@FreeBSD.org>
Date: Mon, 25 Oct 1999 04:03:28 +0000
Subject: 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)

---
 net/tdetect/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

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>
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0