summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-04-06 19:53:56 -0700
committerJameson Graef Rollins <jrollins@finestructure.net>2009-04-06 19:53:56 -0700
commit9c49dffef9a4802004cc1216559bf5847e68a16b (patch)
treebacaf409a5fa99fbe19f0173a022ca69bef03975 /packaging
parentc9b8f4f7a781431e4586cfe3e6afc7f2a6b0a2d5 (diff)
macports: add a hook to replace the keytrans shebang line with one that use /usr/bin/env. this removes the -T taint checking option, so we need to make sure this is ok, but this is the only way to get keytrans to work with the correct macports version of perl
Diffstat (limited to 'packaging')
-rw-r--r--packaging/macports/Portfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/packaging/macports/Portfile b/packaging/macports/Portfile
index 0c440b6..7d87a93 100644
--- a/packaging/macports/Portfile
+++ b/packaging/macports/Portfile
@@ -36,6 +36,7 @@ checksums md5 8590532f4702fa44027a6a583657c9ef
use_configure no
post-build {
+ # update paths to SYS*DIRs
exec sed -i .tmp -e "s|/etc/monkeysphere|${prefix}/etc/monkeysphere|g" \
${worksrcpath}/src/share/defaultenv \
${worksrcpath}/src/transitions/0.23 \
@@ -55,6 +56,12 @@ post-build {
${worksrcpath}/src/monkeysphere-host \
${worksrcpath}/src/monkeysphere-authentication \
${worksrcpath}/src/monkeysphere
+
+ # fix perl shebang line
+ exec sed -i .tmp -e "s|#!/usr/bin/perl -T|#!/usr/bin/env perl|g" \
+ ${worksrcpath}/src/share/keytrans
+
+ # remove leftover sed cruft
exec find ${worksrcpath} -name *.tmp -delete
}