1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/net/ntp-rc/Makefile
2013-11-16 14:32:43 +00:00

77 lines
1.8 KiB
Makefile

# Created by: andreas
# $FreeBSD$
PORTNAME= ntp
PORTVERSION?= 4.2.6p5.r1
PORTREVISION= 4
CATEGORIES= net ipv6
PKGNAMESUFFIX= -rc
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
ftp://ftp.archive.de.uu.net/pub/unix/ntp/ntp4/ntp-4.2/ \
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/ntp-4.2/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/P/p/:S/.r/-RC/:S/.b/-beta/}
MAINTAINER= cy@FreeBSD.org
COMMENT= The Network Time Protocol Distribution
IGNORE= RC branch not currently active
GNU_CONFIGURE= yes
USE_AUTOTOOLS= automake libtool
MAN1= sntp.1 \
ntpd.1 \
ntpdc.1 \
ntpq.1 \
ntpsnmpd.1 \
ntp-keygen.1 \
NO_STAGE= yes
.include "Makefile.inc"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNTPSNMPD}
PLIST_FILES+= bin/ntpsnmpd
BUILD_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
RUN_DEPENDS+= ${LOCALBASE}/include/net-snmp/net-snmp-config.h:${PORTSDIR}/net-mgmt/net-snmp
.else
CONFIGURE_ARGS+= --without-ntpsnmpd
.endif
.if ${PORT_OPTIONS:MSSL}
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
PLIST_SUB+= SSL=""
.else
CONFIGURE_ARGS+= --without-crypto
PLIST_SUB+= SSL="@comment "
.endif
.if ${PORT_OPTIONS:MIPV6}
CONFIGURE_ARGS+= --enable-ipv6
.endif
.if ${PORT_OPTIONS:MNTP_SIGND}
CONFIGURE_ARGS+= --enable-ntp-signd
.endif
.for D in ${NTP_DRIVERS}
.if ${PORT_OPTIONS:M${D}}
CONFIGURE_ARGS+= --enable-${D}
.endif
.endfor
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
@${FIND} ${WRKSRC}/html -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@cd ${WRKSRC}/html && ${FIND} . -print | \
${CPIO} -pdu -R ${SHAREOWN}:${SHAREGRP} --quiet ${DOCSDIR}
.endif
.include <bsd.port.mk>