blob: bd1de177a056351fdb4df61db97e5e00e62d9578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Created by: andreas
# $FreeBSD$
PORTNAME= ntp
PORTVERSION= 4.2.8p2.r3
CATEGORIES= net ipv6
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
http://archive.ntp.org/ntp4/ntp-4.2/ \
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/
PKGNAMESUFFIX= -rc
DISTNAME= ${PORTNAME}-${PORTVERSION:S/P/p/:S/.r/-RC/}
MAINTAINER= cy@FreeBSD.org
COMMENT= The Network Time Protocol Distribution
IGNORE= VuXML ebd84c96-dd7e-11e4-854e-3c970e169bc2
DEPRECATED= Upline no longer has RC branch.
EXPIRATION_DATE= 2015-04-30
CONFLICTS= ntp-[0-9].* ntp-devel-*
GNU_CONFIGURE= yes
OPTIONS_SUB= yes
USES= cpe pathfix shebangfix libtool
LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2
NTP_SHEBANG_FILES= sbin/ntp-wait sbin/ntptrace
.include "Makefile.inc"
PERL_UTILS_USES= perl5
SSL_USE= OPENSSL=yes
SSL_CONFIGURE_OFF= --without-crypto
IPV6_CONFIGURE_ENABLE= ipv6
NTP_SIGND_CONFIGURE_ENABLE= ntp-signd
NTPSNMPD_LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
NTPSNMPD_CONFIGURE_OFF= --without-ntpsnmpd
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MSSL}
CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
.endif
.for D in ${NTP_DRIVERS}
.if ${PORT_OPTIONS:M${D}}
CONFIGURE_ARGS+= --enable-${D}
.endif
.endfor
# XXX Temporary hack. Remember to remove this next commit.
post-extract:
@/usr/bin/touch ${WRKSRC}/scripts/build/checkHtmlFileDates
@${CHMOD} +x ${WRKSRC}/scripts/build/checkHtmlFileDates
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@cd ${WRKSRC}/html && ${FIND} . -print | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${STAGEDIR}${DOCSDIR}
@cd ${STAGEDIR}${PREFIX}; \
${ECHO_CMD} ${NTP_SHEBANG_FILES} | ${XARGS} ${SED} -i '' ${_SHEBANG_REINPLACE_ARGS}
.include <bsd.port.post.mk>
|