Source-Changes archive

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

CVS commit: othersrc/external/historical/eawk



Module Name:    othersrc
Committed By:   agc
Date:           Wed Jun  5 00:55:26 UTC 2013

Modified Files:
        othersrc/external/historical/eawk/bin: Makefile expected
        othersrc/external/historical/eawk/dist: eawk.h lib.c run.c tran.c
        othersrc/external/historical/eawk/extend: Makefile
        othersrc/external/historical/eawk/scripts: bg.sh
Added Files:
        othersrc/external/historical/eawk/extend/archive: Makefile archive.c
            shlib_version
        othersrc/external/historical/eawk/extend/bzlib: Makefile bzlib.c
            shlib_version
        othersrc/external/historical/eawk/extend/netpgpverify: Makefile
            netpgpverify.c shlib_version
        othersrc/external/historical/eawk/extend/zlib: Makefile shlib_version
            zlib.c
        othersrc/external/historical/eawk/scripts: catvfy.sh tart.sh vfy.sh

Log Message:
More changes to eawk:

+ changed the type of the awkcell str field to be void *, since it's
  overloaded for so much. Fix up uses of 'str' everywhere.
+ added extension bindings for zlib
+ added extension bindings for bzlib
+ added extension bindings for libarchive
+ added extension bindings for libnetpgpverify

netpgpverify
============

% cat scripts/vfy.sh
#! /bin/sh

pubring=${HOME}/.gnupg/pubring.gpg
if [ $# -lt 1 ]; then
        echo "Usage: vfy signed-file" >&2
        exit 1
fi
env LD_LIBRARY_PATH=lib:extend/netpgpverify bin/eawk -v f=$1 -v 
pubring=${pubring} '
BEGIN { use("netpgpverify");
        pgp = pgpv_alloc("pgpv");
        pgpv_read_pubring(pgp, pubring);
        if (pgpv_verify(pgp, f, sig))
                print "Good signature for " f, "\n" strftime("%a %b %e %H:%M:%S 
%Z %Y", sig["time"]), "\n" sig["signer"]
}'
% sh scripts/vfy.sh 
/usr/pkgsrc/security/netpgpverify/files/NetBSD-6.0_RC1_hashes.asc
Good signature for 
/usr/pkgsrc/security/netpgpverify/files/NetBSD-6.0_RC1_hashes.asc
Thu Aug 23 11:47:50 PDT 2012
signature  4096/RSA (Encrypt or Sign) 064973ac4c4a706e 2009-06-23
fingerprint:  ddee 2bdb 9c98 a0d1 d4fb dbf7 0649 73ac 4c4a 706e
uid              NetBSD Security Officer <security-officer%NetBSD.org@localhost>
encryption 4096/RSA (Encrypt or Sign) 9ff2c24fdf2ce620 2009-06-23 [Expiry 
2019-06-21]
fingerprint:  1915 0801 fbd8 f45d 89f2 0205 9ff2 c24f df2c e620

libarchive
==========

% cat scripts/tart.sh
#! /bin/sh

if [ $# -lt 1 ]; then
        echo "Usage: $0 archive" >&2
        exit 1
fi
env LD_LIBRARY_PATH=lib:extend/archive bin/eawk -v f=$1 '
BEGIN {
        use("archive");
        arch = archive_read_new();
        if (archive_read_open_filename(arch, f) != ARCHIVE_OK) 
printf("phooey#1\n")
        while (archive_read_next_header(arch, ent) == ARCHIVE_OK)
                print ent["strmode"], ent["nlink"], ent["uname"], ent["gname"], 
ent["size"], ent["pathname"]
        archive_read_finish(arch)
}'
% sh scripts/tart.sh /usr/pkgsrc/packages/All/digest-20111104.tgz
-rw-r--r--  0 root wheel 345 +CONTENTS
-r--r--r--  0 root wheel 31 +COMMENT
-r--r--r--  0 root wheel 212 +DESC
-rw-r--r--  0 root wheel 1468 +BUILD_VERSION
-rw-r--r--  0 root wheel 2769 +BUILD_INFO
-rw-r--r--  0 root wheel 6 +SIZE_PKG
-rw-r--r--  0 root wheel 6 +SIZE_ALL
-rwxr-xr-x  0 root wheel 71568 bin/digest
-rw-r--r--  0 root wheel 2950 man/man1/digest.1


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 othersrc/external/historical/eawk/bin/Makefile \
    othersrc/external/historical/eawk/bin/expected
cvs rdiff -u -r1.2 -r1.3 othersrc/external/historical/eawk/dist/eawk.h \
    othersrc/external/historical/eawk/dist/lib.c
cvs rdiff -u -r1.4 -r1.5 othersrc/external/historical/eawk/dist/run.c
cvs rdiff -u -r1.3 -r1.4 othersrc/external/historical/eawk/dist/tran.c
cvs rdiff -u -r1.2 -r1.3 othersrc/external/historical/eawk/extend/Makefile
cvs rdiff -u -r0 -r1.1 \
    othersrc/external/historical/eawk/extend/archive/Makefile \
    othersrc/external/historical/eawk/extend/archive/archive.c \
    othersrc/external/historical/eawk/extend/archive/shlib_version
cvs rdiff -u -r0 -r1.1 \
    othersrc/external/historical/eawk/extend/bzlib/Makefile \
    othersrc/external/historical/eawk/extend/bzlib/bzlib.c \
    othersrc/external/historical/eawk/extend/bzlib/shlib_version
cvs rdiff -u -r0 -r1.1 \
    othersrc/external/historical/eawk/extend/netpgpverify/Makefile \
    othersrc/external/historical/eawk/extend/netpgpverify/netpgpverify.c \
    othersrc/external/historical/eawk/extend/netpgpverify/shlib_version
cvs rdiff -u -r0 -r1.1 othersrc/external/historical/eawk/extend/zlib/Makefile \
    othersrc/external/historical/eawk/extend/zlib/shlib_version \
    othersrc/external/historical/eawk/extend/zlib/zlib.c
cvs rdiff -u -r1.1 -r1.2 othersrc/external/historical/eawk/scripts/bg.sh
cvs rdiff -u -r0 -r1.1 othersrc/external/historical/eawk/scripts/catvfy.sh \
    othersrc/external/historical/eawk/scripts/tart.sh \
    othersrc/external/historical/eawk/scripts/vfy.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index