Update to 1.2.13, fix a fennerism along the way ;)

This commit is contained in:
Peter Pentchev 2001-04-09 11:09:33 +00:00
parent 5354321435
commit f99cf0b5c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41122
4 changed files with 17 additions and 26 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= apg
PORTVERSION= 1.1.61b
PORTVERSION= 1.2.13
CATEGORIES= security
MASTER_SITES= http://www.adel.nursat.kz/apg/download/

View File

@ -1 +1 @@
MD5 (apg-1.1.61b.tar.gz) = 44301e3c689985a16aceb5ffc1afe245
MD5 (apg-1.2.13.tar.gz) = 4c6a5d15afd620a78df9f68070215427

View File

@ -1,23 +1,29 @@
--- Makefile 2000/09/30 14:55:17 1.1.1.1
+++ Makefile 2001/01/17 14:12:15 1.3
@@ -1,12 +1,13 @@
--- Makefile Tue Feb 27 08:24:14 2001
+++ Makefile Mon Apr 9 14:05:45 2001
@@ -1,10 +1,10 @@
# You can modify CC variable if you have compiler other than GCC
# But the code was designed and tested with GCC
-CC = gcc
+CC ?= gcc
+CC?= gcc
# compilation flags
# You should comment the line below for AIX+native cc
-FLAGS = -Wall
+CFLAGS ?= -Wall
+CFLAGS?= -Wall
# libraries
LIBS = -lcrypt
@@ -15,7 +15,8 @@
CRYPTED_PASS = APG_USE_CRYPT
# Install dirs
-INSTALL_PREFIX = /usr/local
+PREFIX ?= /usr/local
+PREFIX?= /usr/local
+INSTALL_PREFIX = ${PREFIX}
APG_BIN_DIR = /bin
APG_MAN_DIR = /man/man1
APGD_BIN_DIR = /sbin
@@ -41,10 +42,10 @@
@@ -50,10 +51,10 @@
cygwin: standalone
cliserv: ${SOURCES} ${HEADERS}
@ -25,8 +31,8 @@
+ ${CC} ${CFLAGS} ${CS_LIBS} -DCLISERV -o ${CS_PROGNAME} ${SOURCES}
standalone: ${SOURCES} ${HEADERS}
- ${CC} ${FLAGS} -o ${PROGNAME} ${SOURCES}
+ ${CC} ${CFLAGS} -o ${PROGNAME} ${SOURCES}
- ${CC} ${FLAGS} ${LIBS} -D${CRYPTED_PASS} -o ${PROGNAME} ${SOURCES}
+ ${CC} ${CFLAGS} ${LIBS} -D${CRYPTED_PASS} -o ${PROGNAME} ${SOURCES}
strip:
strip ${PROGNAME}

View File

@ -1,15 +0,0 @@
--- apg.c 2001/01/17 09:01:19 1.1.1.3
+++ apg.c 2001/01/15 11:33:01 1.2
@@ -342,9 +342,10 @@
char * seq;
UINT32 prom = 0L;
- printf ("\nPlease enter some random data (only first 4 are significant)\n");
+ printf ("\nPlease enter some random data (only the first %d characters "
+ "are significant)\n", sizeof(prom));
seq = (char *)getpass("(eg. your old password):>");
- if (strlen(seq) < 4)
+ if (strlen(seq) < sizeof(prom))
bcopy((void *)seq, (void *)&prom, (int)strlen(seq));
else
bcopy((void *)seq, (void *)&prom, sizeof(prom));