18b76430e6
Fix remote exploit if autokey is enabled (CVE-2009-1252).
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.41 2009/05/23 16:32:29 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/}
|
|
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>
|