forked from Lainports/opnsense-ports
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= openntpd
|
|
PORTVERSION= 6.0p1
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 2
|
|
CATEGORIES= net
|
|
MASTER_SITES= OPENBSD/OpenNTPD
|
|
|
|
MAINTAINER= naddy@FreeBSD.org
|
|
COMMENT= Network Time Protocol (NTP) daemon
|
|
|
|
LICENSE= ISCL
|
|
|
|
USERS= _ntp
|
|
GROUPS= _ntp
|
|
|
|
USE_RC_SUBR= openntpd
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-silent-rules
|
|
|
|
OPTIONS_DEFINE= RESSL
|
|
RESSL_DESC= SSL/TLS support via LibreSSL
|
|
|
|
OPTIONS_DEFAULT= RESSL
|
|
|
|
# Requires libtls from LibreSSL
|
|
RESSL_USES= ssl
|
|
RESSL_CONFIGURE_WITH= cacert=${LOCALBASE}/etc/ssl/cert.pem
|
|
RESSL_CPPFLAGS= -I${OPENSSLINC}
|
|
RESSL_LDFLAGS= -L${OPENSSLLIB}
|
|
RESSL_RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
|
|
|
|
pre-build:
|
|
${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' \
|
|
${WRKSRC}/src/ntpd.conf.5 ${WRKSRC}/src/ntpd.8
|
|
|
|
post-stage:
|
|
cd ${STAGEDIR}${PREFIX}/etc && ${MV} ntpd.conf ntpd.conf.sample
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORT_OPTIONS:MRESSL} && empty(SSL_DEFAULT:Mlibressl*)
|
|
IGNORE= Requires LibreSSL from ports, define DEFAULT_VERSIONS+=ssl=libressl in your make.conf and rebuild everything.
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|