diff options
author | jlam <jlam> | 2005-06-06 08:42:53 +0000 |
---|---|---|
committer | jlam <jlam> | 2005-06-06 08:42:53 +0000 |
commit | 168e4514ba7df83f91153423187aa52d5554cded (patch) | |
tree | 0ae207b5d689e56c1832db52cf54982c8f91b349 /pkgtools/x11-links | |
parent | 201c5b048b47d6e5bbcbfa320bfc3ca3c4945cb9 (diff) | |
download | pkgsrc-168e4514ba7df83f91153423187aa52d5554cded.tar.gz |
Fix the permissions on the directories installed by the x11-links
package in case the build user's umask is too strict. This change is
mostly from the patch in PR pkg/29256 by Ian Leroux.
Diffstat (limited to 'pkgtools/x11-links')
-rw-r--r-- | pkgtools/x11-links/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgtools/x11-links/Makefile b/pkgtools/x11-links/Makefile index 102d87a7728..9adca1e2bbd 100644 --- a/pkgtools/x11-links/Makefile +++ b/pkgtools/x11-links/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.68 2005/06/01 18:03:08 jlam Exp $ +# $NetBSD: Makefile,v 1.69 2005/06/06 08:42:53 jlam Exp $ # # NOTE: If you update this package, then you'll likely need to also update # the x11-links dependency in buildlink3.mk to the correct version, @@ -53,11 +53,13 @@ CREATE_X11LINK?= ${LN} -fs $$src $$dest do-build: ${MKDIR} ${X11_LINKS_BUILD_DIR} + ${CHMOD} ${PKGDIRMODE} ${X11_LINKS_BUILD_DIR} ${RM} -f ${PLIST_SRC.dirs} ${FILES_LIST_CMD} | ${SED} -e "s,/[^/]*$$,," | ${SORT} -u | \ while read dir; do \ if [ -d ${X11BASE}/$$dir ]; then \ ${MKDIR} ${X11_LINKS_BUILD_DIR}/$$dir; \ + ${CHMOD} ${PKGDIRMODE} ${X11_LINKS_BUILD_DIR}/$$dir; \ ${ECHO} "@dirrm ${X11_LINKS_SUBDIR}/$$dir" \ >> ${PLIST_SRC.dirs}; \ fi; \ @@ -83,6 +85,6 @@ post-build: do-install: ${INSTALL_DATA_DIR} ${X11_LINKS_DIR} - cd ${X11_LINKS_BUILD_DIR} && ${PAX} -rwpp . ${X11_LINKS_DIR} + cd ${X11_LINKS_BUILD_DIR} && ${PAX} -rw . ${X11_LINKS_DIR} .include "../../mk/bsd.pkg.mk" |