Module Name: src
Committed By: agc
Date: Sun Mar 9 00:33:51 UTC 2014
Modified Files:
src/crypto/external/bsd/netpgp: Makefile
src/crypto/external/bsd/netpgp/bin: Makefile
src/crypto/external/bsd/netpgp/dist: configure configure.ac tst
src/crypto/external/bsd/netpgp/lib: Makefile
Added Files:
src/crypto/external/bsd/netpgp/bin/netpgpkeys: Makefile
Removed Files:
src/crypto/external/bsd/netpgp/netpgpkeys: Makefile
Log Message:
Move netpgpkeys into the correct place in the reachover insfrastructure
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/crypto/external/bsd/netpgp/Makefile
cvs rdiff -u -r1.5 -r1.6 src/crypto/external/bsd/netpgp/bin/Makefile
cvs rdiff -u -r0 -r1.2 src/crypto/external/bsd/netpgp/bin/netpgpkeys/Makefile
cvs rdiff -u -r1.41 -r1.42 src/crypto/external/bsd/netpgp/dist/configure \
src/crypto/external/bsd/netpgp/dist/configure.ac
cvs rdiff -u -r1.31 -r1.32 src/crypto/external/bsd/netpgp/dist/tst
cvs rdiff -u -r1.15 -r1.16 src/crypto/external/bsd/netpgp/lib/Makefile
cvs rdiff -u -r1.4 -r0 src/crypto/external/bsd/netpgp/netpgpkeys/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/netpgp/Makefile
diff -u src/crypto/external/bsd/netpgp/Makefile:1.6 src/crypto/external/bsd/netpgp/Makefile:1.7
--- src/crypto/external/bsd/netpgp/Makefile:1.6 Tue Nov 20 05:26:24 2012
+++ src/crypto/external/bsd/netpgp/Makefile Sun Mar 9 00:33:50 2014
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.6 2012/11/20 05:26:24 agc Exp $
+# $NetBSD: Makefile,v 1.7 2014/03/09 00:33:50 agc Exp $
-SUBDIR= libmj .WAIT
+SUBDIR+= libmj .WAIT
SUBDIR+= lib/verify .WAIT
SUBDIR+= lib .WAIT
-SUBDIR+= netpgp netpgpkeys bin
+SUBDIR+= bin
#SUBDIR+= hkpc hkpd
.include <bsd.subdir.mk>
Index: src/crypto/external/bsd/netpgp/bin/Makefile
diff -u src/crypto/external/bsd/netpgp/bin/Makefile:1.5 src/crypto/external/bsd/netpgp/bin/Makefile:1.6
--- src/crypto/external/bsd/netpgp/bin/Makefile:1.5 Sun Mar 9 00:24:47 2014
+++ src/crypto/external/bsd/netpgp/bin/Makefile Sun Mar 9 00:33:50 2014
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2014/03/09 00:24:47 agc Exp $
+# $NetBSD: Makefile,v 1.6 2014/03/09 00:33:50 agc Exp $
SUBDIR+= netpgp
+SUBDIR+= netpgpkeys
SUBDIR+= netpgpverify
.include <bsd.subdir.mk>
Index: src/crypto/external/bsd/netpgp/dist/configure
diff -u src/crypto/external/bsd/netpgp/dist/configure:1.41 src/crypto/external/bsd/netpgp/dist/configure:1.42
--- src/crypto/external/bsd/netpgp/dist/configure:1.41 Fri Feb 21 01:55:10 2014
+++ src/crypto/external/bsd/netpgp/dist/configure Sun Mar 9 00:33:50 2014
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Revision: 1.40 .
+# From configure.ac Revision: 1.41 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for netpgp 20140220.
#
@@ -3191,7 +3191,6 @@ $as_echo "no" >&6; }
SET_MAKE="MAKE=${MAKE-make}"
fi
-AM_PROG_AR
for ac_prog in gawk mawk nawk awk
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -4803,13 +4802,13 @@ if ${lt_cv_nm_interface+:} false; then :
else
lt_cv_nm_interface="BSD nm"
echo "int some_variable = 0;" > conftest.$ac_ext
- (eval echo "\"\$as_me:4806: $ac_compile\"" >&5)
+ (eval echo "\"\$as_me:4805: $ac_compile\"" >&5)
(eval "$ac_compile" 2>conftest.err)
cat conftest.err >&5
- (eval echo "\"\$as_me:4809: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval echo "\"\$as_me:4808: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
cat conftest.err >&5
- (eval echo "\"\$as_me:4812: output\"" >&5)
+ (eval echo "\"\$as_me:4811: output\"" >&5)
cat conftest.out >&5
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
lt_cv_nm_interface="MS dumpbin"
@@ -6015,7 +6014,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 6018 "configure"' > conftest.$ac_ext
+ echo '#line 6017 "configure"' > conftest.$ac_ext
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -7540,11 +7539,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7543: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7542: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:7547: \$? = $ac_status" >&5
+ echo "$as_me:7546: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -7879,11 +7878,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7882: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7881: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:7886: \$? = $ac_status" >&5
+ echo "$as_me:7885: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings other than the usual output.
@@ -7984,11 +7983,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:7987: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:7986: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:7991: \$? = $ac_status" >&5
+ echo "$as_me:7990: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -8039,11 +8038,11 @@ else
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:8042: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:8041: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:8046: \$? = $ac_status" >&5
+ echo "$as_me:8045: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -10406,7 +10405,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10409 "configure"
+#line 10408 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10502,7 +10501,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10505 "configure"
+#line 10504 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10741,6 +10740,104 @@ $as_echo "no, using $LN_S" >&6; }
fi
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ar; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AR"; then
+ ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AR="${ac_tool_prefix}ar"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+$as_echo "$AR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_AR"; then
+ ac_ct_AR=$AR
+ # Extract the first word of "ar", so it can be a program name with args.
+set dummy ar; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_AR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_AR"; then
+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_AR="ar"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+$as_echo "$ac_ct_AR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_AR" = x; then
+ AR=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AR=$ac_ct_AR
+ fi
+else
+ AR="$ac_cv_prog_AR"
+fi
+
+
# Compiler characteristics
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if using gcc" >&5
Index: src/crypto/external/bsd/netpgp/dist/configure.ac
diff -u src/crypto/external/bsd/netpgp/dist/configure.ac:1.41 src/crypto/external/bsd/netpgp/dist/configure.ac:1.42
--- src/crypto/external/bsd/netpgp/dist/configure.ac:1.41 Fri Feb 21 01:55:10 2014
+++ src/crypto/external/bsd/netpgp/dist/configure.ac Sun Mar 9 00:33:50 2014
@@ -1,10 +1,10 @@
-# $NetBSD: configure.ac,v 1.41 2014/02/21 01:55:10 agc Exp $
+# $NetBSD: configure.ac,v 1.42 2014/03/09 00:33:50 agc Exp $
#
# Process this file with autoconf to produce a configure script.
AC_INIT([netpgp],[20140220],[Alistair Crooks <[email protected]> c0596823])
-AC_PREREQ(2.63)
-AC_REVISION([$Revision: 1.41 $])
+AC_PREREQ(2.69)
+AC_REVISION([$Revision: 1.42 $])
AS_SHELL_SANITIZE
@@ -22,13 +22,22 @@ AC_SUBST([CANONICAL_HOST])
# Checks for programs.
#
AC_PROG_MAKE_SET
-AM_PROG_AR
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
+dnl based on AC_PROG_RANLIB from autoconf
+m4_ifndef([AC_PROG_AR],[dnl
+AN_MAKEVAR([AR], [AC_PROG_AR])
+AN_PROGRAM([ar], [AC_PROG_AR])
+AC_DEFUN([AC_PROG_AR],
+[AC_CHECK_TOOL(AR, ar, :)])
+])
+
+AC_PROG_AR
+
# Compiler characteristics
#
AC_MSG_CHECKING([if using gcc])
Index: src/crypto/external/bsd/netpgp/dist/tst
diff -u src/crypto/external/bsd/netpgp/dist/tst:1.31 src/crypto/external/bsd/netpgp/dist/tst:1.32
--- src/crypto/external/bsd/netpgp/dist/tst:1.31 Tue Jun 28 03:29:38 2011
+++ src/crypto/external/bsd/netpgp/dist/tst Sun Mar 9 00:33:50 2014
@@ -24,25 +24,21 @@ while [ $# -gt 0 ]; do
shift
done
-env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../libmj && \
+env USETOOLS=no MAKEOBJDIRPREFIX=/usr/build/amd64 sh -c 'cd ../libmj && \
make cleandir ; \
su root -c "make includes"; \
make ; \
su root -c "make install"'
-env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../lib && \
+env USETOOLS=no MAKEOBJDIRPREFIX=/usr/build/amd64 sh -c 'cd ../lib && \
make cleandir ; \
su root -c "make includes"; \
make ; \
su root -c "make install"'
-env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../netpgp && \
+env USETOOLS=no MAKEOBJDIRPREFIX=/usr/build/amd64 sh -c 'cd ../netpgp && \
make cleandir ; \
make ; \
su root -c "make install"'
-env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../netpgpkeys && \
- make cleandir ; \
- make ; \
- su root -c "make install"'
-env USETOOLS=no MAKEOBJDIRPREFIX=/usr/obj/i386 sh -c 'cd ../netpgpverify && \
+env USETOOLS=no MAKEOBJDIRPREFIX=/usr/build/amd64 sh -c 'cd ../netpgpkeys && \
make cleandir ; \
make ; \
su root -c "make install"'
@@ -100,24 +96,24 @@ echo "======> version information"
/usr/bin/netpgp --version && good=10
marktest 10 $good
echo "======> netpgpverify file"
-/usr/bin/netpgpverify a.gpg && good=11
+/usr/bin/netpgp -v < a.gpg && good=11
marktest 11 $good
echo "======> attempt to verify an unsigned file"
-/usr/bin/netpgpverify a || good=12
+/usr/bin/netpgp -v < a || good=12
marktest 12 $good
echo "======> sign/verify detached signature file"
ls -l f f.sig
-/usr/bin/netpgpverify f.sig && good=13
+/usr/bin/netpgp -v f.sig && good=13
marktest 13 $good
echo "======> another verify signature - verified cat command"
-/usr/bin/netpgpverify --output=a3 a.gpg
+/usr/bin/netpgp -v --output=a3 < a.gpg
diff a a3 && good=14
marktest 14 $good
echo "======> list keys"
/usr/bin/netpgpkeys --list-keys && good=15
marktest 15 $good
echo "======> version information"
-/usr/bin/netpgpverify --version && good=16
+/usr/bin/netpgp -v --version && good=16
marktest 16 $good
echo "======> find specific key information"
/usr/bin/netpgpkeys --get-key c0596823 [email protected] && good=17
Index: src/crypto/external/bsd/netpgp/lib/Makefile
diff -u src/crypto/external/bsd/netpgp/lib/Makefile:1.15 src/crypto/external/bsd/netpgp/lib/Makefile:1.16
--- src/crypto/external/bsd/netpgp/lib/Makefile:1.15 Wed Jul 11 19:01:02 2012
+++ src/crypto/external/bsd/netpgp/lib/Makefile Sun Mar 9 00:33:50 2014
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2012/07/11 19:01:02 christos Exp $
+# $NetBSD: Makefile,v 1.16 2014/03/09 00:33:50 agc Exp $
.include <bsd.own.mk>
@@ -21,7 +21,7 @@ INCS+= netpgp.h
INCSDIR=/usr/include
OPENSSL=${NETBSDSRCDIR}/crypto/external/bsd/openssl
-LIBDPLIBS+= mj ${.CURDIR}/../libmj
+LIBDPLIBS+= mj ${.CURDIR}/../libmj
LIBDPLIBS+= crypto ${OPENSSL}/lib/libcrypto
LIBDPLIBS+= z ${NETBSDSRCDIR}/lib/libz
LIBDPLIBS+= bz2 ${NETBSDSRCDIR}/lib/libbz2
Added files:
Index: src/crypto/external/bsd/netpgp/bin/netpgpkeys/Makefile
diff -u /dev/null src/crypto/external/bsd/netpgp/bin/netpgpkeys/Makefile:1.2
--- /dev/null Sun Mar 9 00:33:51 2014
+++ src/crypto/external/bsd/netpgp/bin/netpgpkeys/Makefile Sun Mar 9 00:33:50 2014
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.2 2014/03/09 00:33:50 agc Exp $
+
+.include <bsd.own.mk>
+
+PROG= netpgpkeys
+SRCS= netpgpkeys.c
+BINDIR= /usr/bin
+
+LIBNETPGPDIR!= cd ${.CURDIR}/../../lib && ${PRINTOBJDIR}
+LDADD+= -L${LIBNETPGPDIR} -lnetpgp
+DPADD+= ${LIBNETPGPDIR}/libnetpgp.a
+
+LIBMJDIR!= cd ${.CURDIR}/../../libmj && ${PRINTOBJDIR}
+LDADD+= -L${LIBMJDIR} -lmj
+DPADD+= ${LIBMJDIR}/libmj.a
+
+LDADD+= -lcrypto -lz -lbz2
+DPADD+= ${LIBCRYPTO} ${LIBZ} ${LIBBZ2}
+
+MAN= netpgpkeys.1
+
+.PATH: ${.CURDIR}/../../dist/src/netpgpkeys
+
+.include <bsd.prog.mk>