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
|
|
|
|
PORTVERSION= 3.1
|
1999-10-31 22:55:21 -05:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
|
|
|
|
|
|
|
|
MAINTAINER= oryx@ungulate.net
|
|
|
|
|
|
|
|
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
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/dhid.8 ${PREFIX}/man/man8
|
2000-02-05 17:07:51 -05:00
|
|
|
${INSTALL} ${COPY} -o root -g wheel -m 600 ${WRKSRC}/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."; \
|
|
|
|
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/dhid.sh; \
|
2000-04-20 16:17:33 -04:00
|
|
|
${ECHO} "[ -x \"${PREFIX}/sbin/dhid\" -a -f \"${PREFIX}/etc/dhid.conf\" ] && ${PREFIX}/sbin/dhid > /dev/null && ${ECHO} -n ' dhid'" >> ${PREFIX}/etc/rc.d/dhid.sh; \
|
|
|
|
${CHMOD} 751 ${PREFIX}/etc/rc.d/dhid.sh; \
|
2000-02-13 07:54:25 -05:00
|
|
|
fi;
|
|
|
|
@${ECHO} "--------------------------------------------------------------------------"
|
|
|
|
@${ECHO} "Before dhid can run, you will need to register with a DHIS provider."
|
|
|
|
@${ECHO} "See http://www.dhis.org/dhis/services/ for a list of providers."
|
|
|
|
@${ECHO} "Enter the DHIS account information into the ${PREFIX}/etc/dhid.conf file."
|
|
|
|
@${ECHO} "--------------------------------------------------------------------------"
|
1999-10-31 22:55:21 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|