pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mozart: fix ownership and permissions of installed files



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Thu Oct 15 20:18:30 2015 +0200
Changeset:	76c38e5f5318f5a939c6bf77bf5aa514448cfdd6

Modified Files:
	mozart/Makefile

Log Message:
mozart: fix ownership and permissions of installed files

Fix ownership and permissions of all the installed files (some due the
GNU_CONFIGURE_PREFIX-DESTDIR-kludge other due to .hh headers and .tcl
scripts installed with "x" bit).

Now mozart cleanly install without any PKG_DEVELOPER warnings.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=76c38e5f5318f5a939c6bf77bf5aa514448cfdd6

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mozart/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diffs:
diff --git a/mozart/Makefile b/mozart/Makefile
index b01d433..a64f97f 100644
--- a/mozart/Makefile
+++ b/mozart/Makefile
@@ -15,7 +15,7 @@ GIT_REPOSITORIES=	mozart
 GIT_REPO.mozart=	git://github.com/mozart/mozart.git
 WRKSRC=			${WRKDIR}/mozart
 
-# Does not run on 64bit platforms
+# Does not build on 64bit platforms (still not ported)
 NOT_FOR_PLATFORM=	*-*-x86_64
 
 GNU_CONFIGURE=	yes
@@ -36,7 +36,12 @@ CONFIGURE_ARGS+=	--disable-compile-elisp
 pre-build:
 	cd ${WRKSRC} && ${GMAKE} bootstrap
 
-# TODO: fix permissions in post-install
+# Fix ownership and permissions
+post-install:
+	${FIND} ${DESTDIR}${PREFIX}/oz -exec ${CHOWN} ${ROOT_USER}:${ROOT_GROUP} {} +
+	${CHMOD} -R u=rwX,go=rX ${DESTDIR}${PREFIX}/oz
+	${CHMOD} -x ${DESTDIR}${PREFIX}/oz/platform/${LOWER_OPSYS}-${MACHINE_GNU_ARCH}/wish/*/*
+	${CHMOD} -x ${DESTDIR}${PREFIX}/oz/include/*
 
 .include "../../devel/gmp/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"


Home | Main Index | Thread Index | Old Index