Ticket #28051: Portfile

File Portfile, 1.9 KB (added by Markus.Ueberall@…, 13 years ago)

www/mod_authn_otp/Portfile

Line 
1# $Id$
2
3PortSystem 1.0
4
5name                mod_authn_otp
6version             1.1.1
7
8categories          www
9platforms           darwin
10maintainers         gmail.com:Markus.Ueberall
11
12description         module for one-time password authentication
13long_description    mod_authn_otp is an Apache web server module for two-factor \
14                    authentication using one-time passwords (OTP) generated via \
15                    the HOTP/OATH algorithm defined in RFC 4226. This creates a \
16                    simple way to protect a web site with one-time passwords, \
17                    using any RFC 4226-compliant token device, including software \
18                    tokens that run on cell phones such as OATH Token. \
19                    mod_authn_otp also supports the Mobile-OTP algorithm.
20
21homepage            http://code.google.com/p/mod-authn-otp/
22# couldn't get the following to work:   master_sites       sourceforge:mod_authn_otp
23master_sites        http://mod-authn-otp.googlecode.com/files/
24
25distname            ${name}-${version}
26checksums           md5         50ddc1cacde9be8e8c20eb0e253267cf \
27                    sha1        e214664b5fd3dc367e1d7410c23c9c113b52e9e6 \
28                    rmd160      b812f5ff1e041635746ba662ee7431332bf00dec
29
30depends_lib         port:apache2 port:openssl port:gsed
31
32configure.args      --mandir=${prefix}/share/man
33
34patchfiles          patch-otptool.h
35
36post-configure {
37   reinplace "s|/usr/sbin/apxs|${prefix}/apache2/bin/apxs|g" ${worksrcpath}/Makefile
38   # sed doesn't know about option "-r", gsed does
39   reinplace "s| sed| ${prefix}/bin/gsed|g" ${worksrcpath}/Makefile
40   # when stripping .so, option "-x" has to be specified
41   reinplace "s| \$(STRIP) \$(DESTDIR)\`| \$(STRIP) -x \$(DESTDIR)\`|" ${worksrcpath}/Makefile
42}
43
44destroot.violate_mtree   yes
45pre-destroot {
46   xinstall -m 755 -d ${destroot}${prefix}/apache2/modules
47}
48
49post-destroot {
50   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
51   xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE README users.sample \
52      ${destroot}${prefix}/share/doc/${name}
53}
54
55#notes "
56#...
57#"