freebsd-ports/net/tdetect/Makefile
Thomas Gellekum 546041ba31 As threatened on freebsd-ports: all startup scripts know about the two
options `start' and `stop' now (unless I have forgotten any). This allows
us to call the scripts from /etc/rc.shutdown with the correct option.

The (42 or so) ports that already DTRT before are unchanged.
2000-07-05 12:37:06 +00:00

36 lines
957 B
Makefile

# New ports collection makefile for: tdetect
# Date created: Sun Jan 31, 1997
# Whom: shipley@dis.org
#
# $FreeBSD$
#
PORTNAME= tdetect
PORTVERSION= 0.2
CATEGORIES= net
MASTER_SITES= http://sb.123.org/ \
http://www.genocide2600.com/~tattooman/unix-loggers/ \
http://ftp.ceti.com.pl/pub/scout/progs/Unix/
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
post-install:
@if [ ! -f ${PREFIX}/etc/rc.d/tdetect.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/tdetect.sh startup file."; \
${INSTALL_SCRIPT} -m 750 ${FILESDIR}/tdetect.sh ${PREFIX}/etc/rc.d/tdetect.sh; \
${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}; \
fi
.include <bsd.port.post.mk>