freebsd-ports/net/ntp-stable/Makefile
Volker Stolz cf53242161 Repackage:
- Add ipv6 as a second category as IPv6 is now supported.
- Switch to GNU_CONFIGURE as the bug mentioned in the Makefile
  of the port seems to be gone and it really is a GNU configure
  script. This will also enable the replacing of config.guess
  and config.sub with versions from PORTSDIR/Templates.
- Use USE_OPENSSL and add a WITHOUT_SSL knob so the ntp port can
  be built using the OpenSSL ports or without any crypto support
  at all.
- Use cpio instead of tar to install the documentation in the
  post-install target, this saves a chown-run and the port no
  longer operates on already installed files.
- Install sample configuration files in EXAMPLESDIR.
- Use/respect DOCSDIR.

PR:		ports/59955
Submitted by:	Marius Strobl
Approved by:	maintainer timeout (cy's busy in RL)
2004-08-30 14:00:15 +00:00

50 lines
1.2 KiB
Makefile

# New ports collection makefile for: ntp
# Date created: Di 5 Mai 1998 21:31:03 CEST
# Whom: andreas
#
# $FreeBSD$
#
PORTNAME= ntp
PORTVERSION= 4.2.0
PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.udel.edu/pub/ntp/ntp4/ \
http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ \
ftp://ftp.archive.de.uu.net/pub/unix/ntp/ntp4/ \
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/ntp/ntp4/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-rc/}
MAINTAINER= cy@FreeBSD.org
COMMENT= The Network Time Protocol Distribution
LATEST_LINK= ${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
.if defined(ENABLE_RAWDCF)
CONFIGURE_ARGS+= --enable-RAWDCF
.endif
.if defined(WITHOUT_SSL)
CONFIGURE_ARGS+= --without-crypto
PLIST_SUB+= SSL="@comment "
.else
USE_OPENSSL= yes
CONFIGURE_ARGS+= --with-openssl-incdir=${OPENSSLINC} \
--with-openssl-libdir=${OPENSSLLIB}
PLIST_SUB+= SSL=""
.endif
post-install:
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/conf/* ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${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>