Update dns/nsd to version 4.0.3
[dports.git] / dns / curvedns / Makefile
1 # Created by: Leo Vandewoestijne <freebsd@dns-lab.com>
2 # $FreeBSD$
3
4 PORTNAME=               curvedns
5 PORTVERSION=            0.88.b
6 PORTREVISION=           2
7 CATEGORIES=             dns
8 MASTER_SITES=           http://curvedns.on2it.net/releases/
9 DISTNAME=               curvedns-0.88-unstable
10
11 MAINTAINER=             freebsd@dns-lab.com
12 COMMENT=                Forwarder adding DNSCurve to an authoritative nameserver
13
14 LIB_DEPENDS=            ev.4:${PORTSDIR}/devel/libev
15 RUN_DEPENDS=            setuidgid:${PORTSDIR}/sysutils/daemontools
16 BUILD_DEPENDS=          bash:${PORTSDIR}/shells/bash
17
18 HAS_CONFIGURE=          yes
19 CONFIGURE_SCRIPT=       configure.nacl
20 ALL_TARGET=             # yes, an empty target.
21
22 USERS=                  bind
23 GROUPS=                 bind
24 CURVE_UID=              53
25 CURVE_GID=              53
26
27 SUB_FILES=              pkg-message
28
29 NO_STAGE=       yes
30 .include <bsd.port.pre.mk>
31
32 .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
33 BROKEN=         Does not compile on ia64, powerpc, or sparc64
34 .endif
35
36 post-patch:
37         @cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/freebsd.patch
38
39 pre-configure:
40         @${ECHO_MSG} "===>   configuring may take a couple of minutes"
41
42 post-configure:
43 .if ${ARCH} == "x86_64"
44         @cd ${WRKSRC} && ./configure.curvedns amd64
45 .else
46         @cd ${WRKSRC} && ./configure.curvedns
47 .endif
48
49 post-install:
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
60         @${CAT} ${PKGMESSAGE}
61
62 .include <bsd.port.post.mk>