source: trunk/dports/www/mod_authn_otp/Portfile @ 87969

Last change on this file since 87969 was 87327, checked in by jmr@…, 8 years ago

New port: mod_authn_otp, Apache module for one-time password authentication (#28051)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 87327 2011-11-17 07:51:19Z jmr@macports.org $
2
3PortSystem 1.0
4
5name                mod_authn_otp
6version             1.1.1
7
8categories          www
9license             Apache-2
10platforms           darwin
11maintainers         gmail.com:Markus.Ueberall
12
13description         module for one-time password authentication
14long_description    mod_authn_otp is an Apache web server module for two-factor \
15                    authentication using one-time passwords (OTP) generated via \
16                    the HOTP/OATH algorithm defined in RFC 4226. This creates a \
17                    simple way to protect a web site with one-time passwords, \
18                    using any RFC 4226-compliant token device, including software \
19                    tokens that run on cell phones such as OATH Token. \
20                    mod_authn_otp also supports the Mobile-OTP algorithm.
21
22homepage            http://code.google.com/p/mod-authn-otp/
23master_sites        googlecode:mod-authn-otp
24
25checksums           md5         50ddc1cacde9be8e8c20eb0e253267cf \
26                    sha1        e214664b5fd3dc367e1d7410c23c9c113b52e9e6 \
27                    rmd160      b812f5ff1e041635746ba662ee7431332bf00dec
28
29depends_build       port:gsed
30depends_lib         port:apache2 port:openssl
31
32patchfiles          otptool.h.patch
33
34configure.args      --mandir=${prefix}/share/man
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}
Note: See TracBrowser for help on using the repository browser.