| 1 | # $Id: Portfile 13 2007-06-14 03:57:40Z go $ |
|---|
| 2 | PortSystem 1.0 |
|---|
| 3 | name makepasswd |
|---|
| 4 | version 1.10-3 |
|---|
| 5 | categories security |
|---|
| 6 | platforms macosx |
|---|
| 7 | maintainers ooburai@gmail.com |
|---|
| 8 | description generate and encrypt passwords |
|---|
| 9 | long_description A port of Rob Levin's makepasswd tool. |
|---|
| 10 | homepage http://packages.debian.org/stable/source/makepasswd |
|---|
| 11 | master_sites http://ftp.debian.org/debian/pool/main/m/makepasswd/ |
|---|
| 12 | patch_sites http://macports.quay.net/sources/security/makepasswd/files/ |
|---|
| 13 | |
|---|
| 14 | distfiles ${name}_${version}_all.deb |
|---|
| 15 | |
|---|
| 16 | patchfiles patch-makepasswd.diff |
|---|
| 17 | |
|---|
| 18 | checksums ${name}_${version}_all.deb \ |
|---|
| 19 | sha1 6f89e016f52e43068f6feb2bda5f8a8c475a3ef5 \ |
|---|
| 20 | patch-makepasswd.diff \ |
|---|
| 21 | sha1 58b6d05b1da01ae75cb04fadd27aa6902fe9d403 |
|---|
| 22 | |
|---|
| 23 | depends_lib port:p5-crypt-passwdmd5 |
|---|
| 24 | |
|---|
| 25 | extract.cmd ar |
|---|
| 26 | extract.pre_args -x |
|---|
| 27 | extract.post_args data.tar.gz && mkdir ${worksrcpath} && \ |
|---|
| 28 | tar -C ${worksrcpath} -xzf data.tar.gz |
|---|
| 29 | |
|---|
| 30 | configure {} |
|---|
| 31 | post-configure { |
|---|
| 32 | reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \ |
|---|
| 33 | "${worksrcpath}/usr/bin/makepasswd" |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | build {} |
|---|
| 37 | |
|---|
| 38 | destroot { |
|---|
| 39 | xinstall -m 0755 ${worksrcpath}/usr/bin/makepasswd \ |
|---|
| 40 | ${destroot}${prefix}/bin/makepasswd |
|---|
| 41 | xinstall -m 0644 \ |
|---|
| 42 | ${worksrcpath}/usr/share/man/man1/makepasswd.1.gz \ |
|---|
| 43 | ${destroot}${prefix}/share/man/man1/makepasswd.1.gz |
|---|
| 44 | } |
|---|