1 # Created by: Leo Vandewoestijne <freebsd@dns-lab.com>
8 MASTER_SITES= http://curvedns.on2it.net/releases/
9 DISTNAME= curvedns-0.88-unstable
11 MAINTAINER= freebsd@dns-lab.com
12 COMMENT= Forwarder adding DNSCurve to an authoritative nameserver
14 LIB_DEPENDS= ev.4:${PORTSDIR}/devel/libev
15 RUN_DEPENDS= setuidgid:${PORTSDIR}/sysutils/daemontools
16 BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
19 CONFIGURE_SCRIPT= configure.nacl
20 ALL_TARGET= # yes, an empty target.
27 SUB_FILES= pkg-message
30 .include <bsd.port.pre.mk>
32 .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
33 BROKEN= Does not compile on ia64, powerpc, or sparc64
37 @cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/freebsd.patch
40 @${ECHO_MSG} "===> configuring may take a couple of minutes"
43 .if ${ARCH} == "x86_64"
44 @cd ${WRKSRC} && ./configure.curvedns amd64
46 @cd ${WRKSRC} && ./configure.curvedns
50 ${CP} ${WRKSRC}/curvedns ${WRKSRC}/curvedns-keygen ${PREFIX}/bin/
51 ${MKDIR} ${PREFIX}/etc/curvedns/log ${PREFIX}/etc/curvedns/env
52 ${CP} ${WRKSRC}/contrib/curvedns-run ${PREFIX}/etc/curvedns/run.sample
53 ${CP} ${WRKSRC}/contrib/curvedns-log-run ${PREFIX}/etc/curvedns/log/run.sample
54 ${ECHO_CMD} ${CURVE_UID} > ${PREFIX}/etc/curvedns/env/UID
55 ${ECHO_CMD} ${CURVE_GID} > ${PREFIX}/etc/curvedns/env/GID
56 ${CHOWN} -R ${CURVE_UID}:${CURVE_GID} ${PREFIX}/etc/curvedns
57 ${CHMOD} 755 ${PREFIX}/etc/curvedns/run.sample \
58 ${PREFIX}/etc/curvedns/log/run.sample
59 ${CHMOD} 0700 ${PREFIX}/etc/curvedns/env
62 .include <bsd.port.post.mk>