Merge from vendor branch TNF:
[pkgsrc.git] / net / ntp4 / Makefile
1 # $NetBSD: Makefile,v 1.11 2000/01/10 00:57:16 wiz Exp $
2 #
3
4 DISTNAME=       ntp-4.0.99d
5 CATEGORIES=     net
6 MASTER_SITES=   ftp://ftp.udel.edu/pub/ntp/ntp4/
7
8 MAINTAINER=     fb@enteract.com
9 HOMEPAGE=       http://www.ntp.org/
10
11 GNU_CONFIGURE=  YES
12
13 DOCDIR=         ${PREFIX}/share/doc
14 EXAMPLESDIR=    ${PREFIX}/share/examples
15 MESSAGE_FILE=   ${WRKDIR}/MESSAGE
16
17 post-build:
18         ${SED} 's|@PREFIX@|${PREFIX}|g' < ${PKGDIR}/MESSAGE > ${WRKDIR}/MESSAGE
19
20 post-install:
21         cd ${WRKSRC}; \
22             ${RM} html/.cvsignore* 2> /dev/null || ${TRUE}; \
23             ${PAX} -r -w -s "/html/ntp4/" html ${DOCDIR}; \
24             ${PAX} -r -w -s "/conf/ntp4/" conf ${EXAMPLESDIR}
25         ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCDIR}/ntp4 ${EXAMPLESDIR}/ntp4
26         ${CHMOD} -R ${SHAREMODE} ${DOCDIR}/ntp4 ${EXAMPLESDIR}/ntp4
27         ${CHMOD} a+x ${DOCDIR}/ntp4 ${DOCDIR}/ntp4/hints ${DOCDIR}/ntp4/pic
28         ${CHMOD} a+x ${EXAMPLESDIR}/ntp4
29
30 .include "../../mk/bsd.pkg.mk"