2011-03-04 14:45:40 +01:00
|
|
|
# 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
|
2011-09-19 23:06:11 +02:00
|
|
|
PORTREVISION= 2
|
2011-03-04 14:45:40 +01:00
|
|
|
CATEGORIES= dns
|
|
|
|
MASTER_SITES= http://curvedns.on2it.net/releases/
|
|
|
|
DISTNAME= curvedns-0.88-unstable
|
|
|
|
|
|
|
|
MAINTAINER= freebsd@dns-lab.com
|
2012-07-25 13:24:09 +02:00
|
|
|
COMMENT= Forwarder adding DNSCurve to an authoritative nameserver
|
2011-03-04 14:45:40 +01:00
|
|
|
|
2011-09-19 23:06:11 +02:00
|
|
|
LIB_DEPENDS= ev.4:${PORTSDIR}/devel/libev
|
2011-03-04 14:45:40 +01:00
|
|
|
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.
|
|
|
|
|
2011-07-19 19:44:30 +02:00
|
|
|
USERS= bind
|
|
|
|
GROUPS= bind
|
2011-03-04 14:45:40 +01:00
|
|
|
CURVE_UID= 53
|
|
|
|
CURVE_GID= 53
|
|
|
|
|
2011-07-19 19:44:30 +02:00
|
|
|
SUB_FILES= pkg-message
|
2011-03-04 14:45:40 +01:00
|
|
|
|
2011-03-25 21:16:51 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-11-10 06:38:32 +01:00
|
|
|
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
|
|
|
|
BROKEN= Does not compile on ia64, powerpc, or sparc64
|
2011-07-16 07:23:59 +02:00
|
|
|
.endif
|
|
|
|
|
2011-03-04 14:45:40 +01:00
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/freebsd.patch
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@${ECHO_MSG} "===> configuring may take a couple of minutes"
|
|
|
|
|
|
|
|
post-configure:
|
2011-09-09 20:43:28 +02:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
@cd ${WRKSRC} && ./configure.curvedns amd64
|
|
|
|
.else
|
2011-03-04 14:45:40 +01:00
|
|
|
@cd ${WRKSRC} && ./configure.curvedns
|
2011-09-09 20:43:28 +02:00
|
|
|
.endif
|
2011-03-04 14:45:40 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${CP} ${WRKSRC}/curvedns ${WRKSRC}/curvedns-keygen ${PREFIX}/bin/
|
|
|
|
${MKDIR} ${PREFIX}/etc/curvedns/log ${PREFIX}/etc/curvedns/env
|
2011-07-19 19:44:30 +02:00
|
|
|
${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
|
2011-03-04 14:45:40 +01:00
|
|
|
${CHOWN} -R ${CURVE_UID}:${CURVE_GID} ${PREFIX}/etc/curvedns
|
2011-07-19 19:44:30 +02:00
|
|
|
${CHMOD} 755 ${PREFIX}/etc/curvedns/run.sample \
|
|
|
|
${PREFIX}/etc/curvedns/log/run.sample
|
2011-03-04 14:45:40 +01:00
|
|
|
${CHMOD} 0700 ${PREFIX}/etc/curvedns/env
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2011-03-25 21:16:51 +01:00
|
|
|
.include <bsd.port.post.mk>
|