1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mod_authn_otp |
---|
6 | version 1.1.1 |
---|
7 | |
---|
8 | categories www |
---|
9 | platforms darwin |
---|
10 | maintainers gmail.com:Markus.Ueberall |
---|
11 | |
---|
12 | description module for one-time password authentication |
---|
13 | long_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 | |
---|
21 | homepage http://code.google.com/p/mod-authn-otp/ |
---|
22 | # couldn't get the following to work: master_sites sourceforge:mod_authn_otp |
---|
23 | master_sites http://mod-authn-otp.googlecode.com/files/ |
---|
24 | |
---|
25 | distname ${name}-${version} |
---|
26 | checksums md5 50ddc1cacde9be8e8c20eb0e253267cf \ |
---|
27 | sha1 e214664b5fd3dc367e1d7410c23c9c113b52e9e6 \ |
---|
28 | rmd160 b812f5ff1e041635746ba662ee7431332bf00dec |
---|
29 | |
---|
30 | depends_lib port:apache2 port:openssl port:gsed |
---|
31 | |
---|
32 | configure.args --mandir=${prefix}/share/man |
---|
33 | |
---|
34 | patchfiles patch-otptool.h |
---|
35 | |
---|
36 | post-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 | |
---|
44 | destroot.violate_mtree yes |
---|
45 | pre-destroot { |
---|
46 | xinstall -m 755 -d ${destroot}${prefix}/apache2/modules |
---|
47 | } |
---|
48 | |
---|
49 | post-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 | #" |
---|