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
9 # see FEATURE AREAS in dpkg-buildflags(1)
10 export DEB_BUILD_MAINT_OPTIONS
= hardening
=+all
12 # see ENVIRONMENT in dpkg-buildflags(1)
13 # package maintainers to append CFLAGS
14 #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
15 # package maintainers to append LDFLAGS
16 #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
18 # the build captures $SHELL, hard-wire to "/bin/sh"
19 export CONFIG_SHELL
=/bin
/sh
21 include /usr
/share
/dpkg
/default.mk
23 # main packaging script based on dh7 syntax
25 dh
$@
--with autoreconf
,pkgkde_symbolshelper
27 COMMON_CONFOPTS
=--with-authdaemonvar
=/run
/courier
/authdaemon \
28 --with-pkgconfdir
=/etc
/courier \
29 --libdir=\
$${prefix}/lib \
30 --libexecdir
=\
$${prefix}/lib
/courier \
31 --datadir=\
$${prefix}/lib
/courier \
32 --localstatedir
=/var
/lib
/courier \
33 --with-mailuser
=courier \
34 --with-mailgroup
=courier \
40 --with-mysql-includes
=/usr
/include/mysql \
41 --with-mysql-libs
=/usr
/lib \
42 --with-authmysqlrc
=/etc
/courier
/authmysqlrc \
44 --with-pgsql-includes
=`pg_config --includedir` \
45 --with-pgsql-libs
=/usr
/lib \
46 --with-authpgsqlrc
=/etc
/courier
/authpgsqlrc \
47 --without-authshadow \
49 --with-authldaprc
=/etc
/courier
/authldaprc \
50 --with-authsqlite
="" \
51 --with-authsqliterc
=/etc
/courier
/authsqliterc \
55 --with-htmllibdir
=/usr
/share
/sqwebmail \
56 --with-ispell
=/usr
/bin
/ispell \
59 --disable-root-check \
60 --with-mailuser
=daemon \
61 --with-mailgroup
=daemon \
62 --with-locking-method
=fcntl \
64 override_dh_auto_configure
:
65 dh_auto_configure
-- PS
=/bin
/ps
$(COMMON_CONFOPTS
)
68 pod2man
--center
='Debian GNU/Linux Documentation' \
69 --release
='Debian GNU/Linux '`cat /etc/debian_version` \
70 --section
=8 debian
/authenumerate.pod \
72 > debian
/tmp
/usr
/share
/man
/man8
/authenumerate
.8
74 # Change default module list
75 perl
-pe
's/^authmodulelist=".*?"/authmodulelist="authpam"/' debian
/tmp
/etc
/courier
/authdaemonrc.
dist > debian
/tmp
/etc
/courier
/authdaemonrc
76 rm -v debian
/tmp
/etc
/courier
/authdaemonrc.
dist
78 # Change default LDAP server to localhost
79 perl
-pe
's/^(LDAP_SERVER\s+)ldap.example.com/$$1localhost/' debian
/tmp
/etc
/courier
/authldaprc.
dist > debian
/tmp
/etc
/courier
/authldaprc
80 rm -v debian
/tmp
/etc
/courier
/authldaprc.
dist
82 # Change default MySQL server to localhost
83 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
84 rm -v debian
/tmp
/etc
/courier
/authmysqlrc.
dist
86 # Change default SQlite 3 path to /var/lib/courier/users.db
87 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
88 rm -v debian
/tmp
/etc
/courier
/authsqliterc.
dist
90 mv
-v debian
/tmp
/etc
/courier
/authpgsqlrc.
dist debian
/tmp
/etc
/courier
/authpgsqlrc
92 dh_install
--fail-missing
-X.la