blob: 3aa5960b7578190c5e07341f68fc6b3ce3393477 (
plain) (
blame)
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Created by: andreas
# $FreeBSD$
PORTNAME= ntp
PORTVERSION= 4.2.8p9
PORTREVISION= 1
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/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/P/p/:S/.r/-RC/}
MAINTAINER= cy@FreeBSD.org
COMMENT= The Network Time Protocol Distribution
BUILD_DEPENDS= autogen:devel/autogen
LIB_DEPENDS= libevent.so:devel/libevent2 \
libmd5.so:www/libwww
CONFLICTS= ntp-devel-*
USES= cpe pathfix shebangfix libedit libtool localbase:ldflags \
pkgconfig ssl
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-leap-smear
TEST_TARGET= check
SHEBANG_FILES= scripts/ntptrace/ntptrace.in \
scripts/ntp-wait/ntp-wait.in \
scripts/update-leap/update-leap.in
perl_OLD_CMD= @PATH_PERL@
.include "Makefile.inc"
OPTIONS_DEFINE+= DEBUG NLS THREADS
OPTIONS_DEFAULT+= THREADS
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ENABLE= debugging
IPV6_CONFIGURE_ENABLE= ipv6
NLS_CONFIGURE_ENABLE= nls
NLS_CONFIGURE_OFF= ac_cv_lib_intl_gettext=no
NLS_USES= gettext-runtime
NTP_SIGND_CONFIGURE_ENABLE= ntp-signd
NTPSNMPD_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
NTPSNMPD_CONFIGURE_OFF= --without-ntpsnmpd
PERL_UTILS_USES= perl5
SSL_CONFIGURE_ON= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
SSL_CONFIGURE_OFF= --without-crypto
THREADS_CONFIGURE_ENABLE= thread-support
THREADS_CONFIGURE_WITH= threads
.for D in ${NTP_DRIVERS}
${D}_CONFIGURE_ON= --enable-${D}
.endfor
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
BROKEN= Does not build under FreeBSD-9, aclocal not found
.endif
# XXX Temporary hack. Remember to remove this next commit.
post-extract:
@${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}
.include <bsd.port.post.mk>
|