From: Ondřej Surý Date: Wed, 21 Dec 2016 14:02:10 +0000 (+0100) Subject: Import Debian changes 0.66.4-9 X-Git-Tag: debian/0.66.4-9^0 X-Git-Url: https://git.hcoop.net/hcoop/debian/courier-authlib.git/commitdiff_plain/1420868b3e321353480efbb7eb35e1e8d9943223 Import Debian changes 0.66.4-9 courier-authlib (0.66.4-9) unstable; urgency=medium * Orphan the package. courier-authlib (0.66.4-8) unstable; urgency=medium * Use default-libmysqlclient-dev instead of libmysqlclient-dev * Run wrap-and-sort -a * Rebuild with default-libmysqlclient-dev as libmysqlclient-dev (>= 5.7) is broken (Closes: #844952) courier-authlib (0.66.4-7) unstable; urgency=medium * /usr/sbin/authdaemon is just a shell wrapper we need to call with 'start' and 'stop' arguments (Closes: #818747) * Look at /usr/lib/courier/courier-authlib/authdaemond for courier-authdaemon init.d script status call courier-authlib (0.66.4-6) unstable; urgency=medium * Fix the TMPFILES loop in init script (Closes: #818744) * Add "start" as default DAEMON_ARGS to launch courier-authdaemon (Closes: #818747) * Fix courier-authlib-sqlite description (Closes: #810601) courier-authlib (0.66.4-5) unstable; urgency=medium * sysvinit-utils | init-d-script is Dependency and not Build-Dependency * Looks like trigger name cannot end with / * Let's restart courier-authdaemon and not authdaemon in triggered action (Closes: #810345) * libcourierauth* libraries are normal shared libraries, treat them as such (Closes: #378241) * Fix misc lintian warnings * Add versioned Breaks: for courier-base and maildrop to not break them * Rewritten init.d script using init-d-script (Closes: #776529, #144505, #580187, #750582) * Remove authdaemon restart from prerm scripts, we don't need this anymore since we restart authdaemon via dpkg-trigger (Closes: #540374) * Rewritten d/rules to use debhelper 9, autoreconf, and autotools-dev (Closes: #558542, #540698, #599628, #607123, #744560) * Update symbols file to match current symbols and set DPKG_GENSYMBOLS_CHECK_LEVEL to 4 * Add adduser to courier-authlib Depends courier-authlib (0.66.4-4) unstable; urgency=medium * Update packaging to modern dh9 format and use dh-autoreconf and autotools-dev * Don't mangle file permissions on install time as it's take care of in Debian package * Rip AC_PROG_SYSCONFTOOL macro to m4/ directory * Fix authdaemondprog linking; missing libcourierauth.la * Reorder libs on pkglib_LTLIBRARIES to help libtool find the libs * Lintian overrides are installed by dh_lintian courier-authlib (0.66.4-3) unstable; urgency=medium * Check and create courier user in authdaemon package in case courier-base is not installed first (LP#1542174) courier-authlib (0.66.4-2) unstable; urgency=medium * Convert the d/copyright into machine-readable file and add license for authldaplib.c * Use invoke-rc.d to restart authdaemon on mysql and postgresql fresh installation * Add courier-authdaemon systemd files (service and tmpfile) courier-authlib (0.66.4-1) unstable; urgency=medium * Imported Upstream version 0.66.4 * Add dependency on libcourier-unicode-dev and wrap-and-sort -a * Add myself to Uploaders * Add Vcs-* links and Homepage * Add d/watch with support for signed packages courier-authlib (0.66.3-1) unstable; urgency=medium * Add support for authsqlite * New upstream version 0.66.3 --- 1420868b3e321353480efbb7eb35e1e8d9943223 diff --cc debian/changelog index 00b3c65,0000000..f7bb5e1 mode 100644,000000..100644 --- a/debian/changelog +++ b/debian/changelog @@@ -1,301 -1,0 +1,403 @@@ ++courier-authlib (0.66.4-9) unstable; urgency=medium ++ ++ * Orphan the package. ++ ++ -- Ondřej Surý Wed, 21 Dec 2016 15:02:10 +0100 ++ ++courier-authlib (0.66.4-8) unstable; urgency=medium ++ ++ * Use default-libmysqlclient-dev instead of libmysqlclient-dev ++ * Run wrap-and-sort -a ++ * Rebuild with default-libmysqlclient-dev as libmysqlclient-dev (>= 5.7) ++ is broken (Closes: #844952) ++ ++ -- Ondřej Surý Fri, 25 Nov 2016 15:21:19 +0100 ++ ++courier-authlib (0.66.4-7) unstable; urgency=medium ++ ++ * /usr/sbin/authdaemon is just a shell wrapper we need to call with ++ 'start' and 'stop' arguments (Closes: #818747) ++ * Look at /usr/lib/courier/courier-authlib/authdaemond for ++ courier-authdaemon init.d script status call ++ ++ -- Ondřej Surý Wed, 23 Mar 2016 14:38:43 +0100 ++ ++courier-authlib (0.66.4-6) unstable; urgency=medium ++ ++ * Fix the TMPFILES loop in init script (Closes: #818744) ++ * Add "start" as default DAEMON_ARGS to launch courier-authdaemon ++ (Closes: #818747) ++ * Fix courier-authlib-sqlite description (Closes: #810601) ++ ++ -- Ondřej Surý Tue, 22 Mar 2016 12:11:51 +0100 ++ ++courier-authlib (0.66.4-5) unstable; urgency=medium ++ ++ * sysvinit-utils | init-d-script is Dependency and not Build-Dependency ++ * Looks like trigger name cannot end with / ++ * Let's restart courier-authdaemon and not authdaemon in triggered action ++ (Closes: #810345) ++ * libcourierauth* libraries are normal shared libraries, treat them as such ++ (Closes: #378241) ++ * Fix misc lintian warnings ++ * Add versioned Breaks: for courier-base and maildrop to not break them ++ * Rewritten init.d script using init-d-script ++ (Closes: #776529, #144505, #580187, #750582) ++ * Remove authdaemon restart from prerm scripts, we don't need this ++ anymore since we restart authdaemon via dpkg-trigger (Closes: #540374) ++ * Rewritten d/rules to use debhelper 9, autoreconf, and autotools-dev ++ (Closes: #558542, #540698, #599628, #607123, #744560) ++ * Update symbols file to match current symbols and set ++ DPKG_GENSYMBOLS_CHECK_LEVEL to 4 ++ * Add adduser to courier-authlib Depends ++ ++ -- Ondřej Surý Wed, 16 Mar 2016 11:41:54 +0100 ++ ++courier-authlib (0.66.4-4) unstable; urgency=medium ++ ++ * Update packaging to modern dh9 format and use dh-autoreconf and ++ autotools-dev ++ * Don't mangle file permissions on install time as it's take care of in ++ Debian package ++ * Rip AC_PROG_SYSCONFTOOL macro to m4/ directory ++ * Fix authdaemondprog linking; missing libcourierauth.la ++ * Reorder libs on pkglib_LTLIBRARIES to help libtool find the libs ++ * Lintian overrides are installed by dh_lintian ++ ++ -- Ondřej Surý Mon, 08 Feb 2016 15:00:41 +0100 ++ ++courier-authlib (0.66.4-3) unstable; urgency=medium ++ ++ * Check and create courier user in authdaemon package in case ++ courier-base is not installed first (LP#1542174) ++ ++ -- Ondřej Surý Fri, 05 Feb 2016 09:58:26 +0100 ++ ++courier-authlib (0.66.4-2) unstable; urgency=medium ++ ++ * Convert the d/copyright into machine-readable file and add license for ++ authldaplib.c ++ * Use invoke-rc.d to restart authdaemon on mysql and postgresql fresh ++ installation ++ * Add courier-authdaemon systemd files (service and tmpfile) ++ ++ -- Ondřej Surý Sat, 02 Jan 2016 17:29:17 +0100 ++ ++courier-authlib (0.66.4-1) unstable; urgency=medium ++ ++ * Imported Upstream version 0.66.4 ++ * Add dependency on libcourier-unicode-dev and wrap-and-sort -a ++ * Add myself to Uploaders ++ * Add Vcs-* links and Homepage ++ * Add d/watch with support for signed packages ++ ++ -- Ondřej Surý Thu, 31 Dec 2015 11:33:25 +0100 ++ ++courier-authlib (0.66.3-1) unstable; urgency=medium ++ ++ * Add support for authsqlite ++ * New upstream version 0.66.3 ++ ++ -- Ondřej Surý Mon, 29 Jun 2015 12:23:12 +0200 ++ +courier-authlib (0.66.1-1) unstable; urgency=low + + * New upstream release. + + [Willi Mann ] + + * Fix libtool breakage by explicitly using /bin/bash in debian/rules. + + -- Stefan Hornburg (Racke) Mon, 28 Oct 2013 11:38:37 +0100 + +courier-authlib (0.63.0-6) unstable; urgency=low + + [Martin Orr ] + + * Set SELinux context for runtime directories in init script + (Closes: #668564) + + -- Stefan Hornburg (Racke) Fri, 13 Apr 2012 08:53:02 +0200 + +courier-authlib (0.63.0-5) unstable; urgency=low + + [ Moritz Muehlenhoff ] + + * Enable hardened build flags (Closes: #655168) + + [ Peter Eisentraut ] + + * Add support for "status" action to authdaemon init script + + -- Stefan Hornburg (Racke) Sat, 07 Apr 2012 16:48:52 +0200 + +courier-authlib (0.63.0-4) unstable; urgency=low + + * Remove umask check from debian/rules (Closes: #634599, thanks to Lucas + Nussbaum for the report) + + -- Stefan Hornburg (Racke) Wed, 31 Aug 2011 13:32:46 +0200 + +courier-authlib (0.63.0-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Empty dependency_libs (Closes: #621191). + + -- Luk Claes Tue, 28 Jun 2011 07:23:00 +0200 + +courier-authlib (0.63.0-3) unstable; urgency=low + + [ Simon McVittie ] + * Add a symbols file for libcourier*.so to work around the library name + being unsuitable for dpkg-shlibdeps (based on a suggestion from + Steve Langasek, Closes: #554788) + * Tell dh_makeshlibs and dh_shlibdeps to look in the non-standard library + directory + * Make distclean rather than clean to avoid garbage in the Debian diff when + building twice (patch from Peter Eisentraut, Closes: #527971) + + -- Stefan Hornburg (Racke) Mon, 11 Oct 2010 10:20:03 +0200 + +courier-authlib (0.63.0-2) unstable; urgency=low + + * rebuild to really fix MySQL dependency (Closes: #574101) + * recreation of directories in /var/run uses correct + ownership/permissions now (Closes: #429866) + + -- Stefan Hornburg (Racke) Fri, 19 Mar 2010 14:28:14 +0100 + +courier-authlib (0.63.0-1) unstable; urgency=low + + * new upstream release + * fix deprecated dependency on libmysqlclient15off (Closes: #574101, + thanks to Dominik Röttsches for the report) + + -- Stefan Hornburg (Racke) Tue, 16 Mar 2010 16:14:44 +0100 + +courier-authlib (0.62.4-1) unstable; urgency=low + + * new upstream release + - satisfies courier-base reverse dependency (Closes: #558120, + thanks to Julien Pinon for the report) + * fix incorrect handling of init.d reload action by removing it + (Closes: #527972, thanks to Peter Eisentraut ) + * use upstream config.* files + * lintian fixes + - added ${misc:Depends} for all packages + - eliminated commands with absolute paths in maintainer scripts + - bumped up Standards-Version + - bumped up debhelper comptability level to 5 + + -- Stefan Hornburg (Racke) Thu, 26 Nov 2009 20:09:13 +0100 + +courier-authlib (0.62.2-1) unstable; urgency=low + + * new upstream release + * create run directory with init script (Closes: #349830, thanks to Tim + Small for the help) + * lintian + - copyright notice added to copyright + - overrides for file permission of configuration files + - reorder debhelper commands + + -- Stefan Hornburg (Racke) Mon, 02 Mar 2009 16:09:05 +0100 + +courier-authlib (0.61.0-1+lenny1) testing-security; urgency=high + + * Non-maintainer upload by the security team + * Fix several sql-injection vulnerabilities in authpgsqllib.c by using + PQsetClientEncoding() and PQescapeStringConn() + Fixes: CVE-2008-2380 + + -- Steffen Joeris Mon, 08 Dec 2008 13:48:12 +0000 + +courier-authlib (0.61.0-1) unstable; urgency=low + + * new upstream release + * lintian: + - debian/compat file + - don't ignore make clean errors + + -- Stefan Hornburg (Racke) Thu, 17 Jul 2008 12:59:36 +0200 + +courier-authlib (0.60.1-2.1) unstable; urgency=high + + * Non-maintainer upload by the security team + * Fix sql injection vulnerability by changing to use + mysql_set_character_set instead of SET NAMES + (Change was introduced by upstream in 0.60.6) + (Closes: #485424) + + -- Steffen Joeris Mon, 09 Jun 2008 15:29:23 +0000 + +courier-authlib (0.60.1-2) unstable; urgency=low + + * added LSB dependency info to init scripts (Closes: #460221, thanks to + Petter Reinholdtsen for the patch) + + -- Stefan Hornburg (Racke) Mon, 7 Apr 2008 13:21:37 +0200 + +courier-authlib (0.60.1-1) unstable; urgency=low + + * new upstream release + + -- Stefan Hornburg (Racke) Mon, 15 Oct 2007 10:56:16 +0200 + +courier-authlib (0.60.0-1) unstable; urgency=low + + * new upstream release, now under GPL version 3 + + -- Stefan Hornburg (Racke) Sun, 30 Sep 2007 21:58:35 +0200 + +courier-authlib (0.59.3-2) unstable; urgency=low + + * dropped alternative build dependency on postgresql-dev + (Closes: #429964, thanks to Lior Kaplan for the report + + -- Stefan Hornburg (Racke) Thu, 21 Jun 2007 20:26:38 +0200 + +courier-authlib (0.59.3-1) unstable; urgency=low + + * new upstream release + + -- Stefan Hornburg (Racke) Mon, 23 Apr 2007 10:18:17 +0200 + +courier-authlib (0.59.1-0.1) experimental; urgency=low + + * new upstream release + + -- Stefan Hornburg (Racke) Wed, 17 Jan 2007 11:58:29 +0100 + +courier-authlib (0.58-5) unstable; urgency=low + + * added dependency and build dependency on expect (Closes: #400812, + thanks to Peter Troeger for the report) + + -- Stefan Hornburg (Racke) Wed, 29 Nov 2006 11:42:45 +0100 + +courier-authlib (0.58-4) unstable; urgency=medium + + * call dh_makeshlibs during binary-arch target in order to get proper shlib + information for libcourierauth.so (Closes: #378249, thanks to Charles + Fry for the report and Steinar H. Gunderson + for the patch) + * ensure that courier-authdaemon is upgraded when switching to courier-authlib + * switch to lsb logging functions (Closes: #384823, thanks to David Härdeman + for the patch) + + -- Stefan Hornburg (Racke) Sat, 9 Sep 2006 17:37:11 +0200 + +courier-authlib (0.58-3.1) unstable; urgency=medium + + * Non-Maintainer Upload to fix security bug, caused by + /var/run/courier/authdaemon being world executable. Thanks to Martin + Ferrari for the fix. (Closes: #378571) + + -- Margarita Manterola Tue, 1 Aug 2006 16:45:07 -0300 + +courier-authlib (0.58-3) unstable; urgency=low + + * remove all Courier runtime files on purge of courier-authdaemon + + -- Stefan Hornburg (Racke) Tue, 6 Jun 2006 04:48:20 +0200 + +courier-authlib (0.58-2) unstable; urgency=low + + * set ownership of /var/run/courier and /var/run/courier/authdaemon to + daemon.daemon (Closes: #368358, #368360) + + -- Stefan Hornburg (Racke) Tue, 23 May 2006 09:43:15 +0200 + +courier-authlib (0.58-1.0) unstable; urgency=low + + * first upload to unstable + + -- Stefan Hornburg (Racke) Fri, 12 May 2006 16:53:38 +0200 + +courier-authlib (0.58-0.4) experimental; urgency=low + + * changed alternative dependency for libmysqlclient-dev to + libmysqlclient15-dev (Closes: #356728, thanks to Stefan Huehner + for the report) + + -- Stefan Hornburg (Racke) Tue, 14 Mar 2006 11:14:11 +0100 + +courier-authlib (0.58-0.3) experimental; urgency=low + + * courier-authlib-userdb conflicts with pre-authlib courier-base package + + -- Stefan Hornburg (Racke) Wed, 11 Jan 2006 09:33:10 +0100 + +courier-authlib (0.58-0.2) experimental; urgency=low + + * updated config.{guess,sub} to avoid FTBFS on some architectures + (Closes: #346105, thanks to Petr Salinger + ) + + -- Stefan Hornburg (Racke) Fri, 6 Jan 2006 11:13:19 +0100 + +courier-authlib (0.58-0.1) experimental; urgency=low + + * new upstream release + * transition to new PostgreSQL architecture (Closes: #339297, thanks to + Martin Pitt for the report and the patch) + * added courier-authlib-mysql/postgresql prerm/postinst scripts to + restart courier-authdaemon + + -- Stefan Hornburg (Racke) Thu, 5 Jan 2006 14:58:19 +0100 + +courier-authlib (0.57.20051004-2) experimental; urgency=low + + * ship configuration files with sane ownership/permissions + * restoring call to pam_acct_mgmt + + -- Stefan Hornburg (Racke) Fri, 11 Nov 2005 00:49:19 +0100 + +courier-authlib (0.57.20051004-1) experimental; urgency=low + + * new upstream release: + - contains authtest manual page and authpasswd script + * keep authtest name instead of renaming to courierauthtest, there are + currently no conflicts with other binaries + * separate package courier-authlib-pipe for authpipe module + * revive courier-authdaemon package to allow seamless upgrades from sarge + * changed FSF address in copyright file + * changed BuildDepends from libmysqlclient10-dev to libmysqlclient14-dev + * use DH_COMPAT=4 + + -- Stefan Hornburg (Racke) Tue, 25 Oct 2005 11:04:45 +0200 + +courier-authlib (0.56-0.5) experimental; urgency=low + + * added build dependency on procps (Closes: #311976, thanks to Kurt + Roeckx for the report) + + -- Stefan Hornburg (Racke) Sat, 4 Jun 2005 22:03:43 +0200 + +courier-authlib (0.56-0.4) experimental; urgency=low + + * provide proper LDAP configuration file instead of an empty one (thanks + to Peter Mann for the report) + + -- Stefan Hornburg (Racke) Tue, 31 May 2005 14:48:04 +0200 + +courier-authlib (0.56-0.3) experimental; urgency=low + + * added dependency to courier-authlib-dev on courier-authlib + * versioned dependencies for courier-authlib-* packages + + -- Stefan Hornburg (Racke) Tue, 31 May 2005 11:13:01 +0200 + +courier-authlib (0.56-0.2) experimental; urgency=low + + * removed check for openssl binary (Closes: #311175, thanks to Kenshi + Muto for the report) + + -- Stefan Hornburg (Racke) Mon, 30 May 2005 13:23:02 +0200 + +courier-authlib (0.56-0.1) experimental; urgency=low + + * initial release + + -- Stefan Hornburg (Racke) Fri, 27 May 2005 23:20:21 +0200 + diff --cc debian/compat index 7ed6ff8,0000000..ec63514 mode 100644,000000..100644 --- a/debian/compat +++ b/debian/compat @@@ -1,1 -1,0 +1,1 @@@ - 5 ++9 diff --cc debian/control index e1b783e,0000000..fd67f17 mode 100644,000000..100644 --- a/debian/control +++ b/debian/control @@@ -1,69 -1,0 +1,115 @@@ +Source: courier-authlib +Section: mail +Priority: optional - Maintainer: Stefan Hornburg (Racke) - Standards-Version: 3.8.3 - Build-Depends: libmysqlclient-dev, libpam0g-dev, libgdbm-dev | libgdbmg1-dev, debhelper (>= 5.0.42), libldap-dev, libsasl2-dev | libsasl-dev, libpq-dev, libtool, libltdl3-dev, procps, expect, libidn11-dev ++Maintainer: Debian QA Group ++Standards-Version: 3.9.7 ++Build-Depends: autotools-dev, ++ debhelper (>= 9), ++ default-libmysqlclient-dev | libmysqlclient-dev (<< 5.7), ++ dh-autoreconf, ++ expect, ++ libcourier-unicode-dev, ++ libgdbm-dev | libgdbmg1-dev, ++ libidn11-dev, ++ libldap-dev, ++ libltdl3-dev, ++ libpam0g-dev, ++ libpq-dev, ++ libsasl2-dev | libsasl-dev, ++ libsqlite3-dev, ++ libtool, ++ pkg-config, ++ procps ++Homepage: http://www.courier-mta.org/ ++Vcs-Git: git://anonscm.debian.org/collab-maint/courier-authlib.git ++Vcs-Browser: http://anonscm.debian.org/?p=collab-maint/courier-authlib.git;a=summary + +Package: courier-authlib +Architecture: any - Depends: ${misc:Depends}, ${shlibs:Depends}, expect - Conflicts: courier-base (<< 0.48), courier-authdaemon (<< 0.58), courier-authmysql, courier-authpostgresql ++Depends: adduser, ++ ${misc:Depends}, ++ ${shlibs:Depends} ++Recommends: expect ++Breaks: courier-base (<< 0.75.0-15), ++ maildrop (<< 2.7.1-4) +Description: Courier authentication library - The Courier authentication library provides authentication services for - other Courier applications. ++ The Courier authentication library provides authentication services ++ for other Courier applications. + +Package: courier-authdaemon +Architecture: any - Depends: ${misc:Depends}, ${shlibs:Depends}, courier-authlib (>= ${RELUP}), lsb-base (>= 3.0-10) ++Depends: courier-authlib (>= ${binary:Version}), ++ lsb-base (>= 3.0-10), ++ sysvinit-utils (>= 2.88dsf-50) | init-d-script, ++ ${misc:Depends}, ++ ${shlibs:Depends} +Description: Courier authentication daemon - This package contains the authentication daemon for the Courier applications. ++ This package contains the authentication daemon for the Courier ++ applications. + +Package: courier-authlib-dev +Architecture: any - Depends: ${misc:Depends}, ${shlibs:Depends}, courier-authlib (>= ${RELUP}) - Conflicts: courier-base (<< 0.48) ++Depends: courier-authlib (>= ${binary:Version}), ++ ${misc:Depends}, ++ ${shlibs:Depends} +Description: Development libraries for the Courier authentication library - This package contains the development libraries and files needed to compile - Courier packages that use the Courier authentication library. ++ This package contains the development libraries and files needed to ++ compile Courier packages that use the Courier authentication library. + +Package: courier-authlib-userdb +Architecture: any - Depends: ${misc:Depends}, ${shlibs:Depends}, courier-authlib (>= ${RELUP}) - Conflicts: courier-base (<< 0.48) ++Depends: courier-authlib (>= ${binary:Version}), ++ ${misc:Depends}, ++ ${shlibs:Depends} +Description: userdb support for the Courier authentication library - This package contains the userdb support for the Courier authentication - library. Userdb is a simple way to manage virtual mail accounts using - a GDBM-based database file. ++ This package contains the userdb support for the Courier ++ authentication library. Userdb is a simple way to manage virtual mail ++ accounts using a GDBM-based database file. + +Package: courier-authlib-mysql +Architecture: any - Depends: ${misc:Depends}, ${shlibs:Depends}, courier-authlib (>= ${RELUP}) - Conflicts: courier-authmysql - Replaces: courier-authmysql ++Depends: courier-authlib (>= ${binary:Version}), ++ ${misc:Depends}, ++ ${shlibs:Depends} +Description: MySQL support for the Courier authentication library - This package contains the MySQL support for the Courier authentication library. ++ This package contains the MySQL support for the Courier ++ authentication library. + +Package: courier-authlib-postgresql +Architecture: any - Depends: ${misc:Depends}, ${shlibs:Depends}, courier-authlib (>= ${RELUP}) - Conflicts: courier-authpostgresql - Replaces: courier-authpostgresql ++Depends: courier-authlib (>= ${binary:Version}), ++ ${misc:Depends}, ++ ${shlibs:Depends} +Description: PostgreSQL support for the Courier authentication library - This package contains the PostgreSQL support for the Courier authentication - library. ++ This package contains the PostgreSQL support for the Courier ++ authentication library. + +Package: courier-authlib-ldap +Architecture: any - Depends: ${misc:Depends}, ${shlibs:Depends}, courier-authlib (>= ${RELUP}) ++Depends: courier-authlib (>= ${binary:Version}), ++ ${misc:Depends}, ++ ${shlibs:Depends} +Description: LDAP support for the Courier authentication library - This package contains the LDAP support for the Courier authentication library. ++ This package contains the LDAP support for the Courier authentication ++ library. ++ ++Package: courier-authlib-sqlite ++Architecture: any ++Depends: courier-authlib (>= ${binary:Version}), ++ ${misc:Depends}, ++ ${shlibs:Depends} ++Description: SQLite 3 support for the Courier authentication library ++ This package contains the SQLite 3 support for the Courier ++ authentication library. + +Package: courier-authlib-pipe +Architecture: any - Depends: ${misc:Depends}, ${shlibs:Depends}, courier-authlib (>= ${RELUP}) ++Depends: courier-authlib (>= ${binary:Version}), ++ ${misc:Depends}, ++ ${shlibs:Depends} +Description: External authentication support for the Courier authentication library - This package contains external authentication support via pipes for the - Courier authentication library. The authpipe module is a generic plugin - that enables authentication requests to be serviced by an external - program, then communicates through messages on stdin and stdout. ++ This package contains external authentication support via pipes for ++ the Courier authentication library. The authpipe module is a generic ++ plugin that enables authentication requests to be serviced by an ++ external program, then communicates through messages on stdin and ++ stdout. diff --cc debian/copyright index d7a6855,0000000..b71dd1f mode 100644,000000..100644 --- a/debian/copyright +++ b/debian/copyright @@@ -1,28 -1,0 +1,55 @@@ - This package was debianized by Stefan Hornburg (Racke) on - Fri Oct 29 10:59:13 2004 CEST. - - It was downloaded from: - ftp://courier.sourceforge.net/pub/courier/courier/ - - Upstream Author: - - Sam Varshavchik - Double Precision, Inc. - PO Box 668 - Greenwood Lake, NY 10925 - - Copyright: - - Copyright 2004 - 2009 Double Precision, Inc. - - This software is released under the GPL, version 3. - Additionally, compiling, linking, and/or using the OpenSSL toolkit in - conjunction with this software is allowed. - - A copy of the GNU General Public License is available as - /usr/share/common-licenses/GPL-3 in the Debian GNU/Linux distribution or on the - World Wide Web at http://www.gnu.org/copyleft/gpl.html. You can also - obtain it by writing to the Free Software Foundation, Inc., 51 Franklin St, - Fifth Floor, Boston, MA 02110-1301, USA. - - ++Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ ++Upstream-Name: courier-authlib ++Upstream-Contact: Sam Varshavchik ++Source: http://www.courier-mta.org/ ++ ++Files: * ++Copyright: 2004 - 2015 Double Precision, Inc. ++License: GPL-3+OpenSSL-exception ++ ++Files: authldaplib.c ++Copyright: 1999 Luc Saillard ++License: GPL-2+ ++Comment: ++ Sam Varshavchik said: ++ > There's been quite a few changes since Luc's original version. I ++ > believe what makes sense is to preserve the revision history, but ++ > simply reference the main COPYING file. ++ ++Files: debian/* ++Copyright: 2004-2015 Stefan Hornburg (Racke) ++ 2015 Ondřej Surý ++License: GPL-3+OpenSSL-exception ++ ++License: GPL-3+OpenSSL-exception ++ This program is free software: you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation, either version 3 of the License, or (at ++ your option) any later version. ++ . ++ This program is distributed in the hope that it will be useful, but ++ WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ General Public License for more details. ++ . ++ A copy of the GNU General Public License is available as ++ /usr/share/common-licenses/GPL-3 in the Debian GNU/Linux ++ distribution. ++ . ++ Additionally, compiling, linking, and/or using the OpenSSL toolkit in ++ conjunction with this software is allowed. ++ ++License: GPL-2+ ++ This program is free software; you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 2 of the License, or (at ++ your option) any later version. ++ . ++ This program is distributed in the hope that it will be useful, but ++ WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ General Public License for more details. ++ . ++ A copy of the GNU General Public License is available as ++ /usr/share/common-licenses/GPL-2 in the Debian GNU/Linux ++ distribution. diff --cc debian/courier-authdaemon.init index 521624b,0000000..834dac7 mode 100644,000000..100644 --- a/debian/courier-authdaemon.init +++ b/debian/courier-authdaemon.init @@@ -1,66 -1,0 +1,51 @@@ - #! /bin/sh -e - # ++#!/bin/sh ++# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing. ++if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then ++ set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script ++fi +### BEGIN INIT INFO +# Provides: courier-authdaemon +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO + - prefix="/usr" - exec_prefix=${prefix} - sysconfdir="/etc/courier" - sbindir="${exec_prefix}/sbin" - daemonscript="${sbindir}/authdaemond" - rundir_courier="/var/run/courier" - rundir="/var/run/courier/authdaemon" - pidfile="${rundir}/pid" ++# Author: Ondřej Surý + - . /lib/lsb/init-functions ++DAEMON="/usr/sbin/authdaemond" ++DESC="Courier authentication services" ++PIDFILE="/run/courier/pid" + - # Check for a leftover init script - if [ ! -x $daemonscript ]; then - exit 0 - fi ++do_start_prepare() { ++ do_tmpfiles courier-authdaemon ++} ++ ++do_tmpfiles() { ++ local type path mode user group ++ ++ TMPFILES=/usr/lib/tmpfiles.d/$1.conf ++ ++ if [ -r "$TMPFILES" ]; then ++ while read type path mode user group age argument; do ++ if [ "$type" = "d" ]; then ++ mkdir -p "$path" ++ chmod "$mode" "$path" ++ chown "$user:$group" "$path" ++ [ -x /sbin/restorecon ] && /sbin/restorecon $path ++ fi ++ done < "$TMPFILES" ++ fi ++} ++ ++do_start_cmd_override() { ++ $DAEMON start ++} ++ ++do_stop_cmd_override() { ++ $DAEMON stop ++} + - case "$1" in - start) - # Start daemon. - cd / - log_daemon_msg "Starting Courier authentication services" "authdaemond" - if [ ! -d "$rundir_courier" ]; then - mkdir -m 0775 $rundir_courier - chown daemon:daemon $rundir_courier - # set file context for SELinux (#668564) - [ -x /sbin/restorecon ] && /sbin/restorecon $rundir_courier - fi - if [ ! -d "$rundir" ]; then - mkdir -m 0750 $rundir - chown daemon:daemon $rundir - # set file context for SELinux (#668564) - [ -x /sbin/restorecon ] && /sbin/restorecon $rundir - fi - $daemonscript start - log_end_msg 0 - ;; - stop) - # Stop daemon. - cd / - log_daemon_msg "Stopping Courier authentication services" "authdaemond" - $daemonscript stop - log_end_msg 0 - ;; - restart|force-reload) - $0 stop - $0 start - ;; - status) - status_of_proc -p "$pidfile" "" "authdaemond" && exit 0 || exit $? - ;; - *) - echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2 - exit 2 - ;; - esac - exit 0 ++do_status_override() { ++ status_of_proc "/usr/lib/courier/courier-authlib/authdaemond" "$NAME" && return 0 || return $? ++} diff --cc debian/courier-authdaemon.install index 0000000,0000000..44adb73 new file mode 100644 --- /dev/null +++ b/debian/courier-authdaemon.install @@@ -1,0 -1,0 +1,2 @@@ ++/etc/courier/authdaemonrc ++/usr/sbin/authdaemond diff --cc debian/courier-authdaemon.lintian-overrides index cd2ce5a,0000000..265b4cc mode 100644,000000..100644 --- a/debian/courier-authdaemon.lintian-overrides +++ b/debian/courier-authdaemon.lintian-overrides @@@ -1,1 -1,0 +1,1 @@@ - courier-authdaemon: non-standard-file-perm etc/courier/authdaemonrc 0660 != 0644 ++courier-authdaemon: non-standard-file-perm etc/courier/authdaemonrc 0640 != 0644 diff --cc debian/courier-authdaemon.postinst index 0000000,0000000..8bcfe32 new file mode 100644 --- /dev/null +++ b/debian/courier-authdaemon.postinst @@@ -1,0 -1,0 +1,19 @@@ ++#!/bin/sh -e ++ ++add_override() { ++ if ! dpkg-statoverride --list $4 >/dev/null; then ++ dpkg-statoverride --update --add $1 $2 $3 $4 ++ fi ++} ++ ++if [ "$1" = "configure" ]; then ++ add_override root courier 0640 /etc/courier/authdaemonrc ++fi ++ ++if [ "$1" = "triggered" ]; then ++ invoke-rc.d courier-authdaemon restart ++fi ++ ++#DEBHELPER# ++ ++exit 0 diff --cc debian/courier-authdaemon.postrm index 3507f4e,0000000..30c2c2e mode 100644,000000..100644 --- a/debian/courier-authdaemon.postrm +++ b/debian/courier-authdaemon.postrm @@@ -1,25 -1,0 +1,15 @@@ +#! /bin/sh -e - # - # Copyright 2000,2001,2006 by Stefan Hornburg (Racke) - # - # This program is free software; you can redistribute it and/or modify - # it under the terms of the GNU General Public License as published by - # the Free Software Foundation; either version 2 of the License, or - # (at your option) any later version. - # - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY; without even the implied warranty of - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - # GNU General Public License for more details. - # - # You should have received a copy of the GNU General Public - # License along with this program; if not, write to the Free - # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, - # MA 02111-1307 USA. ++ ++del_override() { ++ if dpkg-statoverride --list $4 >/dev/null; then ++ dpkg-statoverride --force --remove $4 ++ fi ++} + +if [ "$1" = "purge" ]; then - # remove runtime files - rm -rf /var/run/courier ++ del_override root courier 0640 /etc/courier/authdaemonrc +fi + +#DEBHELPER# ++ ++exit 0 diff --cc debian/courier-authdaemon.service index 0000000,0000000..d37dad8 new file mode 100644 --- /dev/null +++ b/debian/courier-authdaemon.service @@@ -1,0 -1,0 +1,11 @@@ ++[Unit] ++Description=Courier Authentification Daemon ++ ++[Service] ++Type=forking ++ExecStart=/usr/sbin/authdaemond start ++ExecStop=/usr/sbin/authdaemond stop ++PIDFile=/run/courier/authdaemon/pid ++ ++[Install] ++WantedBy=multi-user.target diff --cc debian/courier-authdaemon.tmpfile index 0000000,0000000..c03dbbf new file mode 100644 --- /dev/null +++ b/debian/courier-authdaemon.tmpfile @@@ -1,0 -1,0 +1,3 @@@ ++#Type Path Mode UID GID Age Argument ++ d /run/courier 0775 root courier - - ++ d /run/courier/authdaemon 0755 courier courier - - diff --cc debian/courier-authdaemon.triggers index 0000000,0000000..01c498d new file mode 100644 --- /dev/null +++ b/debian/courier-authdaemon.triggers @@@ -1,0 -1,0 +1,1 @@@ ++interest-noawait /usr/lib/courier-authlib diff --cc debian/courier-authlib-dev.install index 93fecca,0000000..e72010c mode 100644,000000..100644 --- a/debian/courier-authlib-dev.install +++ b/debian/courier-authlib-dev.install @@@ -1,6 -1,0 +1,6 @@@ +/usr/bin/courierauthconfig +/usr/include +/usr/lib/courier-authlib/*.a - /usr/lib/courier-authlib/*.la ++/usr/lib/libcourierauth*.a ++/usr/lib/libcourierauth*.so +/usr/share/man/man3 - diff --cc debian/courier-authlib-ldap.install index fd1b632,0000000..00ac96c mode 100644,000000..100644 --- a/debian/courier-authlib-ldap.install +++ b/debian/courier-authlib-ldap.install @@@ -1,3 -1,0 +1,2 @@@ +/etc/courier/authldaprc +/usr/lib/courier-authlib/libauthldap.so* - /usr/share/lintian/overrides/courier-authlib-ldap diff --cc debian/courier-authlib-ldap.lintian-overrides index 35609f1,0000000..003611c mode 100644,000000..100644 --- a/debian/courier-authlib-ldap.lintian-overrides +++ b/debian/courier-authlib-ldap.lintian-overrides @@@ -1,1 -1,0 +1,1 @@@ - courier-authlib-ldap: non-standard-file-perm etc/courier/authldaprc 0660 != 0644 ++courier-authlib-ldap: non-standard-file-perm etc/courier/authldaprc 0640 != 0644 diff --cc debian/courier-authlib-ldap.postinst index 0000000,0000000..64f0294 new file mode 100644 --- /dev/null +++ b/debian/courier-authlib-ldap.postinst @@@ -1,0 -1,0 +1,15 @@@ ++#! /bin/sh -e ++ ++add_override() { ++ if ! dpkg-statoverride --list $4 >/dev/null; then ++ dpkg-statoverride --update --add $1 $2 $3 $4 ++ fi ++} ++ ++if [ "$1" = "configure" ]; then ++ add_override root courier 0640 /etc/courier/authldaprc ++fi ++ ++#DEBHELPER# ++ ++exit 0 diff --cc debian/courier-authlib-ldap.postrm index 0000000,0000000..908c98d new file mode 100644 --- /dev/null +++ b/debian/courier-authlib-ldap.postrm @@@ -1,0 -1,0 +1,15 @@@ ++#! /bin/sh -e ++ ++del_override() { ++ if dpkg-statoverride --list $4 >/dev/null; then ++ dpkg-statoverride --force --remove $4 ++ fi ++} ++ ++if [ "$1" = "purge" ]; then ++ del_override root courier 0640 /etc/courier/authldaprc ++fi ++ ++#DEBHELPER# ++ ++exit 0 diff --cc debian/courier-authlib-mysql.install index 6d0710c,0000000..42d07e5 mode 100644,000000..100644 --- a/debian/courier-authlib-mysql.install +++ b/debian/courier-authlib-mysql.install @@@ -1,3 -1,0 +1,2 @@@ +/etc/courier/authmysqlrc +/usr/lib/courier-authlib/libauthmysql.so* - /usr/share/lintian/overrides/courier-authlib-mysql diff --cc debian/courier-authlib-mysql.lintian-overrides index 694ef48,0000000..28139ba mode 100644,000000..100644 --- a/debian/courier-authlib-mysql.lintian-overrides +++ b/debian/courier-authlib-mysql.lintian-overrides @@@ -1,1 -1,0 +1,1 @@@ - courier-authlib-mysql: non-standard-file-perm etc/courier/authmysqlrc 0660 != 0644 ++courier-authlib-mysql: non-standard-file-perm etc/courier/authmysqlrc 0640 != 0644 diff --cc debian/courier-authlib-mysql.postinst index 3903e3c,0000000..3250b04 mode 100644,000000..100644 --- a/debian/courier-authlib-mysql.postinst +++ b/debian/courier-authlib-mysql.postinst @@@ -1,30 -1,0 +1,15 @@@ +#! /bin/sh -e - # - # Copyright 2000,2001,2005,2009 by Stefan Hornburg (Racke) - # - # This program is free software; you can redistribute it and/or modify - # it under the terms of the GNU General Public License as published by - # the Free Software Foundation; either version 2 of the License, or - # (at your option) any later version. - # - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY; without even the implied warranty of - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - # GNU General Public License for more details. - # - # You should have received a copy of the GNU General Public - # License along with this program; if not, write to the Free - # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, - # MA 02111-1307 USA. + ++add_override() { ++ if ! dpkg-statoverride --list $4 >/dev/null; then ++ dpkg-statoverride --update --add $1 $2 $3 $4 ++ fi ++} + +if [ "$1" = "configure" ]; then - if [ -z "$2" ]; then - # initial install of authmysql, we need to restart authdaemon - if which authdaemond >/dev/null 2>&1; then - authdaemond restart - fi - fi ++ add_override root courier 0640 /etc/courier/authmysqlrc +fi + +#DEBHELPER# ++ ++exit 0 diff --cc debian/courier-authlib-mysql.postrm index 0000000,0000000..33441fa new file mode 100644 --- /dev/null +++ b/debian/courier-authlib-mysql.postrm @@@ -1,0 -1,0 +1,15 @@@ ++#! /bin/sh -e ++ ++del_override() { ++ if dpkg-statoverride --list $4 >/dev/null; then ++ dpkg-statoverride --force --remove $4 ++ fi ++} ++ ++if [ "$1" = "purge" ]; then ++ del_override root courier 0640 /etc/courier/authmysqlrc ++fi ++ ++#DEBHELPER# ++ ++exit 0 diff --cc debian/courier-authlib-pipe.install index 4073d95,0000000..e68a44a mode 100644,000000..100644 --- a/debian/courier-authlib-pipe.install +++ b/debian/courier-authlib-pipe.install @@@ -1,2 -1,0 +1,2 @@@ - /usr/lib/courier-authlib/libauthpipe*.so* + ++/usr/lib/courier-authlib/libauthpipe*.so* diff --cc debian/courier-authlib-postgresql.install index c99544a,0000000..5387e8d mode 100644,000000..100644 --- a/debian/courier-authlib-postgresql.install +++ b/debian/courier-authlib-postgresql.install @@@ -1,3 -1,0 +1,2 @@@ +/etc/courier/authpgsqlrc +/usr/lib/courier-authlib/libauthpgsql.so* - /usr/share/lintian/overrides/courier-authlib-postgresql diff --cc debian/courier-authlib-postgresql.lintian-overrides index 5efd14e,0000000..6ce1c5c mode 100644,000000..100644 --- a/debian/courier-authlib-postgresql.lintian-overrides +++ b/debian/courier-authlib-postgresql.lintian-overrides @@@ -1,1 -1,0 +1,1 @@@ - courier-authlib-postgresql: non-standard-file-perm etc/courier/authpgsqlrc 0660 != 0644 ++courier-authlib-postgresql: non-standard-file-perm etc/courier/authpgsqlrc 0640 != 0644 diff --cc debian/courier-authlib-postgresql.postinst index 2684740,0000000..f5d6992 mode 100644,000000..100644 --- a/debian/courier-authlib-postgresql.postinst +++ b/debian/courier-authlib-postgresql.postinst @@@ -1,30 -1,0 +1,15 @@@ +#! /bin/sh -e - # - # Copyright 2001,2005,2009 by Stefan Hornburg (Racke) - # - # This program is free software; you can redistribute it and/or modify - # it under the terms of the GNU General Public License as published by - # the Free Software Foundation; either version 2 of the License, or - # (at your option) any later version. - # - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY; without even the implied warranty of - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - # GNU General Public License for more details. - # - # You should have received a copy of the GNU General Public - # License along with this program; if not, write to the Free - # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, - # MA 02111-1307 USA. + ++add_override() { ++ if ! dpkg-statoverride --list $4 >/dev/null; then ++ dpkg-statoverride --update --add $1 $2 $3 $4 ++ fi ++} + +if [ "$1" = "configure" ]; then - if [ -z "$2" ]; then - # initial install of authpostgresql, we need to restart authdaemon - if which authdaemond >/dev/null 2>&1; then - authdaemond restart - fi - fi ++ add_override root courier 0640 /etc/courier/authpgsqlrc +fi + +#DEBHELPER# ++ ++exit 0 diff --cc debian/courier-authlib-postgresql.postrm index 0000000,0000000..5674ef1 new file mode 100644 --- /dev/null +++ b/debian/courier-authlib-postgresql.postrm @@@ -1,0 -1,0 +1,15 @@@ ++#! /bin/sh -e ++ ++del_override() { ++ if dpkg-statoverride --list $4 >/dev/null; then ++ dpkg-statoverride --force --remove $4 ++ fi ++} ++ ++if [ "$1" = "purge" ]; then ++ del_override root courier 0640 /etc/courier/authpgsqlrc ++fi ++ ++#DEBHELPER# ++ ++exit 0 diff --cc debian/courier-authlib-sqlite.dirs index 0000000,0000000..2df9827 new file mode 100644 --- /dev/null +++ b/debian/courier-authlib-sqlite.dirs @@@ -1,0 -1,0 +1,1 @@@ ++/var/lib/courier diff --cc debian/courier-authlib-sqlite.docs index 0000000,0000000..c515996 new file mode 100644 --- /dev/null +++ b/debian/courier-authlib-sqlite.docs @@@ -1,0 -1,0 +1,2 @@@ ++README.authsqlite.html ++README.authmysql.html diff --cc debian/courier-authlib-sqlite.install index 0000000,0000000..3e93a4b new file mode 100644 --- /dev/null +++ b/debian/courier-authlib-sqlite.install @@@ -1,0 -1,0 +1,2 @@@ ++/etc/courier/authsqliterc ++/usr/lib/courier-authlib/libauthsqlite.so* diff --cc debian/courier-authlib-sqlite.lintian-overrides index 0000000,0000000..be351dd new file mode 100644 --- /dev/null +++ b/debian/courier-authlib-sqlite.lintian-overrides @@@ -1,0 -1,0 +1,1 @@@ ++courier-authlib-sqlite: non-standard-file-perm etc/courier/authsqliterc 0640 != 0644 diff --cc debian/courier-authlib-userdb.install index 2d2243d,0000000..2912808 mode 100644,000000..100644 --- a/debian/courier-authlib-userdb.install +++ b/debian/courier-authlib-userdb.install @@@ -1,14 -1,0 +1,14 @@@ ++ ++ ++ ++ +/usr/lib/courier-authlib/libauthuserdb.so* +/usr/sbin/makeuserdb +/usr/sbin/pw2userdb +/usr/sbin/userdb - /usr/sbin/userdbpw +/usr/sbin/userdb-test-cram-md5 ++/usr/sbin/userdbpw +/usr/share/man/man8/makeuserdb.8 +/usr/share/man/man8/pw2userdb.8 +/usr/share/man/man8/userdb.8 +/usr/share/man/man8/userdbpw.8 - - - - diff --cc debian/courier-authlib.install index 6c94de4,0000000..8efc712 mode 100644,000000..100644 --- a/debian/courier-authlib.install +++ b/debian/courier-authlib.install @@@ -1,14 -1,0 +1,12 @@@ - /usr/lib/courier/courier-authlib/ - /usr/lib/courier-authlib/libcourierauth*.so* +/usr/lib/courier-authlib/libauthcustom*.so* +/usr/lib/courier-authlib/libauthpam*.so* ++/usr/lib/courier/courier-authlib/ ++/usr/lib/libcourierauth*.so.* +/usr/sbin/authenumerate +/usr/sbin/authpasswd +/usr/sbin/authtest +/usr/sbin/courierlogger +/usr/share/man/man1/authpasswd.1 +/usr/share/man/man1/authtest.1 +/usr/share/man/man1/courierlogger.1 +/usr/share/man/man8/authenumerate.8 - - diff --cc debian/courier-authlib.lintian-overrides index 0000000,0000000..477046a new file mode 100644 --- /dev/null +++ b/debian/courier-authlib.lintian-overrides @@@ -1,0 -1,0 +1,1 @@@ ++courier-authlib: package-name-doesnt-match-sonames * diff --cc debian/courier-authlib.postinst index 0000000,0000000..76055c5 new file mode 100644 --- /dev/null +++ b/debian/courier-authlib.postinst @@@ -1,0 -1,0 +1,12 @@@ ++#!/bin/sh -e ++ ++if [ "$1" = "configure" ]; then ++ # create courier user and group ++ if ! getent passwd courier > /dev/null; then ++ adduser --quiet --system --group --no-create-home --home /var/lib/courier courier ++ fi ++fi ++ ++#DEBHELPER# ++ ++exit 0 diff --cc debian/courier-authlib.symbols index 6443838,0000000..888fc4a mode 100644,000000..100644 --- a/debian/courier-authlib.symbols +++ b/debian/courier-authlib.symbols @@@ -1,116 -1,0 +1,128 @@@ - libcourierauth.so courier-authlib #MINVER# ++libauthcustom.so courier-authlib #MINVER# ++ courier_authcustom_init@Base 0.66.4 ++libauthpam.so courier-authlib #MINVER# ++ courier_authpam_init@Base 0.66.4 ++libcourierauth.so.0 courier-authlib #MINVER# +* Build-Depends-Package: courier-authlib-dev + _auth_enumerate@Base 0.63.0 + _authdaemondo@Base 0.63.0 + _authdaemondopasswd@Base 0.63.0 + auth_callback_default@Base 0.63.0 ++ auth_callback_default_autocreate@Base 0.66.4 + auth_daemon_cleanup@Base 0.63.0 + auth_enumerate@Base 0.63.0 + auth_generic@Base 0.63.0 + auth_getoption@Base 0.63.0 + auth_getoptionenv@Base 0.63.0 + auth_getoptionenvint@Base 0.63.0 + auth_getuserinfo@Base 0.63.0 + auth_login@Base 0.63.0 ++ auth_mkhomedir@Base 0.66.4 + auth_passwd@Base 0.63.0 + authdaemondo@Base 0.63.0 + authdaemondopasswd@Base 0.63.0 + courier_auth_err@Base 0.63.0 + courier_authdebug_authinfo@Base 0.63.0 + courier_authdebug_login@Base 0.63.0 + courier_authdebug_login_init@Base 0.63.0 + courier_authdebug_login_level@Base 0.63.0 + courier_authdebug_printf@Base 0.63.0 + courier_safe_printf@Base 0.63.0 + hmac_hashkey@Base 0.63.0 + hmac_hashtext@Base 0.63.0 + hmac_list@Base 0.63.0 + hmac_md5@Base 0.63.0 + hmac_sha1@Base 0.63.0 + hmac_sha256@Base 0.63.0 + libmail_atogid_t@Base 0.63.0 + libmail_atotime_t@Base 0.63.0 + libmail_atouid_t@Base 0.63.0 + libmail_changegroup@Base 0.63.0 + libmail_changeuidgid@Base 0.63.0 + libmail_changeusername@Base 0.63.0 + libmail_encode@Base 0.63.0 + libmail_encode_end@Base 0.63.0 + libmail_encode_start@Base 0.63.0 + libmail_str_dev_t@Base 0.63.0 + libmail_str_gid_t@Base 0.63.0 + libmail_str_ino_t@Base 0.63.0 ++ libmail_str_int64_t@Base 0.66.4 + libmail_str_off_t@Base 0.63.0 + libmail_str_pid_t@Base 0.63.0 + libmail_str_size_t@Base 0.63.0 + libmail_str_sizekb@Base 0.63.0 + libmail_str_time_t@Base 0.63.0 + libmail_str_uid_t@Base 0.63.0 + libmail_strh_dev_t@Base 0.63.0 + libmail_strh_ino_t@Base 0.63.0 + libmail_strh_pid_t@Base 0.63.0 + libmail_strh_time_t@Base 0.63.0 + libmail_strtogid_t@Base 0.63.0 + libmail_strtotime_t@Base 0.63.0 + libmail_strtouid_t@Base 0.63.0 + md5_context_digest@Base 0.63.0 + md5_context_endstream@Base 0.63.0 + md5_context_hash@Base 0.63.0 + md5_context_hashstream@Base 0.63.0 + md5_context_init@Base 0.63.0 + md5_context_restore@Base 0.63.0 + md5_crypt_redhat@Base 0.63.0 + md5_digest@Base 0.63.0 + md5_hash_courier@Base 0.63.0 + md5_hash_raw@Base 0.63.0 + random128@Base 0.63.0 + random128_alpha@Base 0.63.0 + random128_binary@Base 0.63.0 + sha1_context_digest@Base 0.63.0 + sha1_context_endstream@Base 0.63.0 + sha1_context_hash@Base 0.63.0 + sha1_context_hashstream@Base 0.63.0 + sha1_context_init@Base 0.63.0 + sha1_context_restore@Base 0.63.0 + sha1_digest@Base 0.63.0 + sha1_hash@Base 0.63.0 + sha256_context_digest@Base 0.63.0 + sha256_context_endstream@Base 0.63.0 + sha256_context_hash@Base 0.63.0 + sha256_context_hashstream@Base 0.63.0 + sha256_context_init@Base 0.63.0 + sha256_context_restore@Base 0.63.0 + sha256_digest@Base 0.63.0 + sha256_hash@Base 0.63.0 + sha512_context_digest@Base 0.63.0 + sha512_context_endstream@Base 0.63.0 + sha512_context_hash@Base 0.63.0 + sha512_context_hashstream@Base 0.63.0 + sha512_context_init@Base 0.63.0 + sha512_context_restore@Base 0.63.0 + sha512_digest@Base 0.63.0 + sha512_hash@Base 0.63.0 + ssha_hash@Base 0.63.0 + strdupdefdomain@Base 0.63.0 - libcourierauthcommon.so courier-authlib #MINVER# ++libcourierauthcommon.so.0 courier-authlib #MINVER# +* Build-Depends-Package: courier-authlib-dev + auth_cram_callback@Base 0.63.0 + auth_get_cram@Base 0.63.0 ++ auth_get_cram_silent@Base 0.66.4 ++ auth_parse_chpass_clause@Base 0.66.4 ++ auth_parse_select_clause@Base 0.66.4 + auth_pwd_enumerate@Base 0.63.0 + auth_sys_common@Base 0.63.0 + auth_syspasswd@Base 0.63.0 + auth_verify_cram@Base 0.63.0 + authcheckpassword@Base 0.63.0 + authcheckpasswordmd5@Base 0.63.0 + authcheckpasswordsha1@Base 0.63.0 + authcryptpasswd@Base 0.63.0 ++ authgetconfig@Base 0.66.4 + authsasl_frombase64@Base 0.63.0 + authsasl_tobase64@Base 0.63.0 + courier_auth_ldap_escape@Base 0.63.0 - libcourierauthsasl.so courier-authlib #MINVER# ++libcourierauthsasl.so.0 courier-authlib #MINVER# +* Build-Depends-Package: courier-authlib-dev + auth_sasl@Base 0.63.0 + auth_sasl_ex@Base 0.63.0 - libcourierauthsaslclient.so courier-authlib #MINVER# ++ auth_sasl_extract_userid@Base 0.66.4 ++libcourierauthsaslclient.so.0 courier-authlib #MINVER# +* Build-Depends-Package: courier-authlib-dev + auth_sasl_client@Base 0.63.0 diff --cc debian/patches/0001-Don-t-mangle-permissions-on-install-time-as-it-s-tak.patch index 0000000,0000000..3f97200 new file mode 100644 --- /dev/null +++ b/debian/patches/0001-Don-t-mangle-permissions-on-install-time-as-it-s-tak.patch @@@ -1,0 -1,0 +1,72 @@@ ++From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= ++Date: Mon, 8 Feb 2016 14:59:54 +0100 ++Subject: Don't mangle permissions on install time as it's take care of in ++ Debian package ++ ++--- ++ Makefile.am | 14 -------------- ++ 1 file changed, 14 deletions(-) ++ ++diff --git a/Makefile.am b/Makefile.am ++index 7f4c09b..bfa3981 100644 ++--- a/Makefile.am +++++ b/Makefile.am ++@@ -121,8 +121,6 @@ install-authpgsqlrc: ++ $(mkinstalldirs) $(DESTDIR)`dirname @authpgsqlrc@` || : ++ $(INSTALL_DATA) -m 660 $(srcdir)/authpgsqlrc \ ++ $(DESTDIR)@authpgsqlrc@.dist ++- -chown @mailuser@ $(DESTDIR)@authpgsqlrc@.dist ++- -chgrp @mailgroup@ $(DESTDIR)@authpgsqlrc@.dist ++ ++ uninstall-authpgsqlrc: ++ rm -f $(DESTDIR)@authpgsqlrc@.dist ++@@ -156,8 +154,6 @@ install-authldaprc: ++ $(mkinstalldirs) $(DESTDIR)`dirname @authldaprc@` || : ++ $(INSTALL_DATA) -m 660 $(srcdir)/authldaprc \ ++ $(DESTDIR)@authldaprc@.dist ++- -chown @mailuser@ $(DESTDIR)@authldaprc@.dist ++- -chgrp @mailgroup@ $(DESTDIR)@authldaprc@.dist ++ ++ uninstall-authldaprc: ++ rm -f $(DESTDIR)@authldaprc@.dist ++@@ -189,8 +185,6 @@ install-authmysqlrc: ++ $(mkinstalldirs) $(DESTDIR)`dirname @authmysqlrc@` || : ++ $(INSTALL_DATA) -m 660 $(srcdir)/authmysqlrc \ ++ $(DESTDIR)@authmysqlrc@.dist ++- -chown @mailuser@ $(DESTDIR)@authmysqlrc@.dist ++- -chgrp @mailgroup@ $(DESTDIR)@authmysqlrc@.dist ++ ++ uninstall-authmysqlrc: ++ rm -f $(DESTDIR)@authmysqlrc@.dist ++@@ -222,8 +216,6 @@ install-authsqliterc: ++ $(mkinstalldirs) $(DESTDIR)`dirname @authsqliterc@` || : ++ $(INSTALL_DATA) -m 660 $(srcdir)/authsqliterc \ ++ $(DESTDIR)@authsqliterc@.dist ++- -chown @mailuser@ $(DESTDIR)@authsqliterc@.dist ++- -chgrp @mailgroup@ $(DESTDIR)@authsqliterc@.dist ++ ++ uninstall-authsqliterc: ++ rm -f $(DESTDIR)@authsqliterc@.dist ++@@ -271,8 +263,6 @@ install-authdaemonrc: ++ sed 's/@ALLMODULES@/$(modules:lib%.la=%)/' authdaemonrc.tmp ++ $(INSTALL_DATA) -m 660 authdaemonrc.tmp $(DESTDIR)@authdaemonrc@.dist ++ rm -f authdaemonrc.tmp ++- -chown @mailuser@ $(DESTDIR)@authdaemonrc@.dist ++- -chgrp @mailgroup@ $(DESTDIR)@authdaemonrc@.dist ++ ++ uninstall-authdaemonrc: ++ rm -f $(DESTDIR)@authdaemonrc@.dist ++@@ -423,13 +413,9 @@ install-exec-hook: ++ $(mkinstalldirs) $(DESTDIR)$(sbindir) || : ++ $(mkinstalldirs) $(DESTDIR)$(pkglibexecdir) || : ++ chmod 755 $(DESTDIR)$(pkglibexecdir) ++- -chown @mailuser@ $(DESTDIR)$(pkglibexecdir) ++- -chgrp @mailgroup@ $(DESTDIR)$(pkglibexecdir) ++ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) authdaemondprog $(DESTDIR)$(pkglibexecdir)/authdaemond ++ $(mkinstalldirs) $(DESTDIR)@authdaemonvar@ || : ++ chmod 750 $(DESTDIR)@authdaemonvar@ ++- -chown @mailuser@ $(DESTDIR)@authdaemonvar@ ++- -chgrp @mailgroup@ $(DESTDIR)@authdaemonvar@ ++ test "@LIBAUTHUSERDB@" = "" && exit 0 ;\ ++ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) libs/makedat/makedatprog \ ++ $(DESTDIR)$(pkglibexecdir)/makedatprog ; \ diff --cc debian/patches/0002-Rip-AC_PROG_SYSCONFTOOL-macro-to-m4-directory.patch index 0000000,0000000..af0dee7 new file mode 100644 --- /dev/null +++ b/debian/patches/0002-Rip-AC_PROG_SYSCONFTOOL-macro-to-m4-directory.patch @@@ -1,0 -1,0 +1,80 @@@ ++From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= ++Date: Mon, 8 Feb 2016 15:09:24 +0100 ++Subject: Rip AC_PROG_SYSCONFTOOL macro to m4/ directory ++ ++--- ++ Makefile.am | 2 ++ ++ configure.ac | 2 ++ ++ m4/sysconftool.m4 | 37 +++++++++++++++++++++++++++++++++++++ ++ 3 files changed, 41 insertions(+) ++ create mode 100644 m4/sysconftool.m4 ++ ++diff --git a/Makefile.am b/Makefile.am ++index bfa3981..f39338a 100644 ++--- a/Makefile.am +++++ b/Makefile.am ++@@ -2,6 +2,8 @@ ++ # Copyright 1998 - 2009 Double Precision, Inc. See COPYING for ++ # distribution information. ++ +++ACLOCAL_AMFLAGS = -I m4 +++ ++ AUTOMAKE_OPTIONS=dist-bzip2 ++ ++ SUBDIRS=libs/gdbmobj libs/bdbobj libs/md5 libs/sha1 libs/libhmac libs/numlib libs/makedat userdb libs/rfc822 libs/random128 libs/liblock liblog ++diff --git a/configure.ac b/configure.ac ++index 54dbbc6..7450d5f 100644 ++--- a/configure.ac +++++ b/configure.ac ++@@ -9,6 +9,8 @@ AC_INIT([courier-authlib],[0.66.4],[courier-users@lists.sourceforge.net]) ++ ++ AC_CONFIG_SRCDIR([courierauth.h]) ++ +++AC_CONFIG_MACRO_DIR([m4]) +++ ++ AM_INIT_AUTOMAKE ++ AC_CONFIG_HEADERS([courier_auth_config.h]) ++ >confdefs.h # Kill PACKAGE_ macros ++diff --git a/m4/sysconftool.m4 b/m4/sysconftool.m4 ++new file mode 100644 ++index 0000000..5e21e7b ++--- /dev/null +++++ b/m4/sysconftool.m4 ++@@ -0,0 +1,37 @@ +++# Configure sysconftool +++# Copyright 2000-2005 Double Precision, Inc. See COPYING for +++# distribution information. +++# +++# AC_PROG_SYSCONFTOOL +++ +++AC_DEFUN([AC_PROG_SYSCONFTOOL], +++[ +++ +++ AC_PATH_PROGS(SYSCONFTOOL_PERL, perl5 perl, perl) +++ +++ if test "$SYSCONFTOOL_PERL" = "perl" +++ then +++ AC_ERROR(perl not found - please install perl) +++ fi +++ +++ AC_MSG_CHECKING(for sysconftool...) +++ SYSCONFTOOL="" +++ for sysconf_dir in $ac_aux_dir . .. ../.. +++ do +++ if test -f $srcdir/$sysconf_dir/sysconftool +++ then +++ SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool +++ break +++ fi +++ done +++ +++ if test "$SYSCONFTOOL" = "" +++ then +++ AC_ERROR(sysconftool missing - not in the package) +++ fi +++ +++ AC_MSG_RESULT( $SYSCONFTOOL) +++ SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL" +++ AC_SUBST(SYSCONFTOOL) +++] +++) diff --cc debian/patches/0003-Fix-authdaemondprog-linking-missing-libcourierauth.l.patch index 0000000,0000000..b1c5810 new file mode 100644 --- /dev/null +++ b/debian/patches/0003-Fix-authdaemondprog-linking-missing-libcourierauth.l.patch @@@ -1,0 -1,0 +1,26 @@@ ++From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= ++Date: Mon, 8 Feb 2016 15:26:48 +0100 ++Subject: Fix authdaemondprog linking; missing libcourierauth.la ++ ++--- ++ Makefile.am | 4 ++-- ++ 1 file changed, 2 insertions(+), 2 deletions(-) ++ ++diff --git a/Makefile.am b/Makefile.am ++index f39338a..1d6cdb0 100644 ++--- a/Makefile.am +++++ b/Makefile.am ++@@ -350,11 +350,11 @@ authenumerate_LDFLAGS= ++ # The main daemon. ++ ++ authdaemondprog_SOURCES=authdaemond.c ++-authdaemondprog_DEPENDENCIES=libcourierauthcommon.la \ +++authdaemondprog_DEPENDENCIES=libcourierauthcommon.la libcourierauth.la \ ++ libs/liblock/liblock.la $(modules) \ ++ libs/libhmac/libhmac.la libs/md5/libmd5.la libs/sha1/libsha1.la \ ++ libs/rfc822/libencode.la libs/numlib/libnumlib.la ++-authdaemondprog_LDADD=$(LIBLTDL) libcourierauthcommon.la libs/liblock/liblock.la \ +++authdaemondprog_LDADD=$(LIBLTDL) libcourierauthcommon.la libcourierauth.la libs/liblock/liblock.la \ ++ libs/libhmac/libhmac.la libs/md5/libmd5.la libs/sha1/libsha1.la \ ++ libs/rfc822/libencode.la libs/numlib/libnumlib.la ++ authdaemondprog_LDFLAGS=-export-dynamic $(modules:%=-dlopen %) @NETLIBS@ diff --cc debian/patches/0004-Reorder-libs-on-pkglib_LTLIBRARIES-to-help-libtool-f.patch index 0000000,0000000..8127028 new file mode 100644 --- /dev/null +++ b/debian/patches/0004-Reorder-libs-on-pkglib_LTLIBRARIES-to-help-libtool-f.patch @@@ -1,0 -1,0 +1,24 @@@ ++From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= ++Date: Mon, 8 Feb 2016 15:43:46 +0100 ++Subject: Reorder libs on pkglib_LTLIBRARIES to help libtool find the libs ++ ++--- ++ Makefile.am | 4 ++-- ++ 1 file changed, 2 insertions(+), 2 deletions(-) ++ ++diff --git a/Makefile.am b/Makefile.am ++index 1d6cdb0..6c17973 100644 ++--- a/Makefile.am +++++ b/Makefile.am ++@@ -18,9 +18,9 @@ modules=@LIBAUTHUSERDB@ \ ++ pkglibexecdir=$(libexecdir)/courier-authlib ++ pkglibexec_SCRIPTS=authsystem.passwd ++ ++-pkglib_LTLIBRARIES=libcourierauth.la \ +++pkglib_LTLIBRARIES=libcourierauth.la libcourierauthcommon.la \ ++ libcourierauthsasl.la libcourierauthsaslclient.la \ ++- libcourierauthcommon.la $(modules) +++ $(modules) ++ sbin_SCRIPTS=authdaemond ++ sbin_PROGRAMS=authtest authenumerate authpasswd ++ bin_PROGRAMS=courierauthconfig diff --cc debian/patches/0005-libcourierauth-libraries-are-normal-shared-libraries.patch index 0000000,0000000..f279d4c new file mode 100644 --- /dev/null +++ b/debian/patches/0005-libcourierauth-libraries-are-normal-shared-libraries.patch @@@ -1,0 -1,0 +1,62 @@@ ++From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= ++Date: Wed, 16 Mar 2016 10:16:21 +0100 ++Subject: libcourierauth* libraries are normal shared libraries, ++ treat them as such ++ ++--- ++ Makefile.am | 14 +++++++------- ++ 1 file changed, 7 insertions(+), 7 deletions(-) ++ ++diff --git a/Makefile.am b/Makefile.am ++index 6c17973..e41bcfd 100644 ++--- a/Makefile.am +++++ b/Makefile.am ++@@ -18,9 +18,9 @@ modules=@LIBAUTHUSERDB@ \ ++ pkglibexecdir=$(libexecdir)/courier-authlib ++ pkglibexec_SCRIPTS=authsystem.passwd ++ ++-pkglib_LTLIBRARIES=libcourierauth.la libcourierauthcommon.la \ ++- libcourierauthsasl.la libcourierauthsaslclient.la \ ++- $(modules) +++lib_LTLIBRARIES=libcourierauth.la libcourierauthcommon.la \ +++ libcourierauthsasl.la libcourierauthsaslclient.la +++pkglib_LTLIBRARIES=$(modules) ++ sbin_SCRIPTS=authdaemond ++ sbin_PROGRAMS=authtest authenumerate authpasswd ++ bin_PROGRAMS=courierauthconfig ++@@ -62,7 +62,7 @@ libcourierauthcommon_la_SOURCES= \ ++ ++ libcourierauthcommon_la_DEPENDENCIES=libcourierauth.la ++ libcourierauthcommon_la_LIBADD=libcourierauth.la ++-libcourierauthcommon_la_LDFLAGS=$(libcourierauthcommon_t:%=-Wl,%) -avoid-version +++libcourierauthcommon_la_LDFLAGS=$(libcourierauthcommon_t:%=-Wl,%) -version 0:0:0 ++ ++ libcourierauth_la_SOURCES=authdaemon.c authdaemonlib.c preauthdaemon.c \ ++ authmoduser2.c authmoduser3.c debug.c \ ++@@ -70,7 +70,7 @@ libcourierauth_la_SOURCES=authdaemon.c authdaemonlib.c preauthdaemon.c \ ++ authoption.c ++ libcourierauth_la_LIBADD=libs/libhmac/libhmac.la libs/md5/libmd5.la libs/sha1/libsha1.la libs/numlib/libnumlib.la \ ++ libs/random128/librandom128.la libs/rfc822/libencode.la ++-libcourierauth_la_LDFLAGS=@NETLIBS@ -avoid-version +++libcourierauth_la_LDFLAGS=@NETLIBS@ -version 0:0:0 ++ ++ # The userdb module ++ ++@@ -315,7 +315,7 @@ libcourierauthsasl_la_SOURCES=\ ++ authsaslcram.c authsasllogin.c authsaslplain.c \ ++ authsaslfrombase64.c authsasltobase64.c ++ libcourierauthsasl_la_LIBADD=libcourierauthcommon.la libcourierauth.la ++-libcourierauthsasl_la_LDFLAGS=-export-symbols-regex '^auth_sasl|auth_sasl_ex|auth_sasl_extract_userid$$' -avoid-version +++libcourierauthsasl_la_LDFLAGS=-export-symbols-regex '^auth_sasl|auth_sasl_ex|auth_sasl_extract_userid$$' -version 0:0:0 ++ ++ libcourierauthsaslclient_la_SOURCES=courierauthsaslclient.h \ ++ authsaslclient.c authsaslclient.h authsaslclientcram.c \ ++@@ -324,7 +324,7 @@ libcourierauthsaslclient_la_SOURCES=courierauthsaslclient.h \ ++ authsaslclientexternal.c \ ++ authsaslfrombase64.c authsasltobase64.c ++ libcourierauthsaslclient_la_LIBADD=libcourierauth.la ++-libcourierauthsaslclient_la_LDFLAGS=-export-symbols-regex '^auth_sasl_client$$' -avoid-version +++libcourierauthsaslclient_la_LDFLAGS=-export-symbols-regex '^auth_sasl_client$$' -version 0:0:0 ++ ++ include_HEADERS=courier_auth_config.h courierauth.h courierauthsasl.h \ ++ courierauthsaslclient.h courierauthdebug.h courierauthstaticlist.h diff --cc debian/patches/series index 0000000,0000000..5ec4df0 new file mode 100644 --- /dev/null +++ b/debian/patches/series @@@ -1,0 -1,0 +1,5 @@@ ++0001-Don-t-mangle-permissions-on-install-time-as-it-s-tak.patch ++0002-Rip-AC_PROG_SYSCONFTOOL-macro-to-m4-directory.patch ++0003-Fix-authdaemondprog-linking-missing-libcourierauth.l.patch ++0004-Reorder-libs-on-pkglib_LTLIBRARIES-to-help-libtool-f.patch ++0005-libcourierauth-libraries-are-normal-shared-libraries.patch diff --cc debian/rules index 7668ab1,0000000..8f6e259 mode 100755,000000..100755 --- a/debian/rules +++ b/debian/rules @@@ -1,203 -1,0 +1,81 @@@ +#!/usr/bin/make -f - # - # Copyright 2004,2005,2008 by Stefan Hornburg (Racke) - # - # This program is free software; you can redistribute it and/or modify - # it under the terms of the GNU General Public License as published by - # the Free Software Foundation; either version 2 of the License, or - # (at your option) any later version. - # - # This program is distributed in the hope that it will be useful, - # but WITHOUT ANY WARRANTY; without even the implied warranty of - # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - # GNU General Public License for more details. - # - # You should have received a copy of the GNU General Public - # License along with this program; if not, write to the Free - # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, - # MA 02111-1307 USA. ++# See debhelper(7) (uncomment to enable) ++# output every command that modifies files on the build system. ++#DH_VERBOSE = 1 + - BUILD=$(shell pwd)/debian/tmp - RELUP=$(shell dpkg-parsechangelog | perl -ne 'print $$1 if /^Version: (.*?)-(.*)$$/') ++# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* ++DPKG_EXPORT_BUILDFLAGS = 1 ++include /usr/share/dpkg/default.mk + - # Uncomment this to turn on verbose mode. - # export DH_VERBOSE=1 ++# see FEATURE AREAS in dpkg-buildflags(1) ++#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + - # This has to be exported to make some magic below work. - export DH_OPTIONS ++# see ENVIRONMENT in dpkg-buildflags(1) ++# package maintainers to append CFLAGS ++#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic ++# package maintainers to append LDFLAGS ++#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + - export SHELL = /bin/bash ++export DPKG_GENSYMBOLS_CHECK_LEVEL=4 + - # Common configuration options - NONSSL_CONFOPTS=--without-certdb --without-authpgsql ++# main packaging script based on dh7 syntax ++%: ++ dh $@ --with autoreconf --with autotools-dev + - CFLAGS = `dpkg-buildflags --get CFLAGS` - LDFLAGS = `dpkg-buildflags --get LDFLAGS` - LDFLAGS += -lcrypt - CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` - - COMMON_CONFOPTS=--prefix=/usr --mandir=\$${prefix}/share/man \ - --with-authdaemonvar=/var/run/courier/authdaemon \ - CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \ - --sysconfdir=/etc/courier \ ++COMMON_CONFOPTS=--with-authdaemonvar=/run/courier/authdaemon \ + --with-pkgconfdir=/etc/courier \ ++ --libdir=\$${prefix}/lib \ + --libexecdir=\$${prefix}/lib/courier \ + --datadir=\$${prefix}/lib/courier \ + --localstatedir=/var/lib/courier \ - --sbindir=\$${exec_prefix}/sbin \ - --with-mailuser=daemon \ - --with-mailgroup=daemon \ + --without-socks \ + --with-authpam \ + --with-authpipe \ + --without-authpwd \ + --with-authmysql \ + --with-mysql-includes=/usr/include/mysql \ + --with-mysql-libs=/usr/lib \ + --with-authmysqlrc=/etc/courier/authmysqlrc \ + --with-authpgsql \ + --with-pgsql-includes=`pg_config --includedir` \ + --with-pgsql-libs=/usr/lib \ + --with-authpgsqlrc=/etc/courier/authpgsqlrc \ + --without-authshadow \ - --with-authdaemonvar=/var/run/courier/authdaemon \ + --with-authldap \ + --with-authldaprc=/etc/courier/authldaprc \ ++ --with-authsqlite="" \ ++ --with-authsqliterc=/etc/courier/authsqliterc \ + --with-authcram \ + --with-db=gdbm \ + --without-fcgi \ + --with-htmllibdir=/usr/share/sqwebmail \ + --with-ispell=/usr/bin/ispell \ + --enable-userdb \ + --enable-syslog=1 \ - --disable-root-check - - check: - dh_testdir - chmod +x debian/courier_perms - - build: check - # create a list of files that currently exists - if [ ! -f stamp-build ]; then \ - if [ -d /usr/include/postgresql/8.0/libpq_fe.h ]; then \ - ./configure $(COMMON_CONFOPTS) \ - --with-postgresql-includes=/usr/include/postgresql/8.0 \ - && $(MAKE) && touch stamp-build; \ - else \ - ./configure $(COMMON_CONFOPTS) \ - --with-postgresql-includes=/usr/include/postgresql \ - && $(MAKE) && touch stamp-build; \ - fi \ - fi - - stamp-build: build - - clean: check - dh_testroot - rm -f stamp-build stamp-install - - # Add here commands to clean up after the build process. - [ ! -f Makefile ] || $(MAKE) distclean - dh_clean - - install: check stamp-build - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/tmp. - $(MAKE) DESTDIR=$(BUILD) install - - sed -i "/dependency_libs/ s/'.*'/''/" `find $(BUILD) -name '*.la'` - - # (cd $(BUILD)/usr/lib/courier/courier-authlib/changepwd; ln -fs ../../authsystem.passwd ./authsystem.passwd) - - # Install authentification test program - # mv $(BUILD)/usr/sbin/authtest $(BUILD)/usr/sbin/courierauthtest - - # Additional manpages - pod2man --center='Debian GNU/Linux Documentation' --release='Debian GNU/Linux '`cat /etc/debian_version` --section=8 debian/authenumerate.pod > $(BUILD)/usr/share/man/man8/authenumerate.8 - # pod2man --center='Debian GNU/Linux Documentation' --release='Debian GNU/Linux '`cat /etc/debian_version` --section=8 debian/courierauthtest.pod > $(BUILD)/usr/share/man/man8/courierauthtest.8 - - dh_installdocs - # - change authentification default settings - perl -pe 's/^authmodulelist=".*?"/authmodulelist="authpam"/' $(BUILD)/etc/courier/authdaemonrc.dist > $(BUILD)/etc/courier/authdaemonrc - # - change default LDAP server - perl -pe 's/^(LDAP_SERVER\s+)ldap.example.com/$$1localhost/' $(BUILD)/etc/courier/authldaprc.dist > $(BUILD)/etc/courier/authldaprc - # - change default MySQL server - perl -pe 's/^(MYSQL_SERVER\s+)mysql.example.com/$$1localhost/;s%^(#?\s*MYSQL_SOCKET\s+)/.*%$$1/var/run/mysqld/mysqld.sock%' $(BUILD)/etc/courier/authmysqlrc.dist > $(BUILD)/etc/courier/authmysqlrc - mv $(BUILD)/etc/courier/authpgsqlrc.dist $(BUILD)/etc/courier/authpgsqlrc - rm $(BUILD)/etc/courier/*.dist - - # Lintian overrides - mkdir -p $(BUILD)/usr/share/lintian/overrides - for package in courier-authdaemon courier-authlib-ldap courier-authlib-mysql courier-authlib-postgresql; do \ - cp debian/$$package.lintian $(BUILD)/usr/share/lintian/overrides/$$package; \ - done - - # This seems to be necessary for building in fakeroot - # environment (otherwise dh_strip fails) - # set all binaries to 755, by checking if user has x-bit - # debian/courier_perms will set the right permissions - find $(BUILD) -perm -u+x -type f | xargs chmod u+rwx,go+rx - - dh_movefiles ++ --disable-root-check \ + - # Check if all files have moved out - if [ `find $(BUILD) -not -type d | wc -l` -ne 0 ]; then find $(BUILD) -not -type d; echo "File(s) found not belonging to any package, please contact maintainer"; exit 1; fi ++override_dh_auto_configure: ++ dh_auto_configure -- $(COMMON_CONFOPTS) + - touch stamp-install ++override_dh_install: ++ pod2man --center='Debian GNU/Linux Documentation' --release='Debian GNU/Linux '`cat /etc/debian_version` --section=8 debian/authenumerate.pod > debian/tmp/usr/share/man/man8/authenumerate.8 + - stamp-install: install ++# Change default module list ++ perl -pe 's/^authmodulelist=".*?"/authmodulelist="authpam"/' debian/tmp/etc/courier/authdaemonrc.dist > debian/tmp/etc/courier/authdaemonrc ++ rm debian/tmp/etc/courier/authdaemonrc.dist + - # Build architecture-independent files here. - binary-indep: stamp-build stamp-install - dh_testdir - dh_testroot - # dh_installdebconf -i - dh_installexamples -i - dh_installmenu -i - dh_installinit -i - dh_installinfo -i - dh_installchangelogs -i - dh_strip -i - dh_link -i - dh_compress -i - dh_fixperms -i - debian/courier_perms -i - dh_installdeb -i - dh_perl -i - dh_shlibdeps -i - dh_gencontrol -i - dh_md5sums -i - dh_builddeb -i ++# Change default LDAP server to localhost ++ perl -pe 's/^(LDAP_SERVER\s+)ldap.example.com/$$1localhost/' debian/tmp/etc/courier/authldaprc.dist > debian/tmp/etc/courier/authldaprc ++ rm debian/tmp/etc/courier/authldaprc.dist + - calibdir = debian/courier-authlib/usr/lib/courier-authlib ++# Change default MySQL server to localhost ++ perl -pe 's/^(MYSQL_SERVER\s+)mysql.example.com/$$1localhost/;s%^(#?\s*MYSQL_SOCKET\s+)/.*%$$1/var/run/mysqld/mysqld.sock%' debian/tmp/etc/courier/authmysqlrc.dist > debian/tmp/etc/courier/authmysqlrc ++ rm debian/tmp/etc/courier/authmysqlrc.dist + - # Build architecture-dependent files here. - binary-arch: stamp-build stamp-install - dh_testdir - dh_testroot - # dh_installdebconf -a - dh_installexamples -a - dh_installmenu -a - dh_installinit -a - dh_installcron -a - dh_installinfo -a - dh_installchangelogs -a - dh_strip -a - dh_link -a - dh_compress -a - dh_fixperms -a - debian/courier_perms -a - dh_perl -a - dh_makeshlibs -pcourier-authlib -- -Pdebian/courier-authlib -e$(calibdir)/libcourier*.so - dh_shlibdeps -a -l$(calibdir) - dh_installdeb -a - dh_gencontrol -- -VRELUP="$(RELUP)" - dh_md5sums -a - dh_builddeb -a ++# Change default SQlite 3 path to /var/lib/courier/users.db ++ perl -pe 's%^(SQLITE_DATABASE\s+)/var/users.db%$$1/var/lib/courier/users.db%' debian/tmp/etc/courier/authsqliterc.dist > debian/tmp/etc/courier/authsqliterc ++ rm debian/tmp/etc/courier/authsqliterc.dist + - binary: binary-arch ++ mv debian/tmp/etc/courier/authpgsqlrc.dist debian/tmp/etc/courier/authpgsqlrc + - .PHONY: check build clean binary-arch binary install ++ dh_install --fail-missing -X.la diff --cc debian/source/format index 0000000,0000000..163aaf8 new file mode 100644 --- /dev/null +++ b/debian/source/format @@@ -1,0 -1,0 +1,1 @@@ ++3.0 (quilt) diff --cc debian/upstream/signing-key.asc index 0000000,0000000..6138fb9 new file mode 100644 --- /dev/null +++ b/debian/upstream/signing-key.asc @@@ -1,0 -1,0 +1,76 @@@ ++-----BEGIN PGP PUBLIC KEY BLOCK----- ++Version: GnuPG v2 ++ ++mQGiBD6W3dERBACs8DKeUr2/eoLJ+INfsRGHMzq+6cKHMdpX7AWP789AKYZpqFr2 ++s117HQWyDgYhOj/M1mlwlgh+37B6dBoRTPcjihi+1d12Nt8q3U+QPk4V7+LteOSG ++/2gdO2kQpVE9mwigu/rY9fUYFv1ElN6YWZlS/KMX40VkNOcjeFFQr81DYwCggZeP ++19Ey6FHr5pv7gsihdgHyF9kD/3TlOaDL8N4AR0Kq/hwJz9It+j2cFXMaPVRp6Jjg ++oZwhEEpoC4k1PbaD2agLm8a8kAd24DqZYPQ5OqemGoJUQPmFHyWM8HzJGNNuYl+w ++HpqI6MyvPq960lO1dP6eQGyTBY2XuuZKxJcqLSyWbWA2y6JP+rBuPDFKIJsg2wtq ++KtGZA/9uIwvuOa70tVKeGdGtnoMF597w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e78740c new file mode 100644 --- /dev/null +++ b/debian/watch @@@ -1,0 -1,0 +1,5 @@@ ++version=3 ++# qa.debian.org runs a redirector which allows a simpler form of URL ++# for SourceForge based projects. The format below will automatically ++# be rewritten to use the redirector. ++opts=pgpsigurlmangle=s/$/.sig/ http://sf.net/courier/courier-authlib-(\d\S*)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))