diff options
| author | Sam Varshavchik | 2013-08-19 16:39:41 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2013-08-25 14:43:51 -0400 |
| commit | 9c45d9ad13fdf439d44d7443ae75da15ea0223ed (patch) | |
| tree | 7a81a04cb51efb078ee350859a64be2ebc6b8813 /rootcerts | |
| parent | a9520698b770168d1f33d6301463bb70a19655ec (diff) | |
| download | courier-libs-9c45d9ad13fdf439d44d7443ae75da15ea0223ed.tar.bz2 | |
Initial checkin
Imported from subversion report, converted to git. Updated all paths in
scripts and makefiles, reflecting the new directory hierarchy.
Diffstat (limited to 'rootcerts')
| -rw-r--r-- | rootcerts/.gitignore | 1 | ||||
| -rw-r--r-- | rootcerts/Makefile.am | 5 | ||||
| -rw-r--r-- | rootcerts/configure.in | 53 | ||||
| -rw-r--r-- | rootcerts/rootcertsdir.cnf.in | 1 |
4 files changed, 60 insertions, 0 deletions
diff --git a/rootcerts/.gitignore b/rootcerts/.gitignore new file mode 100644 index 0000000..c787631 --- /dev/null +++ b/rootcerts/.gitignore @@ -0,0 +1 @@ +/rootcertsdir.cnf diff --git a/rootcerts/Makefile.am b/rootcerts/Makefile.am new file mode 100644 index 0000000..db19a65 --- /dev/null +++ b/rootcerts/Makefile.am @@ -0,0 +1,5 @@ +# +# Copyright 2008 Double Precision, Inc. See COPYING for +# distribution information. + +DISTCLEANFILES=rootcertsdir.cnf diff --git a/rootcerts/configure.in b/rootcerts/configure.in new file mode 100644 index 0000000..c458820 --- /dev/null +++ b/rootcerts/configure.in @@ -0,0 +1,53 @@ +dnl +dnl Copyright 2001-2008 Double Precision, Inc. See COPYING for +dnl distribution information. + +AC_INIT(rootcerts, 0.50, [courier-users@lists.sourceforge.net]) + +>confdefs.h # Kill PACKAGE_ macros + +AC_CONFIG_SRCDIR(rootcertsdir.cnf.in) +AC_CONFIG_AUX_DIR(../..) +AM_INIT_AUTOMAKE([foreign no-define]) +LPATH="$PATH:/usr/local/bin" + +AC_PROG_INSTALL +AC_PROG_LN_S + +test "x$prefix" = xNONE && prefix=$ac_default_prefix +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' +eval "datarootdir=$datarootdir" +eval "datadir=$datadir" + +certdb="" + +AC_ARG_WITH(certdb, [ --with-certdb=/pathname Use external root certificate database in pathname], [ + case $withval in + /*) + certdb="$withval" + ;; + *) + AC_MSG_ERROR(--with-certdb requires an absolute pathname) + ;; + esac +], [ + +for f in /etc/ssl/certs /etc/ssl/cert.pem /etc/pki/tls/cert.pem +do + if test -f $f -o -d $f + then + certdb=$f + fi +done + +if test "$certdb" = "" +then + certdb="/etc/ssl/cert.pem" + + AC_MSG_WARN([Cannot find known locations of CA certs, using $certdb]) +fi + ]) + +AC_SUBST(certdb) + +AC_OUTPUT(Makefile rootcertsdir.cnf) diff --git a/rootcerts/rootcertsdir.cnf.in b/rootcerts/rootcertsdir.cnf.in new file mode 100644 index 0000000..8aed7a7 --- /dev/null +++ b/rootcerts/rootcertsdir.cnf.in @@ -0,0 +1 @@ +cacerts=@certdb@ |
