1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/dns/curvedns/Makefile
Chris Rees 5b93f10851 - Use USERS and GROUPS
- Stop clobbering config files on deinstall

PR:		ports/157854
Submitted by:	Leo Vandewoestijne <freebsd@dns-lab.com>
Approved by:	rene (mentor, implicit), maintainer timeout (14 days)
2011-07-19 17:44:30 +00:00

66 lines
1.7 KiB
Makefile

# New ports collection makefile for: curvedns
# Date created: 11 Januari 2011
# Whom: Leo Vandewoestijne <freebsd@dns-lab.com>
#
# $FreeBSD$
#
PORTNAME= curvedns
PORTVERSION= 0.88.b
PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://curvedns.on2it.net/releases/
DISTNAME= curvedns-0.88-unstable
MAINTAINER= freebsd@dns-lab.com
COMMENT= A forwarder adding DNSCurve to an authoritive nameserver
LIB_DEPENDS= ev.3:${PORTSDIR}/devel/libev
RUN_DEPENDS= setuidgid:${PORTSDIR}/sysutils/daemontools
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= configure.nacl
ALL_TARGET= # yes, an empty target.
USERS= bind
GROUPS= bind
CURVE_UID= 53
CURVE_GID= 53
SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 900000
BROKEN= does not configure on 9.X
.endif
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
post-patch:
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/freebsd.patch
pre-configure:
@${ECHO_MSG} "===> configuring may take a couple of minutes"
post-configure:
@cd ${WRKSRC} && ./configure.curvedns
post-install:
${CP} ${WRKSRC}/curvedns ${WRKSRC}/curvedns-keygen ${PREFIX}/bin/
${MKDIR} ${PREFIX}/etc/curvedns/log ${PREFIX}/etc/curvedns/env
${CP} ${WRKSRC}/contrib/curvedns-run ${PREFIX}/etc/curvedns/run.sample
${CP} ${WRKSRC}/contrib/curvedns-log-run ${PREFIX}/etc/curvedns/log/run.sample
${ECHO_CMD} ${CURVE_UID} > ${PREFIX}/etc/curvedns/env/UID
${ECHO_CMD} ${CURVE_GID} > ${PREFIX}/etc/curvedns/env/GID
${CHOWN} -R ${CURVE_UID}:${CURVE_GID} ${PREFIX}/etc/curvedns
${CHMOD} 755 ${PREFIX}/etc/curvedns/run.sample \
${PREFIX}/etc/curvedns/log/run.sample
${CHMOD} 0700 ${PREFIX}/etc/curvedns/env
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>