summaryrefslogtreecommitdiff
path: root/net/ntp4/Makefile
blob: 07379e6790b43184f94cd1a3f651eeed00b1ec23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $NetBSD: Makefile,v 1.20 2002/02/28 13:51:23 fredb Exp $
#

DISTNAME=	ntp-4.1.1
CATEGORIES=	net
MASTER_SITES=	ftp://ftp.udel.edu/pub/ntp/ntp4/ \
		http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/

MAINTAINER=	fredb@netbsd.org
HOMEPAGE=	http://www.ntp.org/
COMMENT=	Network Time Protocol Version 4

GNU_CONFIGURE=	YES

CONFIGURE_ENV+=	PATH_PERL="${PERL5}"
CONFIGURE_ENV+=	ac_cv_lib_readline_readline=no

DOCDIR=		${PREFIX}/share/doc/html
EXAMPLESDIR=	${PREFIX}/share/examples

pre-configure:
	cd ${WRKSRC} &&						\
	    ${TOUCH} stamp-h.in COPYRIGHT			\
		    `${FIND} . -name aclocal.m4 -print`		\
		    `${FIND} . -name configure -print`		\
		    `${FIND} . -name Makefile.in -print`

post-install:
	cd ${WRKSRC} &&						\
	    ${RM} conf/.cvsignore* 2> /dev/null || ${TRUE};	\
	    ${RM} html/.cvsignore* 2> /dev/null || ${TRUE};	\
	    ${PAX} -r -w -s "/html/ntp4/" html ${DOCDIR};	\
	    ${PAX} -r -w -s "/conf/ntp4/" conf ${EXAMPLESDIR}
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCDIR}/ntp4 ${EXAMPLESDIR}/ntp4
	${CHMOD} -R ${SHAREMODE} ${DOCDIR}/ntp4 ${EXAMPLESDIR}/ntp4
	${CHMOD} a+x ${DOCDIR}/ntp4 ${DOCDIR}/ntp4/hints ${DOCDIR}/ntp4/pic
	${CHMOD} a+x ${EXAMPLESDIR}/ntp4

.include "../../mk/bsd.pkg.mk"