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 arraydiff -r1.5 -r1.5.36.1 pkgsrc/pkgtools/pkg_install/DESCR
(joerg)
@@ -2,13 +2,18 @@ pkg_install contains the core package ma | @@ -2,13 +2,18 @@ pkg_install contains the core package ma | |||
2 | utilities for pkgsrc, a multi-platform source and binary package | 2 | utilities for pkgsrc, a multi-platform source and binary package | |
3 | system developed and maintained by The NetBSD Project and volunteers | 3 | system developed and maintained by The NetBSD Project and volunteers | |
4 | from around the globe. | 4 | from around the globe. | |
5 | 5 | |||
6 | The following tools are included: | 6 | The following tools are included: | |
7 | 7 | |||
8 | pkg_add install and upgrade binary packages | 8 | pkg_add install and upgrade binary packages | |
9 | pkg_admin perform various pkgsrc administrative tasks | 9 | pkg_admin perform various pkgsrc administrative tasks | |
10 | pkg_create create software package distributions | 10 | pkg_create create software package distributions | |
11 | pkg_delete delete installed packages | 11 | pkg_delete delete installed packages | |
12 | pkg_info display information about installed or binary packages | 12 | pkg_info display information about installed or binary packages | |
13 | pkg_view manage package views | 13 | pkg_view manage package views | |
14 | linkfarm manage symbolic links for package views | 14 | linkfarm manage symbolic links for package views | |
15 | ||||
16 | For the following tools compatibility wrappers are included: | |||
17 | ||||
18 | audit-packages audit installed packages for security vulnerabilities | |||
19 | download-vulnerability-list download the latest vulnerabilities list |
@@ -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 | |||
4 | You may wish to have the vulnerabilities file downloaded daily so that | 4 | You may wish to have the vulnerabilities file downloaded daily so that | |
5 | it remains current. This may be done by adding an appropriate entry | 5 | it remains current. This may be done by adding an appropriate entry | |
6 | to a user's crontab(5) entry. For example the entry | 6 | to a user's crontab(5) entry. For example the entry | |
7 | 7 | |||
8 | # download vulnerabilities file | 8 | # download vulnerabilities file | |
9 | 0 3 * * * ${PREFIX}/sbin/download-vulnerability-list >/dev/null 2>&1 | 9 | 0 3 * * * ${PREFIX}/sbin/pkg_admin fetch-pkg-vulnerabilities >/dev/null 2>&1 | |
10 | 10 | |||
11 | will update the vulnerability list every day at 3AM. You may wish to do | 11 | will update the vulnerability list every day at 3AM. You may wish to do | |
12 | this more often than once a day. | 12 | this more often than once a day. | |
13 | 13 | |||
14 | In addition, you may wish to run the package audit from the daily | 14 | In addition, you may wish to run the package audit from the daily | |
15 | security script. This may be accomplished by adding the following | 15 | security script. This may be accomplished by adding the following | |
16 | lines to /etc/security.local | 16 | lines to /etc/security.local | |
17 | 17 | |||
18 | if [ -x ${PREFIX}/sbin/audit-packages ]; then | 18 | if [ -x ${PREFIX}/sbin/pkg_admin ]; then | |
19 | ${PREFIX}/sbin/audit-packages | 19 | ${PREFIX}/sbin/pkg_admin audit | |
20 | fi | 20 | fi | |
21 | 21 | |||
22 | Alternatively this can also be acomplished by adding an entry to a user's | 22 | Alternatively this can also be acomplished by adding an entry to a user's | |
23 | crontab(5) file. e.g.: | 23 | crontab(5) file. e.g.: | |
24 | 24 | |||
25 | # run audit-packages | 25 | # run audit-packages | |
26 | 0 3 * * * ${PREFIX}/sbin/audit-packages | 26 | 0 3 * * * ${PREFIX}/sbin/pkg_admin audit | |
27 | 27 | |||
28 | audit-packages and/or download-vulnerability-list need not be run by | 28 | Both pkg_admin subcommands can be run as as an unprivileged user, | |
29 | the root user. They will function as an unprivileged user, as long | 29 | as long as the user chosen has permission to read the pkgdb and to write | |
30 | as the user chosen has permission to write the pkg-vulnerabilites | 30 | the pkg-vulnerabilites to ${PKGVULNDIR}. | |
31 | to ${PKGVULNDIR}. | 31 | ||
32 | 32 | The behavior of pkg_admin and pkg_add can be customised with | ||
33 | A sample audit-packages.conf has been installed to: | 33 | pkg_install.conf. Please see pkg_install.conf(5) for details. | |
34 | 34 | |||
35 | ${EGDIR}/audit-packages.conf | 35 | If you want to use GPG signature verification you will need to install | |
36 | 36 | GnuPG and set the path for GPG appropriately in your pkg_install.conf. | ||
37 | You may want to customise this file and copy it to | |||
38 | ${PKG_SYSCONFDIR}/audit-packages.conf. | |||
39 | If you want to use signature verification you will need to install GnuPG and | |||
40 | set the path for GPG appropriately in your audit-packages.conf. See | |||
41 | audit-packages.conf(5) and audit-packages(8) for further information. | |||
42 | =========================================================================== | 37 | =========================================================================== |
@@ -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 | |||
9 | DISTNAME= pkg_install-${VERSION} | 9 | DISTNAME= pkg_install-${VERSION} | |
10 | CATEGORIES= pkgtools | 10 | CATEGORIES= pkgtools | |
11 | MASTER_SITES= # empty | 11 | MASTER_SITES= # empty | |
12 | DISTFILES= # empty | 12 | DISTFILES= # empty | |
13 | 13 | |||
14 | MAINTAINER= joerg@NetBSD.org | 14 | MAINTAINER= joerg@NetBSD.org | |
15 | HOMEPAGE= http://www.pkgsrc.org/ | 15 | HOMEPAGE= http://www.pkgsrc.org/ | |
16 | COMMENT= Package management and administration tools for pkgsrc | 16 | COMMENT= Package management and administration tools for pkgsrc | |
17 | #LICENSE= modified-bsd | 17 | #LICENSE= modified-bsd | |
18 | 18 | |||
19 | PKG_DESTDIR_SUPPORT= user-destdir | 19 | PKG_DESTDIR_SUPPORT= user-destdir | |
20 | BOOTSTRAP_PKG= yes | |||
20 | 21 | |||
21 | CONFLICTS+= audit-packages-[0-9]* | 22 | CONFLICTS+= audit-packages-[0-9]* | |
22 | 23 | |||
23 | GNU_CONFIGURE= yes | 24 | GNU_CONFIGURE= yes | |
24 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | 25 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | |
25 | CONFIGURE_ARGS+= --with-pkgdbdir=${PKG_DBDIR:Q} | 26 | CONFIGURE_ARGS+= --with-pkgdbdir=${PKG_DBDIR:Q} | |
26 | 27 | |||
27 | USE_FEATURES= nbcompat | 28 | USE_FEATURES= nbcompat | |
28 | 29 | |||
29 | NBCOMPAT_CONFIGURE_ARGS+= --enable-bsd-getopt --enable-db | 30 | NBCOMPAT_CONFIGURE_ARGS+= --enable-bsd-getopt --enable-db | |
30 | 31 | |||
31 | SKIP_AUDIT_PACKAGES= yes | 32 | SKIP_AUDIT_PACKAGES= yes | |
32 | NO_PKGTOOLS_REQD_CHECK= yes | 33 | NO_PKGTOOLS_REQD_CHECK= yes | |
@@ -34,31 +35,38 @@ NO_CHECKSUM= yes | @@ -34,31 +35,38 @@ NO_CHECKSUM= yes | |||
34 | NO_MTREE= yes | 35 | NO_MTREE= yes | |
35 | PKG_PRESERVE= yes | 36 | PKG_PRESERVE= yes | |
36 | CHECK_PERMS= no | 37 | CHECK_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. | |||
47 | USE_NATIVE_GCC= yes | 52 | USE_NATIVE_GCC= yes | |
53 | ||||
54 | .if defined(_PKGSRC_BARRIER) | |||
48 | PKG_ADD_CMD= ${WRKSRC}/add/pkg_add | 55 | PKG_ADD_CMD= ${WRKSRC}/add/pkg_add | |
49 | PKG_CREATE_CMD= ${WRKSRC}/create/pkg_create | 56 | PKG_CREATE_CMD= ${WRKSRC}/create/pkg_create | |
50 | PKG_DELETE_CMD= ${WRKSRC}/delete/pkg_delete | 57 | PKG_DELETE_CMD= ${WRKSRC}/delete/pkg_delete | |
51 | PKG_INFO_CMD= ${WRKSRC}/info/pkg_info | 58 | PKG_INFO_CMD= ${WRKSRC}/info/pkg_info | |
59 | .endif | |||
52 | 60 | |||
53 | CPPFLAGS+= -D_LARGEFILE_SOURCE -D_LARGE_FILES | 61 | CPPFLAGS+= -D_LARGEFILE_SOURCE -D_LARGE_FILES | |
54 | CPPFLAGS+= -D_FILE_OFFSET_BITS=64 | 62 | CPPFLAGS+= -D_FILE_OFFSET_BITS=64 | |
55 | 63 | |||
56 | CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK} | 64 | CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK} | |
57 | 65 | |||
58 | MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH:Q} | 66 | MAKE_ENV+= MACHINE_ARCH=${MACHINE_ARCH:Q} | |
59 | MAKE_ENV+= OPSYS=${OPSYS:Q} | 67 | MAKE_ENV+= OPSYS=${OPSYS:Q} | |
60 | 68 | |||
61 | PKG_DBDIR?= /var/db/pkg | 69 | PKG_DBDIR?= /var/db/pkg | |
62 | EGDIR= ${PREFIX}/share/examples/pkg_install | 70 | EGDIR= ${PREFIX}/share/examples/pkg_install | |
63 | 71 | |||
64 | PLIST_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q} | 72 | PLIST_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q} |
@@ -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 | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | 16 | DUALCASE=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 | |||
586 | ac_default_prefix=/usr/local | 586 | ac_default_prefix=/usr/local | |
587 | ac_clean_files= | 587 | ac_clean_files= | |
588 | ac_config_libobj_dir=. | 588 | ac_config_libobj_dir=. | |
589 | LIBOBJS= | 589 | LIBOBJS= | |
590 | cross_compiling=no | 590 | cross_compiling=no | |
591 | subdirs= | 591 | subdirs= | |
592 | MFLAGS= | 592 | MFLAGS= | |
593 | MAKEFLAGS= | 593 | MAKEFLAGS= | |
594 | SHELL=${CONFIG_SHELL-/bin/sh} | 594 | SHELL=${CONFIG_SHELL-/bin/sh} | |
595 | 595 | |||
596 | # Identity of this package. | 596 | # Identity of this package. | |
597 | PACKAGE_NAME='pkg_install' | 597 | PACKAGE_NAME='pkg_install' | |
598 | PACKAGE_TARNAME='pkg_install' | 598 | PACKAGE_TARNAME='pkg_install' | |
599 | PACKAGE_VERSION='20080524' | 599 | PACKAGE_VERSION='20090201' | |
600 | PACKAGE_STRING='pkg_install 20080524' | 600 | PACKAGE_STRING='pkg_install 20090201' | |
601 | PACKAGE_BUGREPORT='joerg@NetBSD.org' | 601 | PACKAGE_BUGREPORT='joerg@NetBSD.org' | |
602 | 602 | |||
603 | ac_unique_file="lib/plist.c" | 603 | ac_unique_file="lib/plist.c" | |
604 | # Factoring default headers for most tests. | 604 | # Factoring default headers for most tests. | |
605 | ac_includes_default="\ | 605 | ac_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 | |||
640 | ac_subst_vars='SHELL | 640 | ac_subst_vars='LTLIBOBJS | |
641 | PATH_SEPARATOR | |||
642 | PACKAGE_NAME | |||
643 | PACKAGE_TARNAME | |||
644 | PACKAGE_VERSION | |||
645 | PACKAGE_STRING | |||
646 | PACKAGE_BUGREPORT | |||
647 | exec_prefix | |||
648 | prefix | |||
649 | program_transform_name | |||
650 | bindir | |||
651 | sbindir | |||
652 | libexecdir | |||
653 | datarootdir | |||
654 | datadir | |||
655 | sysconfdir | |||
656 | sharedstatedir | |||
657 | localstatedir | |||
658 | includedir | |||
659 | oldincludedir | |||
660 | docdir | |||
661 | infodir | |||
662 | htmldir | |||
663 | dvidir | |||
664 | pdfdir | |||
665 | psdir | |||
666 | libdir | |||
667 | localedir | |||
668 | mandir | |||
669 | DEFS | |||
670 | ECHO_C | |||
671 | ECHO_N | |||
672 | ECHO_T | |||
673 | LIBS | |||
674 | build_alias | |||
675 | host_alias | |||
676 | target_alias | |||
677 | build | |||
678 | build_cpu | |||
679 | build_vendor | |||
680 | build_os | |||
681 | host | |||
682 | host_cpu | |||
683 | host_vendor | |||
684 | host_os | |||
685 | CANONICAL_HOST | |||
686 | INCLUDES | |||
687 | SET_MAKE | |||
688 | CC | |||
689 | CFLAGS | |||
690 | LDFLAGS | |||
691 | CPPFLAGS | |||
692 | ac_ct_CC | |||
693 | EXEEXT | |||
694 | OBJEXT | |||
695 | INSTALL_PROGRAM | |||
696 | INSTALL_SCRIPT | |||
697 | INSTALL_DATA | |||
698 | LN_S | |||
699 | RANLIB | |||
700 | AR | |||
701 | CHMOD | |||
702 | CMP | |||
703 | CP | |||
704 | ENV | |||
705 | FIND | |||
706 | GREP | |||
707 | LN | |||
708 | MKDIR | |||
709 | RMDIR | |||
710 | RM | |||
711 | SED | |||
712 | SORT | |||
713 | TOUCH | |||
714 | AUTOCONF | |||
715 | AUTOHEADER | |||
716 | pkgdbdir | |||
717 | ssl_support | |||
718 | bootstrap | |||
719 | CPP | |||
720 | EGREP | |||
721 | LIBOBJS | 641 | LIBOBJS | |
722 | LTLIBOBJS' | 642 | EGREP | |
643 | CPP | |||
644 | bootstrap | |||
645 | ssl_support | |||
646 | pkgdbdir | |||
647 | AUTOHEADER | |||
648 | AUTOCONF | |||
649 | TOUCH | |||
650 | SORT | |||
651 | SED | |||
652 | RM | |||
653 | RMDIR | |||
654 | MKDIR | |||
655 | LN | |||
656 | GREP | |||
657 | FIND | |||
658 | ENV | |||
659 | CP | |||
660 | CMP | |||
661 | CHMOD | |||
662 | AR | |||
663 | RANLIB | |||
664 | LN_S | |||
665 | INSTALL_DATA | |||
666 | INSTALL_SCRIPT | |||
667 | INSTALL_PROGRAM | |||
668 | OBJEXT | |||
669 | EXEEXT | |||
670 | ac_ct_CC | |||
671 | CPPFLAGS | |||
672 | LDFLAGS | |||
673 | CFLAGS | |||
674 | CC | |||
675 | SET_MAKE | |||
676 | INCLUDES | |||
677 | CANONICAL_HOST | |||
678 | host_os | |||
679 | host_vendor | |||
680 | host_cpu | |||
681 | host | |||
682 | build_os | |||
683 | build_vendor | |||
684 | build_cpu | |||
685 | build | |||
686 | target_alias | |||
687 | host_alias | |||
688 | build_alias | |||
689 | LIBS | |||
690 | ECHO_T | |||
691 | ECHO_N | |||
692 | ECHO_C | |||
693 | DEFS | |||
694 | mandir | |||
695 | localedir | |||
696 | libdir | |||
697 | psdir | |||
698 | pdfdir | |||
699 | dvidir | |||
700 | htmldir | |||
701 | infodir | |||
702 | docdir | |||
703 | oldincludedir | |||
704 | includedir | |||
705 | localstatedir | |||
706 | sharedstatedir | |||
707 | sysconfdir | |||
708 | datadir | |||
709 | datarootdir | |||
710 | libexecdir | |||
711 | sbindir | |||
712 | bindir | |||
713 | program_transform_name | |||
714 | prefix | |||
715 | exec_prefix | |||
716 | PACKAGE_BUGREPORT | |||
717 | PACKAGE_STRING | |||
718 | PACKAGE_VERSION | |||
719 | PACKAGE_TARNAME | |||
720 | PACKAGE_NAME | |||
721 | PATH_SEPARATOR | |||
722 | SHELL' | |||
723 | ac_subst_files='' | 723 | ac_subst_files='' | |
724 | ac_user_opts=' | 724 | ac_user_opts=' | |
725 | enable_option_checking | 725 | enable_option_checking | |
726 | with_pkgdbdir | 726 | with_pkgdbdir | |
727 | with_ssl | 727 | with_ssl | |
728 | enable_bootstrap | 728 | enable_bootstrap | |
729 | ' | 729 | ' | |
730 | ac_precious_vars='build_alias | 730 | ac_precious_vars='build_alias | |
731 | host_alias | 731 | host_alias | |
732 | target_alias | 732 | target_alias | |
733 | CC | 733 | CC | |
734 | CFLAGS | 734 | CFLAGS | |
735 | LDFLAGS | 735 | LDFLAGS | |
@@ -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 | |
1150 | done | 1150 | done | |
1151 | 1151 | |||
1152 | if test -n "$ac_prev"; then | 1152 | if 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; }; } | |
1156 | fi | 1156 | fi | |
1157 | 1157 | |||
1158 | if test -n "$ac_unrecognized_opts"; then | 1158 | if 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 | |
1165 | fi | 1165 | fi | |
1166 | 1166 | |||
1167 | # Check all directory arguments for consistency. | 1167 | # Check all directory arguments for consistency. | |
1168 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | 1168 | for 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 | |
1172 | do | 1172 | do | |
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 | |
1205 | fi | 1205 | fi | |
1206 | 1206 | |||
1207 | ac_tool_prefix= | 1207 | ac_tool_prefix= | |
1208 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | 1208 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1209 | 1209 | |||
1210 | test "$silent" = yes && exec 6>/dev/null | 1210 | test "$silent" = yes && exec 6>/dev/null | |
1211 | 1211 | |||
1212 | 1212 | |||
1213 | ac_pwd=`pwd` && test -n "$ac_pwd" && | 1213 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1214 | ac_ls_di=`ls -di .` && | 1214 | ac_ls_di=`ls -di .` && | |
1215 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | 1215 | ac_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; }; } | |
1218 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | 1218 | test "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. | |
1224 | if test -z "$srcdir"; then | 1224 | if 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} | |
1282 | done | 1282 | done | |
1283 | 1283 | |||
1284 | # | 1284 | # | |
1285 | # Report the --help message. | 1285 | # Report the --help message. | |
1286 | # | 1286 | # | |
1287 | if test "$ac_init_help" = "long"; then | 1287 | if 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 | |||
1293 | Usage: $0 [OPTION]... [VAR=VALUE]... | 1293 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1294 | 1294 | |||
1295 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | 1295 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1296 | VAR=VALUE. See below for descriptions of some of the useful variables. | 1296 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1297 | 1297 | |||
1298 | Defaults for the options are specified in brackets. | 1298 | Defaults for the options are specified in brackets. | |
1299 | 1299 | |||
1300 | Configuration: | 1300 | Configuration: | |
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 | |||
1348 | System types: | 1348 | System 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 | |
1352 | fi | 1352 | fi | |
1353 | 1353 | |||
1354 | if test -n "$ac_init_help"; then | 1354 | if 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 | |||
1360 | Optional Features: | 1360 | Optional 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 | |||
1366 | Optional Packages: | 1366 | Optional 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 | |
1443 | fi | 1443 | fi | |
1444 | 1444 | |||
1445 | test -n "$ac_init_help" && exit $ac_status | 1445 | test -n "$ac_init_help" && exit $ac_status | |
1446 | if $ac_init_version; then | 1446 | if $ac_init_version; then | |
1447 | cat <<\_ACEOF | 1447 | cat <<\_ACEOF | |
1448 | pkg_install configure 20080524 | 1448 | pkg_install configure 20090201 | |
1449 | generated by GNU Autoconf 2.62 | 1449 | generated by GNU Autoconf 2.63 | |
1450 | 1450 | |||
1451 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | 1451 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1452 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 1452 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1453 | This configure script is free software; the Free Software Foundation | 1453 | This configure script is free software; the Free Software Foundation | |
1454 | gives unlimited permission to copy, distribute and modify it. | 1454 | gives unlimited permission to copy, distribute and modify it. | |
1455 | _ACEOF | 1455 | _ACEOF | |
1456 | exit | 1456 | exit | |
1457 | fi | 1457 | fi | |
1458 | cat >config.log <<_ACEOF | 1458 | cat >config.log <<_ACEOF | |
1459 | This file contains any messages produced by compilers while | 1459 | This file contains any messages produced by compilers while | |
1460 | running configure, to aid debugging if configure makes a mistake. | 1460 | running configure, to aid debugging if configure makes a mistake. | |
1461 | 1461 | |||
1462 | It was created by pkg_install $as_me 20080524, which was | 1462 | It was created by pkg_install $as_me 20090201, which was | |
1463 | generated by GNU Autoconf 2.62. Invocation command line was | 1463 | generated by GNU Autoconf 2.63. Invocation command line was | |
1464 | 1464 | |||
1465 | $ $0 $@ | 1465 | $ $0 $@ | |
1466 | 1466 | |||
1467 | _ACEOF | 1467 | _ACEOF | |
1468 | exec 5>>config.log | 1468 | exec 5>>config.log | |
1469 | { | 1469 | { | |
1470 | cat <<_ASUNAME | 1470 | cat <<_ASUNAME | |
1471 | ## --------- ## | 1471 | ## --------- ## | |
1472 | ## Platform. ## | 1472 | ## Platform. ## | |
1473 | ## --------- ## | 1473 | ## --------- ## | |
1474 | 1474 | |||
1475 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | 1475 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1476 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | 1476 | uname -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 | |
1788 | done | 1788 | done | |
1789 | if $ac_cache_corrupted; then | 1789 | if $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; }; } | |
1795 | fi | 1797 | fi | |
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 | |||
2056 | if test -n "$ac_ct_CC"; then | 2058 | if 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; } | |
2059 | else | 2061 | else | |
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; } | |
2062 | fi | 2064 | fi | |
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 | |
2068 | yes:) | 2070 | yes:) | |
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 | |
2070 | whose 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;} | |
2071 | configuration 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 | |||
2073 | whose name does not start with the host triplet. If you think this | |||
2074 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |||
2075 | ac_tool_warned=yes ;; | 2073 | ac_tool_warned=yes ;; | |
2076 | esac | 2074 | esac | |
2077 | CC=$ac_ct_CC | 2075 | CC=$ac_ct_CC | |
2078 | fi | 2076 | fi | |
2079 | else | 2077 | else | |
2080 | CC="$ac_cv_prog_CC" | 2078 | CC="$ac_cv_prog_CC" | |
2081 | fi | 2079 | fi | |
2082 | 2080 | |||
2083 | if test -z "$CC"; then | 2081 | if 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. | |
2086 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | 2084 | set 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; } | |
2262 | fi | 2260 | fi | |
2263 | 2261 | |||
2264 | 2262 | |||
2265 | test -n "$ac_ct_CC" && break | 2263 | test -n "$ac_ct_CC" && break | |
2266 | done | 2264 | done | |
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 | |
2272 | yes:) | 2270 | yes:) | |
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 | |
2274 | whose 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;} | |
2275 | configuration 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 | |||
2277 | whose name does not start with the host triplet. If you think this | |||
2278 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |||
2279 | ac_tool_warned=yes ;; | 2273 | ac_tool_warned=yes ;; | |
2280 | esac | 2274 | esac | |
2281 | CC=$ac_ct_CC | 2275 | CC=$ac_ct_CC | |
2282 | fi | 2276 | fi | |
2283 | fi | 2277 | fi | |
2284 | 2278 | |||
2285 | fi | 2279 | fi | |
2286 | 2280 | |||
2287 | 2281 | |||
2288 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | 2282 | test -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 | |||
2289 | See \`config.log' for more details." >&5 | 2285 | See \`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 | |
2291 | See \`config.log' for more details." >&2;} | 2287 | See \`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 | |
2296 | set X $ac_compile | 2292 | set X $ac_compile | |
2297 | ac_compiler=$2 | 2293 | ac_compiler=$2 | |
2298 | { (ac_try="$ac_compiler --version >&5" | 2294 | { (ac_try="$ac_compiler --version >&5" | |
2299 | case "(($ac_try" in | 2295 | case "(($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;; | |
2302 | esac | 2298 | esac | |
2303 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 2299 | eval 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 | |||
2409 | done | 2405 | done | |
2410 | test "$ac_cv_exeext" = no && ac_cv_exeext= | 2406 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2411 | 2407 | |||
2412 | else | 2408 | else | |
2413 | ac_file='' | 2409 | ac_file='' | |
2414 | fi | 2410 | fi | |
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; } | |
2418 | if test -z "$ac_file"; then | 2414 | if test -z "$ac_file"; then | |
2419 | $as_echo "$as_me: failed program was:" >&5 | 2415 | $as_echo "$as_me: failed program was:" >&5 | |
2420 | sed 's/^/| /' conftest.$ac_ext >&5 | 2416 | sed '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 | |
2423 | See \`config.log' for more details." >&5 | 2421 | See \`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 | |
2425 | See \`config.log' for more details." >&2;} | 2423 | See \`config.log' for more details." >&2;} | |
2426 | { (exit 77); exit 77; }; } | 2424 | { (exit 77); exit 77; }; }; } | |
2427 | fi | 2425 | fi | |
2428 | 2426 | |||
2429 | ac_exeext=$ac_cv_exeext | 2427 | ac_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. | |
2437 | if test "$cross_compiling" != yes; then | 2435 | if 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;; | |
2442 | esac | 2440 | esac | |
2443 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | 2441 | eval 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. | |||
2455 | If you meant to cross compile, use \`--host'. | 2455 | If you meant to cross compile, use \`--host'. | |
2456 | See \`config.log' for more details." >&5 | 2456 | See \`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. | |
2458 | If you meant to cross compile, use \`--host'. | 2458 | If you meant to cross compile, use \`--host'. | |
2459 | See \`config.log' for more details." >&2;} | 2459 | See \`config.log' for more details." >&2;} | |
2460 | { (exit 1); exit 1; }; } | 2460 | { (exit 1); exit 1; }; }; } | |
2461 | fi | 2461 | fi | |
2462 | fi | 2462 | fi | |
2463 | fi | 2463 | fi | |
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 | |||
2467 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | 2467 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2468 | ac_clean_files=$ac_clean_files_save | 2468 | ac_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'. | |
2493 | for ac_file in conftest.exe conftest conftest.*; do | 2493 | for 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 | |
2501 | done | 2501 | done | |
2502 | else | 2502 | else | |
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 | |||
2504 | See \`config.log' for more details." >&5 | 2506 | See \`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 | |
2506 | See \`config.log' for more details." >&2;} | 2508 | See \`config.log' for more details." >&2;} | |
2507 | { (exit 1); exit 1; }; } | 2509 | { (exit 1); exit 1; }; }; } | |
2508 | fi | 2510 | fi | |
2509 | 2511 | |||
2510 | rm -f conftest$ac_cv_exeext | 2512 | rm -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 | |||
2514 | rm -f conftest.$ac_ext | 2516 | rm -f conftest.$ac_ext | |
2515 | EXEEXT=$ac_cv_exeext | 2517 | EXEEXT=$ac_cv_exeext | |
2516 | ac_exeext=$EXEEXT | 2518 | ac_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; } | |
2519 | if test "${ac_cv_objext+set}" = set; then | 2521 | if 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 | |
2556 | done | 2558 | done | |
2557 | else | 2559 | else | |
2558 | $as_echo "$as_me: failed program was:" >&5 | 2560 | $as_echo "$as_me: failed program was:" >&5 | |
2559 | sed 's/^/| /' conftest.$ac_ext >&5 | 2561 | sed '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 | |
2562 | See \`config.log' for more details." >&5 | 2566 | See \`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 | |
2564 | See \`config.log' for more details." >&2;} | 2568 | See \`config.log' for more details." >&2;} | |
2565 | { (exit 1); exit 1; }; } | 2569 | { (exit 1); exit 1; }; }; } | |
2566 | fi | 2570 | fi | |
2567 | 2571 | |||
2568 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | 2572 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2569 | fi | 2573 | fi | |
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; } | |
2572 | OBJEXT=$ac_cv_objext | 2576 | OBJEXT=$ac_cv_objext | |
2573 | ac_objext=$OBJEXT | 2577 | ac_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; } | |
2576 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | 2580 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2577 | $as_echo_n "(cached) " >&6 | 2581 | $as_echo_n "(cached) " >&6 | |
2578 | else | 2582 | else | |
@@ -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 | |||
3086 | if test -n "$ac_ct_RANLIB"; then | 3090 | if 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; } | |
3089 | else | 3093 | else | |
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; } | |
3092 | fi | 3096 | fi | |
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 | |
3098 | yes:) | 3102 | yes:) | |
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 | |
3100 | whose 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;} | |
3101 | configuration 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 | |||
3103 | whose name does not start with the host triplet. If you think this | |||
3104 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |||
3105 | ac_tool_warned=yes ;; | 3105 | ac_tool_warned=yes ;; | |
3106 | esac | 3106 | esac | |
3107 | RANLIB=$ac_ct_RANLIB | 3107 | RANLIB=$ac_ct_RANLIB | |
3108 | fi | 3108 | fi | |
3109 | else | 3109 | else | |
3110 | RANLIB="$ac_cv_prog_RANLIB" | 3110 | RANLIB="$ac_cv_prog_RANLIB" | |
3111 | fi | 3111 | fi | |
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. | |
3114 | set dummy ar; ac_word=$2 | 3114 | set 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; } | |
3117 | if test "${ac_cv_prog_AR+set}" = set; then | 3117 | if 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 | |
3761 | sed 's/^/| /' conftest.$ac_ext >&5 | 3761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3762 | 3762 | |||
3763 | ac_cv_lib_db___db185_open=no | 3763 | ac_cv_lib_db___db185_open=no | |
3764 | fi | 3764 | fi | |
3765 | 3765 | |||
3766 | rm -rf conftest.dSYM | 3766 | rm -rf conftest.dSYM | |
3767 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | 3767 | rm -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 | |
3769 | LIBS=$ac_check_lib_save_LIBS | 3769 | LIBS=$ac_check_lib_save_LIBS | |
3770 | fi | 3770 | fi | |
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; } | |
3773 | if test $ac_cv_lib_db___db185_open = yes; then | 3773 | if 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 | |||
3780 | else | 3780 | else | |
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; } | |
3783 | if test "${ac_cv_search_dbopen+set}" = set; then | 3783 | if test "${ac_cv_search_dbopen+set}" = set; then | |
3784 | $as_echo_n "(cached) " >&6 | 3784 | $as_echo_n "(cached) " >&6 | |
3785 | else | 3785 | else | |
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. | |
4168 | ac_preproc_ok=: | 4168 | ac_preproc_ok=: | |
4169 | break | 4169 | break | |
4170 | fi | 4170 | fi | |
4171 | 4171 | |||
4172 | rm -f conftest.err conftest.$ac_ext | 4172 | rm -f conftest.err conftest.$ac_ext | |
4173 | 4173 | |||
4174 | done | 4174 | done | |
4175 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | 4175 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4176 | rm -f conftest.err conftest.$ac_ext | 4176 | rm -f conftest.err conftest.$ac_ext | |
4177 | if $ac_preproc_ok; then | 4177 | if $ac_preproc_ok; then | |
4178 | : | 4178 | : | |
4179 | else | 4179 | else | |
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 | |||
4181 | See \`config.log' for more details." >&5 | 4183 | See \`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 | |
4183 | See \`config.log' for more details." >&2;} | 4185 | See \`config.log' for more details." >&2;} | |
4184 | { (exit 1); exit 1; }; } | 4186 | { (exit 1); exit 1; }; }; } | |
4185 | fi | 4187 | fi | |
4186 | 4188 | |||
4187 | ac_ext=c | 4189 | ac_ext=c | |
4188 | ac_cpp='$CPP $CPPFLAGS' | 4190 | ac_cpp='$CPP $CPPFLAGS' | |
4189 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | 4191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4190 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | 4192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4191 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | 4193 | ac_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; } | |
4196 | if test "${ac_cv_path_GREP+set}" = set; then | 4198 | if 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 | |||
4554 | else | 4556 | else | |
4555 | $as_echo "$as_me: failed program was:" >&5 | 4557 | $as_echo "$as_me: failed program was:" >&5 | |
4556 | sed 's/^/| /' conftest.$ac_ext >&5 | 4558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4557 | 4559 | |||
4558 | eval "$as_ac_Header=no" | 4560 | eval "$as_ac_Header=no" | |
4559 | fi | 4561 | fi | |
4560 | 4562 | |||
4561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 4563 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4562 | fi | 4564 | fi | |
4563 | ac_res=`eval 'as_val=${'$as_ac_Header'} | 4565 | ac_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; } | |
4567 | if test `eval 'as_val=${'$as_ac_Header'} | 4569 | as_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 | |||
4573 | fi | 4576 | fi | |
4574 | 4577 | |||
4575 | done | 4578 | done | |
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; } | |
4733 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 4736 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4734 | $as_echo_n "(cached) " >&6 | 4737 | $as_echo_n "(cached) " >&6 | |
4735 | else | 4738 | else | |
4736 | eval "$as_ac_Header=\$ac_header_preproc" | 4739 | eval "$as_ac_Header=\$ac_header_preproc" | |
4737 | fi | 4740 | fi | |
4738 | ac_res=`eval 'as_val=${'$as_ac_Header'} | 4741 | ac_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 | |||
4743 | fi | 4746 | fi | |
4744 | if test `eval 'as_val=${'$as_ac_Header'} | 4747 | as_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 | |||
4750 | fi | 4754 | fi | |
4751 | 4755 | |||
4752 | done | 4756 | done | |
4753 | 4757 | |||
4754 | 4758 | |||
4755 | 4759 | |||
4756 | 4760 | |||
4757 | for ac_header in db1/db.h db_185.h db.h | 4761 | for ac_header in db1/db.h db_185.h db.h | |
4758 | do | 4762 | do | |
@@ -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; } | |
4885 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 4889 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4886 | $as_echo_n "(cached) " >&6 | 4890 | $as_echo_n "(cached) " >&6 | |
4887 | else | 4891 | else | |
4888 | eval "$as_ac_Header=\$ac_header_preproc" | 4892 | eval "$as_ac_Header=\$ac_header_preproc" | |
4889 | fi | 4893 | fi | |
4890 | ac_res=`eval 'as_val=${'$as_ac_Header'} | 4894 | ac_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 | |||
4895 | fi | 4899 | fi | |
4896 | if test `eval 'as_val=${'$as_ac_Header'} | 4900 | as_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 | |||
4902 | fi | 4907 | fi | |
4903 | 4908 | |||
4904 | done | 4909 | done | |
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; } | |
5052 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | 5057 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
5053 | $as_echo_n "(cached) " >&6 | 5058 | $as_echo_n "(cached) " >&6 | |
5054 | else | 5059 | else | |
5055 | eval "$as_ac_Header=\$ac_header_preproc" | 5060 | eval "$as_ac_Header=\$ac_header_preproc" | |
5056 | fi | 5061 | fi | |
5057 | ac_res=`eval 'as_val=${'$as_ac_Header'} | 5062 | ac_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 | |||
5062 | fi | 5067 | fi | |
5063 | if test `eval 'as_val=${'$as_ac_Header'} | 5068 | as_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 | |||
5069 | fi | 5075 | fi | |
5070 | 5076 | |||
5071 | done | 5077 | done | |
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 | |||
5157 | sed 's/^/| /' conftest.$ac_ext >&5 | 5163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5158 | 5164 | |||
5159 | eval "$as_ac_var=no" | 5165 | eval "$as_ac_var=no" | |
5160 | fi | 5166 | fi | |
5161 | 5167 | |||
5162 | rm -rf conftest.dSYM | 5168 | rm -rf conftest.dSYM | |
5163 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | 5169 | rm -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 | |
5165 | fi | 5171 | fi | |
5166 | ac_res=`eval 'as_val=${'$as_ac_var'} | 5172 | ac_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; } | |
5170 | if test `eval 'as_val=${'$as_ac_var'} | 5176 | as_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 | |||
5176 | fi | 5183 | fi | |
5177 | done | 5184 | done | |
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; } | |
5182 | if test "${ac_cv_search_gethostbyname+set}" = set; then | 5189 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
5183 | $as_echo_n "(cached) " >&6 | 5190 | $as_echo_n "(cached) " >&6 | |
5184 | else | 5191 | else | |
@@ -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 | |
5406 | sed 's/^/| /' conftest.$ac_ext >&5 | 5413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5407 | 5414 | |||
5408 | ac_cv_lib_socket_socket=no | 5415 | ac_cv_lib_socket_socket=no | |
5409 | fi | 5416 | fi | |
5410 | 5417 | |||
5411 | rm -rf conftest.dSYM | 5418 | rm -rf conftest.dSYM | |
5412 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | 5419 | rm -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 | |
5414 | LIBS=$ac_check_lib_save_LIBS | 5421 | LIBS=$ac_check_lib_save_LIBS | |
5415 | fi | 5422 | fi | |
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; } | |
5418 | if test $ac_cv_lib_socket_socket = yes; then | 5425 | if test "x$ac_cv_lib_socket_socket" = x""yes; then | |
5419 | LIBS="-lsocket -lnsl $LIBS" | 5426 | LIBS="-lsocket -lnsl $LIBS" | |
5420 | fi | 5427 | fi | |
5421 | 5428 | |||
5422 | fi | 5429 | fi | |
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; } | |
5428 | if test "${ac_cv_c_uint8_t+set}" = set; then | 5435 | if test "${ac_cv_c_uint8_t+set}" = set; then | |
5429 | $as_echo_n "(cached) " >&6 | 5436 | $as_echo_n "(cached) " >&6 | |
5430 | else | 5437 | else | |
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 | |
6079 | else | 6086 | else | |
6080 | $as_echo "$as_me: failed program was:" >&5 | 6087 | $as_echo "$as_me: failed program was:" >&5 | |
6081 | sed 's/^/| /' conftest.$ac_ext >&5 | 6088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6082 | 6089 | |||
6083 | ac_lo=`expr '(' $ac_mid ')' + 1` | 6090 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6084 | fi | 6091 | fi | |
6085 | 6092 | |||
6086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6087 | done | 6094 | done | |
6088 | case $ac_lo in | 6095 | case $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) | |||
6092 | See \`config.log' for more details." >&5 | 6101 | See \`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) | |
6094 | See \`config.log' for more details." >&2;} | 6103 | See \`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 ;; | |
6099 | esac | 6108 | esac | |
6100 | else | 6109 | else | |
6101 | cat >conftest.$ac_ext <<_ACEOF | 6110 | cat >conftest.$ac_ext <<_ACEOF | |
6102 | /* confdefs.h. */ | 6111 | /* confdefs.h. */ | |
6103 | _ACEOF | 6112 | _ACEOF | |
6104 | cat confdefs.h >>conftest.$ac_ext | 6113 | cat confdefs.h >>conftest.$ac_ext | |
6105 | cat >>conftest.$ac_ext <<_ACEOF | 6114 | cat >>conftest.$ac_ext <<_ACEOF | |
6106 | /* end confdefs.h. */ | 6115 | /* end confdefs.h. */ | |
6107 | $ac_includes_default | 6116 | $ac_includes_default | |
6108 | static long int longval () { return (long int) (sizeof (int)); } | 6117 | static 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` | |
6164 | else | 6173 | else | |
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 | |
6167 | sed 's/^/| /' conftest.$ac_ext >&5 | 6176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6168 | 6177 | |||
6169 | ( exit $ac_status ) | 6178 | ( exit $ac_status ) | |
6170 | if test "$ac_cv_type_int" = yes; then | 6179 | if 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) | |||
6172 | See \`config.log' for more details." >&5 | 6183 | See \`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) | |
6174 | See \`config.log' for more details." >&2;} | 6185 | See \`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 | |
6179 | fi | 6190 | fi | |
6180 | rm -rf conftest.dSYM | 6191 | rm -rf conftest.dSYM | |
6181 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 6192 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6182 | fi | 6193 | fi | |
6183 | rm -f conftest.val | 6194 | rm -f conftest.val | |
6184 | fi | 6195 | fi | |
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 | |
6434 | else | 6445 | else | |
6435 | $as_echo "$as_me: failed program was:" >&5 | 6446 | $as_echo "$as_me: failed program was:" >&5 | |
6436 | sed 's/^/| /' conftest.$ac_ext >&5 | 6447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6437 | 6448 | |||
6438 | ac_lo=`expr '(' $ac_mid ')' + 1` | 6449 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6439 | fi | 6450 | fi | |
6440 | 6451 | |||
6441 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6442 | done | 6453 | done | |
6443 | case $ac_lo in | 6454 | case $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) | |||
6447 | See \`config.log' for more details." >&5 | 6460 | See \`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) | |
6449 | See \`config.log' for more details." >&2;} | 6462 | See \`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 ;; | |
6454 | esac | 6467 | esac | |
6455 | else | 6468 | else | |
6456 | cat >conftest.$ac_ext <<_ACEOF | 6469 | cat >conftest.$ac_ext <<_ACEOF | |
6457 | /* confdefs.h. */ | 6470 | /* confdefs.h. */ | |
6458 | _ACEOF | 6471 | _ACEOF | |
6459 | cat confdefs.h >>conftest.$ac_ext | 6472 | cat confdefs.h >>conftest.$ac_ext | |
6460 | cat >>conftest.$ac_ext <<_ACEOF | 6473 | cat >>conftest.$ac_ext <<_ACEOF | |
6461 | /* end confdefs.h. */ | 6474 | /* end confdefs.h. */ | |
6462 | $ac_includes_default | 6475 | $ac_includes_default | |
6463 | static long int longval () { return (long int) (sizeof (long)); } | 6476 | static 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` | |
6519 | else | 6532 | else | |
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 | |
6522 | sed 's/^/| /' conftest.$ac_ext >&5 | 6535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6523 | 6536 | |||
6524 | ( exit $ac_status ) | 6537 | ( exit $ac_status ) | |
6525 | if test "$ac_cv_type_long" = yes; then | 6538 | if 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) | |||
6527 | See \`config.log' for more details." >&5 | 6542 | See \`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) | |
6529 | See \`config.log' for more details." >&2;} | 6544 | See \`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 | |
6534 | fi | 6549 | fi | |
6535 | rm -rf conftest.dSYM | 6550 | rm -rf conftest.dSYM | |
6536 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 6551 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6537 | fi | 6552 | fi | |
6538 | rm -f conftest.val | 6553 | rm -f conftest.val | |
6539 | fi | 6554 | fi | |
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 | |
6789 | else | 6804 | else | |
6790 | $as_echo "$as_me: failed program was:" >&5 | 6805 | $as_echo "$as_me: failed program was:" >&5 | |
6791 | sed 's/^/| /' conftest.$ac_ext >&5 | 6806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6792 | 6807 | |||
6793 | ac_lo=`expr '(' $ac_mid ')' + 1` | 6808 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
6794 | fi | 6809 | fi | |
6795 | 6810 | |||
6796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | 6811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6797 | done | 6812 | done | |
6798 | case $ac_lo in | 6813 | case $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) | |||
6802 | See \`config.log' for more details." >&5 | 6819 | See \`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) | |
6804 | See \`config.log' for more details." >&2;} | 6821 | See \`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 ;; | |
6809 | esac | 6826 | esac | |
6810 | else | 6827 | else | |
6811 | cat >conftest.$ac_ext <<_ACEOF | 6828 | cat >conftest.$ac_ext <<_ACEOF | |
6812 | /* confdefs.h. */ | 6829 | /* confdefs.h. */ | |
6813 | _ACEOF | 6830 | _ACEOF | |
6814 | cat confdefs.h >>conftest.$ac_ext | 6831 | cat confdefs.h >>conftest.$ac_ext | |
6815 | cat >>conftest.$ac_ext <<_ACEOF | 6832 | cat >>conftest.$ac_ext <<_ACEOF | |
6816 | /* end confdefs.h. */ | 6833 | /* end confdefs.h. */ | |
6817 | $ac_includes_default | 6834 | $ac_includes_default | |
6818 | static long int longval () { return (long int) (sizeof (long long)); } | 6835 | static 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` | |
6874 | else | 6891 | else | |
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 | |
6877 | sed 's/^/| /' conftest.$ac_ext >&5 | 6894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6878 | 6895 | |||
6879 | ( exit $ac_status ) | 6896 | ( exit $ac_status ) | |
6880 | if test "$ac_cv_type_long_long" = yes; then | 6897 | if 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) | |||
6882 | See \`config.log' for more details." >&5 | 6901 | See \`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) | |
6884 | See \`config.log' for more details." >&2;} | 6903 | See \`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 | |
6889 | fi | 6908 | fi | |
6890 | rm -rf conftest.dSYM | 6909 | rm -rf conftest.dSYM | |
6891 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | 6910 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6892 | fi | 6911 | fi | |
6893 | rm -f conftest.val | 6912 | rm -f conftest.val | |
6894 | fi | 6913 | fi | |
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. | |
7328 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | 7347 | as_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. | |
7331 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | 7350 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7332 | 7351 | |||
7333 | 7352 | |||
7334 | exec 6>&1 | 7353 | exec 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. | |
7339 | ac_log=" | 7358 | ac_log=" | |
7340 | This file was extended by pkg_install $as_me 20080524, which was | 7359 | This file was extended by pkg_install $as_me 20090201, which was | |
7341 | generated by GNU Autoconf 2.62. Invocation command line was | 7360 | generated 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 | |||
7349 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | 7368 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
7350 | " | 7369 | " | |
7351 | 7370 | |||
7352 | _ACEOF | 7371 | _ACEOF | |
7353 | 7372 | |||
7373 | case $ac_config_files in *" | |||
7374 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |||
7375 | esac | |||
7376 | ||||
7377 | case $ac_config_headers in *" | |||
7378 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |||
7379 | esac | |||
7380 | ||||
7381 | ||||
7354 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 7382 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7355 | # Files that config.status was made for. | 7383 | # Files that config.status was made for. | |
7356 | config_files="$ac_config_files" | 7384 | config_files="$ac_config_files" | |
7357 | config_headers="$ac_config_headers" | 7385 | config_headers="$ac_config_headers" | |
7358 | 7386 | |||
7359 | _ACEOF | 7387 | _ACEOF | |
7360 | 7388 | |||
7361 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 7389 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7362 | ac_cs_usage="\ | 7390 | ac_cs_usage="\ | |
7363 | \`$as_me' instantiates files from templates according to the | 7391 | \`$as_me' instantiates files from templates according to the | |
7364 | current configuration. | 7392 | current configuration. | |
7365 | 7393 | |||
7366 | Usage: $0 [OPTIONS] [FILE]... | 7394 | Usage: $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 | |||
7378 | Configuration files: | 7407 | Configuration files: | |
7379 | $config_files | 7408 | $config_files | |
7380 | 7409 | |||
7381 | Configuration headers: | 7410 | Configuration headers: | |
7382 | $config_headers | 7411 | $config_headers | |
7383 | 7412 | |||
7384 | Report bugs to <bug-autoconf@gnu.org>." | 7413 | Report bugs to <bug-autoconf@gnu.org>." | |
7385 | 7414 | |||
7386 | _ACEOF | 7415 | _ACEOF | |
7387 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 7416 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7388 | ac_cs_version="\\ | 7417 | ac_cs_version="\\ | |
7389 | pkg_install config.status 20080524 | 7418 | pkg_install config.status 20090201 | |
7390 | configured by $0, generated by GNU Autoconf 2.62, | 7419 | configured 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 | |||
7393 | Copyright (C) 2008 Free Software Foundation, Inc. | 7422 | Copyright (C) 2008 Free Software Foundation, Inc. | |
7394 | This config.status script is free software; the Free Software Foundation | 7423 | This config.status script is free software; the Free Software Foundation | |
7395 | gives unlimited permission to copy, distribute and modify it." | 7424 | gives unlimited permission to copy, distribute and modify it." | |
7396 | 7425 | |||
7397 | ac_pwd='$ac_pwd' | 7426 | ac_pwd='$ac_pwd' | |
7398 | srcdir='$srcdir' | 7427 | srcdir='$srcdir' | |
7399 | INSTALL='$INSTALL' | 7428 | INSTALL='$INSTALL' | |
7400 | test -n "\$AWK" || AWK=awk | 7429 | test -n "\$AWK" || AWK=awk | |
7401 | _ACEOF | 7430 | _ACEOF | |
7402 | 7431 | |||
7403 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 7432 | cat >>$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; }; } | |
7586 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | 7615 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
7587 | ac_delim='%!_!# ' | 7616 | ac_delim='%!_!# ' | |
7588 | for ac_last_try in false false false false false :; do | 7617 | for 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 | |
7603 | done | 7633 | done | |
7604 | rm -f conf$$subs.sh | 7634 | rm -f conf$$subs.sh | |
7605 | 7635 | |||
7606 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | 7636 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7607 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | 7637 | cat >>"\$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 | |
7817 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | 7847 | cat >>$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; }; } | |
7821 | fi # test -n "$CONFIG_HEADERS" | 7851 | fi # test -n "$CONFIG_HEADERS" | |
7822 | 7852 | |||
7823 | 7853 | |||
7824 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | 7854 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
7825 | shift | 7855 | shift | |
7826 | for ac_tag | 7856 | for ac_tag | |
7827 | do | 7857 | do | |
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 | |||
8144 | if test "$no_create" != yes; then | 8174 | if 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; } | |
8155 | fi | 8185 | fi | |
8156 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | 8186 | if 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;} | |
8159 | fi | 8189 | fi | |
8160 | 8190 |
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | dnl Process this file with autoconf to produce a configure script. | 1 | dnl Process this file with autoconf to produce a configure script. | |
2 | AC_PREREQ(2.52) | 2 | AC_PREREQ(2.52) | |
3 | AC_INIT([pkg_install], [20080524], [joerg@NetBSD.org]) | 3 | AC_INIT([pkg_install], [20090201], [joerg@NetBSD.org]) | |
4 | AC_CONFIG_SRCDIR([lib/plist.c]) | 4 | AC_CONFIG_SRCDIR([lib/plist.c]) | |
5 | AC_CONFIG_HEADER(lib/config.h) | 5 | AC_CONFIG_HEADER(lib/config.h) | |
6 | 6 | |||
7 | AC_CANONICAL_HOST | 7 | AC_CANONICAL_HOST | |
8 | CANONICAL_HOST=$host | 8 | CANONICAL_HOST=$host | |
9 | AC_SUBST(CANONICAL_HOST) | 9 | AC_SUBST(CANONICAL_HOST) | |
10 | AC_SUBST(INCLUDES) | 10 | AC_SUBST(INCLUDES) | |
11 | 11 | |||
12 | # Checks for programs. | 12 | # Checks for programs. | |
13 | AC_PROG_MAKE_SET | 13 | AC_PROG_MAKE_SET | |
14 | AC_PROG_CC | 14 | AC_PROG_CC | |
15 | AC_PROG_INSTALL | 15 | AC_PROG_INSTALL | |
16 | AC_PROG_LN_S | 16 | AC_PROG_LN_S |
@@ -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 | |||
12 | static 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 |
@@ -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 | |||
1172 | static int | 1172 | static int | |
1173 | check_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 | ||||
1199 | static int | |||
1200 | check_vulnerable(struct pkg_task *pkg) | 1173 | check_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 | */ | |
1251 | static int | 1218 | static int | |
1252 | pkg_do(const char *pkgpath, int mark_automatic) | 1219 | pkg_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; |
@@ -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 | |||
119 | static int | 117 | static int | |
120 | check_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 | ||||
146 | static int | |||
147 | check_exact_pkg(const char *pkg) | 118 | check_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 | |||
182 | static int | 124 | static int | |
183 | check_batch_exact_pkgs(const char *fname) | 125 | check_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 { |
@@ -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. |
@@ -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 |
@@ -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 | |||
12 | static 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. |
@@ -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 | |||
12 | static 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 |
@@ -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 | |||
12 | static 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. |
@@ -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 | |||
12 | static 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. |
@@ -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 | |||
12 | static 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 |
@@ -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 | |||
12 | static 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. |
@@ -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 | |||
12 | static 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 |
@@ -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 | |||
18 | static 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 |
@@ -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 | |||
12 | static 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. |
@@ -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 |
@@ -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 | |||
66 | static int vfcexec(const char *, int, const char *, va_list); | 64 | static 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 | */ | |
73 | int | 71 | int | |
74 | pfcexec(const char *path, const char *file, const char **argv) | 72 | pfcexec(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; |
@@ -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 | |||
18 | static 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. |
@@ -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 | |||
12 | static 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. |
@@ -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 */ | |
359 | lpkg_t *alloc_lpkg(const char *); | 359 | lpkg_t *alloc_lpkg(const char *); | |
360 | lpkg_t *find_on_queue(lpkg_head_t *, const char *); | 360 | lpkg_t *find_on_queue(lpkg_head_t *, const char *); | |
361 | void free_lpkg(lpkg_t *); | 361 | void 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) */ | |
364 | int decompress_buffer(const char *, size_t, char **, size_t *); | 364 | int 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 */ | |
367 | struct pkg_vulnerabilities *parse_pkg_vulnerabilities(const char *, size_t, int); | 367 | struct pkg_vulnerabilities *parse_pkg_vulnerabilities(const char *, size_t, int); | |
368 | /* Read pkg_vulnerabilities from file */ | 368 | /* Read pkg_vulnerabilities from file */ | |
369 | struct pkg_vulnerabilities *read_pkg_vulnerabilities(const char *, int, int); | 369 | struct pkg_vulnerabilities *read_pkg_vulnerabilities(const char *, int, int); | |
370 | void free_pkg_vulnerabilities(struct pkg_vulnerabilities *); | 370 | void free_pkg_vulnerabilities(struct pkg_vulnerabilities *); | |
371 | int audit_package(struct pkg_vulnerabilities *, const char *, const char *, | |||
372 | int, int); | |||
371 | 373 | |||
372 | /* Parse configuration file */ | 374 | /* Parse configuration file */ | |
373 | void pkg_install_config(void); | 375 | void pkg_install_config(void); | |
374 | /* Print configuration variable */ | 376 | /* Print configuration variable */ | |
375 | void pkg_install_show_variable(const char *); | 377 | void 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 */ | |
379 | int pkg_verify_signature(struct archive **, struct archive_entry **, char **, | 381 | int pkg_verify_signature(struct archive **, struct archive_entry **, char **, | |
380 | void **); | 382 | void **); | |
381 | int pkg_full_signature_check(struct archive *); | 383 | int pkg_full_signature_check(struct archive *); | |
382 | void pkg_free_signature(void *); | 384 | void pkg_free_signature(void *); | |
383 | void pkg_sign_x509(const char *, const char *, const char *, const char *); | 385 | void pkg_sign_x509(const char *, const char *, const char *, const char *); |
@@ -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 | |||
12 | static 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. |
@@ -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 | |||
73 | const char tnf_vulnerability_base[] = "ftp://ftp.NetBSD.org/pub/NetBSD/packages/vulns"; | 71 | const char tnf_vulnerability_base[] = "ftp://ftp.NetBSD.org/pub/NetBSD/packages/vulns"; | |
74 | 72 | |||
75 | static struct config_variable { | 73 | static 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 | |||
98 | void | 96 | void | |
99 | pkg_install_config(void) | 97 | pkg_install_config(void) | |
100 | { | 98 | { | |
101 | char *value; | 99 | char *value; | |
102 | struct config_variable *var; | 100 | struct config_variable *var; | |
103 | 101 |
@@ -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 | |||
46 | struct pathhead PkgPath = TAILQ_HEAD_INITIALIZER(PkgPath); | 44 | struct pathhead PkgPath = TAILQ_HEAD_INITIALIZER(PkgPath); | |
47 | static struct path *prepend = 0; | 45 | static struct path *prepend = 0; | |
48 | 46 | |||
49 | static struct path *path_new_entry(const char *cp, size_t len); | 47 | static struct path *path_new_entry(const char *cp, size_t len); | |
50 | 48 | |||
51 | /* | 49 | /* |
@@ -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. |
@@ -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 | |||
12 | static 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. |
@@ -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 | |||
12 | static 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. |
@@ -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 |
@@ -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 | * |
@@ -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_ */ |
@@ -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 | ||||
520 | static int | |||
521 | check_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 | ||||
547 | int | |||
548 | audit_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 | } |