mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
fa1ac61168
PR: ports/56020 Submitted by: Kimura Fuyuki <fuyuki@nigredo.org> Approved by: portmgr
40 lines
1.1 KiB
Makefile
40 lines
1.1 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= 4.0.2
|
|
CATEGORIES= dns
|
|
MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
${PORTNAME}-3.1${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= oryx@ungulate.net
|
|
COMMENT= DHIS client for updating dynamic DNS entries in dhisd DNS tables
|
|
|
|
USE_REINPLACE= yes
|
|
OLDWRKSRC= ${WRKDIR}/${PORTNAME}-3.1
|
|
|
|
MAN8= dhid.8
|
|
|
|
post-patch:
|
|
@${ECHO} "===> Patching dhid.h"
|
|
${REINPLACE_CMD} -e "s^__PREFIX__^${PREFIX}^g" ${WRKSRC}/dhid.h
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dhid ${PREFIX}/sbin
|
|
${INSTALL_MAN} ${OLDWRKSRC}/dhid.8 ${PREFIX}/man/man8
|
|
${INSTALL} ${COPY} -o root -g wheel -m 600 ${OLDWRKSRC}/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;
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|