projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
macports: add a hook to replace the keytrans shebang line with one that use /usr...
[monkeysphere.git]
/
packaging
/
macports
/
Portfile
diff --git
a/packaging/macports/Portfile
b/packaging/macports/Portfile
index 0c440b6bafb7a47408b77e51ea80ed9f4ad37221..7d87a9389b726205e8e500b768fda73b1af3ed20 100644
(file)
--- a/
packaging/macports/Portfile
+++ b/
packaging/macports/Portfile
@@
-36,6
+36,7
@@
checksums md5 8590532f4702fa44027a6a583657c9ef
use_configure no
post-build {
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 \
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
${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
}
exec find ${worksrcpath} -name *.tmp -delete
}