openbsd-ports/net/ntp/Makefile
naddy f31431be18 SECURITY:
Fix a DoS attack from certain NTP mode 7 packets.  If an attacker
spoofed a source address, ntpd hosts could be made to endlessly
send responses to each other or to themselves.  CVE-2009-3563.
2010-01-20 20:43:59 +00:00

49 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.42 2010/01/20 20:43:59 naddy Exp $
COMMENT= Network Time Protocol reference implementation
# ISC's NTP has a 'pN' in its version number, which we don't want
# to confuse with the ports system's 'pN' convention, so we
# convert it to 'pl' for local use.
VERSION= 4.2.4p7
DISTNAME= ntp-${VERSION}
PKGNAME= ntp-${VERSION:S/p/pl/}p0
CATEGORIES= net
MASTER_SITES= ftp://archive.ntp.org/ntp4/ntp-4.2/ \
http://archive.ntp.org/ntp4/ntp-4.2/
HOMEPAGE= http://www.ntp.org/
# modified ISC license. However, some files include different
# copyrights.
PERMIT_PACKAGE_CDROM= No
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= No
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c crypto curses kvm m readline
SEPARATE_BUILD= simple
USE_LIBTOOL= Yes
AUTOCONF_VERSION= 2.59
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS+= --bindir='${PREFIX}/sbin' \
--with-binsubdir=sbin \
--enable-accurate-adjtime --disable-IRIG \
--enable-parse-clocks \
--with-openssl-libdir=/usr/lib \
--with-openssl-incdir=/usr/include \
--with-crypto=openssl
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ntp
@cd ${WRKSRC}/html && pax -rw * ${PREFIX}/share/doc/ntp
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ntp
@cd ${WRKSRC}/conf && pax -rw * ${PREFIX}/share/examples/ntp
@${SUBST_CMD} -c ${FILESDIR}/README.OpenBSD ${WRKBUILD}/README.OpenBSD
${INSTALL_DATA} ${WRKBUILD}/README.OpenBSD \
${PREFIX}/share/examples/ntp/
.include <bsd.port.mk>