1999-10-31 22:55:21 -05:00
|
|
|
# New ports collection makefile for: dhid
|
|
|
|
# Date created: Sat Aug 21 06:13:59 EDT 1999
|
|
|
|
# Whom: Oryx Gazella <oryx@ungulate.net>
|
|
|
|
#
|
1999-11-25 11:10:35 -05:00
|
|
|
# $FreeBSD$
|
1999-10-31 22:55:21 -05:00
|
|
|
#
|
|
|
|
|
2000-04-09 14:14:07 -04:00
|
|
|
PORTNAME= dhid
|
2001-02-25 23:09:51 -05:00
|
|
|
PORTVERSION= 4.0.2
|
1999-10-31 22:55:21 -05:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
|
2001-02-25 23:09:51 -05:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
${PORTNAME}-3.1${EXTRACT_SUFX}
|
1999-10-31 22:55:21 -05:00
|
|
|
|
|
|
|
MAINTAINER= oryx@ungulate.net
|
|
|
|
|
2001-02-25 23:09:51 -05:00
|
|
|
OLDWRKSRC= ${WRKDIR}/${PORTNAME}-3.1
|
|
|
|
|
1999-10-31 22:55:21 -05:00
|
|
|
MAN8= dhid.8
|
|
|
|
|
|
|
|
post-patch:
|
2000-02-05 17:07:51 -05:00
|
|
|
@${ECHO} "===> Patching dhid.h"
|
1999-10-31 22:55:21 -05:00
|
|
|
${PERL} -i -p -e "s^__PREFIX__^${PREFIX}^g" ${WRKSRC}/dhid.h
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dhid ${PREFIX}/sbin
|
2001-02-25 23:09:51 -05:00
|
|
|
${INSTALL_MAN} ${OLDWRKSRC}/dhid.8 ${PREFIX}/man/man8
|
|
|
|
${INSTALL} ${COPY} -o root -g wheel -m 600 ${OLDWRKSRC}/dhid.conf ${PREFIX}/etc/dhid.conf.sample
|
1999-10-31 22:55:21 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/dhid.sh ]; then \
|
|
|
|
${ECHO} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."; \
|
2000-07-05 08:37:06 -04:00
|
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dhid.sh ${PREFIX}/etc/rc.d/dhid.sh; \
|
2000-02-13 07:54:25 -05:00
|
|
|
fi;
|
2001-02-25 23:09:51 -05:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1999-10-31 22:55:21 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|