* /dev/random -> /dev/arandom; jose@crimelabs.net, seb@todesplanet.de

* cleanup
This commit is contained in:
naddy 2002-02-20 16:55:49 +00:00
parent c7013b749b
commit c3e6302a03
4 changed files with 38 additions and 39 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.3 2002/01/25 17:38:50 jsyn Exp $
# $OpenBSD: Makefile,v 1.4 2002/02/20 16:55:49 naddy Exp $
COMMENT= "automated password generator"
@ -10,22 +10,26 @@ HOMEPAGE= http://www.adel.nursat.kz/apg/
MAINTAINER= Jose Nazario <jose@crimelabs.net>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://www.adel.nursat.kz/apg/download/ \
MASTER_SITES= ${MASTER_SITE_PACKETSTORM}
${MASTER_SITE_PACKETSTORM}
MASTER_SITE_SUBDIR= UNIX/misc
MAKE_FLAGS= CC="${CC}"
MAKE_FLAGS= CC="${CC}" FLAGS="${CFLAGS}" \
LIBS="" USE_SHA=APG_USE_SHA
FAKE_FLAGS= INSTALL_PREFIX=${WRKINST}${PREFIX}
NO_REGRESS= Yes
post-install:
${INSTALL_SCRIPT} ${WRKDIST}/perl/apgcli.pl ${PREFIX}/bin/apgcli
@${STRIP} ${PREFIX}{/bin/apg,/bin/apgbfm,/sbin/apgd}
${INSTALL_SCRIPT} ${WRKSRC}/perl/apgcli.pl ${PREFIX}/bin/apgcli
.for prog in bin/apg bin/apgbfm sbin/apgd
${STRIP} ${PREFIX}/${prog}
.endfor
.include <bsd.port.mk>

View File

@ -1,34 +0,0 @@
$OpenBSD: patch-Makefile,v 1.2 2002/01/24 19:35:16 jsyn Exp $
--- Makefile.orig Thu Jan 24 12:56:45 2002
+++ Makefile Thu Jan 24 12:57:54 2002
@@ -6,13 +6,13 @@
##################################################################
# Compilation flags
# You should comment the line below for AIX+native cc
-FLAGS = -Wall
+FLAGS = ${CFLAGS}
##################################################################
# Libraries
#
# You should comment the line below for OpenBSD 2.8 and above
-LIBS = -lcrypt
+#LIBS = -lcrypt
LIBM = -lm
# Use lines below for cygwin
# LIBS =
@@ -32,12 +32,12 @@
# DO NOT EDIT THE LINE BELOW !!!
USE_SHA = APG_USE_SHA
# Coment this if you want to use PRNG X9.17 with SHA-1
-USE_SHA = APG_DONOTUSE_SHA
+#USE_SHA = APG_DONOTUSE_SHA
##################################################################
# Directories
# Install dirs
-INSTALL_PREFIX = /usr/local
+INSTALL_PREFIX = ${PREFIX}
APG_BIN_DIR = /bin
APG_MAN_DIR = /man/man1
APGD_BIN_DIR = /sbin

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-rnd_c,v 1.1 2002/02/20 16:55:50 naddy Exp $
--- rnd.c.orig Wed Feb 20 17:48:27 2002
+++ rnd.c Wed Feb 20 17:48:59 2002
@@ -190,8 +190,8 @@ x917_setseed (UINT32 seed, int quiet)
#ifndef CLISERV
if (quiet != TRUE)
{
- fprintf(stderr,"CAN NOT USE /dev/random TO GENERATE RANDOM SEED\n");
- fprintf(stderr,"USEING LOCAL TIME AND PID FOR SEED GENERATION !!!\n");
+ fprintf(stderr,"CAN NOT USE RANDOM DEVICE TO GENERATE RANDOM SEED\n");
+ fprintf(stderr,"USING LOCAL TIME AND PID FOR SEED GENERATION !!!\n");
fflush(stderr);
}
#endif /* CLISERV */

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-rnd_h,v 1.1 2002/02/20 16:55:50 naddy Exp $
--- rnd.h.orig Wed Feb 20 17:49:10 2002
+++ rnd.h Wed Feb 20 17:50:10 2002
@@ -37,7 +37,11 @@
extern UINT32 __rnd_seed[2];
#define RND_MX 0x7FFFFFFF
+#ifdef __OpenBSD__
+#define APG_DEVRANDOM "/dev/arandom"
+#else
#define APG_DEVRANDOM "/dev/random"
+#endif
#define APG_DEVURANDOM "/dev/urandom"
extern void x917_setseed (UINT32 seed, int quiet);