pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/otpCalc Fix lp64 build. Add DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/82aafb30577e
branches:  trunk
changeset: 547780:82aafb30577e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Oct 02 18:03:36 2008 +0000

description:
Fix lp64 build. Add DESTDIR support.

diffstat:

 security/otpCalc/Makefile         |   8 ++++--
 security/otpCalc/distinfo         |   3 +-
 security/otpCalc/patches/patch-aa |  40 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+), 4 deletions(-)

diffs (84 lines):

diff -r 2f5f32dfff7d -r 82aafb30577e security/otpCalc/Makefile
--- a/security/otpCalc/Makefile Thu Oct 02 17:57:45 2008 +0000
+++ b/security/otpCalc/Makefile Thu Oct 02 18:03:36 2008 +0000
@@ -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 @@
 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 @@
 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 -r 2f5f32dfff7d -r 82aafb30577e security/otpCalc/distinfo
--- a/security/otpCalc/distinfo Thu Oct 02 17:57:45 2008 +0000
+++ b/security/otpCalc/distinfo Thu Oct 02 18:03:36 2008 +0000
@@ -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 -r 2f5f32dfff7d -r 82aafb30577e security/otpCalc/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/otpCalc/patches/patch-aa Thu Oct 02 18:03:36 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index