source: trunk/dports/security/makepasswd/Portfile

Last change on this file was 151892, checked in by mojca@…, 11 months ago

makepasswd: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151892 2016-08-23 21:35:00Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                makepasswd
8version             1.10-9
9revision            1
10categories          security
11license             GPL-2
12platforms           darwin
13maintainers         nomaintainer
14description         generate and encrypt passwords
15long_description    A port of Rob Levin's makepasswd tool.
16homepage            http://packages.debian.org/stable/source/makepasswd
17master_sites        http://ftp.debian.org/debian/pool/main/m/makepasswd/
18
19distfiles           ${name}_${version}_all.deb
20
21patchfiles          patch-usr-bin-makepasswd.diff
22
23checksums           rmd160  f9030e907dda724d46e71675fc97e9594de70924 \
24                    sha256  a20939a863dc262cbb22c2e7061e5bd22839149d59a5b82ebfbc1e149f4d9d5e
25
26perl5.branches      5.24
27
28depends_run         port:p${perl5.major}-crypt-passwdmd5 \
29                    port:p${perl5.major}-crypt-openssl-random
30
31extract.cmd         ar
32extract.pre_args    -x
33extract.post_args   data.tar.gz && mkdir ${worksrcpath} && \
34                    tar -C ${worksrcpath} -xzf data.tar.gz
35
36use_configure       no
37
38post-configure {
39    reinplace "s|/usr/bin/perl|${perl5.bin}|g" \
40              "${worksrcpath}/usr/bin/makepasswd"
41}
42
43build {}
44
45destroot {
46    xinstall -m 0755 ${worksrcpath}/usr/bin/makepasswd \
47        ${destroot}${prefix}/bin/makepasswd
48    xinstall -m 0644 \
49        ${worksrcpath}/usr/share/man/man1/makepasswd.1.gz \
50        ${destroot}${prefix}/share/man/man1/makepasswd.1.gz
51}
Note: See TracBrowser for help on using the repository browser.