summaryrefslogtreecommitdiff
path: root/security/otptool
diff options
context:
space:
mode:
authorpettai <pettai@pkgsrc.org>2012-11-10 22:13:47 +0000
committerpettai <pettai@pkgsrc.org>2012-11-10 22:13:47 +0000
commite2b79459a5667b9d77102bd9305790df02ab1de7 (patch)
treec52f407f40e0af458a95e479157ff493251647c6 /security/otptool
parent27662afe78ef4c18f2762868b0cfe9f4913e3884 (diff)
downloadpkgsrc-e2b79459a5667b9d77102bd9305790df02ab1de7.tar.gz
Otptool is a client utility for two-factor authentication using one-time
passwords (OTP) generated via the HOTP/OATH algorithm defined in RFC 4226.
Diffstat (limited to 'security/otptool')
-rw-r--r--security/otptool/DESCR2
-rw-r--r--security/otptool/Makefile36
-rw-r--r--security/otptool/PLIST3
-rw-r--r--security/otptool/distinfo6
-rw-r--r--security/otptool/patches/patch-configure24
5 files changed, 71 insertions, 0 deletions
diff --git a/security/otptool/DESCR b/security/otptool/DESCR
new file mode 100644
index 00000000000..1005b9e378c
--- /dev/null
+++ b/security/otptool/DESCR
@@ -0,0 +1,2 @@
+Otptool is a client utility for two-factor authentication using one-time
+passwords (OTP) generated via the HOTP/OATH algorithm defined in RFC 4226.
diff --git a/security/otptool/Makefile b/security/otptool/Makefile
new file mode 100644
index 00000000000..4435bdae913
--- /dev/null
+++ b/security/otptool/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2012/11/10 22:13:47 pettai Exp $
+
+DISTNAME= mod_authn_otp-${DISTVERS}
+PKGNAME= otptool-${DISTVERS}
+CATEGORIES= security
+MASTER_SITES= http://mod-authn-otp.googlecode.com/files/
+LICENSE= apache-2.0
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://mod-authn-otp.googlecode.com/
+COMMENT= One-Time Password command line utility
+
+PKG_APACHE_ACCEPTED= apache22
+
+.include "../../mk/apache.mk"
+
+DISTVERS= 1.1.4
+
+SBINDIR= ${PREFIX}/sbin
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= configure
+SUBST_VARS.paths+= SBINDIR
+SUBST_STAGE.paths= post-patch
+
+GNU_CONFIGURE=yes
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/otptool ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/otptool.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../www/apache22/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/otptool/PLIST b/security/otptool/PLIST
new file mode 100644
index 00000000000..2f932028144
--- /dev/null
+++ b/security/otptool/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2012/11/10 22:13:47 pettai Exp $
+bin/otptool
+man/man1/otptool.1
diff --git a/security/otptool/distinfo b/security/otptool/distinfo
new file mode 100644
index 00000000000..0c098b8a777
--- /dev/null
+++ b/security/otptool/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2012/11/10 22:13:47 pettai Exp $
+
+SHA1 (mod_authn_otp-1.1.4.tar.gz) = cc1e3bebd3a2bf66fea6f4bf5e609e8bdc822040
+RMD160 (mod_authn_otp-1.1.4.tar.gz) = d1082f45fc94f042fd6b883152a5739b5a354d78
+Size (mod_authn_otp-1.1.4.tar.gz) = 94911 bytes
+SHA1 (patch-configure) = 011c00235c1d215bab48512f886776422bb55d63
diff --git a/security/otptool/patches/patch-configure b/security/otptool/patches/patch-configure
new file mode 100644
index 00000000000..df8156d5a12
--- /dev/null
+++ b/security/otptool/patches/patch-configure
@@ -0,0 +1,24 @@
+$NetBSD: patch-configure,v 1.1 2012/11/10 22:13:47 pettai Exp $
+
+Make configure detect apxs(2)
+
+--- configure.orig 2012-11-10 21:27:13.000000000 +0000
++++ configure
+@@ -3666,7 +3666,7 @@ else
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /usr/local/apache/bin
++for as_dir in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /usr/local/apache/bin @SBINDIR@
+ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+@@ -3707,7 +3707,7 @@ else
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+-for as_dir in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /usr/local/apache/bin
++for as_dir in /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /usr/local/apache/bin @SBINDIR@
+ do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.