Mon Feb 2 11:55:16 2009 UTC ()
pkg_install-20090201:
- sync DESCR and MESSAGE with HEAD and the branch state
- sync Makefile
- regen configure
- cleanup __RCSID
- merge audit logic in pkg_add and pkg_admin into new audit_packages
function. As side effect, pkg_add will list all vulnerabilities before
asking the user whether it should continue
- sort config_variable array


(joerg)
diff -r1.5 -r1.5.36.1 pkgsrc/pkgtools/pkg_install/DESCR
diff -r1.4 -r1.4.4.1 pkgsrc/pkgtools/pkg_install/MESSAGE
diff -r1.152.2.4 -r1.152.2.5 pkgsrc/pkgtools/pkg_install/Makefile
diff -r1.28.2.5 -r1.28.2.6 pkgsrc/pkgtools/pkg_install/files/configure
diff -r1.26.2.5 -r1.26.2.6 pkgsrc/pkgtools/pkg_install/files/configure.ac
diff -r1.14.4.5 -r1.14.4.6 pkgsrc/pkgtools/pkg_install/files/add/main.c
diff -r1.70.4.21 -r1.70.4.22 pkgsrc/pkgtools/pkg_install/files/add/perform.c
diff -r1.8.2.6 -r1.8.2.7 pkgsrc/pkgtools/pkg_install/files/admin/audit.c
diff -r1.2.4.5 -r1.2.4.6 pkgsrc/pkgtools/pkg_install/files/admin/check.c
diff -r1.42.2.9 -r1.42.2.10 pkgsrc/pkgtools/pkg_install/files/admin/main.c
diff -r1.8.2.1 -r1.8.2.2 pkgsrc/pkgtools/pkg_install/files/create/build.c
diff -r1.11 -r1.11.8.1 pkgsrc/pkgtools/pkg_install/files/create/main.c
diff -r1.19.2.4 -r1.19.2.5 pkgsrc/pkgtools/pkg_install/files/create/perform.c
diff -r1.10.8.3 -r1.10.8.4 pkgsrc/pkgtools/pkg_install/files/create/pl.c
diff -r1.21.8.2 -r1.21.8.3 pkgsrc/pkgtools/pkg_install/files/delete/main.c
diff -r1.23.2.11 -r1.23.2.12 pkgsrc/pkgtools/pkg_install/files/delete/perform.c
diff -r1.22.6.1 -r1.22.6.2 pkgsrc/pkgtools/pkg_install/files/info/main.c
diff -r1.46.2.5 -r1.46.2.6 pkgsrc/pkgtools/pkg_install/files/info/perform.c
diff -r1.21.4.1 -r1.21.4.2 pkgsrc/pkgtools/pkg_install/files/info/show.c
diff -r1.4 -r1.4.8.1 pkgsrc/pkgtools/pkg_install/files/lib/automatic.c
diff -r1.9.8.3 -r1.9.8.4 pkgsrc/pkgtools/pkg_install/files/lib/fexec.c
diff -r1.23.8.3 -r1.23.8.4 pkgsrc/pkgtools/pkg_install/files/lib/file.c
diff -r1.4 -r1.4.38.1 pkgsrc/pkgtools/pkg_install/files/lib/global.c
diff -r1.42.2.18 -r1.42.2.19 pkgsrc/pkgtools/pkg_install/files/lib/lib.h
diff -r1.4.6.2 -r1.4.6.3 pkgsrc/pkgtools/pkg_install/files/lib/opattern.c
diff -r1.1.2.7 -r1.1.2.8 pkgsrc/pkgtools/pkg_install/files/lib/parse-config.c
diff -r1.6.28.1 -r1.6.28.2 pkgsrc/pkgtools/pkg_install/files/lib/path.c
diff -r1.29.4.2 -r1.29.4.3 pkgsrc/pkgtools/pkg_install/files/lib/pkgdb.c
diff -r1.17.4.12 -r1.17.4.13 pkgsrc/pkgtools/pkg_install/files/lib/plist.c
diff -r1.22.2.1 -r1.22.2.2 pkgsrc/pkgtools/pkg_install/files/lib/str.c
diff -r1.6.4.1 -r1.6.4.2 pkgsrc/pkgtools/pkg_install/files/lib/var.c
diff -r1.4.38.1 -r1.4.38.2 pkgsrc/pkgtools/pkg_install/files/lib/version.c
diff -r1.102.2.21 -r1.102.2.22 pkgsrc/pkgtools/pkg_install/files/lib/version.h
diff -r1.3.4.9 -r1.3.4.10 pkgsrc/pkgtools/pkg_install/files/lib/vulnerabilities-file.c

cvs diff -r1.5 -r1.5.36.1 pkgsrc/pkgtools/pkg_install/DESCR (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/DESCR 2003/12/22 00:23:35 1.5
+++ pkgsrc/pkgtools/pkg_install/DESCR 2009/02/02 11:55:15 1.5.36.1
@@ -2,13 +2,18 @@ pkg_install contains the core package ma @@ -2,13 +2,18 @@ pkg_install contains the core package ma
2utilities for pkgsrc, a multi-platform source and binary package 2utilities for pkgsrc, a multi-platform source and binary package
3system developed and maintained by The NetBSD Project and volunteers 3system developed and maintained by The NetBSD Project and volunteers
4from around the globe. 4from around the globe.
5 5
6The following tools are included: 6The following tools are included:
7 7
8pkg_add install and upgrade binary packages 8pkg_add install and upgrade binary packages
9pkg_admin perform various pkgsrc administrative tasks 9pkg_admin perform various pkgsrc administrative tasks
10pkg_create create software package distributions 10pkg_create create software package distributions
11pkg_delete delete installed packages 11pkg_delete delete installed packages
12pkg_info display information about installed or binary packages 12pkg_info display information about installed or binary packages
13pkg_view manage package views 13pkg_view manage package views
14linkfarm manage symbolic links for package views 14linkfarm manage symbolic links for package views
 15
 16For the following tools compatibility wrappers are included:
 17
 18audit-packages audit installed packages for security vulnerabilities
 19download-vulnerability-list download the latest vulnerabilities list

cvs diff -r1.4 -r1.4.4.1 pkgsrc/pkgtools/pkg_install/Attic/MESSAGE (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/Attic/MESSAGE 2008/01/13 22:31:25 1.4
+++ pkgsrc/pkgtools/pkg_install/Attic/MESSAGE 2009/02/02 11:55:15 1.4.4.1
@@ -1,42 +1,37 @@ @@ -1,42 +1,37 @@
1=========================================================================== 1===========================================================================
2$NetBSD: MESSAGE,v 1.4 2008/01/13 22:31:25 rillig Exp $ 2$NetBSD: MESSAGE,v 1.4.4.1 2009/02/02 11:55:15 joerg Exp $
3 3
4You may wish to have the vulnerabilities file downloaded daily so that 4You may wish to have the vulnerabilities file downloaded daily so that
5it remains current. This may be done by adding an appropriate entry 5it remains current. This may be done by adding an appropriate entry
6to a user's crontab(5) entry. For example the entry 6to a user's crontab(5) entry. For example the entry
7 7
8# download vulnerabilities file 8# download vulnerabilities file
90 3 * * * ${PREFIX}/sbin/download-vulnerability-list >/dev/null 2>&1 90 3 * * * ${PREFIX}/sbin/pkg_admin fetch-pkg-vulnerabilities >/dev/null 2>&1
10 10
11will update the vulnerability list every day at 3AM. You may wish to do 11will update the vulnerability list every day at 3AM. You may wish to do
12this more often than once a day. 12this more often than once a day.
13 13
14In addition, you may wish to run the package audit from the daily 14In addition, you may wish to run the package audit from the daily
15security script. This may be accomplished by adding the following 15security script. This may be accomplished by adding the following
16lines to /etc/security.local 16lines to /etc/security.local
17 17
18if [ -x ${PREFIX}/sbin/audit-packages ]; then 18if [ -x ${PREFIX}/sbin/pkg_admin ]; then
19 ${PREFIX}/sbin/audit-packages 19 ${PREFIX}/sbin/pkg_admin audit
20fi 20fi
21 21
22Alternatively this can also be acomplished by adding an entry to a user's 22Alternatively this can also be acomplished by adding an entry to a user's
23crontab(5) file. e.g.: 23crontab(5) file. e.g.:
24 24
25# run audit-packages 25# run audit-packages
260 3 * * * ${PREFIX}/sbin/audit-packages 260 3 * * * ${PREFIX}/sbin/pkg_admin audit
27 27
28audit-packages and/or download-vulnerability-list need not be run by 28Both pkg_admin subcommands can be run as as an unprivileged user,
29the root user. They will function as an unprivileged user, as long 29as long as the user chosen has permission to read the pkgdb and to write
30as the user chosen has permission to write the pkg-vulnerabilites 30the pkg-vulnerabilites to ${PKGVULNDIR}.
31to ${PKGVULNDIR}. 31
32 32The behavior of pkg_admin and pkg_add can be customised with
33A sample audit-packages.conf has been installed to: 33pkg_install.conf. Please see pkg_install.conf(5) for details.
34 34
35 ${EGDIR}/audit-packages.conf 35If you want to use GPG signature verification you will need to install
36 36GnuPG and set the path for GPG appropriately in your pkg_install.conf.
37You may want to customise this file and copy it to 
38${PKG_SYSCONFDIR}/audit-packages.conf. 
39If you want to use signature verification you will need to install GnuPG and 
40set the path for GPG appropriately in your audit-packages.conf. See 
41audit-packages.conf(5) and audit-packages(8) for further information. 
42=========================================================================== 37===========================================================================

cvs diff -r1.152.2.4 -r1.152.2.5 pkgsrc/pkgtools/pkg_install/Makefile (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/Makefile 2008/10/29 10:38:53 1.152.2.4
+++ pkgsrc/pkgtools/pkg_install/Makefile 2009/02/02 11:55:15 1.152.2.5
@@ -1,32 +1,33 @@ @@ -1,32 +1,33 @@
1# $NetBSD: Makefile,v 1.152.2.4 2008/10/29 10:38:53 joerg Exp $ 1# $NetBSD: Makefile,v 1.152.2.5 2009/02/02 11:55:15 joerg Exp $
2 2
3# Notes to package maintainers: 3# Notes to package maintainers:
4# 4#
5# Updating this package does not automatically necessitate bumping 5# Updating this package does not automatically necessitate bumping
6# PKGTOOLS_REQD in bsd.pkg.mk. Do so if and only if there is a critical 6# PKGTOOLS_REQD in bsd.pkg.mk. Do so if and only if there is a critical
7# change in the pkg_* tools that pkgsrc relies on for proper operation. 7# change in the pkg_* tools that pkgsrc relies on for proper operation.
8 8
9DISTNAME= pkg_install-${VERSION} 9DISTNAME= pkg_install-${VERSION}
10CATEGORIES= pkgtools 10CATEGORIES= pkgtools
11MASTER_SITES= # empty 11MASTER_SITES= # empty
12DISTFILES= # empty 12DISTFILES= # empty
13 13
14MAINTAINER= joerg@NetBSD.org 14MAINTAINER= joerg@NetBSD.org
15HOMEPAGE= http://www.pkgsrc.org/ 15HOMEPAGE= http://www.pkgsrc.org/
16COMMENT= Package management and administration tools for pkgsrc 16COMMENT= Package management and administration tools for pkgsrc
17#LICENSE= modified-bsd 17#LICENSE= modified-bsd
18 18
19PKG_DESTDIR_SUPPORT= user-destdir 19PKG_DESTDIR_SUPPORT= user-destdir
 20BOOTSTRAP_PKG= yes
20 21
21CONFLICTS+= audit-packages-[0-9]* 22CONFLICTS+= audit-packages-[0-9]*
22 23
23GNU_CONFIGURE= yes 24GNU_CONFIGURE= yes
24CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} 25CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
25CONFIGURE_ARGS+= --with-pkgdbdir=${PKG_DBDIR:Q} 26CONFIGURE_ARGS+= --with-pkgdbdir=${PKG_DBDIR:Q}
26 27
27USE_FEATURES= nbcompat 28USE_FEATURES= nbcompat
28 29
29NBCOMPAT_CONFIGURE_ARGS+= --enable-bsd-getopt --enable-db 30NBCOMPAT_CONFIGURE_ARGS+= --enable-bsd-getopt --enable-db
30 31
31SKIP_AUDIT_PACKAGES= yes 32SKIP_AUDIT_PACKAGES= yes
32NO_PKGTOOLS_REQD_CHECK= yes 33NO_PKGTOOLS_REQD_CHECK= yes
@@ -34,31 +35,38 @@ NO_CHECKSUM= yes @@ -34,31 +35,38 @@ NO_CHECKSUM= yes
34NO_MTREE= yes 35NO_MTREE= yes
35PKG_PRESERVE= yes 36PKG_PRESERVE= yes
36CHECK_PERMS= no 37CHECK_PERMS= no
37 38
38# These are needed to solve a chicken-and-egg problem where pkgsrc uses 39# These are needed to solve a chicken-and-egg problem where pkgsrc uses
39# newer features of pkg_install, but older NetBSD installations won't 40# newer features of pkg_install, but older NetBSD installations won't
40# support them. In this case, we explicitly use the native GCC 41# support them. In this case, we explicitly use the native GCC
41# compiler to avoid problems with depending on pkgsrc GCC for building 42# compiler to avoid problems with depending on pkgsrc GCC for building
42# pkg_install. 43# pkg_install.
43# 44#
44# We also use the newly built pkg_{add,create,delete} since upgrading 45# We also use the newly built pkg_{add,create,delete} since upgrading
45# from an older pkg_install might required features of the new program.  46# from an older pkg_install might required features of the new program.
46# 47#
 48# Note that the definitions are only overriden for the phases that are
 49# supposed to use them. pkg_admin pmatch might be used when looking for
 50# dependencies. If that is ever changed in a incompatible way, this has to
 51# be rethought.
47USE_NATIVE_GCC= yes 52USE_NATIVE_GCC= yes
 53
 54.if defined(_PKGSRC_BARRIER)
48PKG_ADD_CMD= ${WRKSRC}/add/pkg_add 55PKG_ADD_CMD= ${WRKSRC}/add/pkg_add
49PKG_CREATE_CMD= ${WRKSRC}/create/pkg_create 56PKG_CREATE_CMD= ${WRKSRC}/create/pkg_create
50PKG_DELETE_CMD= ${WRKSRC}/delete/pkg_delete 57PKG_DELETE_CMD= ${WRKSRC}/delete/pkg_delete
51PKG_INFO_CMD= ${WRKSRC}/info/pkg_info 58PKG_INFO_CMD= ${WRKSRC}/info/pkg_info
 59.endif
52 60
53CPPFLAGS+= -D_LARGEFILE_SOURCE -D_LARGE_FILES 61CPPFLAGS+= -D_LARGEFILE_SOURCE -D_LARGE_FILES
54CPPFLAGS+= -D_FILE_OFFSET_BITS=64 62CPPFLAGS+= -D_FILE_OFFSET_BITS=64
55 63
56CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK} 64CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK}
57 65
58MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH:Q} 66MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH:Q}
59MAKE_ENV+= OPSYS=${OPSYS:Q} 67MAKE_ENV+= OPSYS=${OPSYS:Q}
60 68
61PKG_DBDIR?= /var/db/pkg 69PKG_DBDIR?= /var/db/pkg
62EGDIR= ${PREFIX}/share/examples/pkg_install 70EGDIR= ${PREFIX}/share/examples/pkg_install
63 71
64PLIST_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q} 72PLIST_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q}

cvs diff -r1.28.2.5 -r1.28.2.6 pkgsrc/pkgtools/pkg_install/files/configure (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/configure 2008/09/21 13:02:58 1.28.2.5
+++ pkgsrc/pkgtools/pkg_install/files/configure 2009/02/02 11:55:15 1.28.2.6
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62 for pkg_install 20080524. 3# Generated by GNU Autoconf 2.63 for pkg_install 20090201.
4# 4#
5# Report bugs to <joerg@NetBSD.org>. 5# Report bugs to <joerg@NetBSD.org>.
6# 6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ## 11## --------------------- ##
12## M4sh Initialization. ## 12## M4sh Initialization. ##
13## --------------------- ## 13## --------------------- ##
14 14
15# Be more Bourne compatible 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh 16DUALCASE=1; export DUALCASE # for MKS sh
@@ -586,28 +586,28 @@ ac_hostname=`(hostname || uname -n) 2>/d @@ -586,28 +586,28 @@ ac_hostname=`(hostname || uname -n) 2>/d
586ac_default_prefix=/usr/local 586ac_default_prefix=/usr/local
587ac_clean_files= 587ac_clean_files=
588ac_config_libobj_dir=. 588ac_config_libobj_dir=.
589LIBOBJS= 589LIBOBJS=
590cross_compiling=no 590cross_compiling=no
591subdirs= 591subdirs=
592MFLAGS= 592MFLAGS=
593MAKEFLAGS= 593MAKEFLAGS=
594SHELL=${CONFIG_SHELL-/bin/sh} 594SHELL=${CONFIG_SHELL-/bin/sh}
595 595
596# Identity of this package. 596# Identity of this package.
597PACKAGE_NAME='pkg_install' 597PACKAGE_NAME='pkg_install'
598PACKAGE_TARNAME='pkg_install' 598PACKAGE_TARNAME='pkg_install'
599PACKAGE_VERSION='20080524' 599PACKAGE_VERSION='20090201'
600PACKAGE_STRING='pkg_install 20080524' 600PACKAGE_STRING='pkg_install 20090201'
601PACKAGE_BUGREPORT='joerg@NetBSD.org' 601PACKAGE_BUGREPORT='joerg@NetBSD.org'
602 602
603ac_unique_file="lib/plist.c" 603ac_unique_file="lib/plist.c"
604# Factoring default headers for most tests. 604# Factoring default headers for most tests.
605ac_includes_default="\ 605ac_includes_default="\
606#include <stdio.h> 606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H 607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h> 608# include <sys/types.h>
609#endif 609#endif
610#ifdef HAVE_SYS_STAT_H 610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h> 611# include <sys/stat.h>
612#endif 612#endif
613#ifdef STDC_HEADERS 613#ifdef STDC_HEADERS
@@ -627,109 +627,109 @@ ac_includes_default="\ @@ -627,109 +627,109 @@ ac_includes_default="\
627#ifdef HAVE_STRINGS_H 627#ifdef HAVE_STRINGS_H
628# include <strings.h> 628# include <strings.h>
629#endif 629#endif
630#ifdef HAVE_INTTYPES_H 630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h> 631# include <inttypes.h>
632#endif 632#endif
633#ifdef HAVE_STDINT_H 633#ifdef HAVE_STDINT_H
634# include <stdint.h> 634# include <stdint.h>
635#endif 635#endif
636#ifdef HAVE_UNISTD_H 636#ifdef HAVE_UNISTD_H
637# include <unistd.h> 637# include <unistd.h>
638#endif" 638#endif"
639 639
640ac_subst_vars='SHELL 640ac_subst_vars='LTLIBOBJS
641PATH_SEPARATOR 
642PACKAGE_NAME 
643PACKAGE_TARNAME 
644PACKAGE_VERSION 
645PACKAGE_STRING 
646PACKAGE_BUGREPORT 
647exec_prefix 
648prefix 
649program_transform_name 
650bindir 
651sbindir 
652libexecdir 
653datarootdir 
654datadir 
655sysconfdir 
656sharedstatedir 
657localstatedir 
658includedir 
659oldincludedir 
660docdir 
661infodir 
662htmldir 
663dvidir 
664pdfdir 
665psdir 
666libdir 
667localedir 
668mandir 
669DEFS 
670ECHO_C 
671ECHO_N 
672ECHO_T 
673LIBS 
674build_alias 
675host_alias 
676target_alias 
677build 
678build_cpu 
679build_vendor 
680build_os 
681host 
682host_cpu 
683host_vendor 
684host_os 
685CANONICAL_HOST 
686INCLUDES 
687SET_MAKE 
688CC 
689CFLAGS 
690LDFLAGS 
691CPPFLAGS 
692ac_ct_CC 
693EXEEXT 
694OBJEXT 
695INSTALL_PROGRAM 
696INSTALL_SCRIPT 
697INSTALL_DATA 
698LN_S 
699RANLIB 
700AR 
701CHMOD 
702CMP 
703CP 
704ENV 
705FIND 
706GREP 
707LN 
708MKDIR 
709RMDIR 
710RM 
711SED 
712SORT 
713TOUCH 
714AUTOCONF 
715AUTOHEADER 
716pkgdbdir 
717ssl_support 
718bootstrap 
719CPP 
720EGREP 
721LIBOBJS 641LIBOBJS
722LTLIBOBJS' 642EGREP
 643CPP
 644bootstrap
 645ssl_support
 646pkgdbdir
 647AUTOHEADER
 648AUTOCONF
 649TOUCH
 650SORT
 651SED
 652RM
 653RMDIR
 654MKDIR
 655LN
 656GREP
 657FIND
 658ENV
 659CP
 660CMP
 661CHMOD
 662AR
 663RANLIB
 664LN_S
 665INSTALL_DATA
 666INSTALL_SCRIPT
 667INSTALL_PROGRAM
 668OBJEXT
 669EXEEXT
 670ac_ct_CC
 671CPPFLAGS
 672LDFLAGS
 673CFLAGS
 674CC
 675SET_MAKE
 676INCLUDES
 677CANONICAL_HOST
 678host_os
 679host_vendor
 680host_cpu
 681host
 682build_os
 683build_vendor
 684build_cpu
 685build
 686target_alias
 687host_alias
 688build_alias
 689LIBS
 690ECHO_T
 691ECHO_N
 692ECHO_C
 693DEFS
 694mandir
 695localedir
 696libdir
 697psdir
 698pdfdir
 699dvidir
 700htmldir
 701infodir
 702docdir
 703oldincludedir
 704includedir
 705localstatedir
 706sharedstatedir
 707sysconfdir
 708datadir
 709datarootdir
 710libexecdir
 711sbindir
 712bindir
 713program_transform_name
 714prefix
 715exec_prefix
 716PACKAGE_BUGREPORT
 717PACKAGE_STRING
 718PACKAGE_VERSION
 719PACKAGE_TARNAME
 720PACKAGE_NAME
 721PATH_SEPARATOR
 722SHELL'
723ac_subst_files='' 723ac_subst_files=''
724ac_user_opts=' 724ac_user_opts='
725enable_option_checking 725enable_option_checking
726with_pkgdbdir 726with_pkgdbdir
727with_ssl 727with_ssl
728enable_bootstrap 728enable_bootstrap
729' 729'
730 ac_precious_vars='build_alias 730 ac_precious_vars='build_alias
731host_alias 731host_alias
732target_alias 732target_alias
733CC 733CC
734CFLAGS 734CFLAGS
735LDFLAGS 735LDFLAGS
@@ -1148,29 +1148,29 @@ Try \`$0 --help' for more information."  @@ -1148,29 +1148,29 @@ Try \`$0 --help' for more information."
1148 1148
1149 esac 1149 esac
1150done 1150done
1151 1151
1152if test -n "$ac_prev"; then 1152if test -n "$ac_prev"; then
1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1154 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1155 { (exit 1); exit 1; }; } 1155 { (exit 1); exit 1; }; }
1156fi 1156fi
1157 1157
1158if test -n "$ac_unrecognized_opts"; then 1158if test -n "$ac_unrecognized_opts"; then
1159 case $enable_option_checking in 1159 case $enable_option_checking in
1160 no) ;; 1160 no) ;;
1161 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1161 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1162 { (exit 1); exit 1; }; } ;; 1162 { (exit 1); exit 1; }; } ;;
1163 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;; 1163 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1164 esac 1164 esac
1165fi 1165fi
1166 1166
1167# Check all directory arguments for consistency. 1167# Check all directory arguments for consistency.
1168for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1168for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1169 datadir sysconfdir sharedstatedir localstatedir includedir \ 1169 datadir sysconfdir sharedstatedir localstatedir includedir \
1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1171 libdir localedir mandir 1171 libdir localedir mandir
1172do 1172do
1173 eval ac_val=\$$ac_var 1173 eval ac_val=\$$ac_var
1174 # Remove trailing slashes. 1174 # Remove trailing slashes.
1175 case $ac_val in 1175 case $ac_val in
1176 */ ) 1176 */ )
@@ -1203,27 +1203,27 @@ if test "x$host_alias" != x; then @@ -1203,27 +1203,27 @@ if test "x$host_alias" != x; then
1203 cross_compiling=yes 1203 cross_compiling=yes
1204 fi 1204 fi
1205fi 1205fi
1206 1206
1207ac_tool_prefix= 1207ac_tool_prefix=
1208test -n "$host_alias" && ac_tool_prefix=$host_alias- 1208test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209 1209
1210test "$silent" = yes && exec 6>/dev/null 1210test "$silent" = yes && exec 6>/dev/null
1211 1211
1212 1212
1213ac_pwd=`pwd` && test -n "$ac_pwd" && 1213ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214ac_ls_di=`ls -di .` && 1214ac_ls_di=`ls -di .` &&
1215ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1215ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1216 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1217 { (exit 1); exit 1; }; } 1217 { (exit 1); exit 1; }; }
1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1219 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1220 { (exit 1); exit 1; }; } 1220 { (exit 1); exit 1; }; }
1221 1221
1222 1222
1223# Find the source files, if location was not specified. 1223# Find the source files, if location was not specified.
1224if test -z "$srcdir"; then 1224if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes 1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory. 1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$as_myself" || 1227 ac_confdir=`$as_dirname -- "$as_myself" ||
1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \ 1229 X"$as_myself" : 'X\(//\)[^/]' \| \
@@ -1278,27 +1278,27 @@ for ac_var in $ac_precious_vars; do @@ -1278,27 +1278,27 @@ for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var} 1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282done 1282done
1283 1283
1284# 1284#
1285# Report the --help message. 1285# Report the --help message.
1286# 1286#
1287if test "$ac_init_help" = "long"; then 1287if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing. 1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh. 1289 # This message is too long to be a string in the A/UX 3.1 sh.
1290 cat <<_ACEOF 1290 cat <<_ACEOF
1291\`configure' configures pkg_install 20080524 to adapt to many kinds of systems. 1291\`configure' configures pkg_install 20090201 to adapt to many kinds of systems.
1292 1292
1293Usage: $0 [OPTION]... [VAR=VALUE]... 1293Usage: $0 [OPTION]... [VAR=VALUE]...
1294 1294
1295To assign environment variables (e.g., CC, CFLAGS...), specify them as 1295To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296VAR=VALUE. See below for descriptions of some of the useful variables. 1296VAR=VALUE. See below for descriptions of some of the useful variables.
1297 1297
1298Defaults for the options are specified in brackets. 1298Defaults for the options are specified in brackets.
1299 1299
1300Configuration: 1300Configuration:
1301 -h, --help display this help and exit 1301 -h, --help display this help and exit
1302 --help=short display options specific to this package 1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages 1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit 1304 -V, --version display version information and exit
@@ -1343,27 +1343,27 @@ Fine tuning of the installation director @@ -1343,27 +1343,27 @@ Fine tuning of the installation director
1343 --psdir=DIR ps documentation [DOCDIR] 1343 --psdir=DIR ps documentation [DOCDIR]
1344_ACEOF 1344_ACEOF
1345 1345
1346 cat <<\_ACEOF 1346 cat <<\_ACEOF
1347 1347
1348System types: 1348System types:
1349 --build=BUILD configure for building on BUILD [guessed] 1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1351_ACEOF 1351_ACEOF
1352fi 1352fi
1353 1353
1354if test -n "$ac_init_help"; then 1354if test -n "$ac_init_help"; then
1355 case $ac_init_help in 1355 case $ac_init_help in
1356 short | recursive ) echo "Configuration of pkg_install 20080524:";; 1356 short | recursive ) echo "Configuration of pkg_install 20090201:";;
1357 esac 1357 esac
1358 cat <<\_ACEOF 1358 cat <<\_ACEOF
1359 1359
1360Optional Features: 1360Optional Features:
1361 --disable-option-checking ignore unrecognized --enable/--with options 1361 --disable-option-checking ignore unrecognized --enable/--with options
1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 --enable-bootstrap build minimal version of pkg_install 1364 --enable-bootstrap build minimal version of pkg_install
1365 1365
1366Optional Packages: 1366Optional Packages:
1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1367 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1368 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1369 --with-pkgdbdir=DIR Where to put the pkg database (/var/db/pkg) 1369 --with-pkgdbdir=DIR Where to put the pkg database (/var/db/pkg)
@@ -1435,42 +1435,42 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_ @@ -1435,42 +1435,42 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
1435 elif test -f "$ac_srcdir/configure"; then 1435 elif test -f "$ac_srcdir/configure"; then
1436 echo && 1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive 1437 $SHELL "$ac_srcdir/configure" --help=recursive
1438 else 1438 else
1439 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1439 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 fi || ac_status=$? 1440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; } 1441 cd "$ac_pwd" || { ac_status=$?; break; }
1442 done 1442 done
1443fi 1443fi
1444 1444
1445test -n "$ac_init_help" && exit $ac_status 1445test -n "$ac_init_help" && exit $ac_status
1446if $ac_init_version; then 1446if $ac_init_version; then
1447 cat <<\_ACEOF 1447 cat <<\_ACEOF
1448pkg_install configure 20080524 1448pkg_install configure 20090201
1449generated by GNU Autoconf 2.62 1449generated by GNU Autoconf 2.63
1450 1450
1451Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1451Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14522002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 14522002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1453This configure script is free software; the Free Software Foundation 1453This configure script is free software; the Free Software Foundation
1454gives unlimited permission to copy, distribute and modify it. 1454gives unlimited permission to copy, distribute and modify it.
1455_ACEOF 1455_ACEOF
1456 exit 1456 exit
1457fi 1457fi
1458cat >config.log <<_ACEOF 1458cat >config.log <<_ACEOF
1459This file contains any messages produced by compilers while 1459This file contains any messages produced by compilers while
1460running configure, to aid debugging if configure makes a mistake. 1460running configure, to aid debugging if configure makes a mistake.
1461 1461
1462It was created by pkg_install $as_me 20080524, which was 1462It was created by pkg_install $as_me 20090201, which was
1463generated by GNU Autoconf 2.62. Invocation command line was 1463generated by GNU Autoconf 2.63. Invocation command line was
1464 1464
1465 $ $0 $@ 1465 $ $0 $@
1466 1466
1467_ACEOF 1467_ACEOF
1468exec 5>>config.log 1468exec 5>>config.log
1469{ 1469{
1470cat <<_ASUNAME 1470cat <<_ASUNAME
1471## --------- ## 1471## --------- ##
1472## Platform. ## 1472## Platform. ##
1473## --------- ## 1473## --------- ##
1474 1474
1475hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1475hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1476uname -m = `(uname -m) 2>/dev/null || echo unknown` 1476uname -m = `(uname -m) 2>/dev/null || echo unknown`
@@ -1573,28 +1573,28 @@ trap 'exit_status=$? @@ -1573,28 +1573,28 @@ trap 'exit_status=$?
1573 cat <<\_ASBOX 1573 cat <<\_ASBOX
1574## ---------------- ## 1574## ---------------- ##
1575## Cache variables. ## 1575## Cache variables. ##
1576## ---------------- ## 1576## ---------------- ##
1577_ASBOX 1577_ASBOX
1578 echo 1578 echo
1579 # The following way of writing the cache mishandles newlines in values, 1579 # The following way of writing the cache mishandles newlines in values,
1580( 1580(
1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1582 eval ac_val=\$$ac_var 1582 eval ac_val=\$$ac_var
1583 case $ac_val in #( 1583 case $ac_val in #(
1584 *${as_nl}*) 1584 *${as_nl}*)
1585 case $ac_var in #( 1585 case $ac_var in #(
1586 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1586 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1587$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1587$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1588 esac 1588 esac
1589 case $ac_var in #( 1589 case $ac_var in #(
1590 _ | IFS | as_nl) ;; #( 1590 _ | IFS | as_nl) ;; #(
1591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1592 *) $as_unset $ac_var ;; 1592 *) $as_unset $ac_var ;;
1593 esac ;; 1593 esac ;;
1594 esac 1594 esac
1595 done 1595 done
1596 (set) 2>&1 | 1596 (set) 2>&1 |
1597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1598 *${as_nl}ac_space=\ *) 1598 *${as_nl}ac_space=\ *)
1599 sed -n \ 1599 sed -n \
1600 "s/'\''/'\''\\\\'\'''\''/g; 1600 "s/'\''/'\''\\\\'\'''\''/g;
@@ -1777,26 +1777,28 @@ $as_echo "$as_me: current value: \`$ac @@ -1777,26 +1777,28 @@ $as_echo "$as_me: current value: \`$ac
1777 # Pass precious variables to config.status. 1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then 1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in 1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;; 1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac 1782 esac
1783 case " $ac_configure_args " in 1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1786 esac 1786 esac
1787 fi 1787 fi
1788done 1788done
1789if $ac_cache_corrupted; then 1789if $ac_cache_corrupted; then
 1790 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 1791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1790 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1792 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1791$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1793$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1792 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1794 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1793$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1795$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1794 { (exit 1); exit 1; }; } 1796 { (exit 1); exit 1; }; }
1795fi 1797fi
1796 1798
1797 1799
1798 1800
1799 1801
1800 1802
1801 1803
1802 1804
@@ -2056,32 +2058,28 @@ ac_ct_CC=$ac_cv_prog_ac_ct_CC @@ -2056,32 +2058,28 @@ ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056if test -n "$ac_ct_CC"; then 2058if test -n "$ac_ct_CC"; then
2057 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2059 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058$as_echo "$ac_ct_CC" >&6; } 2060$as_echo "$ac_ct_CC" >&6; }
2059else 2061else
2060 { $as_echo "$as_me:$LINENO: result: no" >&5 2062 { $as_echo "$as_me:$LINENO: result: no" >&5
2061$as_echo "no" >&6; } 2063$as_echo "no" >&6; }
2062fi 2064fi
2063 2065
2064 if test "x$ac_ct_CC" = x; then 2066 if test "x$ac_ct_CC" = x; then
2065 CC="" 2067 CC=""
2066 else 2068 else
2067 case $cross_compiling:$ac_tool_warned in 2069 case $cross_compiling:$ac_tool_warned in
2068yes:) 2070yes:)
2069{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2071{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2070whose name does not start with the host triplet. If you think this 2072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2071configuration is useful to you, please write to autoconf@gnu.org." >&5 
2072$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 
2073whose name does not start with the host triplet. If you think this 
2074configuration is useful to you, please write to autoconf@gnu.org." >&2;} 
2075ac_tool_warned=yes ;; 2073ac_tool_warned=yes ;;
2076esac 2074esac
2077 CC=$ac_ct_CC 2075 CC=$ac_ct_CC
2078 fi 2076 fi
2079else 2077else
2080 CC="$ac_cv_prog_CC" 2078 CC="$ac_cv_prog_CC"
2081fi 2079fi
2082 2080
2083if test -z "$CC"; then 2081if test -z "$CC"; then
2084 if test -n "$ac_tool_prefix"; then 2082 if test -n "$ac_tool_prefix"; then
2085 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2086set dummy ${ac_tool_prefix}cc; ac_word=$2 2084set dummy ${ac_tool_prefix}cc; ac_word=$2
2087{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2085{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
@@ -2260,46 +2258,44 @@ else @@ -2260,46 +2258,44 @@ else
2260 { $as_echo "$as_me:$LINENO: result: no" >&5 2258 { $as_echo "$as_me:$LINENO: result: no" >&5
2261$as_echo "no" >&6; } 2259$as_echo "no" >&6; }
2262fi 2260fi
2263 2261
2264 2262
2265 test -n "$ac_ct_CC" && break 2263 test -n "$ac_ct_CC" && break
2266done 2264done
2267 2265
2268 if test "x$ac_ct_CC" = x; then 2266 if test "x$ac_ct_CC" = x; then
2269 CC="" 2267 CC=""
2270 else 2268 else
2271 case $cross_compiling:$ac_tool_warned in 2269 case $cross_compiling:$ac_tool_warned in
2272yes:) 2270yes:)
2273{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2271{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2274whose name does not start with the host triplet. If you think this 2272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2275configuration is useful to you, please write to autoconf@gnu.org." >&5 
2276$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 
2277whose name does not start with the host triplet. If you think this 
2278configuration is useful to you, please write to autoconf@gnu.org." >&2;} 
2279ac_tool_warned=yes ;; 2273ac_tool_warned=yes ;;
2280esac 2274esac
2281 CC=$ac_ct_CC 2275 CC=$ac_ct_CC
2282 fi 2276 fi
2283fi 2277fi
2284 2278
2285fi 2279fi
2286 2280
2287 2281
2288test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2282test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 2283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2284{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2289See \`config.log' for more details." >&5 2285See \`config.log' for more details." >&5
2290$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2286$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2291See \`config.log' for more details." >&2;} 2287See \`config.log' for more details." >&2;}
2292 { (exit 1); exit 1; }; } 2288 { (exit 1); exit 1; }; }; }
2293 2289
2294# Provide some information about the compiler. 2290# Provide some information about the compiler.
2295$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2291$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2296set X $ac_compile 2292set X $ac_compile
2297ac_compiler=$2 2293ac_compiler=$2
2298{ (ac_try="$ac_compiler --version >&5" 2294{ (ac_try="$ac_compiler --version >&5"
2299case "(($ac_try" in 2295case "(($ac_try" in
2300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2301 *) ac_try_echo=$ac_try;; 2297 *) ac_try_echo=$ac_try;;
2302esac 2298esac
2303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2304$as_echo "$ac_try_echo") >&5 2300$as_echo "$ac_try_echo") >&5
2305 (eval "$ac_compiler --version >&5") 2>&5 2301 (eval "$ac_compiler --version >&5") 2>&5
@@ -2409,31 +2405,33 @@ do @@ -2409,31 +2405,33 @@ do
2409done 2405done
2410test "$ac_cv_exeext" = no && ac_cv_exeext= 2406test "$ac_cv_exeext" = no && ac_cv_exeext=
2411 2407
2412else 2408else
2413 ac_file='' 2409 ac_file=''
2414fi 2410fi
2415 2411
2416{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2412{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2417$as_echo "$ac_file" >&6; } 2413$as_echo "$ac_file" >&6; }
2418if test -z "$ac_file"; then 2414if test -z "$ac_file"; then
2419 $as_echo "$as_me: failed program was:" >&5 2415 $as_echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5 2416sed 's/^/| /' conftest.$ac_ext >&5
2421 2417
 2418{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 2419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2420{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2423See \`config.log' for more details." >&5 2421See \`config.log' for more details." >&5
2424$as_echo "$as_me: error: C compiler cannot create executables 2422$as_echo "$as_me: error: C compiler cannot create executables
2425See \`config.log' for more details." >&2;} 2423See \`config.log' for more details." >&2;}
2426 { (exit 77); exit 77; }; } 2424 { (exit 77); exit 77; }; }; }
2427fi 2425fi
2428 2426
2429ac_exeext=$ac_cv_exeext 2427ac_exeext=$ac_cv_exeext
2430 2428
2431# Check that the compiler produces executables we can run. If not, either 2429# Check that the compiler produces executables we can run. If not, either
2432# the compiler is broken, or we cross compile. 2430# the compiler is broken, or we cross compile.
2433{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2431{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2434$as_echo_n "checking whether the C compiler works... " >&6; } 2432$as_echo_n "checking whether the C compiler works... " >&6; }
2435# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2433# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2436# If not cross compiling, check that we can run a simple program. 2434# If not cross compiling, check that we can run a simple program.
2437if test "$cross_compiling" != yes; then 2435if test "$cross_compiling" != yes; then
2438 if { ac_try='./$ac_file' 2436 if { ac_try='./$ac_file'
2439 { (case "(($ac_try" in 2437 { (case "(($ac_try" in
@@ -2441,33 +2439,35 @@ if test "$cross_compiling" != yes; then @@ -2441,33 +2439,35 @@ if test "$cross_compiling" != yes; then
2441 *) ac_try_echo=$ac_try;; 2439 *) ac_try_echo=$ac_try;;
2442esac 2440esac
2443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2444$as_echo "$ac_try_echo") >&5 2442$as_echo "$ac_try_echo") >&5
2445 (eval "$ac_try") 2>&5 2443 (eval "$ac_try") 2>&5
2446 ac_status=$? 2444 ac_status=$?
2447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; }; then 2446 (exit $ac_status); }; }; then
2449 cross_compiling=no 2447 cross_compiling=no
2450 else 2448 else
2451 if test "$cross_compiling" = maybe; then 2449 if test "$cross_compiling" = maybe; then
2452 cross_compiling=yes 2450 cross_compiling=yes
2453 else 2451 else
2454 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 2453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2454{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2455If you meant to cross compile, use \`--host'. 2455If you meant to cross compile, use \`--host'.
2456See \`config.log' for more details." >&5 2456See \`config.log' for more details." >&5
2457$as_echo "$as_me: error: cannot run C compiled programs. 2457$as_echo "$as_me: error: cannot run C compiled programs.
2458If you meant to cross compile, use \`--host'. 2458If you meant to cross compile, use \`--host'.
2459See \`config.log' for more details." >&2;} 2459See \`config.log' for more details." >&2;}
2460 { (exit 1); exit 1; }; } 2460 { (exit 1); exit 1; }; }; }
2461 fi 2461 fi
2462 fi 2462 fi
2463fi 2463fi
2464{ $as_echo "$as_me:$LINENO: result: yes" >&5 2464{ $as_echo "$as_me:$LINENO: result: yes" >&5
2465$as_echo "yes" >&6; } 2465$as_echo "yes" >&6; }
2466 2466
2467rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2467rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2468ac_clean_files=$ac_clean_files_save 2468ac_clean_files=$ac_clean_files_save
2469# Check that the compiler produces executables we can run. If not, either 2469# Check that the compiler produces executables we can run. If not, either
2470# the compiler is broken, or we cross compile. 2470# the compiler is broken, or we cross compile.
2471{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2471{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2472$as_echo_n "checking whether we are cross compiling... " >&6; } 2472$as_echo_n "checking whether we are cross compiling... " >&6; }
2473{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2473{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
@@ -2490,31 +2490,33 @@ $as_echo "$ac_try_echo") >&5 @@ -2490,31 +2490,33 @@ $as_echo "$ac_try_echo") >&5
2490# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2490# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2491# work properly (i.e., refer to `conftest.exe'), while it won't with 2491# work properly (i.e., refer to `conftest.exe'), while it won't with
2492# `rm'. 2492# `rm'.
2493for ac_file in conftest.exe conftest conftest.*; do 2493for ac_file in conftest.exe conftest conftest.*; do
2494 test -f "$ac_file" || continue 2494 test -f "$ac_file" || continue
2495 case $ac_file in 2495 case $ac_file in
2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2496 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2497 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2497 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2498 break;; 2498 break;;
2499 * ) break;; 2499 * ) break;;
2500 esac 2500 esac
2501done 2501done
2502else 2502else
2503 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2503 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 2504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 2505{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2504See \`config.log' for more details." >&5 2506See \`config.log' for more details." >&5
2505$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2507$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2506See \`config.log' for more details." >&2;} 2508See \`config.log' for more details." >&2;}
2507 { (exit 1); exit 1; }; } 2509 { (exit 1); exit 1; }; }; }
2508fi 2510fi
2509 2511
2510rm -f conftest$ac_cv_exeext 2512rm -f conftest$ac_cv_exeext
2511{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2513{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2512$as_echo "$ac_cv_exeext" >&6; } 2514$as_echo "$ac_cv_exeext" >&6; }
2513 2515
2514rm -f conftest.$ac_ext 2516rm -f conftest.$ac_ext
2515EXEEXT=$ac_cv_exeext 2517EXEEXT=$ac_cv_exeext
2516ac_exeext=$EXEEXT 2518ac_exeext=$EXEEXT
2517{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2519{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2518$as_echo_n "checking for suffix of object files... " >&6; } 2520$as_echo_n "checking for suffix of object files... " >&6; }
2519if test "${ac_cv_objext+set}" = set; then 2521if test "${ac_cv_objext+set}" = set; then
2520 $as_echo_n "(cached) " >&6 2522 $as_echo_n "(cached) " >&6
@@ -2548,31 +2550,33 @@ $as_echo "$ac_try_echo") >&5 @@ -2548,31 +2550,33 @@ $as_echo "$ac_try_echo") >&5
2548 (exit $ac_status); }; then 2550 (exit $ac_status); }; then
2549 for ac_file in conftest.o conftest.obj conftest.*; do 2551 for ac_file in conftest.o conftest.obj conftest.*; do
2550 test -f "$ac_file" || continue; 2552 test -f "$ac_file" || continue;
2551 case $ac_file in 2553 case $ac_file in
2552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2553 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2555 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2554 break;; 2556 break;;
2555 esac 2557 esac
2556done 2558done
2557else 2559else
2558 $as_echo "$as_me: failed program was:" >&5 2560 $as_echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5 2561sed 's/^/| /' conftest.$ac_ext >&5
2560 2562
 2563{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 2564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2565{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2562See \`config.log' for more details." >&5 2566See \`config.log' for more details." >&5
2563$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 2567$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2564See \`config.log' for more details." >&2;} 2568See \`config.log' for more details." >&2;}
2565 { (exit 1); exit 1; }; } 2569 { (exit 1); exit 1; }; }; }
2566fi 2570fi
2567 2571
2568rm -f conftest.$ac_cv_objext conftest.$ac_ext 2572rm -f conftest.$ac_cv_objext conftest.$ac_ext
2569fi 2573fi
2570{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2574{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2571$as_echo "$ac_cv_objext" >&6; } 2575$as_echo "$ac_cv_objext" >&6; }
2572OBJEXT=$ac_cv_objext 2576OBJEXT=$ac_cv_objext
2573ac_objext=$OBJEXT 2577ac_objext=$OBJEXT
2574{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2578{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2575$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2579$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2576if test "${ac_cv_c_compiler_gnu+set}" = set; then 2580if test "${ac_cv_c_compiler_gnu+set}" = set; then
2577 $as_echo_n "(cached) " >&6 2581 $as_echo_n "(cached) " >&6
2578else 2582else
@@ -3086,32 +3090,28 @@ ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB @@ -3086,32 +3090,28 @@ ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3086if test -n "$ac_ct_RANLIB"; then 3090if test -n "$ac_ct_RANLIB"; then
3087 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3091 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3088$as_echo "$ac_ct_RANLIB" >&6; } 3092$as_echo "$ac_ct_RANLIB" >&6; }
3089else 3093else
3090 { $as_echo "$as_me:$LINENO: result: no" >&5 3094 { $as_echo "$as_me:$LINENO: result: no" >&5
3091$as_echo "no" >&6; } 3095$as_echo "no" >&6; }
3092fi 3096fi
3093 3097
3094 if test "x$ac_ct_RANLIB" = x; then 3098 if test "x$ac_ct_RANLIB" = x; then
3095 RANLIB=":" 3099 RANLIB=":"
3096 else 3100 else
3097 case $cross_compiling:$ac_tool_warned in 3101 case $cross_compiling:$ac_tool_warned in
3098yes:) 3102yes:)
3099{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3103{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3100whose name does not start with the host triplet. If you think this 3104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101configuration is useful to you, please write to autoconf@gnu.org." >&5 
3102$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 
3103whose name does not start with the host triplet. If you think this 
3104configuration is useful to you, please write to autoconf@gnu.org." >&2;} 
3105ac_tool_warned=yes ;; 3105ac_tool_warned=yes ;;
3106esac 3106esac
3107 RANLIB=$ac_ct_RANLIB 3107 RANLIB=$ac_ct_RANLIB
3108 fi 3108 fi
3109else 3109else
3110 RANLIB="$ac_cv_prog_RANLIB" 3110 RANLIB="$ac_cv_prog_RANLIB"
3111fi 3111fi
3112 3112
3113# Extract the first word of "ar", so it can be a program name with args. 3113# Extract the first word of "ar", so it can be a program name with args.
3114set dummy ar; ac_word=$2 3114set dummy ar; ac_word=$2
3115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3116$as_echo_n "checking for $ac_word... " >&6; } 3116$as_echo_n "checking for $ac_word... " >&6; }
3117if test "${ac_cv_prog_AR+set}" = set; then 3117if test "${ac_cv_prog_AR+set}" = set; then
@@ -3760,27 +3760,27 @@ else @@ -3760,27 +3760,27 @@ else
3760 $as_echo "$as_me: failed program was:" >&5 3760 $as_echo "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5 3761sed 's/^/| /' conftest.$ac_ext >&5
3762 3762
3763 ac_cv_lib_db___db185_open=no 3763 ac_cv_lib_db___db185_open=no
3764fi 3764fi
3765 3765
3766rm -rf conftest.dSYM 3766rm -rf conftest.dSYM
3767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3768 conftest$ac_exeext conftest.$ac_ext 3768 conftest$ac_exeext conftest.$ac_ext
3769LIBS=$ac_check_lib_save_LIBS 3769LIBS=$ac_check_lib_save_LIBS
3770fi 3770fi
3771{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db___db185_open" >&5 3771{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_db___db185_open" >&5
3772$as_echo "$ac_cv_lib_db___db185_open" >&6; } 3772$as_echo "$ac_cv_lib_db___db185_open" >&6; }
3773if test $ac_cv_lib_db___db185_open = yes; then 3773if test "x$ac_cv_lib_db___db185_open" = x""yes; then
3774 cat >>confdefs.h <<_ACEOF 3774 cat >>confdefs.h <<_ACEOF
3775#define HAVE_LIBDB 1 3775#define HAVE_LIBDB 1
3776_ACEOF 3776_ACEOF
3777 3777
3778 LIBS="-ldb $LIBS" 3778 LIBS="-ldb $LIBS"
3779 3779
3780else 3780else
3781 { $as_echo "$as_me:$LINENO: checking for library containing dbopen" >&5 3781 { $as_echo "$as_me:$LINENO: checking for library containing dbopen" >&5
3782$as_echo_n "checking for library containing dbopen... " >&6; } 3782$as_echo_n "checking for library containing dbopen... " >&6; }
3783if test "${ac_cv_search_dbopen+set}" = set; then 3783if test "${ac_cv_search_dbopen+set}" = set; then
3784 $as_echo_n "(cached) " >&6 3784 $as_echo_n "(cached) " >&6
3785else 3785else
3786 ac_func_search_save_LIBS=$LIBS 3786 ac_func_search_save_LIBS=$LIBS
@@ -4167,31 +4167,33 @@ sed 's/^/| /' conftest.$ac_ext >&5 @@ -4167,31 +4167,33 @@ sed 's/^/| /' conftest.$ac_ext >&5
4167 # Passes both tests. 4167 # Passes both tests.
4168ac_preproc_ok=: 4168ac_preproc_ok=:
4169break 4169break
4170fi 4170fi
4171 4171
4172rm -f conftest.err conftest.$ac_ext 4172rm -f conftest.err conftest.$ac_ext
4173 4173
4174done 4174done
4175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4176rm -f conftest.err conftest.$ac_ext 4176rm -f conftest.err conftest.$ac_ext
4177if $ac_preproc_ok; then 4177if $ac_preproc_ok; then
4178 : 4178 :
4179else 4179else
4180 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4180 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 4181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 4182{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4181See \`config.log' for more details." >&5 4183See \`config.log' for more details." >&5
4182$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4184$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4183See \`config.log' for more details." >&2;} 4185See \`config.log' for more details." >&2;}
4184 { (exit 1); exit 1; }; } 4186 { (exit 1); exit 1; }; }; }
4185fi 4187fi
4186 4188
4187ac_ext=c 4189ac_ext=c
4188ac_cpp='$CPP $CPPFLAGS' 4190ac_cpp='$CPP $CPPFLAGS'
4189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191ac_compiler_gnu=$ac_cv_c_compiler_gnu 4193ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 4194
4193 4195
4194{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4196{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4195$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4197$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4196if test "${ac_cv_path_GREP+set}" = set; then 4198if test "${ac_cv_path_GREP+set}" = set; then
4197 $as_echo_n "(cached) " >&6 4199 $as_echo_n "(cached) " >&6
@@ -4554,28 +4556,29 @@ $as_echo "$ac_try_echo") >&5 @@ -4554,28 +4556,29 @@ $as_echo "$ac_try_echo") >&5
4554else 4556else
4555 $as_echo "$as_me: failed program was:" >&5 4557 $as_echo "$as_me: failed program was:" >&5
4556sed 's/^/| /' conftest.$ac_ext >&5 4558sed 's/^/| /' conftest.$ac_ext >&5
4557 4559
4558 eval "$as_ac_Header=no" 4560 eval "$as_ac_Header=no"
4559fi 4561fi
4560 4562
4561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562fi 4564fi
4563ac_res=`eval 'as_val=${'$as_ac_Header'} 4565ac_res=`eval 'as_val=${'$as_ac_Header'}
4564 $as_echo "$as_val"'` 4566 $as_echo "$as_val"'`
4565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4567 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4566$as_echo "$ac_res" >&6; } 4568$as_echo "$ac_res" >&6; }
4567if test `eval 'as_val=${'$as_ac_Header'} 4569as_val=`eval 'as_val=${'$as_ac_Header'}
4568 $as_echo "$as_val"'` = yes; then 4570 $as_echo "$as_val"'`
 4571 if test "x$as_val" = x""yes; then
4569 cat >>confdefs.h <<_ACEOF 4572 cat >>confdefs.h <<_ACEOF
4570#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4573#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571_ACEOF 4574_ACEOF
4572 4575
4573fi 4576fi
4574 4577
4575done 4578done
4576 4579
4577 4580
4578 4581
4579 4582
4580 4583
4581 4584
@@ -4731,28 +4734,29 @@ esac @@ -4731,28 +4734,29 @@ esac
4731{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4734{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4732$as_echo_n "checking for $ac_header... " >&6; } 4735$as_echo_n "checking for $ac_header... " >&6; }
4733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4734 $as_echo_n "(cached) " >&6 4737 $as_echo_n "(cached) " >&6
4735else 4738else
4736 eval "$as_ac_Header=\$ac_header_preproc" 4739 eval "$as_ac_Header=\$ac_header_preproc"
4737fi 4740fi
4738ac_res=`eval 'as_val=${'$as_ac_Header'} 4741ac_res=`eval 'as_val=${'$as_ac_Header'}
4739 $as_echo "$as_val"'` 4742 $as_echo "$as_val"'`
4740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4743 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4741$as_echo "$ac_res" >&6; } 4744$as_echo "$ac_res" >&6; }
4742 4745
4743fi 4746fi
4744if test `eval 'as_val=${'$as_ac_Header'} 4747as_val=`eval 'as_val=${'$as_ac_Header'}
4745 $as_echo "$as_val"'` = yes; then 4748 $as_echo "$as_val"'`
 4749 if test "x$as_val" = x""yes; then
4746 cat >>confdefs.h <<_ACEOF 4750 cat >>confdefs.h <<_ACEOF
4747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4751#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4748_ACEOF 4752_ACEOF
4749 4753
4750fi 4754fi
4751 4755
4752done 4756done
4753 4757
4754 4758
4755 4759
4756 4760
4757for ac_header in db1/db.h db_185.h db.h 4761for ac_header in db1/db.h db_185.h db.h
4758do 4762do
@@ -4883,28 +4887,29 @@ esac @@ -4883,28 +4887,29 @@ esac
4883{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4887{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4884$as_echo_n "checking for $ac_header... " >&6; } 4888$as_echo_n "checking for $ac_header... " >&6; }
4885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4886 $as_echo_n "(cached) " >&6 4890 $as_echo_n "(cached) " >&6
4887else 4891else
4888 eval "$as_ac_Header=\$ac_header_preproc" 4892 eval "$as_ac_Header=\$ac_header_preproc"
4889fi 4893fi
4890ac_res=`eval 'as_val=${'$as_ac_Header'} 4894ac_res=`eval 'as_val=${'$as_ac_Header'}
4891 $as_echo "$as_val"'` 4895 $as_echo "$as_val"'`
4892 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4893$as_echo "$ac_res" >&6; } 4897$as_echo "$ac_res" >&6; }
4894 4898
4895fi 4899fi
4896if test `eval 'as_val=${'$as_ac_Header'} 4900as_val=`eval 'as_val=${'$as_ac_Header'}
4897 $as_echo "$as_val"'` = yes; then 4901 $as_echo "$as_val"'`
 4902 if test "x$as_val" = x""yes; then
4898 cat >>confdefs.h <<_ACEOF 4903 cat >>confdefs.h <<_ACEOF
4899#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4900_ACEOF 4905_ACEOF
4901 4906
4902fi 4907fi
4903 4908
4904done 4909done
4905 4910
4906 4911
4907 4912
4908 4913
4909 4914
4910 4915
@@ -5050,28 +5055,29 @@ esac @@ -5050,28 +5055,29 @@ esac
5050{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5055{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5051$as_echo_n "checking for $ac_header... " >&6; } 5056$as_echo_n "checking for $ac_header... " >&6; }
5052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5053 $as_echo_n "(cached) " >&6 5058 $as_echo_n "(cached) " >&6
5054else 5059else
5055 eval "$as_ac_Header=\$ac_header_preproc" 5060 eval "$as_ac_Header=\$ac_header_preproc"
5056fi 5061fi
5057ac_res=`eval 'as_val=${'$as_ac_Header'} 5062ac_res=`eval 'as_val=${'$as_ac_Header'}
5058 $as_echo "$as_val"'` 5063 $as_echo "$as_val"'`
5059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5064 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5060$as_echo "$ac_res" >&6; } 5065$as_echo "$ac_res" >&6; }
5061 5066
5062fi 5067fi
5063if test `eval 'as_val=${'$as_ac_Header'} 5068as_val=`eval 'as_val=${'$as_ac_Header'}
5064 $as_echo "$as_val"'` = yes; then 5069 $as_echo "$as_val"'`
 5070 if test "x$as_val" = x""yes; then
5065 cat >>confdefs.h <<_ACEOF 5071 cat >>confdefs.h <<_ACEOF
5066#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5072#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5067_ACEOF 5073_ACEOF
5068 5074
5069fi 5075fi
5070 5076
5071done 5077done
5072 5078
5073 5079
5074# Checks for library functions. 5080# Checks for library functions.
5075 5081
5076 5082
5077 5083
@@ -5157,28 +5163,29 @@ else @@ -5157,28 +5163,29 @@ else
5157sed 's/^/| /' conftest.$ac_ext >&5 5163sed 's/^/| /' conftest.$ac_ext >&5
5158 5164
5159 eval "$as_ac_var=no" 5165 eval "$as_ac_var=no"
5160fi 5166fi
5161 5167
5162rm -rf conftest.dSYM 5168rm -rf conftest.dSYM
5163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5164 conftest$ac_exeext conftest.$ac_ext 5170 conftest$ac_exeext conftest.$ac_ext
5165fi 5171fi
5166ac_res=`eval 'as_val=${'$as_ac_var'} 5172ac_res=`eval 'as_val=${'$as_ac_var'}
5167 $as_echo "$as_val"'` 5173 $as_echo "$as_val"'`
5168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5169$as_echo "$ac_res" >&6; } 5175$as_echo "$ac_res" >&6; }
5170if test `eval 'as_val=${'$as_ac_var'} 5176as_val=`eval 'as_val=${'$as_ac_var'}
5171 $as_echo "$as_val"'` = yes; then 5177 $as_echo "$as_val"'`
 5178 if test "x$as_val" = x""yes; then
5172 cat >>confdefs.h <<_ACEOF 5179 cat >>confdefs.h <<_ACEOF
5173#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5180#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5174_ACEOF 5181_ACEOF
5175 5182
5176fi 5183fi
5177done 5184done
5178 5185
5179 5186
5180{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 5187{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5181$as_echo_n "checking for library containing gethostbyname... " >&6; } 5188$as_echo_n "checking for library containing gethostbyname... " >&6; }
5182if test "${ac_cv_search_gethostbyname+set}" = set; then 5189if test "${ac_cv_search_gethostbyname+set}" = set; then
5183 $as_echo_n "(cached) " >&6 5190 $as_echo_n "(cached) " >&6
5184else 5191else
@@ -5405,27 +5412,27 @@ else @@ -5405,27 +5412,27 @@ else
5405 $as_echo "$as_me: failed program was:" >&5 5412 $as_echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5 5413sed 's/^/| /' conftest.$ac_ext >&5
5407 5414
5408 ac_cv_lib_socket_socket=no 5415 ac_cv_lib_socket_socket=no
5409fi 5416fi
5410 5417
5411rm -rf conftest.dSYM 5418rm -rf conftest.dSYM
5412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5413 conftest$ac_exeext conftest.$ac_ext 5420 conftest$ac_exeext conftest.$ac_ext
5414LIBS=$ac_check_lib_save_LIBS 5421LIBS=$ac_check_lib_save_LIBS
5415fi 5422fi
5416{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 5423{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5417$as_echo "$ac_cv_lib_socket_socket" >&6; } 5424$as_echo "$ac_cv_lib_socket_socket" >&6; }
5418if test $ac_cv_lib_socket_socket = yes; then 5425if test "x$ac_cv_lib_socket_socket" = x""yes; then
5419 LIBS="-lsocket -lnsl $LIBS" 5426 LIBS="-lsocket -lnsl $LIBS"
5420fi 5427fi
5421 5428
5422fi 5429fi
5423 5430
5424 5431
5425 5432
5426 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5 5433 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
5427$as_echo_n "checking for uint8_t... " >&6; } 5434$as_echo_n "checking for uint8_t... " >&6; }
5428if test "${ac_cv_c_uint8_t+set}" = set; then 5435if test "${ac_cv_c_uint8_t+set}" = set; then
5429 $as_echo_n "(cached) " >&6 5436 $as_echo_n "(cached) " >&6
5430else 5437else
5431 ac_cv_c_uint8_t=no 5438 ac_cv_c_uint8_t=no
@@ -6078,31 +6085,33 @@ $as_echo "$ac_try_echo") >&5 @@ -6078,31 +6085,33 @@ $as_echo "$ac_try_echo") >&5
6078 ac_hi=$ac_mid 6085 ac_hi=$ac_mid
6079else 6086else
6080 $as_echo "$as_me: failed program was:" >&5 6087 $as_echo "$as_me: failed program was:" >&5
6081sed 's/^/| /' conftest.$ac_ext >&5 6088sed 's/^/| /' conftest.$ac_ext >&5
6082 6089
6083 ac_lo=`expr '(' $ac_mid ')' + 1` 6090 ac_lo=`expr '(' $ac_mid ')' + 1`
6084fi 6091fi
6085 6092
6086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087done 6094done
6088case $ac_lo in 6095case $ac_lo in
6089?*) ac_cv_sizeof_int=$ac_lo;; 6096?*) ac_cv_sizeof_int=$ac_lo;;
6090'') if test "$ac_cv_type_int" = yes; then 6097'') if test "$ac_cv_type_int" = yes; then
6091 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 6098 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 6099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 6100{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6092See \`config.log' for more details." >&5 6101See \`config.log' for more details." >&5
6093$as_echo "$as_me: error: cannot compute sizeof (int) 6102$as_echo "$as_me: error: cannot compute sizeof (int)
6094See \`config.log' for more details." >&2;} 6103See \`config.log' for more details." >&2;}
6095 { (exit 77); exit 77; }; } 6104 { (exit 77); exit 77; }; }; }
6096 else 6105 else
6097 ac_cv_sizeof_int=0 6106 ac_cv_sizeof_int=0
6098 fi ;; 6107 fi ;;
6099esac 6108esac
6100else 6109else
6101 cat >conftest.$ac_ext <<_ACEOF 6110 cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */ 6111/* confdefs.h. */
6103_ACEOF 6112_ACEOF
6104cat confdefs.h >>conftest.$ac_ext 6113cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF 6114cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */ 6115/* end confdefs.h. */
6107$ac_includes_default 6116$ac_includes_default
6108static long int longval () { return (long int) (sizeof (int)); } 6117static long int longval () { return (long int) (sizeof (int)); }
@@ -6158,31 +6167,33 @@ eval ac_try_echo="\"\$as_me:$LINENO: $ac @@ -6158,31 +6167,33 @@ eval ac_try_echo="\"\$as_me:$LINENO: $ac
6158$as_echo "$ac_try_echo") >&5 6167$as_echo "$ac_try_echo") >&5
6159 (eval "$ac_try") 2>&5 6168 (eval "$ac_try") 2>&5
6160 ac_status=$? 6169 ac_status=$?
6161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then 6171 (exit $ac_status); }; }; then
6163 ac_cv_sizeof_int=`cat conftest.val` 6172 ac_cv_sizeof_int=`cat conftest.val`
6164else 6173else
6165 $as_echo "$as_me: program exited with status $ac_status" >&5 6174 $as_echo "$as_me: program exited with status $ac_status" >&5
6166$as_echo "$as_me: failed program was:" >&5 6175$as_echo "$as_me: failed program was:" >&5
6167sed 's/^/| /' conftest.$ac_ext >&5 6176sed 's/^/| /' conftest.$ac_ext >&5
6168 6177
6169( exit $ac_status ) 6178( exit $ac_status )
6170if test "$ac_cv_type_int" = yes; then 6179if test "$ac_cv_type_int" = yes; then
6171 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int) 6180 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 6181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 6182{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6172See \`config.log' for more details." >&5 6183See \`config.log' for more details." >&5
6173$as_echo "$as_me: error: cannot compute sizeof (int) 6184$as_echo "$as_me: error: cannot compute sizeof (int)
6174See \`config.log' for more details." >&2;} 6185See \`config.log' for more details." >&2;}
6175 { (exit 77); exit 77; }; } 6186 { (exit 77); exit 77; }; }; }
6176 else 6187 else
6177 ac_cv_sizeof_int=0 6188 ac_cv_sizeof_int=0
6178 fi 6189 fi
6179fi 6190fi
6180rm -rf conftest.dSYM 6191rm -rf conftest.dSYM
6181rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6192rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6182fi 6193fi
6183rm -f conftest.val 6194rm -f conftest.val
6184fi 6195fi
6185{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 6196{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6186$as_echo "$ac_cv_sizeof_int" >&6; } 6197$as_echo "$ac_cv_sizeof_int" >&6; }
6187 6198
6188 6199
@@ -6433,31 +6444,33 @@ $as_echo "$ac_try_echo") >&5 @@ -6433,31 +6444,33 @@ $as_echo "$ac_try_echo") >&5
6433 ac_hi=$ac_mid 6444 ac_hi=$ac_mid
6434else 6445else
6435 $as_echo "$as_me: failed program was:" >&5 6446 $as_echo "$as_me: failed program was:" >&5
6436sed 's/^/| /' conftest.$ac_ext >&5 6447sed 's/^/| /' conftest.$ac_ext >&5
6437 6448
6438 ac_lo=`expr '(' $ac_mid ')' + 1` 6449 ac_lo=`expr '(' $ac_mid ')' + 1`
6439fi 6450fi
6440 6451
6441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442done 6453done
6443case $ac_lo in 6454case $ac_lo in
6444?*) ac_cv_sizeof_long=$ac_lo;; 6455?*) ac_cv_sizeof_long=$ac_lo;;
6445'') if test "$ac_cv_type_long" = yes; then 6456'') if test "$ac_cv_type_long" = yes; then
6446 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 6457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 6458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 6459{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6447See \`config.log' for more details." >&5 6460See \`config.log' for more details." >&5
6448$as_echo "$as_me: error: cannot compute sizeof (long) 6461$as_echo "$as_me: error: cannot compute sizeof (long)
6449See \`config.log' for more details." >&2;} 6462See \`config.log' for more details." >&2;}
6450 { (exit 77); exit 77; }; } 6463 { (exit 77); exit 77; }; }; }
6451 else 6464 else
6452 ac_cv_sizeof_long=0 6465 ac_cv_sizeof_long=0
6453 fi ;; 6466 fi ;;
6454esac 6467esac
6455else 6468else
6456 cat >conftest.$ac_ext <<_ACEOF 6469 cat >conftest.$ac_ext <<_ACEOF
6457/* confdefs.h. */ 6470/* confdefs.h. */
6458_ACEOF 6471_ACEOF
6459cat confdefs.h >>conftest.$ac_ext 6472cat confdefs.h >>conftest.$ac_ext
6460cat >>conftest.$ac_ext <<_ACEOF 6473cat >>conftest.$ac_ext <<_ACEOF
6461/* end confdefs.h. */ 6474/* end confdefs.h. */
6462$ac_includes_default 6475$ac_includes_default
6463static long int longval () { return (long int) (sizeof (long)); } 6476static long int longval () { return (long int) (sizeof (long)); }
@@ -6513,31 +6526,33 @@ eval ac_try_echo="\"\$as_me:$LINENO: $ac @@ -6513,31 +6526,33 @@ eval ac_try_echo="\"\$as_me:$LINENO: $ac
6513$as_echo "$ac_try_echo") >&5 6526$as_echo "$ac_try_echo") >&5
6514 (eval "$ac_try") 2>&5 6527 (eval "$ac_try") 2>&5
6515 ac_status=$? 6528 ac_status=$?
6516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then 6530 (exit $ac_status); }; }; then
6518 ac_cv_sizeof_long=`cat conftest.val` 6531 ac_cv_sizeof_long=`cat conftest.val`
6519else 6532else
6520 $as_echo "$as_me: program exited with status $ac_status" >&5 6533 $as_echo "$as_me: program exited with status $ac_status" >&5
6521$as_echo "$as_me: failed program was:" >&5 6534$as_echo "$as_me: failed program was:" >&5
6522sed 's/^/| /' conftest.$ac_ext >&5 6535sed 's/^/| /' conftest.$ac_ext >&5
6523 6536
6524( exit $ac_status ) 6537( exit $ac_status )
6525if test "$ac_cv_type_long" = yes; then 6538if test "$ac_cv_type_long" = yes; then
6526 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long) 6539 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 6540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 6541{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6527See \`config.log' for more details." >&5 6542See \`config.log' for more details." >&5
6528$as_echo "$as_me: error: cannot compute sizeof (long) 6543$as_echo "$as_me: error: cannot compute sizeof (long)
6529See \`config.log' for more details." >&2;} 6544See \`config.log' for more details." >&2;}
6530 { (exit 77); exit 77; }; } 6545 { (exit 77); exit 77; }; }; }
6531 else 6546 else
6532 ac_cv_sizeof_long=0 6547 ac_cv_sizeof_long=0
6533 fi 6548 fi
6534fi 6549fi
6535rm -rf conftest.dSYM 6550rm -rf conftest.dSYM
6536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6537fi 6552fi
6538rm -f conftest.val 6553rm -f conftest.val
6539fi 6554fi
6540{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 6555{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6541$as_echo "$ac_cv_sizeof_long" >&6; } 6556$as_echo "$ac_cv_sizeof_long" >&6; }
6542 6557
6543 6558
@@ -6788,31 +6803,33 @@ $as_echo "$ac_try_echo") >&5 @@ -6788,31 +6803,33 @@ $as_echo "$ac_try_echo") >&5
6788 ac_hi=$ac_mid 6803 ac_hi=$ac_mid
6789else 6804else
6790 $as_echo "$as_me: failed program was:" >&5 6805 $as_echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5 6806sed 's/^/| /' conftest.$ac_ext >&5
6792 6807
6793 ac_lo=`expr '(' $ac_mid ')' + 1` 6808 ac_lo=`expr '(' $ac_mid ')' + 1`
6794fi 6809fi
6795 6810
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797done 6812done
6798case $ac_lo in 6813case $ac_lo in
6799?*) ac_cv_sizeof_long_long=$ac_lo;; 6814?*) ac_cv_sizeof_long_long=$ac_lo;;
6800'') if test "$ac_cv_type_long_long" = yes; then 6815'') if test "$ac_cv_type_long_long" = yes; then
6801 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 6816 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 6817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 6818{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6802See \`config.log' for more details." >&5 6819See \`config.log' for more details." >&5
6803$as_echo "$as_me: error: cannot compute sizeof (long long) 6820$as_echo "$as_me: error: cannot compute sizeof (long long)
6804See \`config.log' for more details." >&2;} 6821See \`config.log' for more details." >&2;}
6805 { (exit 77); exit 77; }; } 6822 { (exit 77); exit 77; }; }; }
6806 else 6823 else
6807 ac_cv_sizeof_long_long=0 6824 ac_cv_sizeof_long_long=0
6808 fi ;; 6825 fi ;;
6809esac 6826esac
6810else 6827else
6811 cat >conftest.$ac_ext <<_ACEOF 6828 cat >conftest.$ac_ext <<_ACEOF
6812/* confdefs.h. */ 6829/* confdefs.h. */
6813_ACEOF 6830_ACEOF
6814cat confdefs.h >>conftest.$ac_ext 6831cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF 6832cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h. */ 6833/* end confdefs.h. */
6817$ac_includes_default 6834$ac_includes_default
6818static long int longval () { return (long int) (sizeof (long long)); } 6835static long int longval () { return (long int) (sizeof (long long)); }
@@ -6868,31 +6885,33 @@ eval ac_try_echo="\"\$as_me:$LINENO: $ac @@ -6868,31 +6885,33 @@ eval ac_try_echo="\"\$as_me:$LINENO: $ac
6868$as_echo "$ac_try_echo") >&5 6885$as_echo "$ac_try_echo") >&5
6869 (eval "$ac_try") 2>&5 6886 (eval "$ac_try") 2>&5
6870 ac_status=$? 6887 ac_status=$?
6871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then 6889 (exit $ac_status); }; }; then
6873 ac_cv_sizeof_long_long=`cat conftest.val` 6890 ac_cv_sizeof_long_long=`cat conftest.val`
6874else 6891else
6875 $as_echo "$as_me: program exited with status $ac_status" >&5 6892 $as_echo "$as_me: program exited with status $ac_status" >&5
6876$as_echo "$as_me: failed program was:" >&5 6893$as_echo "$as_me: failed program was:" >&5
6877sed 's/^/| /' conftest.$ac_ext >&5 6894sed 's/^/| /' conftest.$ac_ext >&5
6878 6895
6879( exit $ac_status ) 6896( exit $ac_status )
6880if test "$ac_cv_type_long_long" = yes; then 6897if test "$ac_cv_type_long_long" = yes; then
6881 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 6898 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 6899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 6900{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6882See \`config.log' for more details." >&5 6901See \`config.log' for more details." >&5
6883$as_echo "$as_me: error: cannot compute sizeof (long long) 6902$as_echo "$as_me: error: cannot compute sizeof (long long)
6884See \`config.log' for more details." >&2;} 6903See \`config.log' for more details." >&2;}
6885 { (exit 77); exit 77; }; } 6904 { (exit 77); exit 77; }; }; }
6886 else 6905 else
6887 ac_cv_sizeof_long_long=0 6906 ac_cv_sizeof_long_long=0
6888 fi 6907 fi
6889fi 6908fi
6890rm -rf conftest.dSYM 6909rm -rf conftest.dSYM
6891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6892fi 6911fi
6893rm -f conftest.val 6912rm -f conftest.val
6894fi 6913fi
6895{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 6914{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6896$as_echo "$ac_cv_sizeof_long_long" >&6; } 6915$as_echo "$ac_cv_sizeof_long_long" >&6; }
6897 6916
6898 6917
@@ -6935,28 +6954,28 @@ cat >confcache <<\_ACEOF @@ -6935,28 +6954,28 @@ cat >confcache <<\_ACEOF
6935_ACEOF 6954_ACEOF
6936 6955
6937# The following way of writing the cache mishandles newlines in values, 6956# The following way of writing the cache mishandles newlines in values,
6938# but we know of no workaround that is simple, portable, and efficient. 6957# but we know of no workaround that is simple, portable, and efficient.
6939# So, we kill variables containing newlines. 6958# So, we kill variables containing newlines.
6940# Ultrix sh set writes to stderr and can't be redirected directly, 6959# Ultrix sh set writes to stderr and can't be redirected directly,
6941# and sets the high bit in the cache file unless we assign to the vars. 6960# and sets the high bit in the cache file unless we assign to the vars.
6942( 6961(
6943 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6962 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6944 eval ac_val=\$$ac_var 6963 eval ac_val=\$$ac_var
6945 case $ac_val in #( 6964 case $ac_val in #(
6946 *${as_nl}*) 6965 *${as_nl}*)
6947 case $ac_var in #( 6966 case $ac_var in #(
6948 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 6967 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
6949$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 6968$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6950 esac 6969 esac
6951 case $ac_var in #( 6970 case $ac_var in #(
6952 _ | IFS | as_nl) ;; #( 6971 _ | IFS | as_nl) ;; #(
6953 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6954 *) $as_unset $ac_var ;; 6973 *) $as_unset $ac_var ;;
6955 esac ;; 6974 esac ;;
6956 esac 6975 esac
6957 done 6976 done
6958 6977
6959 (set) 2>&1 | 6978 (set) 2>&1 |
6960 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6961 *${as_nl}ac_space=\ *) 6980 *${as_nl}ac_space=\ *)
6962 # `set' does not quote correctly, so add quotes (double-quote 6981 # `set' does not quote correctly, so add quotes (double-quote
@@ -7327,77 +7346,87 @@ as_executable_p=$as_test_x @@ -7327,77 +7346,87 @@ as_executable_p=$as_test_x
7327# Sed expression to map a string onto a valid CPP name. 7346# Sed expression to map a string onto a valid CPP name.
7328as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 7347as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7329 7348
7330# Sed expression to map a string onto a valid variable name. 7349# Sed expression to map a string onto a valid variable name.
7331as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 7350as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7332 7351
7333 7352
7334exec 6>&1 7353exec 6>&1
7335 7354
7336# Save the log message, to keep $[0] and so on meaningful, and to 7355# Save the log message, to keep $[0] and so on meaningful, and to
7337# report actual input values of CONFIG_FILES etc. instead of their 7356# report actual input values of CONFIG_FILES etc. instead of their
7338# values after options handling. 7357# values after options handling.
7339ac_log=" 7358ac_log="
7340This file was extended by pkg_install $as_me 20080524, which was 7359This file was extended by pkg_install $as_me 20090201, which was
7341generated by GNU Autoconf 2.62. Invocation command line was 7360generated by GNU Autoconf 2.63. Invocation command line was
7342 7361
7343 CONFIG_FILES = $CONFIG_FILES 7362 CONFIG_FILES = $CONFIG_FILES
7344 CONFIG_HEADERS = $CONFIG_HEADERS 7363 CONFIG_HEADERS = $CONFIG_HEADERS
7345 CONFIG_LINKS = $CONFIG_LINKS 7364 CONFIG_LINKS = $CONFIG_LINKS
7346 CONFIG_COMMANDS = $CONFIG_COMMANDS 7365 CONFIG_COMMANDS = $CONFIG_COMMANDS
7347 $ $0 $@ 7366 $ $0 $@
7348 7367
7349on `(hostname || uname -n) 2>/dev/null | sed 1q` 7368on `(hostname || uname -n) 2>/dev/null | sed 1q`
7350" 7369"
7351 7370
7352_ACEOF 7371_ACEOF
7353 7372
 7373case $ac_config_files in *"
 7374"*) set x $ac_config_files; shift; ac_config_files=$*;;
 7375esac
 7376
 7377case $ac_config_headers in *"
 7378"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 7379esac
 7380
 7381
7354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7355# Files that config.status was made for. 7383# Files that config.status was made for.
7356config_files="$ac_config_files" 7384config_files="$ac_config_files"
7357config_headers="$ac_config_headers" 7385config_headers="$ac_config_headers"
7358 7386
7359_ACEOF 7387_ACEOF
7360 7388
7361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7362ac_cs_usage="\ 7390ac_cs_usage="\
7363\`$as_me' instantiates files from templates according to the 7391\`$as_me' instantiates files from templates according to the
7364current configuration. 7392current configuration.
7365 7393
7366Usage: $0 [OPTIONS] [FILE]... 7394Usage: $0 [OPTION]... [FILE]...
7367 7395
7368 -h, --help print this help, then exit 7396 -h, --help print this help, then exit
7369 -V, --version print version number and configuration settings, then exit 7397 -V, --version print version number and configuration settings, then exit
7370 -q, --quiet do not print progress messages 7398 -q, --quiet, --silent
 7399 do not print progress messages
7371 -d, --debug don't remove temporary files 7400 -d, --debug don't remove temporary files
7372 --recheck update $as_me by reconfiguring in the same conditions 7401 --recheck update $as_me by reconfiguring in the same conditions
7373 --file=FILE[:TEMPLATE] 7402 --file=FILE[:TEMPLATE]
7374 instantiate the configuration file FILE 7403 instantiate the configuration file FILE
7375 --header=FILE[:TEMPLATE] 7404 --header=FILE[:TEMPLATE]
7376 instantiate the configuration header FILE 7405 instantiate the configuration header FILE
7377 7406
7378Configuration files: 7407Configuration files:
7379$config_files 7408$config_files
7380 7409
7381Configuration headers: 7410Configuration headers:
7382$config_headers 7411$config_headers
7383 7412
7384Report bugs to <bug-autoconf@gnu.org>." 7413Report bugs to <bug-autoconf@gnu.org>."
7385 7414
7386_ACEOF 7415_ACEOF
7387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7388ac_cs_version="\\ 7417ac_cs_version="\\
7389pkg_install config.status 20080524 7418pkg_install config.status 20090201
7390configured by $0, generated by GNU Autoconf 2.62, 7419configured by $0, generated by GNU Autoconf 2.63,
7391 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 7420 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7392 7421
7393Copyright (C) 2008 Free Software Foundation, Inc. 7422Copyright (C) 2008 Free Software Foundation, Inc.
7394This config.status script is free software; the Free Software Foundation 7423This config.status script is free software; the Free Software Foundation
7395gives unlimited permission to copy, distribute and modify it." 7424gives unlimited permission to copy, distribute and modify it."
7396 7425
7397ac_pwd='$ac_pwd' 7426ac_pwd='$ac_pwd'
7398srcdir='$srcdir' 7427srcdir='$srcdir'
7399INSTALL='$INSTALL' 7428INSTALL='$INSTALL'
7400test -n "\$AWK" || AWK=awk 7429test -n "\$AWK" || AWK=awk
7401_ACEOF 7430_ACEOF
7402 7431
7403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
@@ -7581,27 +7610,28 @@ _ACEOF @@ -7581,27 +7610,28 @@ _ACEOF
7581 echo "_ACEOF" 7610 echo "_ACEOF"
7582} >conf$$subs.sh || 7611} >conf$$subs.sh ||
7583 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 7612 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7584$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 7613$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7585 { (exit 1); exit 1; }; } 7614 { (exit 1); exit 1; }; }
7586ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 7615ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7587ac_delim='%!_!# ' 7616ac_delim='%!_!# '
7588for ac_last_try in false false false false false :; do 7617for ac_last_try in false false false false false :; do
7589 . ./conf$$subs.sh || 7618 . ./conf$$subs.sh ||
7590 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 7619 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7591$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 7620$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7592 { (exit 1); exit 1; }; } 7621 { (exit 1); exit 1; }; }
7593 7622
7594 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then 7623 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 7624 if test $ac_delim_n = $ac_delim_num; then
7595 break 7625 break
7596 elif $ac_last_try; then 7626 elif $ac_last_try; then
7597 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 7627 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7598$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 7628$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7599 { (exit 1); exit 1; }; } 7629 { (exit 1); exit 1; }; }
7600 else 7630 else
7601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 7631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7602 fi 7632 fi
7603done 7633done
7604rm -f conf$$subs.sh 7634rm -f conf$$subs.sh
7605 7635
7606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7607cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 7637cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
@@ -7786,62 +7816,62 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ @@ -7786,62 +7816,62 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
7786} 7816}
7787/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7817/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7788 line = \$ 0 7818 line = \$ 0
7789 split(line, arg, " ") 7819 split(line, arg, " ")
7790 if (arg[1] == "#") { 7820 if (arg[1] == "#") {
7791 defundef = arg[2] 7821 defundef = arg[2]
7792 mac1 = arg[3] 7822 mac1 = arg[3]
7793 } else { 7823 } else {
7794 defundef = substr(arg[1], 2) 7824 defundef = substr(arg[1], 2)
7795 mac1 = arg[2] 7825 mac1 = arg[2]
7796 } 7826 }
7797 split(mac1, mac2, "(") #) 7827 split(mac1, mac2, "(") #)
7798 macro = mac2[1] 7828 macro = mac2[1]
 7829 prefix = substr(line, 1, index(line, defundef) - 1)
7799 if (D_is_set[macro]) { 7830 if (D_is_set[macro]) {
7800 # Preserve the white space surrounding the "#". 7831 # Preserve the white space surrounding the "#".
7801 prefix = substr(line, 1, index(line, defundef) - 1) 
7802 print prefix "define", macro P[macro] D[macro] 7832 print prefix "define", macro P[macro] D[macro]
7803 next 7833 next
7804 } else { 7834 } else {
7805 # Replace #undef with comments. This is necessary, for example, 7835 # Replace #undef with comments. This is necessary, for example,
7806 # in the case of _POSIX_SOURCE, which is predefined and required 7836 # in the case of _POSIX_SOURCE, which is predefined and required
7807 # on some systems where configure will not decide to define it. 7837 # on some systems where configure will not decide to define it.
7808 if (defundef == "undef") { 7838 if (defundef == "undef") {
7809 print "/*", line, "*/" 7839 print "/*", prefix defundef, macro, "*/"
7810 next 7840 next
7811 } 7841 }
7812 } 7842 }
7813} 7843}
7814{ print } 7844{ print }
7815_ACAWK 7845_ACAWK
7816_ACEOF 7846_ACEOF
7817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7847cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7818 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 7848 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
7819$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 7849$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
7820 { (exit 1); exit 1; }; } 7850 { (exit 1); exit 1; }; }
7821fi # test -n "$CONFIG_HEADERS" 7851fi # test -n "$CONFIG_HEADERS"
7822 7852
7823 7853
7824eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 7854eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
7825shift 7855shift
7826for ac_tag 7856for ac_tag
7827do 7857do
7828 case $ac_tag in 7858 case $ac_tag in
7829 :[FHLC]) ac_mode=$ac_tag; continue;; 7859 :[FHLC]) ac_mode=$ac_tag; continue;;
7830 esac 7860 esac
7831 case $ac_mode$ac_tag in 7861 case $ac_mode$ac_tag in
7832 :[FHL]*:*);; 7862 :[FHL]*:*);;
7833 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 7863 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
7834$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;} 7864$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7835 { (exit 1); exit 1; }; };; 7865 { (exit 1); exit 1; }; };;
7836 :[FH]-) ac_tag=-:-;; 7866 :[FH]-) ac_tag=-:-;;
7837 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7867 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7838 esac 7868 esac
7839 ac_save_IFS=$IFS 7869 ac_save_IFS=$IFS
7840 IFS=: 7870 IFS=:
7841 set x $ac_tag 7871 set x $ac_tag
7842 IFS=$ac_save_IFS 7872 IFS=$ac_save_IFS
7843 shift 7873 shift
7844 ac_file=$1 7874 ac_file=$1
7845 shift 7875 shift
7846 7876
7847 case $ac_mode in 7877 case $ac_mode in
@@ -8144,17 +8174,17 @@ $as_echo "$as_me: error: write failure c @@ -8144,17 +8174,17 @@ $as_echo "$as_me: error: write failure c
8144if test "$no_create" != yes; then 8174if test "$no_create" != yes; then
8145 ac_cs_success=: 8175 ac_cs_success=:
8146 ac_config_status_args= 8176 ac_config_status_args=
8147 test "$silent" = yes && 8177 test "$silent" = yes &&
8148 ac_config_status_args="$ac_config_status_args --quiet" 8178 ac_config_status_args="$ac_config_status_args --quiet"
8149 exec 5>/dev/null 8179 exec 5>/dev/null
8150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 8180 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8151 exec 5>>config.log 8181 exec 5>>config.log
8152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 8182 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8153 # would make configure fail if this is the last instruction. 8183 # would make configure fail if this is the last instruction.
8154 $ac_cs_success || { (exit 1); exit 1; } 8184 $ac_cs_success || { (exit 1); exit 1; }
8155fi 8185fi
8156if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 8186if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8157 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 8187 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8158$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 8188$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8159fi 8189fi
8160 8190

cvs diff -r1.26.2.5 -r1.26.2.6 pkgsrc/pkgtools/pkg_install/files/configure.ac (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/configure.ac 2008/09/21 13:02:58 1.26.2.5
+++ pkgsrc/pkgtools/pkg_install/files/configure.ac 2009/02/02 11:55:15 1.26.2.6
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1dnl Process this file with autoconf to produce a configure script. 1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.52) 2AC_PREREQ(2.52)
3AC_INIT([pkg_install], [20080524], [joerg@NetBSD.org]) 3AC_INIT([pkg_install], [20090201], [joerg@NetBSD.org])
4AC_CONFIG_SRCDIR([lib/plist.c]) 4AC_CONFIG_SRCDIR([lib/plist.c])
5AC_CONFIG_HEADER(lib/config.h) 5AC_CONFIG_HEADER(lib/config.h)
6 6
7AC_CANONICAL_HOST 7AC_CANONICAL_HOST
8CANONICAL_HOST=$host 8CANONICAL_HOST=$host
9AC_SUBST(CANONICAL_HOST) 9AC_SUBST(CANONICAL_HOST)
10AC_SUBST(INCLUDES) 10AC_SUBST(INCLUDES)
11 11
12# Checks for programs. 12# Checks for programs.
13AC_PROG_MAKE_SET 13AC_PROG_MAKE_SET
14AC_PROG_CC 14AC_PROG_CC
15AC_PROG_INSTALL 15AC_PROG_INSTALL
16AC_PROG_LN_S 16AC_PROG_LN_S

cvs diff -r1.14.4.5 -r1.14.4.6 pkgsrc/pkgtools/pkg_install/files/add/main.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/add/main.c 2008/07/30 15:38:37 1.14.4.5
+++ pkgsrc/pkgtools/pkg_install/files/add/main.c 2009/02/02 11:55:16 1.14.4.6
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: main.c,v 1.14.4.5 2008/07/30 15:38:37 joerg Exp $ */ 1/* $NetBSD: main.c,v 1.14.4.6 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: main.c,v 1.14.4.6 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static char *rcsid = "from FreeBSD Id: main.c,v 1.16 1997/10/08 07:45:43 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: main.c,v 1.14.4.5 2008/07/30 15:38:37 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * 13 *
20 * FreeBSD install - a package for the installation and maintainance 14 * FreeBSD install - a package for the installation and maintainance
21 * of non-core utilities. 15 * of non-core utilities.
22 * 16 *
23 * Redistribution and use in source and binary forms, with or without 17 * Redistribution and use in source and binary forms, with or without
24 * modification, are permitted provided that the following conditions 18 * modification, are permitted provided that the following conditions
25 * are met: 19 * are met:
26 * 1. Redistributions of source code must retain the above copyright 20 * 1. Redistributions of source code must retain the above copyright
27 * notice, this list of conditions and the following disclaimer. 21 * notice, this list of conditions and the following disclaimer.
28 * 2. Redistributions in binary form must reproduce the above copyright 22 * 2. Redistributions in binary form must reproduce the above copyright
29 * notice, this list of conditions and the following disclaimer in the 23 * notice, this list of conditions and the following disclaimer in the

cvs diff -r1.70.4.21 -r1.70.4.22 pkgsrc/pkgtools/pkg_install/files/add/perform.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/add/perform.c 2009/01/08 00:04:53 1.70.4.21
+++ pkgsrc/pkgtools/pkg_install/files/add/perform.c 2009/02/02 11:55:16 1.70.4.22
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1/* $NetBSD: perform.c,v 1.70.4.21 2009/01/08 00:04:53 joerg Exp $ */ 1/* $NetBSD: perform.c,v 1.70.4.22 2009/02/02 11:55:16 joerg Exp $ */
2#if HAVE_CONFIG_H 2#if HAVE_CONFIG_H
3#include "config.h" 3#include "config.h"
4#endif 4#endif
5#include <nbcompat.h> 5#include <nbcompat.h>
6#if HAVE_SYS_CDEFS_H 6#if HAVE_SYS_CDEFS_H
7#include <sys/cdefs.h> 7#include <sys/cdefs.h>
8#endif 8#endif
9__RCSID("$NetBSD: perform.c,v 1.70.4.21 2009/01/08 00:04:53 joerg Exp $"); 9__RCSID("$NetBSD: perform.c,v 1.70.4.22 2009/02/02 11:55:16 joerg Exp $");
10 10
11/*- 11/*-
12 * Copyright (c) 2003 Grant Beattie <grant@NetBSD.org> 12 * Copyright (c) 2003 Grant Beattie <grant@NetBSD.org>
13 * Copyright (c) 2005 Dieter Baron <dillo@NetBSD.org> 13 * Copyright (c) 2005 Dieter Baron <dillo@NetBSD.org>
14 * Copyright (c) 2007 Roland Illig <rillig@NetBSD.org> 14 * Copyright (c) 2007 Roland Illig <rillig@NetBSD.org>
15 * Copyright (c) 2008, 2009 Joerg Sonnenberger <joerg@NetBSD.org> 15 * Copyright (c) 2008, 2009 Joerg Sonnenberger <joerg@NetBSD.org>
16 * All rights reserved. 16 * All rights reserved.
17 * 17 *
18 * Redistribution and use in source and binary forms, with or without 18 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions 19 * modification, are permitted provided that the following conditions
20 * are met: 20 * are met:
21 * 21 *
22 * 1. Redistributions of source code must retain the above copyright 22 * 1. Redistributions of source code must retain the above copyright
@@ -1160,97 +1160,64 @@ check_signature(struct pkg_task *pkg, vo @@ -1160,97 +1160,64 @@ check_signature(struct pkg_task *pkg, vo
1160 "the installation of %s [y/n]?\n", pkg->pkgname); 1160 "the installation of %s [y/n]?\n", pkg->pkgname);
1161 line = fgetln(stdin, &len); 1161 line = fgetln(stdin, &len);
1162 if (check_input(line, len)) { 1162 if (check_input(line, len)) {
1163 fprintf(stderr, "Cancelling installation\n"); 1163 fprintf(stderr, "Cancelling installation\n");
1164 return 1; 1164 return 1;
1165 } 1165 }
1166 return 0; 1166 return 0;
1167 } 1167 }
1168 warnx("Unknown value of configuration variable VERIFIED_INSTALLATION"); 1168 warnx("Unknown value of configuration variable VERIFIED_INSTALLATION");
1169 return 1; 1169 return 1;
1170} 1170}
1171 1171
1172static int 1172static int
1173check_ignored_entry(struct pkg_vulnerabilities *pv, size_t i) 
1174{ 
1175 const char *iter, *next; 
1176 size_t entry_len, url_len; 
1177 
1178 if (ignore_advisories == NULL) 
1179 return 0; 
1180 
1181 url_len = strlen(pv->advisory[i]); 
1182 
1183 for (iter = ignore_advisories; *iter; iter = next) { 
1184 if ((next = strchr(iter, '\n')) == NULL) { 
1185 entry_len = strlen(iter); 
1186 next = iter + entry_len; 
1187 } else { 
1188 entry_len = next - iter; 
1189 ++next; 
1190 } 
1191 if (url_len != entry_len) 
1192 continue; 
1193 if (strncmp(pv->advisory[i], iter, entry_len) == 0) 
1194 return 1; 
1195 } 
1196 return 0; 
1197} 
1198 
1199static int 
1200check_vulnerable(struct pkg_task *pkg) 1173check_vulnerable(struct pkg_task *pkg)
1201{ 1174{
1202 static struct pkg_vulnerabilities *pv; 1175 static struct pkg_vulnerabilities *pv;
1203 size_t i; 
1204 int require_check; 1176 int require_check;
1205 char *line; 1177 char *line;
1206 size_t len; 1178 size_t len;
1207 1179
1208 if (strcasecmp(check_vulnerabilities, "never") == 0) 1180 if (strcasecmp(check_vulnerabilities, "never") == 0)
1209 return 0; 1181 return 0;
1210 else if (strcasecmp(check_vulnerabilities, "always")) 1182 else if (strcasecmp(check_vulnerabilities, "always"))
1211 require_check = 1; 1183 require_check = 1;
1212 else if (strcasecmp(check_vulnerabilities, "interactive")) 1184 else if (strcasecmp(check_vulnerabilities, "interactive"))
1213 require_check = 0; 1185 require_check = 0;
1214 else { 1186 else {
1215 warnx("Unknown value of the configuration variable" 1187 warnx("Unknown value of the configuration variable"
1216 "CHECK_VULNERABILITIES"); 1188 "CHECK_VULNERABILITIES");
1217 return 1; 1189 return 1;
1218 } 1190 }
1219 1191
1220 if (pv == NULL) { 1192 if (pv == NULL) {
1221 pv = read_pkg_vulnerabilities(pkg_vulnerabilities_file, 1193 pv = read_pkg_vulnerabilities(pkg_vulnerabilities_file,
1222 require_check, 0); 1194 require_check, 0);
1223 if (pv == NULL) 1195 if (pv == NULL)
1224 return require_check; 1196 return require_check;
1225 } 1197 }
1226 1198
1227 for (i = 0; i < pv->entries; ++i) { 1199 if (!audit_package(pv, pkg->pkgname, NULL, 0, 2))
1228 if (check_ignored_entry(pv, i)) 
1229 continue; 
1230 if (!pkg_match(pv->vulnerability[i], pkg->pkgname)) 
1231 continue; 
1232 if (strcmp("eol", pv->classification[i]) == 0) 
1233 continue; 
1234 warnx("Package %s has a %s vulnerability, see %s", 
1235 pkg->pkgname, pv->classification[i], pv->advisory[i]); 
1236 fprintf(stderr, "Do you want to proceed with " 
1237 "the installation of %s [y/n]?\n", pkg->pkgname); 
1238 line = fgetln(stdin, &len); 
1239 if (check_input(line, len)) { 
1240 fprintf(stderr, "Cancelling installation\n"); 
1241 return 1; 
1242 } 
1243 return 0; 1200 return 0;
 1201
 1202 if (require_check)
 1203 return 1;
 1204
 1205 fprintf(stderr, "Do you want to proceed with the installation of %s"
 1206 " [y/n]?\n", pkg->pkgname);
 1207 line = fgetln(stdin, &len);
 1208 if (check_input(line, len)) {
 1209 fprintf(stderr, "Cancelling installation\n");
 1210 return 1;
1244 } 1211 }
1245 return 0; 1212 return 0;
1246} 1213}
1247 1214
1248/* 1215/*
1249 * Install a single package. 1216 * Install a single package.
1250 */ 1217 */
1251static int 1218static int
1252pkg_do(const char *pkgpath, int mark_automatic) 1219pkg_do(const char *pkgpath, int mark_automatic)
1253{ 1220{
1254 int status, invalid_sig; 1221 int status, invalid_sig;
1255 void *archive_cookie; 1222 void *archive_cookie;
1256 void *signature_cookie; 1223 void *signature_cookie;

cvs diff -r1.8.2.6 -r1.8.2.7 pkgsrc/pkgtools/pkg_install/files/admin/audit.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/admin/audit.c 2008/11/27 19:24:13 1.8.2.6
+++ pkgsrc/pkgtools/pkg_install/files/admin/audit.c 2009/02/02 11:55:16 1.8.2.7
@@ -1,25 +1,23 @@ @@ -1,25 +1,23 @@
1/* $NetBSD: audit.c,v 1.8.2.6 2008/11/27 19:24:13 joerg Exp $ */ 1/* $NetBSD: audit.c,v 1.8.2.7 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: audit.c,v 1.8.2.7 2009/02/02 11:55:16 joerg Exp $");
11__RCSID("$NetBSD: audit.c,v 1.8.2.6 2008/11/27 19:24:13 joerg Exp $"); 
12#endif 
13 11
14/*- 12/*-
15 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>. 13 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
16 * All rights reserved. 14 * All rights reserved.
17 * 15 *
18 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
20 * are met: 18 * are met:
21 * 19 *
22 * 1. Redistributions of source code must retain the above copyright 20 * 1. Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer. 21 * notice, this list of conditions and the following disclaimer.
24 * 2. Redistributions in binary form must reproduce the above copyright 22 * 2. Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in 23 * notice, this list of conditions and the following disclaimer in
@@ -107,86 +105,30 @@ parse_options(int argc, char **argv) @@ -107,86 +105,30 @@ parse_options(int argc, char **argv)
107 case 't': 105 case 't':
108 limit_vul_types = optarg; 106 limit_vul_types = optarg;
109 break; 107 break;
110 default: 108 default:
111 usage(); 109 usage();
112 /* NOTREACHED */ 110 /* NOTREACHED */
113 } 111 }
114 } 112 }
115 113
116 --optind; /* See above comment. */ 114 --optind; /* See above comment. */
117} 115}
118 116
119static int 117static int
120check_ignored_entry(size_t i) 
121{ 
122 const char *iter, *next; 
123 size_t entry_len, url_len; 
124 
125 if (ignore_advisories == NULL) 
126 return 0; 
127 
128 url_len = strlen(pv->advisory[i]); 
129 
130 for (iter = ignore_advisories; *iter; iter = next) { 
131 if ((next = strchr(iter, '\n')) == NULL) { 
132 entry_len = strlen(iter); 
133 next = iter + entry_len; 
134 } else { 
135 entry_len = next - iter; 
136 ++next; 
137 } 
138 if (url_len != entry_len) 
139 continue; 
140 if (strncmp(pv->advisory[i], iter, entry_len) == 0) 
141 return 1; 
142 } 
143 return 0; 
144} 
145 
146static int 
147check_exact_pkg(const char *pkg) 118check_exact_pkg(const char *pkg)
148{ 119{
149 int ret; 120 return audit_package(pv, pkg, limit_vul_types, check_eol,
150 size_t i; 121 quiet ? 0 : 1);
151 
152 ret = 0; 
153 for (i = 0; i < pv->entries; ++i) { 
154 if (check_ignored_entry(i)) 
155 continue; 
156 if (limit_vul_types != NULL && 
157 strcmp(limit_vul_types, pv->classification[i])) 
158 continue; 
159 if (!pkg_match(pv->vulnerability[i], pkg)) 
160 continue; 
161 if (strcmp("eol", pv->classification[i]) == 0) { 
162 if (!check_eol) 
163 continue; 
164 if (quiet) 
165 puts(pkg); 
166 else 
167 printf("Package %s has reached end-of-life (eol), " 
168 "see %s/eol-packages\n", pkg, 
169 tnf_vulnerability_base); 
170 continue; 
171 } 
172 if (quiet) 
173 puts(pkg); 
174 else 
175 printf("Package %s has a %s vulnerability, see %s\n", 
176 pkg, pv->classification[i], pv->advisory[i]); 
177 ret = 1; 
178 } 
179 return ret; 
180} 122}
181 123
182static int 124static int
183check_batch_exact_pkgs(const char *fname) 125check_batch_exact_pkgs(const char *fname)
184{ 126{
185 FILE *f; 127 FILE *f;
186 char buf[4096], *line, *eol; 128 char buf[4096], *line, *eol;
187 int ret; 129 int ret;
188 130
189 ret = 0; 131 ret = 0;
190 if (strcmp(fname, "-") == 0) 132 if (strcmp(fname, "-") == 0)
191 f = stdin; 133 f = stdin;
192 else { 134 else {

cvs diff -r1.2.4.5 -r1.2.4.6 pkgsrc/pkgtools/pkg_install/files/admin/check.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/admin/check.c 2008/08/25 18:31:14 1.2.4.5
+++ pkgsrc/pkgtools/pkg_install/files/admin/check.c 2009/02/02 11:55:16 1.2.4.6
@@ -1,25 +1,23 @@ @@ -1,25 +1,23 @@
1/* $NetBSD: check.c,v 1.2.4.5 2008/08/25 18:31:14 joerg Exp $ */ 1/* $NetBSD: check.c,v 1.2.4.6 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: check.c,v 1.2.4.6 2009/02/02 11:55:16 joerg Exp $");
11__RCSID("$NetBSD: check.c,v 1.2.4.5 2008/08/25 18:31:14 joerg Exp $"); 
12#endif 
13 11
14/*- 12/*-
15 * Copyright (c) 1999-2008 The NetBSD Foundation, Inc. 13 * Copyright (c) 1999-2008 The NetBSD Foundation, Inc.
16 * All rights reserved. 14 * All rights reserved.
17 * 15 *
18 * This code is derived from software contributed to The NetBSD Foundation 16 * This code is derived from software contributed to The NetBSD Foundation
19 * by Hubert Feyrer <hubert@feyrer.de>. 17 * by Hubert Feyrer <hubert@feyrer.de>.
20 * 18 *
21 * Redistribution and use in source and binary forms, with or without 19 * Redistribution and use in source and binary forms, with or without
22 * modification, are permitted provided that the following conditions 20 * modification, are permitted provided that the following conditions
23 * are met: 21 * are met:
24 * 1. Redistributions of source code must retain the above copyright 22 * 1. Redistributions of source code must retain the above copyright
25 * notice, this list of conditions and the following disclaimer. 23 * notice, this list of conditions and the following disclaimer.

cvs diff -r1.42.2.9 -r1.42.2.10 pkgsrc/pkgtools/pkg_install/files/admin/main.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/admin/main.c 2008/12/30 15:55:57 1.42.2.9
+++ pkgsrc/pkgtools/pkg_install/files/admin/main.c 2009/02/02 11:55:16 1.42.2.10
@@ -1,25 +1,23 @@ @@ -1,25 +1,23 @@
1/* $NetBSD: main.c,v 1.42.2.9 2008/12/30 15:55:57 joerg Exp $ */ 1/* $NetBSD: main.c,v 1.42.2.10 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: main.c,v 1.42.2.10 2009/02/02 11:55:16 joerg Exp $");
11__RCSID("$NetBSD: main.c,v 1.42.2.9 2008/12/30 15:55:57 joerg Exp $"); 
12#endif 
13 11
14/*- 12/*-
15 * Copyright (c) 1999-2008 The NetBSD Foundation, Inc. 13 * Copyright (c) 1999-2008 The NetBSD Foundation, Inc.
16 * All rights reserved. 14 * All rights reserved.
17 * 15 *
18 * This code is derived from software contributed to The NetBSD Foundation 16 * This code is derived from software contributed to The NetBSD Foundation
19 * by Hubert Feyrer <hubert@feyrer.de> and 17 * by Hubert Feyrer <hubert@feyrer.de> and
20 * by Joerg Sonnenberger <joerg@NetBSD.org>. 18 * by Joerg Sonnenberger <joerg@NetBSD.org>.
21 * 19 *
22 * Redistribution and use in source and binary forms, with or without 20 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted provided that the following conditions 21 * modification, are permitted provided that the following conditions
24 * are met: 22 * are met:
25 * 1. Redistributions of source code must retain the above copyright 23 * 1. Redistributions of source code must retain the above copyright

cvs diff -r1.8.2.1 -r1.8.2.2 pkgsrc/pkgtools/pkg_install/files/create/build.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/create/build.c 2008/08/02 20:33:50 1.8.2.1
+++ pkgsrc/pkgtools/pkg_install/files/create/build.c 2009/02/02 11:55:16 1.8.2.2
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: build.c,v 1.8.2.1 2008/08/02 20:33:50 joerg Exp $ */ 1/* $NetBSD: build.c,v 1.8.2.2 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: build.c,v 1.8.2.2 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp"; 
13#else 
14__RCSID("$NetBSD: build.c,v 1.8.2.1 2008/08/02 20:33:50 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/*- 12/*-
19 * Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. 13 * Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>.
20 * All rights reserved. 14 * All rights reserved.
21 * 15 *
22 * This code was developed as part of Google's Summer of Code 2007 program. 16 * This code was developed as part of Google's Summer of Code 2007 program.
23 * 17 *
24 * Redistribution and use in source and binary forms, with or without 18 * Redistribution and use in source and binary forms, with or without
25 * modification, are permitted provided that the following conditions 19 * modification, are permitted provided that the following conditions
26 * are met: 20 * are met:
27 * 21 *
28 * 1. Redistributions of source code must retain the above copyright 22 * 1. Redistributions of source code must retain the above copyright
29 * notice, this list of conditions and the following disclaimer. 23 * notice, this list of conditions and the following disclaimer.

cvs diff -r1.11 -r1.11.8.1 pkgsrc/pkgtools/pkg_install/files/create/main.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/create/main.c 2007/08/03 13:15:59 1.11
+++ pkgsrc/pkgtools/pkg_install/files/create/main.c 2009/02/02 11:55:16 1.11.8.1
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: main.c,v 1.11 2007/08/03 13:15:59 joerg Exp $ */ 1/* $NetBSD: main.c,v 1.11.8.1 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: main.c,v 1.11.8.1 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "from FreeBSD Id: main.c,v 1.17 1997/10/08 07:46:23 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: main.c,v 1.11 2007/08/03 13:15:59 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
20 * of non-core utilities. 14 * of non-core utilities.
21 * 15 *
22 * Jordan K. Hubbard 16 * Jordan K. Hubbard
23 * 18 July 1993 17 * 18 July 1993
24 * 18 *
25 * This is the create module. 19 * This is the create module.
26 * 20 *
27 */ 21 */
28 22
29#if HAVE_ERR_H 23#if HAVE_ERR_H

cvs diff -r1.19.2.4 -r1.19.2.5 pkgsrc/pkgtools/pkg_install/files/create/perform.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/create/perform.c 2008/08/11 15:58:15 1.19.2.4
+++ pkgsrc/pkgtools/pkg_install/files/create/perform.c 2009/02/02 11:55:16 1.19.2.5
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: perform.c,v 1.19.2.4 2008/08/11 15:58:15 joerg Exp $ */ 1/* $NetBSD: perform.c,v 1.19.2.5 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: perform.c,v 1.19.2.5 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp"; 
13#else 
14__RCSID("$NetBSD: perform.c,v 1.19.2.4 2008/08/11 15:58:15 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
20 * of non-core utilities. 14 * of non-core utilities.
21 * 15 *
22 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
24 * are met: 18 * are met:
25 * 1. Redistributions of source code must retain the above copyright 19 * 1. Redistributions of source code must retain the above copyright
26 * notice, this list of conditions and the following disclaimer. 20 * notice, this list of conditions and the following disclaimer.
27 * 2. Redistributions in binary form must reproduce the above copyright 21 * 2. Redistributions in binary form must reproduce the above copyright
28 * notice, this list of conditions and the following disclaimer in the 22 * notice, this list of conditions and the following disclaimer in the
29 * documentation and/or other materials provided with the distribution. 23 * documentation and/or other materials provided with the distribution.

cvs diff -r1.10.8.3 -r1.10.8.4 pkgsrc/pkgtools/pkg_install/files/create/pl.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/create/pl.c 2008/08/25 18:31:14 1.10.8.3
+++ pkgsrc/pkgtools/pkg_install/files/create/pl.c 2009/02/02 11:55:16 1.10.8.4
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: pl.c,v 1.10.8.3 2008/08/25 18:31:14 joerg Exp $ */ 1/* $NetBSD: pl.c,v 1.10.8.4 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: pl.c,v 1.10.8.4 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "from FreeBSD Id: pl.c,v 1.11 1997/10/08 07:46:35 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: pl.c,v 1.10.8.3 2008/08/25 18:31:14 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
20 * of non-core utilities. 14 * of non-core utilities.
21 * 15 *
22 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
24 * are met: 18 * are met:
25 * 1. Redistributions of source code must retain the above copyright 19 * 1. Redistributions of source code must retain the above copyright
26 * notice, this list of conditions and the following disclaimer. 20 * notice, this list of conditions and the following disclaimer.
27 * 2. Redistributions in binary form must reproduce the above copyright 21 * 2. Redistributions in binary form must reproduce the above copyright
28 * notice, this list of conditions and the following disclaimer in the 22 * notice, this list of conditions and the following disclaimer in the
29 * documentation and/or other materials provided with the distribution. 23 * documentation and/or other materials provided with the distribution.

cvs diff -r1.21.8.2 -r1.21.8.3 pkgsrc/pkgtools/pkg_install/files/delete/Attic/main.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/delete/Attic/main.c 2008/08/02 20:33:50 1.21.8.2
+++ pkgsrc/pkgtools/pkg_install/files/delete/Attic/main.c 2009/02/02 11:55:16 1.21.8.3
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: main.c,v 1.21.8.2 2008/08/02 20:33:50 joerg Exp $ */ 1/* $NetBSD: main.c,v 1.21.8.3 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: main.c,v 1.21.8.3 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static char *rcsid = "from FreeBSD Id: main.c,v 1.11 1997/10/08 07:46:48 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: main.c,v 1.21.8.2 2008/08/02 20:33:50 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * 13 *
20 * FreeBSD install - a package for the installation and maintainance 14 * FreeBSD install - a package for the installation and maintainance
21 * of non-core utilities. 15 * of non-core utilities.
22 * 16 *
23 * Redistribution and use in source and binary forms, with or without 17 * Redistribution and use in source and binary forms, with or without
24 * modification, are permitted provided that the following conditions 18 * modification, are permitted provided that the following conditions
25 * are met: 19 * are met:
26 * 1. Redistributions of source code must retain the above copyright 20 * 1. Redistributions of source code must retain the above copyright
27 * notice, this list of conditions and the following disclaimer. 21 * notice, this list of conditions and the following disclaimer.
28 * 2. Redistributions in binary form must reproduce the above copyright 22 * 2. Redistributions in binary form must reproduce the above copyright
29 * notice, this list of conditions and the following disclaimer in the 23 * notice, this list of conditions and the following disclaimer in the

cvs diff -r1.23.2.11 -r1.23.2.12 pkgsrc/pkgtools/pkg_install/files/delete/Attic/perform.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/delete/Attic/perform.c 2008/08/10 22:08:16 1.23.2.11
+++ pkgsrc/pkgtools/pkg_install/files/delete/Attic/perform.c 2009/02/02 11:55:16 1.23.2.12
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: perform.c,v 1.23.2.11 2008/08/10 22:08:16 joerg Exp $ */ 1/* $NetBSD: perform.c,v 1.23.2.12 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: perform.c,v 1.23.2.12 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp"; 
13#else 
14__RCSID("$NetBSD: perform.c,v 1.23.2.11 2008/08/10 22:08:16 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
20 * of non-core utilities. 14 * of non-core utilities.
21 * 15 *
22 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
24 * are met: 18 * are met:
25 * 1. Redistributions of source code must retain the above copyright 19 * 1. Redistributions of source code must retain the above copyright
26 * notice, this list of conditions and the following disclaimer. 20 * notice, this list of conditions and the following disclaimer.
27 * 2. Redistributions in binary form must reproduce the above copyright 21 * 2. Redistributions in binary form must reproduce the above copyright
28 * notice, this list of conditions and the following disclaimer in the 22 * notice, this list of conditions and the following disclaimer in the
29 * documentation and/or other materials provided with the distribution. 23 * documentation and/or other materials provided with the distribution.

cvs diff -r1.22.6.1 -r1.22.6.2 pkgsrc/pkgtools/pkg_install/files/info/main.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/info/main.c 2008/08/02 20:33:50 1.22.6.1
+++ pkgsrc/pkgtools/pkg_install/files/info/main.c 2009/02/02 11:55:16 1.22.6.2
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: main.c,v 1.22.6.1 2008/08/02 20:33:50 joerg Exp $ */ 1/* $NetBSD: main.c,v 1.22.6.2 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: main.c,v 1.22.6.2 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static char *rcsid = "from FreeBSD Id: main.c,v 1.14 1997/10/08 07:47:26 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: main.c,v 1.22.6.1 2008/08/02 20:33:50 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * 13 *
20 * FreeBSD install - a package for the installation and maintainance 14 * FreeBSD install - a package for the installation and maintainance
21 * of non-core utilities. 15 * of non-core utilities.
22 * 16 *
23 * Redistribution and use in source and binary forms, with or without 17 * Redistribution and use in source and binary forms, with or without
24 * modification, are permitted provided that the following conditions 18 * modification, are permitted provided that the following conditions
25 * are met: 19 * are met:
26 * 1. Redistributions of source code must retain the above copyright 20 * 1. Redistributions of source code must retain the above copyright
27 * notice, this list of conditions and the following disclaimer. 21 * notice, this list of conditions and the following disclaimer.
28 * 2. Redistributions in binary form must reproduce the above copyright 22 * 2. Redistributions in binary form must reproduce the above copyright
29 * notice, this list of conditions and the following disclaimer in the 23 * notice, this list of conditions and the following disclaimer in the

cvs diff -r1.46.2.5 -r1.46.2.6 pkgsrc/pkgtools/pkg_install/files/info/perform.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/info/perform.c 2008/08/10 22:09:38 1.46.2.5
+++ pkgsrc/pkgtools/pkg_install/files/info/perform.c 2009/02/02 11:55:16 1.46.2.6
@@ -1,35 +1,29 @@ @@ -1,35 +1,29 @@
1/* $NetBSD: perform.c,v 1.46.2.5 2008/08/10 22:09:38 joerg Exp $ */ 1/* $NetBSD: perform.c,v 1.46.2.6 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#if HAVE_SYS_QUEUE_H 10#if HAVE_SYS_QUEUE_H
11#include <sys/queue.h> 11#include <sys/queue.h>
12#endif 12#endif
13#if HAVE_SYS_WAIT_H 13#if HAVE_SYS_WAIT_H
14#include <sys/wait.h> 14#include <sys/wait.h>
15#endif 15#endif
16#ifndef lint 16__RCSID("$NetBSD: perform.c,v 1.46.2.6 2009/02/02 11:55:16 joerg Exp $");
17#if 0 
18static const char *rcsid = "from FreeBSD Id: perform.c,v 1.23 1997/10/13 15:03:53 jkh Exp"; 
19#else 
20__RCSID("$NetBSD: perform.c,v 1.46.2.5 2008/08/10 22:09:38 joerg Exp $"); 
21#endif 
22#endif 
23 17
24/*- 18/*-
25 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>. 19 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
26 * All rights reserved. 20 * All rights reserved.
27 * 21 *
28 * Redistribution and use in source and binary forms, with or without 22 * Redistribution and use in source and binary forms, with or without
29 * modification, are permitted provided that the following conditions 23 * modification, are permitted provided that the following conditions
30 * are met: 24 * are met:
31 * 25 *
32 * 1. Redistributions of source code must retain the above copyright 26 * 1. Redistributions of source code must retain the above copyright
33 * notice, this list of conditions and the following disclaimer. 27 * notice, this list of conditions and the following disclaimer.
34 * 2. Redistributions in binary form must reproduce the above copyright 28 * 2. Redistributions in binary form must reproduce the above copyright
35 * notice, this list of conditions and the following disclaimer in 29 * notice, this list of conditions and the following disclaimer in

cvs diff -r1.21.4.1 -r1.21.4.2 pkgsrc/pkgtools/pkg_install/files/info/show.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/info/show.c 2008/05/23 15:57:04 1.21.4.1
+++ pkgsrc/pkgtools/pkg_install/files/info/show.c 2009/02/02 11:55:16 1.21.4.2
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: show.c,v 1.21.4.1 2008/05/23 15:57:04 joerg Exp $ */ 1/* $NetBSD: show.c,v 1.21.4.2 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: show.c,v 1.21.4.2 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "from FreeBSD Id: show.c,v 1.11 1997/10/08 07:47:38 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: show.c,v 1.21.4.1 2008/05/23 15:57:04 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
20 * of non-core utilities. 14 * of non-core utilities.
21 * 15 *
22 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
24 * are met: 18 * are met:
25 * 1. Redistributions of source code must retain the above copyright 19 * 1. Redistributions of source code must retain the above copyright
26 * notice, this list of conditions and the following disclaimer. 20 * notice, this list of conditions and the following disclaimer.
27 * 2. Redistributions in binary form must reproduce the above copyright 21 * 2. Redistributions in binary form must reproduce the above copyright
28 * notice, this list of conditions and the following disclaimer in the 22 * notice, this list of conditions and the following disclaimer in the
29 * documentation and/or other materials provided with the distribution. 23 * documentation and/or other materials provided with the distribution.

cvs diff -r1.4 -r1.4.8.1 pkgsrc/pkgtools/pkg_install/files/lib/automatic.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/automatic.c 2007/08/15 02:08:40 1.4
+++ pkgsrc/pkgtools/pkg_install/files/lib/automatic.c 2009/02/02 11:55:16 1.4.8.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: automatic.c,v 1.4 2007/08/15 02:08:40 joerg Exp $ */ 1/* $NetBSD: automatic.c,v 1.4.8.1 2009/02/02 11:55:16 joerg Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2005 The NetBSD Foundation, Inc. 4 * Copyright (c) 2005 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Dieter Baron and Thomas Klausner. 8 * by Dieter Baron and Thomas Klausner.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -29,29 +29,27 @@ @@ -29,29 +29,27 @@
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE. 32 * POSSIBILITY OF SUCH DAMAGE.
33 */ 33 */
34 34
35#if HAVE_CONFIG_H 35#if HAVE_CONFIG_H
36#include "config.h" 36#include "config.h"
37#endif 37#endif
38#include <nbcompat.h> 38#include <nbcompat.h>
39#if HAVE_SYS_CDEFS_H 39#if HAVE_SYS_CDEFS_H
40#include <sys/cdefs.h> 40#include <sys/cdefs.h>
41#endif 41#endif
42#ifndef lint 42__RCSID("$NetBSD: automatic.c,v 1.4.8.1 2009/02/02 11:55:16 joerg Exp $");
43__RCSID("$NetBSD: automatic.c,v 1.4 2007/08/15 02:08:40 joerg Exp $"); 
44#endif 
45 43
46#if HAVE_ASSERT_H 44#if HAVE_ASSERT_H
47#include <assert.h> 45#include <assert.h>
48#endif 46#endif
49#if HAVE_ERR_H 47#if HAVE_ERR_H
50#include <err.h> 48#include <err.h>
51#endif 49#endif
52#if HAVE_ERRNO_H 50#if HAVE_ERRNO_H
53#include <errno.h> 51#include <errno.h>
54#endif 52#endif
55#if HAVE_FCNTL_H 53#if HAVE_FCNTL_H
56#include <fcntl.h> 54#include <fcntl.h>
57#endif 55#endif

cvs diff -r1.9.8.3 -r1.9.8.4 pkgsrc/pkgtools/pkg_install/files/lib/fexec.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/fexec.c 2008/08/05 22:32:12 1.9.8.3
+++ pkgsrc/pkgtools/pkg_install/files/lib/fexec.c 2009/02/02 11:55:16 1.9.8.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: fexec.c,v 1.9.8.3 2008/08/05 22:32:12 joerg Exp $ */ 1/* $NetBSD: fexec.c,v 1.9.8.4 2009/02/02 11:55:16 joerg Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2003 The NetBSD Foundation, Inc. 4 * Copyright (c) 2003 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Matthias Scheler. 8 * by Matthias Scheler.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -49,29 +49,27 @@ @@ -49,29 +49,27 @@
49#endif 49#endif
50#if HAVE_STDARG_H 50#if HAVE_STDARG_H
51#include <stdarg.h> 51#include <stdarg.h>
52#endif 52#endif
53#if HAVE_STDLIB_H 53#if HAVE_STDLIB_H
54#include <stdlib.h> 54#include <stdlib.h>
55#endif 55#endif
56#if HAVE_UNISTD_H 56#if HAVE_UNISTD_H
57#include <unistd.h> 57#include <unistd.h>
58#endif 58#endif
59 59
60#include "lib.h" 60#include "lib.h"
61 61
62#ifndef lint 62__RCSID("$NetBSD: fexec.c,v 1.9.8.4 2009/02/02 11:55:16 joerg Exp $");
63__RCSID("$NetBSD: fexec.c,v 1.9.8.3 2008/08/05 22:32:12 joerg Exp $"); 
64#endif 
65 63
66static int vfcexec(const char *, int, const char *, va_list); 64static int vfcexec(const char *, int, const char *, va_list);
67 65
68/* 66/*
69 * fork, then change current working directory to path and 67 * fork, then change current working directory to path and
70 * execute the command and arguments in the argv array. 68 * execute the command and arguments in the argv array.
71 * wait for the command to finish, then return the exit status. 69 * wait for the command to finish, then return the exit status.
72 */ 70 */
73int 71int
74pfcexec(const char *path, const char *file, const char **argv) 72pfcexec(const char *path, const char *file, const char **argv)
75{ 73{
76 pid_t child; 74 pid_t child;
77 int status; 75 int status;

cvs diff -r1.23.8.3 -r1.23.8.4 pkgsrc/pkgtools/pkg_install/files/lib/file.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/file.c 2008/09/16 19:03:54 1.23.8.3
+++ pkgsrc/pkgtools/pkg_install/files/lib/file.c 2009/02/02 11:55:16 1.23.8.4
@@ -1,35 +1,29 @@ @@ -1,35 +1,29 @@
1/* $NetBSD: file.c,v 1.23.8.3 2008/09/16 19:03:54 joerg Exp $ */ 1/* $NetBSD: file.c,v 1.23.8.4 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#if HAVE_SYS_PARAM_H 10#if HAVE_SYS_PARAM_H
11#include <sys/param.h> 11#include <sys/param.h>
12#endif 12#endif
13#if HAVE_SYS_QUEUE_H 13#if HAVE_SYS_QUEUE_H
14#include <sys/queue.h> 14#include <sys/queue.h>
15#endif 15#endif
16#ifndef lint 16__RCSID("$NetBSD: file.c,v 1.23.8.4 2009/02/02 11:55:16 joerg Exp $");
17#if 0 
18static const char *rcsid = "from FreeBSD Id: file.c,v 1.29 1997/10/08 07:47:54 charnier Exp"; 
19#else 
20__RCSID("$NetBSD: file.c,v 1.23.8.3 2008/09/16 19:03:54 joerg Exp $"); 
21#endif 
22#endif 
23 17
24/* 18/*
25 * FreeBSD install - a package for the installation and maintainance 19 * FreeBSD install - a package for the installation and maintainance
26 * of non-core utilities. 20 * of non-core utilities.
27 * 21 *
28 * Redistribution and use in source and binary forms, with or without 22 * Redistribution and use in source and binary forms, with or without
29 * modification, are permitted provided that the following conditions 23 * modification, are permitted provided that the following conditions
30 * are met: 24 * are met:
31 * 1. Redistributions of source code must retain the above copyright 25 * 1. Redistributions of source code must retain the above copyright
32 * notice, this list of conditions and the following disclaimer. 26 * notice, this list of conditions and the following disclaimer.
33 * 2. Redistributions in binary form must reproduce the above copyright 27 * 2. Redistributions in binary form must reproduce the above copyright
34 * notice, this list of conditions and the following disclaimer in the 28 * notice, this list of conditions and the following disclaimer in the
35 * documentation and/or other materials provided with the distribution. 29 * documentation and/or other materials provided with the distribution.

cvs diff -r1.4 -r1.4.38.1 pkgsrc/pkgtools/pkg_install/files/lib/global.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/global.c 2003/09/23 07:13:53 1.4
+++ pkgsrc/pkgtools/pkg_install/files/lib/global.c 2009/02/02 11:55:16 1.4.38.1
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: global.c,v 1.4 2003/09/23 07:13:53 grant Exp $ */ 1/* $NetBSD: global.c,v 1.4.38.1 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: global.c,v 1.4.38.1 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "from FreeBSD Id: global.c,v 1.6 1997/10/08 07:47:58 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: global.c,v 1.4 2003/09/23 07:13:53 grant Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
20 * of non-core utilities. 14 * of non-core utilities.
21 * 15 *
22 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
24 * are met: 18 * are met:
25 * 1. Redistributions of source code must retain the above copyright 19 * 1. Redistributions of source code must retain the above copyright
26 * notice, this list of conditions and the following disclaimer. 20 * notice, this list of conditions and the following disclaimer.
27 * 2. Redistributions in binary form must reproduce the above copyright 21 * 2. Redistributions in binary form must reproduce the above copyright
28 * notice, this list of conditions and the following disclaimer in the 22 * notice, this list of conditions and the following disclaimer in the
29 * documentation and/or other materials provided with the distribution. 23 * documentation and/or other materials provided with the distribution.

cvs diff -r1.42.2.18 -r1.42.2.19 pkgsrc/pkgtools/pkg_install/files/lib/lib.h (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/lib.h 2009/01/27 22:24:05 1.42.2.18
+++ pkgsrc/pkgtools/pkg_install/files/lib/lib.h 2009/02/02 11:55:16 1.42.2.19
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: lib.h,v 1.42.2.18 2009/01/27 22:24:05 joerg Exp $ */ 1/* $NetBSD: lib.h,v 1.42.2.19 2009/02/02 11:55:16 joerg Exp $ */
2 2
3/* from FreeBSD Id: lib.h,v 1.25 1997/10/08 07:48:03 charnier Exp */ 3/* from FreeBSD Id: lib.h,v 1.25 1997/10/08 07:48:03 charnier Exp */
4 4
5/* 5/*
6 * FreeBSD install - a package for the installation and maintainance 6 * FreeBSD install - a package for the installation and maintainance
7 * of non-core utilities. 7 * of non-core utilities.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -358,26 +358,28 @@ char *pkgdb_pkg_file(const char *, con @@ -358,26 +358,28 @@ char *pkgdb_pkg_file(const char *, con
358/* List of packages functions */ 358/* List of packages functions */
359lpkg_t *alloc_lpkg(const char *); 359lpkg_t *alloc_lpkg(const char *);
360lpkg_t *find_on_queue(lpkg_head_t *, const char *); 360lpkg_t *find_on_queue(lpkg_head_t *, const char *);
361void free_lpkg(lpkg_t *); 361void free_lpkg(lpkg_t *);
362 362
363/* Extract input if compressed to NUL terminated buffer (not counted) */ 363/* Extract input if compressed to NUL terminated buffer (not counted) */
364int decompress_buffer(const char *, size_t, char **, size_t *); 364int decompress_buffer(const char *, size_t, char **, size_t *);
365 365
366/* Parse NUL terminated inputed, argument is strlen of the input */ 366/* Parse NUL terminated inputed, argument is strlen of the input */
367struct pkg_vulnerabilities *parse_pkg_vulnerabilities(const char *, size_t, int); 367struct pkg_vulnerabilities *parse_pkg_vulnerabilities(const char *, size_t, int);
368/* Read pkg_vulnerabilities from file */ 368/* Read pkg_vulnerabilities from file */
369struct pkg_vulnerabilities *read_pkg_vulnerabilities(const char *, int, int); 369struct pkg_vulnerabilities *read_pkg_vulnerabilities(const char *, int, int);
370void free_pkg_vulnerabilities(struct pkg_vulnerabilities *); 370void free_pkg_vulnerabilities(struct pkg_vulnerabilities *);
 371int audit_package(struct pkg_vulnerabilities *, const char *, const char *,
 372 int, int);
371 373
372/* Parse configuration file */ 374/* Parse configuration file */
373void pkg_install_config(void); 375void pkg_install_config(void);
374/* Print configuration variable */ 376/* Print configuration variable */
375void pkg_install_show_variable(const char *); 377void pkg_install_show_variable(const char *);
376 378
377#ifdef HAVE_SSL 379#ifdef HAVE_SSL
378/* Package signature creation and validation */ 380/* Package signature creation and validation */
379int pkg_verify_signature(struct archive **, struct archive_entry **, char **, 381int pkg_verify_signature(struct archive **, struct archive_entry **, char **,
380 void **); 382 void **);
381int pkg_full_signature_check(struct archive *); 383int pkg_full_signature_check(struct archive *);
382void pkg_free_signature(void *); 384void pkg_free_signature(void *);
383void pkg_sign_x509(const char *, const char *, const char *, const char *); 385void pkg_sign_x509(const char *, const char *, const char *, const char *);

cvs diff -r1.4.6.2 -r1.4.6.3 pkgsrc/pkgtools/pkg_install/files/lib/opattern.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/opattern.c 2008/08/02 20:33:50 1.4.6.2
+++ pkgsrc/pkgtools/pkg_install/files/lib/opattern.c 2009/02/02 11:55:16 1.4.6.3
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: opattern.c,v 1.4.6.2 2008/08/02 20:33:50 joerg Exp $ */ 1/* $NetBSD: opattern.c,v 1.4.6.3 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: opattern.c,v 1.4.6.3 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: opattern.c,v 1.4.6.2 2008/08/02 20:33:50 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
20 * of non-core utilities. 14 * of non-core utilities.
21 * 15 *
22 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
24 * are met: 18 * are met:
25 * 1. Redistributions of source code must retain the above copyright 19 * 1. Redistributions of source code must retain the above copyright
26 * notice, this list of conditions and the following disclaimer. 20 * notice, this list of conditions and the following disclaimer.
27 * 2. Redistributions in binary form must reproduce the above copyright 21 * 2. Redistributions in binary form must reproduce the above copyright
28 * notice, this list of conditions and the following disclaimer in the 22 * notice, this list of conditions and the following disclaimer in the
29 * documentation and/or other materials provided with the distribution. 23 * documentation and/or other materials provided with the distribution.

cvs diff -r1.1.2.7 -r1.1.2.8 pkgsrc/pkgtools/pkg_install/files/lib/parse-config.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/parse-config.c 2009/01/27 22:24:05 1.1.2.7
+++ pkgsrc/pkgtools/pkg_install/files/lib/parse-config.c 2009/02/02 11:55:16 1.1.2.8
@@ -1,25 +1,23 @@ @@ -1,25 +1,23 @@
1/* $NetBSD: parse-config.c,v 1.1.2.7 2009/01/27 22:24:05 joerg Exp $ */ 1/* $NetBSD: parse-config.c,v 1.1.2.8 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: parse-config.c,v 1.1.2.8 2009/02/02 11:55:16 joerg Exp $");
11__RCSID("$NetBSD: parse-config.c,v 1.1.2.7 2009/01/27 22:24:05 joerg Exp $"); 
12#endif 
13 11
14/*- 12/*-
15 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>. 13 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
16 * All rights reserved. 14 * All rights reserved.
17 * 15 *
18 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
20 * are met: 18 * are met:
21 * 19 *
22 * 1. Redistributions of source code must retain the above copyright 20 * 1. Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer. 21 * notice, this list of conditions and the following disclaimer.
24 * 2. Redistributions in binary form must reproduce the above copyright 22 * 2. Redistributions in binary form must reproduce the above copyright
25 * notice, this list of conditions and the following disclaimer in 23 * notice, this list of conditions and the following disclaimer in
@@ -72,32 +70,32 @@ const char *ignore_advisories = NULL; @@ -72,32 +70,32 @@ const char *ignore_advisories = NULL;
72 70
73const char tnf_vulnerability_base[] = "ftp://ftp.NetBSD.org/pub/NetBSD/packages/vulns"; 71const char tnf_vulnerability_base[] = "ftp://ftp.NetBSD.org/pub/NetBSD/packages/vulns";
74 72
75static struct config_variable { 73static struct config_variable {
76 const char *name; 74 const char *name;
77 const char **var; 75 const char **var;
78} config_variables[] = { 76} config_variables[] = {
79 { "ACTIVE_FTP", &active_ftp }, 77 { "ACTIVE_FTP", &active_ftp },
80 { "CERTIFICATE_ANCHOR_PKGS", &certs_packages }, 78 { "CERTIFICATE_ANCHOR_PKGS", &certs_packages },
81 { "CERTIFICATE_ANCHOR_PKGVULN", &certs_pkg_vulnerabilities }, 79 { "CERTIFICATE_ANCHOR_PKGVULN", &certs_pkg_vulnerabilities },
82 { "CERTIFICATE_CHAIN", &cert_chain_file }, 80 { "CERTIFICATE_CHAIN", &cert_chain_file },
83 { "CHECK_VULNERABILITIES", &check_vulnerabilities }, 81 { "CHECK_VULNERABILITIES", &check_vulnerabilities },
84 { "GPG", &gpg_cmd }, 82 { "GPG", &gpg_cmd },
85 { "IGNORE_PROXY", &ignore_proxy }, 
86 { "IGNORE_URL", &ignore_advisories }, 
87 { "GPG_KEYRING_PKGVULN", &gpg_keyring_pkgvuln }, 83 { "GPG_KEYRING_PKGVULN", &gpg_keyring_pkgvuln },
88 { "GPG_KEYRING_SIGN", &gpg_keyring_sign }, 84 { "GPG_KEYRING_SIGN", &gpg_keyring_sign },
89 { "GPG_KEYRING_VERIFY", &gpg_keyring_verify }, 85 { "GPG_KEYRING_VERIFY", &gpg_keyring_verify },
90 { "GPG_SIGN_AS", &gpg_sign_as }, 86 { "GPG_SIGN_AS", &gpg_sign_as },
 87 { "IGNORE_PROXY", &ignore_proxy },
 88 { "IGNORE_URL", &ignore_advisories },
91 { "PKGVULNDIR", &pkg_vulnerabilities_dir }, 89 { "PKGVULNDIR", &pkg_vulnerabilities_dir },
92 { "PKGVULNURL", &pkg_vulnerabilities_url }, 90 { "PKGVULNURL", &pkg_vulnerabilities_url },
93 { "VERBOSE_NETIO", &verbose_netio }, 91 { "VERBOSE_NETIO", &verbose_netio },
94 { "VERIFIED_INSTALLATION", &verified_installation }, 92 { "VERIFIED_INSTALLATION", &verified_installation },
95 { NULL, NULL } 93 { NULL, NULL }
96}; 94};
97 95
98void 96void
99pkg_install_config(void) 97pkg_install_config(void)
100{ 98{
101 char *value; 99 char *value;
102 struct config_variable *var; 100 struct config_variable *var;
103 101

cvs diff -r1.6.28.1 -r1.6.28.2 pkgsrc/pkgtools/pkg_install/files/lib/Attic/path.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/Attic/path.c 2008/08/02 20:33:50 1.6.28.1
+++ pkgsrc/pkgtools/pkg_install/files/lib/Attic/path.c 2009/02/02 11:55:16 1.6.28.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: path.c,v 1.6.28.1 2008/08/02 20:33:50 joerg Exp $ */ 1/* $NetBSD: path.c,v 1.6.28.2 2009/02/02 11:55:16 joerg Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c)2002 YAMAMOTO Takashi, 4 * Copyright (c)2002 YAMAMOTO Takashi,
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -23,29 +23,27 @@ @@ -23,29 +23,27 @@
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE. 26 * SUCH DAMAGE.
27 */ 27 */
28 28
29#if HAVE_CONFIG_H 29#if HAVE_CONFIG_H
30#include "config.h" 30#include "config.h"
31#endif 31#endif
32#include <nbcompat.h> 32#include <nbcompat.h>
33#if HAVE_SYS_CDEFS_H 33#if HAVE_SYS_CDEFS_H
34#include <sys/cdefs.h> 34#include <sys/cdefs.h>
35#endif 35#endif
36#ifndef lint 36__RCSID("$NetBSD: path.c,v 1.6.28.2 2009/02/02 11:55:16 joerg Exp $");
37__RCSID("$NetBSD: path.c,v 1.6.28.1 2008/08/02 20:33:50 joerg Exp $"); 
38#endif 
39 37
40#if HAVE_ERR_H 38#if HAVE_ERR_H
41#include <err.h> 39#include <err.h>
42#endif 40#endif
43 41
44#include "lib.h" 42#include "lib.h"
45 43
46struct pathhead PkgPath = TAILQ_HEAD_INITIALIZER(PkgPath); 44struct pathhead PkgPath = TAILQ_HEAD_INITIALIZER(PkgPath);
47static struct path *prepend = 0; 45static struct path *prepend = 0;
48 46
49static struct path *path_new_entry(const char *cp, size_t len); 47static struct path *path_new_entry(const char *cp, size_t len);
50 48
51/* 49/*

cvs diff -r1.29.4.2 -r1.29.4.3 pkgsrc/pkgtools/pkg_install/files/lib/pkgdb.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/pkgdb.c 2008/08/02 20:33:50 1.29.4.2
+++ pkgsrc/pkgtools/pkg_install/files/lib/pkgdb.c 2009/02/02 11:55:16 1.29.4.3
@@ -1,25 +1,23 @@ @@ -1,25 +1,23 @@
1/* $NetBSD: pkgdb.c,v 1.29.4.2 2008/08/02 20:33:50 joerg Exp $ */ 1/* $NetBSD: pkgdb.c,v 1.29.4.3 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: pkgdb.c,v 1.29.4.3 2009/02/02 11:55:16 joerg Exp $");
11__RCSID("$NetBSD: pkgdb.c,v 1.29.4.2 2008/08/02 20:33:50 joerg Exp $"); 
12#endif 
13 11
14/*- 12/*-
15 * Copyright (c) 1999-2008 The NetBSD Foundation, Inc. 13 * Copyright (c) 1999-2008 The NetBSD Foundation, Inc.
16 * All rights reserved. 14 * All rights reserved.
17 * 15 *
18 * This code is derived from software contributed to The NetBSD Foundation 16 * This code is derived from software contributed to The NetBSD Foundation
19 * by Hubert Feyrer <hubert@feyrer.de>. 17 * by Hubert Feyrer <hubert@feyrer.de>.
20 * 18 *
21 * Redistribution and use in source and binary forms, with or without 19 * Redistribution and use in source and binary forms, with or without
22 * modification, are permitted provided that the following conditions 20 * modification, are permitted provided that the following conditions
23 * are met: 21 * are met:
24 * 1. Redistributions of source code must retain the above copyright 22 * 1. Redistributions of source code must retain the above copyright
25 * notice, this list of conditions and the following disclaimer. 23 * notice, this list of conditions and the following disclaimer.

cvs diff -r1.17.4.12 -r1.17.4.13 pkgsrc/pkgtools/pkg_install/files/lib/plist.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/plist.c 2008/08/25 18:43:04 1.17.4.12
+++ pkgsrc/pkgtools/pkg_install/files/lib/plist.c 2009/02/02 11:55:16 1.17.4.13
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: plist.c,v 1.17.4.12 2008/08/25 18:43:04 joerg Exp $ */ 1/* $NetBSD: plist.c,v 1.17.4.13 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: plist.c,v 1.17.4.13 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "from FreeBSD Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: plist.c,v 1.17.4.12 2008/08/25 18:43:04 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
20 * of non-core utilities. 14 * of non-core utilities.
21 * 15 *
22 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
24 * are met: 18 * are met:
25 * 1. Redistributions of source code must retain the above copyright 19 * 1. Redistributions of source code must retain the above copyright
26 * notice, this list of conditions and the following disclaimer. 20 * notice, this list of conditions and the following disclaimer.
27 * 2. Redistributions in binary form must reproduce the above copyright 21 * 2. Redistributions in binary form must reproduce the above copyright
28 * notice, this list of conditions and the following disclaimer in the 22 * notice, this list of conditions and the following disclaimer in the
29 * documentation and/or other materials provided with the distribution. 23 * documentation and/or other materials provided with the distribution.

cvs diff -r1.22.2.1 -r1.22.2.2 pkgsrc/pkgtools/pkg_install/files/lib/str.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/str.c 2008/04/26 17:44:23 1.22.2.1
+++ pkgsrc/pkgtools/pkg_install/files/lib/str.c 2009/02/02 11:55:16 1.22.2.2
@@ -1,29 +1,23 @@ @@ -1,29 +1,23 @@
1/* $NetBSD: str.c,v 1.22.2.1 2008/04/26 17:44:23 joerg Exp $ */ 1/* $NetBSD: str.c,v 1.22.2.2 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: str.c,v 1.22.2.2 2009/02/02 11:55:16 joerg Exp $");
11#if 0 
12static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp"; 
13#else 
14__RCSID("$NetBSD: str.c,v 1.22.2.1 2008/04/26 17:44:23 joerg Exp $"); 
15#endif 
16#endif 
17 11
18/* 12/*
19 * FreeBSD install - a package for the installation and maintainance 13 * FreeBSD install - a package for the installation and maintainance
20 * of non-core utilities. 14 * of non-core utilities.
21 * 15 *
22 * Redistribution and use in source and binary forms, with or without 16 * Redistribution and use in source and binary forms, with or without
23 * modification, are permitted provided that the following conditions 17 * modification, are permitted provided that the following conditions
24 * are met: 18 * are met:
25 * 1. Redistributions of source code must retain the above copyright 19 * 1. Redistributions of source code must retain the above copyright
26 * notice, this list of conditions and the following disclaimer. 20 * notice, this list of conditions and the following disclaimer.
27 * 2. Redistributions in binary form must reproduce the above copyright 21 * 2. Redistributions in binary form must reproduce the above copyright
28 * notice, this list of conditions and the following disclaimer in the 22 * notice, this list of conditions and the following disclaimer in the
29 * documentation and/or other materials provided with the distribution. 23 * documentation and/or other materials provided with the distribution.

cvs diff -r1.6.4.1 -r1.6.4.2 pkgsrc/pkgtools/pkg_install/files/lib/var.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/var.c 2008/08/02 20:33:50 1.6.4.1
+++ pkgsrc/pkgtools/pkg_install/files/lib/var.c 2009/02/02 11:55:16 1.6.4.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: var.c,v 1.6.4.1 2008/08/02 20:33:50 joerg Exp $ */ 1/* $NetBSD: var.c,v 1.6.4.2 2009/02/02 11:55:16 joerg Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2005, 2008 The NetBSD Foundation, Inc. 4 * Copyright (c) 2005, 2008 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Dieter Baron, Thomas Klausner, Johnny Lam, and Joerg Sonnenberger. 8 * by Dieter Baron, Thomas Klausner, Johnny Lam, and Joerg Sonnenberger.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -29,29 +29,27 @@ @@ -29,29 +29,27 @@
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE. 32 * POSSIBILITY OF SUCH DAMAGE.
33 */ 33 */
34 34
35#if HAVE_CONFIG_H 35#if HAVE_CONFIG_H
36#include "config.h" 36#include "config.h"
37#endif 37#endif
38#include <nbcompat.h> 38#include <nbcompat.h>
39#if HAVE_SYS_CDEFS_H 39#if HAVE_SYS_CDEFS_H
40#include <sys/cdefs.h> 40#include <sys/cdefs.h>
41#endif 41#endif
42#ifndef lint 42__RCSID("$NetBSD: var.c,v 1.6.4.2 2009/02/02 11:55:16 joerg Exp $");
43__RCSID("$NetBSD: var.c,v 1.6.4.1 2008/08/02 20:33:50 joerg Exp $"); 
44#endif 
45 43
46#if HAVE_SYS_STAT_H 44#if HAVE_SYS_STAT_H
47#include <sys/stat.h> 45#include <sys/stat.h>
48#endif 46#endif
49#if HAVE_ERR_H 47#if HAVE_ERR_H
50#include <err.h> 48#include <err.h>
51#endif 49#endif
52#if HAVE_ERRNO_H 50#if HAVE_ERRNO_H
53#include <errno.h> 51#include <errno.h>
54#endif 52#endif
55#if HAVE_STDIO_H 53#if HAVE_STDIO_H
56#include <stdio.h> 54#include <stdio.h>
57#endif 55#endif

cvs diff -r1.4.38.1 -r1.4.38.2 pkgsrc/pkgtools/pkg_install/files/lib/version.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/version.c 2008/05/23 15:57:04 1.4.38.1
+++ pkgsrc/pkgtools/pkg_install/files/lib/version.c 2009/02/02 11:55:16 1.4.38.2
@@ -1,25 +1,23 @@ @@ -1,25 +1,23 @@
1/* $NetBSD: version.c,v 1.4.38.1 2008/05/23 15:57:04 joerg Exp $ */ 1/* $NetBSD: version.c,v 1.4.38.2 2009/02/02 11:55:16 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10__RCSID("$NetBSD: version.c,v 1.4.38.2 2009/02/02 11:55:16 joerg Exp $");
11__RCSID("$NetBSD: version.c,v 1.4.38.1 2008/05/23 15:57:04 joerg Exp $"); 
12#endif 
13 11
14/* 12/*
15 * Copyright (c) 2001 Thomas Klausner. All rights reserved. 13 * Copyright (c) 2001 Thomas Klausner. All rights reserved.
16 * 14 *
17 * Redistribution and use in source and binary forms, with or without 15 * Redistribution and use in source and binary forms, with or without
18 * modification, are permitted provided that the following conditions 16 * modification, are permitted provided that the following conditions
19 * are met: 17 * are met:
20 * 1. Redistributions of source code must retain the above copyright 18 * 1. Redistributions of source code must retain the above copyright
21 * notice, this list of conditions and the following disclaimer. 19 * notice, this list of conditions and the following disclaimer.
22 * 2. Redistributions in binary form must reproduce the above copyright 20 * 2. Redistributions in binary form must reproduce the above copyright
23 * notice, this list of conditions and the following disclaimer in the 21 * notice, this list of conditions and the following disclaimer in the
24 * documentation and/or other materials provided with the distribution. 22 * documentation and/or other materials provided with the distribution.
25 * 23 *

cvs diff -r1.102.2.21 -r1.102.2.22 pkgsrc/pkgtools/pkg_install/files/lib/version.h (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/version.h 2009/01/27 22:24:06 1.102.2.21
+++ pkgsrc/pkgtools/pkg_install/files/lib/version.h 2009/02/02 11:55:16 1.102.2.22
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: version.h,v 1.102.2.21 2009/01/27 22:24:06 joerg Exp $ */ 1/* $NetBSD: version.h,v 1.102.2.22 2009/02/02 11:55:16 joerg Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001 Thomas Klausner. All rights reserved. 4 * Copyright (c) 2001 Thomas Klausner. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright 11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the 12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution. 13 * documentation and/or other materials provided with the distribution.
14 * 14 *
@@ -17,16 +17,16 @@ @@ -17,16 +17,16 @@
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27#ifndef _INST_LIB_VERSION_H_ 27#ifndef _INST_LIB_VERSION_H_
28#define _INST_LIB_VERSION_H_ 28#define _INST_LIB_VERSION_H_
29 29
30#define PKGTOOLS_VERSION "20090127" 30#define PKGTOOLS_VERSION "20090201"
31 31
32#endif /* _INST_LIB_VERSION_H_ */ 32#endif /* _INST_LIB_VERSION_H_ */

cvs diff -r1.3.4.9 -r1.3.4.10 pkgsrc/pkgtools/pkg_install/files/lib/vulnerabilities-file.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/vulnerabilities-file.c 2009/01/27 22:24:06 1.3.4.9
+++ pkgsrc/pkgtools/pkg_install/files/lib/vulnerabilities-file.c 2009/02/02 11:55:16 1.3.4.10
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: vulnerabilities-file.c,v 1.3.4.9 2009/01/27 22:24:06 joerg Exp $ */ 1/* $NetBSD: vulnerabilities-file.c,v 1.3.4.10 2009/02/02 11:55:16 joerg Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>. 4 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright 13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in 14 * notice, this list of conditions and the following disclaimer in
@@ -28,27 +28,27 @@ @@ -28,27 +28,27 @@
28 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 */ 30 */
31 31
32#if HAVE_CONFIG_H 32#if HAVE_CONFIG_H
33#include "config.h" 33#include "config.h"
34#endif 34#endif
35 35
36#include <nbcompat.h> 36#include <nbcompat.h>
37 37
38#if HAVE_SYS_CDEFS_H 38#if HAVE_SYS_CDEFS_H
39#include <sys/cdefs.h> 39#include <sys/cdefs.h>
40#endif 40#endif
41__RCSID("$NetBSD: vulnerabilities-file.c,v 1.3.4.9 2009/01/27 22:24:06 joerg Exp $"); 41__RCSID("$NetBSD: vulnerabilities-file.c,v 1.3.4.10 2009/02/02 11:55:16 joerg Exp $");
42 42
43#if HAVE_SYS_STAT_H 43#if HAVE_SYS_STAT_H
44#include <sys/stat.h> 44#include <sys/stat.h>
45#endif 45#endif
46#if HAVE_SYS_WAIT_H 46#if HAVE_SYS_WAIT_H
47#include <sys/wait.h> 47#include <sys/wait.h>
48#endif 48#endif
49#include <ctype.h> 49#include <ctype.h>
50#if HAVE_ERR_H 50#if HAVE_ERR_H
51#include <err.h> 51#include <err.h>
52#endif 52#endif
53#include <errno.h> 53#include <errno.h>
54#include <fcntl.h> 54#include <fcntl.h>
@@ -506,13 +506,83 @@ free_pkg_vulnerabilities(struct pkg_vuln @@ -506,13 +506,83 @@ free_pkg_vulnerabilities(struct pkg_vuln
506{ 506{
507 size_t i; 507 size_t i;
508 508
509 for (i = 0; i < pv->entries; ++i) { 509 for (i = 0; i < pv->entries; ++i) {
510 free(pv->vulnerability[i]); 510 free(pv->vulnerability[i]);
511 free(pv->classification[i]); 511 free(pv->classification[i]);
512 free(pv->advisory[i]); 512 free(pv->advisory[i]);
513 } 513 }
514 free(pv->vulnerability); 514 free(pv->vulnerability);
515 free(pv->classification); 515 free(pv->classification);
516 free(pv->advisory); 516 free(pv->advisory);
517 free(pv); 517 free(pv);
518} 518}
 519
 520static int
 521check_ignored_entry(struct pkg_vulnerabilities *pv, size_t i)
 522{
 523 const char *iter, *next;
 524 size_t entry_len, url_len;
 525
 526 if (ignore_advisories == NULL)
 527 return 0;
 528
 529 url_len = strlen(pv->advisory[i]);
 530
 531 for (iter = ignore_advisories; *iter; iter = next) {
 532 if ((next = strchr(iter, '\n')) == NULL) {
 533 entry_len = strlen(iter);
 534 next = iter + entry_len;
 535 } else {
 536 entry_len = next - iter;
 537 ++next;
 538 }
 539 if (url_len != entry_len)
 540 continue;
 541 if (strncmp(pv->advisory[i], iter, entry_len) == 0)
 542 return 1;
 543 }
 544 return 0;
 545}
 546
 547int
 548audit_package(struct pkg_vulnerabilities *pv, const char *pkgname,
 549 const char *limit_vul_types, int check_eol, int output_type)
 550{
 551 FILE *output = output_type == 1 ? stdout : stderr;
 552 size_t i;
 553 int retval;
 554
 555 retval = 0;
 556
 557 for (i = 0; i < pv->entries; ++i) {
 558 if (check_ignored_entry(pv, i))
 559 continue;
 560 if (limit_vul_types != NULL &&
 561 strcmp(limit_vul_types, pv->classification[i]))
 562 continue;
 563 if (!pkg_match(pv->vulnerability[i], pkgname))
 564 continue;
 565 if (strcmp("eol", pv->classification[i]) == 0) {
 566 if (!check_eol)
 567 continue;
 568 if (output_type == 0) {
 569 puts(pkgname);
 570 continue;
 571 }
 572 fprintf(output,
 573 "Package %s has reached end-of-life (eol), "
 574 "see %s/eol-packages\n", pkgname,
 575 tnf_vulnerability_base);
 576 continue;
 577 }
 578 retval = 1;
 579 if (output_type == 0) {
 580 puts(pkgname);
 581 } else {
 582 fprintf(output,
 583 "Package %s has a %s vulnerability, see %s\n",
 584 pkgname, pv->classification[i], pv->advisory[i]);
 585 }
 586 }
 587 return retval;
 588}