summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorfredb <fredb>2003-11-21 01:02:24 +0000
committerfredb <fredb>2003-11-21 01:02:24 +0000
commit54ac497054fd26d8cdcb0c92229e759fed3ddc8d (patch)
treefe29119247b53f9d13b6ad554c867602db07aac7 /net
parent750a2f51fe61b4fc2ce2dc99aee71f4c724e857e (diff)
downloadpkgsrc-54ac497054fd26d8cdcb0c92229e759fed3ddc8d.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')
-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"