1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/dns/dhid/Makefile
Alex Dupre bf330a57d4 Switch to use newer GMP version.
PR:		ports/144487
Submitted by:	ale
Approved by:	portmgr (-exp run by erwin)
2010-04-19 10:43:42 +00:00

61 lines
2.0 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= 5.5
PORTREVISION= 2
CATEGORIES= dns
MASTER_SITES= ftp://ftp.dhis.org/pub/dhis/
MAINTAINER= ports@FreeBSD.org
COMMENT= DHIS client for updating dynamic DNS entries in dhisd DNS tables
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include -DQRC=1" \
LFLAGS="-L${LOCALBASE}/lib"
USE_RC_SUBR= dhid
PORTDOCS= AUTHORS CONTRIBUTORS COPYRIGHT INSTALL README WHATSNEW
PLIST_FILES= sbin/dhid bin/genkeys etc/dhid.conf.sample
DHID_USER= dhis
DHID_GROUP= dhis
DHID_PID_DIR= /var/run/dhis
post-patch:
@${ECHO} "===> Patching dhid.h"
@${REINPLACE_CMD} -e "s^__PREFIX__^${PREFIX}^g" ${WRKSRC}/dhid.h
pre-install:
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dhid ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/genkeys ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/dhid.conf.sample ${PREFIX}/etc/dhid.conf.sample
${CHOWN} ${DHID_USER}:${DHID_GROUP} ${PREFIX}/etc/dhid.conf.sample
${CHMOD} 0600 ${PREFIX}/etc/dhid.conf.sample
@${ECHO_CMD} "@exec ${CHOWN} ${DHID_USER}:${DHID_GROUP} %D/etc/dhid.conf.sample" >> ${TMPPLIST}
@${ECHO_CMD} "@exec ${CHMOD} 0600 %D/etc/dhid.conf.sample" >> ${TMPPLIST}
${MKDIR} ${DHID_PID_DIR}
${CHOWN} ${DHID_USER}:${DHID_GROUP} ${DHID_PID_DIR}
${CHMOD} 0700 ${DHID_PID_DIR}
@${ECHO_CMD} "@exec ${MKDIR} ${DHID_PID_DIR}" >> ${TMPPLIST}
@${ECHO_CMD} "@exec ${CHOWN} ${DHID_USER}:${DHID_GROUP} ${DHID_PID_DIR}" >> ${TMPPLIST}
@${ECHO_CMD} "@exec ${CHMOD} 0700 ${DHID_PID_DIR}" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${RM} -rf /${DHID_PID_DIR}" >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>