pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/openpam OpenPAM doesn't really need perl duri...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/20ae7adadff0
branches:  trunk
changeset: 487627:20ae7adadff0
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Jan 17 16:55:21 2005 +0000

description:
OpenPAM doesn't really need perl during the build... it's only there
to regenerate some documentation files, but the regen is unnecessary.
Fix the post-tools target that created a dummy perl -- it was failing
because ${TRUE} may not be an actual executable (it could be a shell
builtin) and thus symlinking to it may not work.

diffstat:

 security/openpam/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r ca1432269dba -r 20ae7adadff0 security/openpam/Makefile
--- a/security/openpam/Makefile Mon Jan 17 16:18:25 2005 +0000
+++ b/security/openpam/Makefile Mon Jan 17 16:55:21 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2005/01/17 16:14:23 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2005/01/17 16:55:21 jlam Exp $
 
 DISTNAME=      openpam-20040210
 CATEGORIES=    security
@@ -12,7 +12,6 @@
 
 USE_BUILDLINK3=                yes
 USE_LIBTOOL=           yes
-USE_PERL5=             build
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
 CONFIGURE_ARGS+=       --without-pam-su
@@ -24,7 +23,9 @@
 # Create a fake perl binary to avoid recreating the man pages.
 post-tools:
        ${RM} -f ${TOOLS_DIR}/bin/perl
-       ${LN} -sf ${TRUE} ${TOOLS_DIR}/bin/perl
+       ${ECHO} "#!${TOOLS_SHELL}" > ${TOOLS_DIR}/bin/perl
+       ${ECHO} "${TRUE}" >> ${TOOLS_DIR}/bin/perl
+       ${CHMOD} +x ${TOOLS_DIR}/bin/perl
 
 # Remove a directory that's created for the sample su application that
 # we don't install.



Home | Main Index | Thread Index | Old Index