X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=packaging%2Fmacports%2FPortfile;h=290edfdd84d0f045962432445009923b1008b0e2;hb=1687f57fcfb41453539313d66b8b01bd073c4577;hp=9680b4e12cb2d1003864cfedcf1fd7a845e60b10;hpb=05dc5dce0339471fa544b431aa361d2b1f4c5786;p=monkeysphere.git diff --git a/packaging/macports/Portfile b/packaging/macports/Portfile index 9680b4e..290edfd 100644 --- a/packaging/macports/Portfile +++ b/packaging/macports/Portfile @@ -30,6 +30,37 @@ distname ${name}_${version} extract.suffix .orig.tar.gz worksrcdir ${name}-${version} checksums md5 8590532f4702fa44027a6a583657c9ef + use_configure no + +post-build { + exec sed -i .tmp -e "s|/etc/monkeysphere|${prefix}/etc/monkeysphere|g" \ + ${worksrcpath}/src/share/defaultenv \ + ${worksrcpath}/src/transitions/0.23 \ + ${worksrcpath}/man/man1/monkeysphere.1 \ + ${worksrcpath}/man/man8/monkeysphere-authentication.8 \ + ${worksrcpath}/man/man8/monkeysphere-host.8 \ + ${worksrcpath}/etc/monkeysphere-authentication.conf + exec sed -i .tmp -e "s|/var/lib/monkeysphere|${prefix}/var/db/monkeysphere|g" \ + ${worksrcpath}/src/transitions/0.23 \ + ${worksrcpath}/man/man1/monkeysphere.1 \ + ${worksrcpath}/man/man8/monkeysphere-authentication.8 \ + ${worksrcpath}/man/man8/monkeysphere-host.8 \ + ${worksrcpath}/src/monkeysphere-host \ + ${worksrcpath}/src/monkeysphere-authentication \ + ${worksrcpath}/doc/getting-started-admin.mdwn + exec sed -i .tmp -e "s|/usr/share/monkeysphere|${prefix}/share/monkeysphere|g" \ + ${worksrcpath}/src/monkeysphere-host \ + ${worksrcpath}/src/monkeysphere-authentication \ + ${worksrcpath}/src/monkeysphere + exec find ${worksrcpath} -name *.tmp -delete +} + destroot.destdir DESTDIR=${destroot}${prefix} destroot.args PREFIX= + +# variant to use the port version of bash, which may be much newer +# than the one provided by the system +variant port-bash description {use port version of Bash} { + depends_run-append port:bash +}