2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
5 # Uncomment this to turn on verbose mode.
8 # These are used for cross-compiling and for saving the configure script
9 # from having to guess our platform (since we know it already)
10 DEB_HOST_GNU_TYPE ?
= $(shell dpkg-architecture
-qDEB_HOST_GNU_TYPE
)
11 DEB_BUILD_GNU_TYPE ?
= $(shell dpkg-architecture
-qDEB_BUILD_GNU_TYPE
)
14 ifneq (,$(findstring debug
,$(DEB_BUILD_OPTIONS
)))
17 ifeq (,$(findstring nostrip
,$(DEB_BUILD_OPTIONS
)))
24 configure-apache2
: patch
26 CPPFLAGS
="`pkg-config --cflags apr-1`" .
/configure
--prefix=/usr \
27 --sysconfdir
=/etc
/suphp \
28 --with-apxs
=/usr
/bin
/apxs2 \
29 --with-apache-user
=www-data \
30 --with-php
=/usr
/bin
/php-cgi \
31 --sbindir
=/usr
/lib
/suphp \
32 --with-setid-mode
=owner \
33 --with-logfile
=/var
/log
/suphp
/suphp.log
36 build-apache2
: configure-apache2
45 [ ! -f Makefile
] ||
$(MAKE
) clean
46 rm -f config.log config.status src
/config.h
47 rm -f libtool src
/stamp-h
48 find .
-name .libs | xargs
rm -rf
49 find .
-name .deps | xargs
rm -rf
50 rm -f src
/apache
/mod_suphp.o src
/apache
/mod_suphp.lo src
/apache
/mod_suphp.la src
/stamp-h1
51 find .
-name Makefile | xargs
rm -f
56 install: build-apache2
60 find
-name
".svn" -type d | xargs
rm -rf
61 find
-name
".git" -type d | xargs
rm -rf
64 docbook-to-man debian
/suphp-common.manpage.sgml
> debian
/suphp-common
/usr
/share
/man
/man8
/suphp
.8
65 install -m
644 debian
/suphp-common.lintian-override debian
/suphp-common
/usr
/share
/lintian
/overrides
/suphp-common
66 mv debian
/suphp-common
/etc
/suphp
/suphp.conf-example debian
/suphp-common
/etc
/suphp
/suphp.conf
67 mv debian
/libapache2-mod-suphp
/usr
/lib
/apache2
/modules
/mod_suphp.so
.0.0.0 debian
/libapache2-mod-suphp
/usr
/lib
/apache2
/modules
/mod_suphp.so
70 # Build architecture-independent files here.
72 # We have nothing to do by default.
74 # Build architecture-dependent files here.
80 mv debian
/libapache2-mod-suphp
/usr
/share
/doc
/libapache2-mod-suphp
/INSTALL debian
/libapache2-mod-suphp
/usr
/share
/doc
/libapache2-mod-suphp
/README
91 dh_installchangelogs ChangeLog
96 chmod u
+s debian
/suphp-common
/usr
/lib
/suphp
/suphp
105 binary
: binary-indep binary-arch
106 .PHONY
: configure build build-apache2
clean binary-indep binary-arch binary
install patch unpatch