1999-11-01 03:55:21 +00:00
|
|
|
# New ports collection makefile for: dhid
|
2000-02-05 22:07:51 +00:00
|
|
|
# Version required: 3.1
|
1999-11-01 03:55:21 +00:00
|
|
|
# Date created: Sat Aug 21 06:13:59 EDT 1999
|
|
|
|
# Whom: Oryx Gazella <oryx@ungulate.net>
|
|
|
|
#
|
1999-11-25 16:10:35 +00:00
|
|
|
# $FreeBSD$
|
1999-11-01 03:55:21 +00:00
|
|
|
#
|
|
|
|
|
2000-02-05 22:07:51 +00:00
|
|
|
DISTNAME= dhid-3.1
|
1999-11-01 03:55:21 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
|
|
|
|
|
|
|
|
MAINTAINER= oryx@ungulate.net
|
|
|
|
|
|
|
|
MAN8= dhid.8
|
|
|
|
|
|
|
|
post-patch:
|
2000-02-05 22:07:51 +00:00
|
|
|
@${ECHO} "===> Patching dhid.h"
|
1999-11-01 03:55:21 +00:00
|
|
|
${PERL} -i -p -e "s^__PREFIX__^${PREFIX}^g" ${WRKSRC}/dhid.h
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dhid ${PREFIX}/sbin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/dhid.8 ${PREFIX}/man/man8
|
2000-02-05 22:07:51 +00:00
|
|
|
${INSTALL} ${COPY} -o root -g wheel -m 600 ${WRKSRC}/dhid.conf ${PREFIX}/etc/dhid.conf.sample
|
1999-11-01 03:55:21 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/dhid.sh ]; then \
|
|
|
|
${ECHO} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."; \
|
|
|
|
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/dhid.sh; \
|
|
|
|
${ECHO} "[ -x ${PREFIX}/bin/dtool ] && ${PREFIX}/bin/dtool -s > /dev/null && echo -n ' dhid'" >> ${PREFIX}/etc/rc.d/dhid.sh; \
|
|
|
|
chmod 751 ${PREFIX}/etc/rc.d/dhid.sh; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|