mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
546041ba31
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.
38 lines
1.2 KiB
Makefile
38 lines
1.2 KiB
Makefile
# New ports collection makefile for: dhid
|
|
# Date created: Sat Aug 21 06:13:59 EDT 1999
|
|
# Whom: Oryx Gazella <oryx@ungulate.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dhid
|
|
PORTVERSION= 3.1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
|
|
|
|
MAINTAINER= oryx@ungulate.net
|
|
|
|
MAN8= dhid.8
|
|
|
|
post-patch:
|
|
@${ECHO} "===> Patching dhid.h"
|
|
${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
|
|
${INSTALL} ${COPY} -o root -g wheel -m 600 ${WRKSRC}/dhid.conf ${PREFIX}/etc/dhid.conf.sample
|
|
|
|
post-install:
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/dhid.sh ]; then \
|
|
${ECHO} "===> Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."; \
|
|
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dhid.sh ${PREFIX}/etc/rc.d/dhid.sh; \
|
|
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} "--------------------------------------------------------------------------"
|
|
|
|
.include <bsd.port.mk>
|