pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/anomy-sanitizer Fixed the file permissions of the...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/88dab5d8e0cc
branches:  trunk
changeset: 522792:88dab5d8e0cc
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Dec 21 19:29:43 2006 +0000

description:
Fixed the file permissions of the installed files, which makes the
package usable for unprivileged builds. PKGREVISION++

diffstat:

 mail/anomy-sanitizer/Makefile |  40 +++++++++++++++++++---------------------
 1 files changed, 19 insertions(+), 21 deletions(-)

diffs (86 lines):

diff -r 239ac7f6baef -r 88dab5d8e0cc mail/anomy-sanitizer/Makefile
--- a/mail/anomy-sanitizer/Makefile     Thu Dec 21 16:35:13 2006 +0000
+++ b/mail/anomy-sanitizer/Makefile     Thu Dec 21 19:29:43 2006 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.20 2006/02/01 00:57:39 kim Exp $
+# $NetBSD: Makefile,v 1.21 2006/12/21 19:29:43 rillig Exp $
 #
 
 DISTNAME=      anomy-sanitizer-1.76
+PKGREVISION=   1
 CATEGORIES=    mail
 MASTER_SITES=  http://mailtools.anomy.net/dist/
 
@@ -17,37 +18,38 @@
 .include "../../mk/bsd.prefs.mk"
 
 WRKSRC=                ${WRKDIR}/anomy
-NO_CONFIGURE=  yes
 USE_TOOLS+=    perl:run
 
+REPLACE_PERL+=                 bin/*.pl
+CHECK_INTERPRETER_SKIP+=       *.pm
+
 ANOMYLIB=      ${PREFIX}/lib/anomy-sanitizer
 ANOMYDOC=      ${PREFIX}/share/doc/anomy-sanitizer
 
 INSTALLATION_DIRS=     sbin
 
+post-extract:
+       chmod -R u+w,go-w ${WRKSRC}
+       cd ${WRKSRC}/bin/Anomy && chmod -x *.pm */*.pm
+
 do-build:
-       cd ${WRKSRC} && ( \
+       set -e; \
+       cd ${WRKSRC}; \
            for i in mailblogger sanitizer simplify; do \
                ( \
-                   cd bin && ${MV} -f $$i.pl $$i.pl.orig && \
-                   ${SED} 's;/usr/bin/perl;${PERL5};' $$i.pl.orig > $$i.pl; \
-               ); \
-               ( \
                    ${ECHO} '#!${SH}'; \
+                   ${ECHO} 'ANOMY=${ANOMYLIB}'; \
                    ${ECHO} 'export ANOMY'; \
-                   ${ECHO} 'ANOMY=${ANOMYLIB}'; \
-                   ${ECHO} 'exec $${ANOMY}/bin/'$$i'.pl "$$@"'; \
-               ) > $$i; \
+                   ${ECHO} 'exec $${ANOMY}/bin/'"$$i"'.pl "$$@"'; \
+               ) > "$$i"; \
            done; \
-           [ -d contrib/.tmp ] && ${RMDIR} contrib/.tmp; \
-       )
+           [ -d contrib/.tmp ] && rmdir contrib/.tmp
 
 do-install:
-       ${INSTALL_SCRIPT_DIR} ${PREFIX}/sbin
        ${INSTALL_SCRIPT} ${WRKSRC}/sanitizer ${PREFIX}/sbin
        ${INSTALL_SCRIPT} ${WRKSRC}/simplify ${PREFIX}/sbin
        ${INSTALL_DATA_DIR} ${ANOMYDOC}
-       cd ${WRKSRC} && ${PAX} -rw -s',.*\.orig$$,,' -s',^\..*$$,,' \
+       cd ${WRKSRC} && pax -rw -s',.*\.orig$$,,' -s',^\..*$$,,' \
            CHANGELOG.sanitizer \
            CREDITS \
            README.sanitizer \
@@ -55,17 +57,13 @@
            contrib \
            sanitizer.html \
            ${ANOMYDOC}
-       ${CHMOD} -R u=rw,go=r ${ANOMYDOC}
-       ${CHMOD} -R a+X ${ANOMYDOC}
-       ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${ANOMYDOC}
+       chown -R ${SHAREOWN}:${SHAREGRP} ${ANOMYDOC}
        ${INSTALL_DATA_DIR} ${ANOMYLIB}
        ${INSTALL_DATA_DIR} ${ANOMYLIB}/bin
        ${INSTALL_SCRIPT} ${WRKSRC}/bin/mailblogger.pl ${ANOMYLIB}/bin
        ${INSTALL_SCRIPT} ${WRKSRC}/bin/sanitizer.pl ${ANOMYLIB}/bin
        ${INSTALL_SCRIPT} ${WRKSRC}/bin/simplify.pl ${ANOMYLIB}/bin
-       cd ${WRKSRC}/bin && ${PAX} -rw -s',.*\.orig$$,,' Anomy ${ANOMYLIB}/bin
-       ${CHMOD} -R u=rw,go=r ${ANOMYLIB}/bin/Anomy
-       ${CHMOD} -R a+X ${ANOMYLIB}/bin/Anomy
-       ${CHOWN} -R ${LIBOWN}:${LIBGRP} ${ANOMYLIB}
+       cd ${WRKSRC}/bin && pax -rw -s',.*\.orig$$,,' Anomy ${ANOMYLIB}/bin
+       chown -R ${LIBOWN}:${LIBGRP} ${ANOMYLIB}
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index