Fix lp64 build. Add DESTDIR support.
This commit is contained in:
parent
6665dc3b52
commit
b740c74a84
3 changed files with 47 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
40
security/otpCalc/patches/patch-aa
Normal file
40
security/otpCalc/patches/patch-aa
Normal file
|
@ -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
|
Loading…
Reference in a new issue