X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=packaging%2Fmacports%2FPortfile;h=36c3635edc3b586ce6c6ea0e10b01cce8963cbe6;hb=6d274a5eadc7bcf543b87945472f910e2a6a67c7;hp=e6176d0d313309f221b0c163a310180708910903;hpb=0e2af948ab640cd4865d41951c7b8c2a35437f59;p=monkeysphere.git diff --git a/packaging/macports/Portfile b/packaging/macports/Portfile index e6176d0..36c3635 100644 --- a/packaging/macports/Portfile +++ b/packaging/macports/Portfile @@ -21,9 +21,11 @@ platforms darwin depends_run bin:ssh:openssh \ port:gnupg \ port:perl5.10 \ - port:p5-crypt-rsa \ + port:p5-crypt-openssl-rsa \ + port:p5-crypt-openssl-bignum \ port:p5-digest-sha1 \ - port:procmail + port:procmail \ + port:socat master_sites http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/ distname ${name}_${version} @@ -31,17 +33,31 @@ extract.suffix .orig.tar.gz worksrcdir ${name}-${version} checksums md5 8590532f4702fa44027a6a583657c9ef -patch.dir ${worksrcpath} -patch.cmd make -patch.args -f Makefile \ - WRKSRC=${worksrcpath} \ - SYSETCDIR=${destroot}${prefix}/etc/monkeysphere \ - SYSDATADIR=${destroot}${prefix}/var/db/monkeysphere \ - SYSSHAREDIR=${destroot}${prefix}/share/monkeysphere \ - post-patch - 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=