summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-10-02 18:03:36 +0000
committerjoerg <joerg@pkgsrc.org>2008-10-02 18:03:36 +0000
commitb740c74a84b519370c144a132840533e9e6a8a62 (patch)
treedac68b1ff9490fe897467a51240ca082fc9c509b /security
parent6665dc3b520f0c44e6b59904ead0e5c20f405c69 (diff)
downloadpkgsrc-b740c74a84b519370c144a132840533e9e6a8a62.tar.gz
Fix lp64 build. Add DESTDIR support.
Diffstat (limited to 'security')
-rw-r--r--security/otpCalc/Makefile8
-rw-r--r--security/otpCalc/distinfo3
-rw-r--r--security/otpCalc/patches/patch-aa40
3 files changed, 47 insertions, 4 deletions
diff --git a/security/otpCalc/Makefile b/security/otpCalc/Makefile
index ea4594f968b..c67fcf54f6c 100644
--- a/security/otpCalc/Makefile
+++ b/security/otpCalc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/03/25 06:12:29 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2008/10/02 18:03:36 joerg Exp $
#
DISTNAME= otpCalc-0.96
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://original.killa.net/infosec/otpCalc/
COMMENT= OTP and S/Key calculator for X
+PKG_DESTDIR_SUPPORT= user-destdir
+
GNU_CONFIGURE= YES
USE_TOOLS+= gmake
@@ -17,8 +19,8 @@ BUILD_TARGET= otpCalc otpCalc.1
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/otpCalc ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/otpCalc.1 ${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_PROGRAM} ${WRKSRC}/otpCalc ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/otpCalc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../x11/gtk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/security/otpCalc/distinfo b/security/otpCalc/distinfo
index 765766ac12a..0c266615c3b 100644
--- a/security/otpCalc/distinfo
+++ b/security/otpCalc/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/03/25 06:12:29 wiz Exp $
+$NetBSD: distinfo,v 1.2 2008/10/02 18:03:36 joerg Exp $
SHA1 (otpCalc-0.96.tar.gz) = c3a11060a2a84b95165f5d646c637ff032136d13
RMD160 (otpCalc-0.96.tar.gz) = 901be227b5e9a31500d1b98dbf553bfe0805b210
Size (otpCalc-0.96.tar.gz) = 123491 bytes
+SHA1 (patch-aa) = c986eb1d3a458d297522dde93a494d8a2123661e
diff --git a/security/otpCalc/patches/patch-aa b/security/otpCalc/patches/patch-aa
new file mode 100644
index 00000000000..574d00c5169
--- /dev/null
+++ b/security/otpCalc/patches/patch-aa
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.1 2008/10/02 18:03:36 joerg Exp $
+
+--- crypto.c.orig 2008-10-02 19:59:19.000000000 +0200
++++ crypto.c
+@@ -60,7 +60,7 @@
+ * bits.
+ */
+
+-void md4lite(char *message, unsigned int len)
++void md4lite(char *message, size_t len)
+ {
+
+ #ifndef HAVE_MD4
+@@ -92,7 +92,7 @@ void md4lite(char *message, unsigned int
+ * bits.
+ */
+
+-void md5lite(char *message, unsigned int len)
++void md5lite(char *message, size_t len)
+ {
+
+ #ifndef HAVE_MD5
+@@ -124,7 +124,7 @@ void md5lite(char *message, unsigned int
+ * into 64 bits.
+ */
+
+-void rmd160lite(char *message, unsigned int len)
++void rmd160lite(char *message, size_t len)
+ {
+
+ #ifndef HAVE_RMD160
+@@ -175,7 +175,7 @@ void rmd160lite(char *message, unsigned
+ * into 64 bits.
+ */
+
+-void sha1lite(char *message, unsigned int len)
++void sha1lite(char *message, size_t len)
+ {
+
+ #ifndef HAVE_SHA1