2008-06-24 15:57:09 +02:00
|
|
|
# $NetBSD: Makefile,v 1.58 2008/06/24 13:57:09 obache Exp $
|
1999-07-24 20:29:34 +02:00
|
|
|
#
|
|
|
|
|
2008-06-08 06:53:27 +02:00
|
|
|
DISTNAME= ntp-4.2.4p4
|
2008-06-24 13:47:13 +02:00
|
|
|
PKGREVISION= 1
|
2005-03-19 04:03:56 +01:00
|
|
|
CATEGORIES= net time
|
2008-06-08 06:53:27 +02:00
|
|
|
MASTER_SITES= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ \
|
|
|
|
ftp://ftp.udel.edu/pub/ntp/ntp4/
|
1999-07-24 20:29:34 +02:00
|
|
|
|
2007-12-12 21:42:28 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
1999-07-24 23:23:52 +02:00
|
|
|
HOMEPAGE= http://www.ntp.org/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Network Time Protocol Version 4
|
1999-07-24 20:29:34 +02:00
|
|
|
|
2004-07-23 21:59:41 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2008-06-08 06:53:27 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-07-23 21:59:41 +02:00
|
|
|
|
|
|
|
CONFLICTS+= openntpd-[0-9]*
|
|
|
|
|
1999-07-24 20:29:34 +02:00
|
|
|
GNU_CONFIGURE= YES
|
2008-06-08 06:53:27 +02:00
|
|
|
USE_LIBTOOL= YES
|
2008-06-24 13:47:13 +02:00
|
|
|
USE_TOOLS+= pax perl:run
|
1999-07-24 20:29:34 +02:00
|
|
|
|
2008-06-08 06:53:27 +02:00
|
|
|
CONFIGURE_ARGS+=--sysconfdir=${PKG_SYSCONFDIR}
|
2008-06-24 13:47:13 +02:00
|
|
|
CONFIGURE_ENV+= PATH_PERL=${PERL5}
|
2000-08-18 21:39:53 +02:00
|
|
|
|
2008-06-08 06:53:27 +02:00
|
|
|
DOCDIR= ${DESTDIR}${PREFIX}/share/doc/ntp4
|
|
|
|
EXAMPLESDIR= ${DESTDIR}${PREFIX}/share/examples/ntp4
|
2006-07-12 19:41:54 +02:00
|
|
|
ALL_NTP_DOCS= ${DOCDIR} ${EXAMPLESDIR}
|
1999-07-29 21:06:05 +02:00
|
|
|
|
2004-03-11 21:39:40 +01:00
|
|
|
RCD_SCRIPTS= ntpd ntpdate
|
|
|
|
|
1999-07-24 20:29:34 +02:00
|
|
|
post-install:
|
2008-06-08 06:53:27 +02:00
|
|
|
cd ${WRKSRC}/html && pax -rw -pm . ${DOCDIR}
|
|
|
|
cd ${WRKSRC}/conf && pax -rw -pm . ${EXAMPLESDIR}
|
2006-07-12 19:41:54 +02:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ALL_NTP_DOCS}
|
|
|
|
${FIND} ${ALL_NTP_DOCS} -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${FIND} ${ALL_NTP_DOCS} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
|
1999-07-24 20:29:34 +02:00
|
|
|
|
2003-10-24 06:52:26 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2008-06-24 15:57:09 +02:00
|
|
|
PLIST_VARS+= ntptime tickadj timetrim
|
2004-06-10 22:03:11 +02:00
|
|
|
|
2008-06-24 13:47:13 +02:00
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.ntptime= yes
|
2008-06-24 15:57:09 +02:00
|
|
|
PLIST.tickadj= yes
|
2004-06-10 22:03:11 +02:00
|
|
|
.elif ${OPSYS} == "IRIX"
|
2008-04-13 00:42:57 +02:00
|
|
|
PLIST.timetrim= yes
|
2008-06-24 15:57:09 +02:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
|
|
|
PLIST.ntptime= yes
|
2003-10-24 06:52:26 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-08 09:37:40 +02:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2004-06-10 22:03:11 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-openssl-incdir=${SSLBASE}/include
|
|
|
|
CONFIGURE_ARGS+= --with-openssl-libdir=${SSLBASE}/lib
|
|
|
|
CONFIGURE_ARGS+= --with-crypto=openssl
|
|
|
|
|
1999-07-24 20:29:34 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|