2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
6 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
7 DPKG_EXPORT_BUILDFLAGS
= 1
8 include /usr
/share
/dpkg
/default.mk
10 # see FEATURE AREAS in dpkg-buildflags(1)
11 #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
13 # see ENVIRONMENT in dpkg-buildflags(1)
14 # package maintainers to append CFLAGS
15 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
16 # package maintainers to append LDFLAGS
17 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
19 export DPKG_GENSYMBOLS_CHECK_LEVEL
=4
21 # main packaging script based on dh7 syntax
23 dh
$@
--with autoreconf
--with autotools-dev
25 COMMON_CONFOPTS
=--with-authdaemonvar
=/run
/courier
/authdaemon \
26 --with-pkgconfdir
=/etc
/courier \
27 --libdir=\
$${prefix}/lib \
28 --libexecdir
=\
$${prefix}/lib
/courier \
29 --datadir=\
$${prefix}/lib
/courier \
30 --localstatedir
=/var
/lib
/courier \
36 --with-mysql-includes
=/usr
/include/mysql \
37 --with-mysql-libs
=/usr
/lib \
38 --with-authmysqlrc
=/etc
/courier
/authmysqlrc \
40 --with-pgsql-includes
=`pg_config --includedir` \
41 --with-pgsql-libs
=/usr
/lib \
42 --with-authpgsqlrc
=/etc
/courier
/authpgsqlrc \
43 --without-authshadow \
45 --with-authldaprc
=/etc
/courier
/authldaprc \
46 --with-authsqlite
="" \
47 --with-authsqliterc
=/etc
/courier
/authsqliterc \
51 --with-htmllibdir
=/usr
/share
/sqwebmail \
52 --with-ispell
=/usr
/bin
/ispell \
55 --disable-root-check \
57 override_dh_auto_configure
:
58 dh_auto_configure
-- $(COMMON_CONFOPTS
)
61 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
63 # Change default module list
64 perl
-pe
's/^authmodulelist=".*?"/authmodulelist="authpam"/' debian
/tmp
/etc
/courier
/authdaemonrc.
dist > debian
/tmp
/etc
/courier
/authdaemonrc
65 rm debian
/tmp
/etc
/courier
/authdaemonrc.
dist
67 # Change default LDAP server to localhost
68 perl
-pe
's/^(LDAP_SERVER\s+)ldap.example.com/$$1localhost/' debian
/tmp
/etc
/courier
/authldaprc.
dist > debian
/tmp
/etc
/courier
/authldaprc
69 rm debian
/tmp
/etc
/courier
/authldaprc.
dist
71 # Change default MySQL server to localhost
72 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
73 rm debian
/tmp
/etc
/courier
/authmysqlrc.
dist
75 # Change default SQlite 3 path to /var/lib/courier/users.db
76 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
77 rm debian
/tmp
/etc
/courier
/authsqliterc.
dist
79 mv debian
/tmp
/etc
/courier
/authpgsqlrc.
dist debian
/tmp
/etc
/courier
/authpgsqlrc
81 dh_install
--fail-missing
-X.la