40250c373468078f013b34b773329b8ee677dee8
[manu/suphp.git] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 %:
13         dh $@  --with quilt,autotools-dev,autoreconf,apache2
14
15 override_dh_auto_configure:
16         CFLAGS="$(CFLAGS) `pkg-config --cflags apr-1`" ./configure --prefix=/usr \
17         --sysconfdir=/etc/suphp \
18         --with-apxs=/usr/bin/apxs2 \
19         --with-apache-user=www-data \
20         --sbindir=/usr/lib/suphp \
21         --with-setid-mode=owner \
22         --with-logfile=/var/log/suphp/suphp.log
23
24 override_dh_auto_install:
25
26 override_dh_install:
27         dh_install
28         docbook-to-man debian/suphp-common.manpage.sgml > debian/suphp-common/usr/share/man/man8/suphp.8
29         mv debian/suphp-common/etc/suphp/suphp.conf-example debian/suphp-common/etc/suphp/suphp.conf
30         rm -f src/apache2/.libs/mod_suphp.so
31         mv src/apache2/.libs/mod_suphp.so.0.0.0 src/apache2/.libs/mod_suphp.so
32
33 override_dh_installdocs:
34         dh_installdocs
35         mv debian/libapache2-mod-suphp/usr/share/doc/libapache2-mod-suphp/INSTALL debian/libapache2-mod-suphp/usr/share/doc/libapache2-mod-suphp/README
36
37 override_dh_installchangelogs:
38         dh_installchangelogs ChangeLog
39
40 override_dh_fixperms:
41         dh_fixperms
42         chmod u+s debian/suphp-common/usr/lib/suphp/suphp
43
44 override_dh_makeshlibs:
45         # Not needed here, not a dynamic lib