# $Id$ PortSystem 1.0 name mod_authn_otp version 1.1.1 revision 1 categories www platforms darwin maintainers nomaintainer license Apache-2 description module for one-time password authentication long_description mod_authn_otp is an Apache web server module for two-factor \ authentication using one-time passwords (OTP) generated via \ the HOTP/OATH algorithm defined in RFC 4226. This creates a \ simple way to protect a web site with one-time passwords, \ using any RFC 4226-compliant token device, including software \ tokens that run on cell phones such as OATH Token. \ mod_authn_otp also supports the Mobile-OTP algorithm. homepage http://code.google.com/p/mod-authn-otp/ master_sites googlecode:mod-authn-otp checksums md5 50ddc1cacde9be8e8c20eb0e253267cf \ sha1 e214664b5fd3dc367e1d7410c23c9c113b52e9e6 \ rmd160 b812f5ff1e041635746ba662ee7431332bf00dec depends_build port:gsed depends_lib port:apache2 path:lib/libssl.dylib:openssl patchfiles otptool.h.patch configure.args --mandir=${prefix}/share/man post-configure { reinplace "s|/usr/sbin/apxs|${prefix}/apache2/bin/apxs|g" ${worksrcpath}/Makefile # sed doesn't know about option "-r", gsed does reinplace "s| sed| ${prefix}/bin/gsed|g" ${worksrcpath}/Makefile # when stripping .so, option "-x" has to be specified reinplace "s| \$(STRIP) \$(DESTDIR)\`| \$(STRIP) -x \$(DESTDIR)\`|" ${worksrcpath}/Makefile } destroot.violate_mtree yes pre-destroot { xinstall -m 755 -d ${destroot}${prefix}/apache2/modules } post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE README users.sample \ ${destroot}${prefix}/share/doc/${name} }