summaryrefslogtreecommitdiff
path: root/net/ntp4
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2003-11-21 01:02:24 +0000
committerfredb <fredb@pkgsrc.org>2003-11-21 01:02:24 +0000
commit87e38bf05ac7322b84b9ebf2f169b3a52f0cda64 (patch)
treefe29119247b53f9d13b6ad554c867602db07aac7 /net/ntp4
parentc5a092820f297eacc81e8bde7e31bd3f19c13d47 (diff)
downloadpkgsrc-87e38bf05ac7322b84b9ebf2f169b3a52f0cda64.tar.gz
Don't change the permissions of files in the work directory,
so that "make clean" after just-in-time "su" works. Closes PR pkg/23477 by Adrian Portelli.
Diffstat (limited to 'net/ntp4')
-rw-r--r--net/ntp4/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/net/ntp4/Makefile b/net/ntp4/Makefile
index d945bb4bc7d..6f72405ead3 100644
--- a/net/ntp4/Makefile
+++ b/net/ntp4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2003/11/20 12:09:09 fredb Exp $
+# $NetBSD: Makefile,v 1.30 2003/11/21 01:02:24 fredb Exp $
#
DISTNAME= ntp-4.2.0
@@ -19,14 +19,15 @@ CONFIGURE_ENV+= PATH_PERL="${PERL5}" ac_cv_header_sys_soundcard_h=no
DOCDIR= ${PREFIX}/share/doc/html
EXAMPLESDIR= ${PREFIX}/share/examples
+ALL_NTP_DOCS= ${DOCDIR}/ntp4 ${EXAMPLESDIR}/ntp4
post-install:
- cd ${WRKSRC} && \
- ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} conf html; \
- ${FIND} conf html -type d -printx | ${XARGS} ${CHMOD} ${PKGDIRMODE}; \
- ${FIND} conf html -type f -printx | ${XARGS} ${CHMOD} ${SHAREMODE}; \
+ (cd ${WRKSRC} && \
${PAX} -rw -pe -s "/html/ntp4/" html ${DOCDIR}; \
- ${PAX} -rw -pe -s "/conf/ntp4/" conf ${EXAMPLESDIR}
+ ${PAX} -rw -pe -s "/conf/ntp4/" conf ${EXAMPLESDIR}); \
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ALL_NTP_DOCS}; \
+ ${FIND} ${ALL_NTP_DOCS} -type d -printx | ${XARGS} ${CHMOD} ${PKGDIRMODE}; \
+ ${FIND} ${ALL_NTP_DOCS} -type f -printx | ${XARGS} ${CHMOD} ${SHAREMODE};
.include "../../mk/bsd.prefs.mk"