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.
9 # Uncomment this to turn on verbose mode.
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
23 configure: configure-stamp
26 CFLAGS="$(CFLAGS)" ./configure \
27 --host=$(DEB_HOST_GNU_TYPE) \
28 --build=$(DEB_BUILD_GNU_TYPE) \
29 --prefix=/var/lib/citadel/www/ \
30 --with-sysconfdir=/etc/citadel \
31 --with-spooldir=/var/spool/citadel \
32 --with-datadir=/var/lib/citadel \
33 --with-rundir=/var/run/citadel \
34 --with-ical --with-db --with-ldap --with-zlib --with-ssl --with-libiconf --with-newt
41 build-stamp: configure-stamp
44 # Add here commands to compile the package.
46 #docbook-to-man debian/webcit.sgml > webcit.1
53 rm -f build-stamp configure-stamp
55 # Add here commands to clean up after the build process.
66 # Add here commands to install the package into debian/webcit.
67 root=$(CURDIR)/debian/webcit/
68 mkdir -p $(CURDIR)/debian/webcit/var/lib/citadel/www/
69 export root=$(CURDIR)/debian/webcit; $(MAKE) install DESTDIR=$(CURDIR)/debian/webcit/
70 mkdir -p $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples
71 mkdir -p $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/contrib
72 mkdir -p $(CURDIR)/debian/citadel-webcit/usr/sbin
73 mkdir -p $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit/
74 mv $(CURDIR)/debian/webcit/var/lib/citadel/www/static \
75 $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/
76 cd $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/static; md5sum *|grep -v ".gz"|grep -v md5sums >md5sums
77 mv $(CURDIR)/debian/webcit/var/lib/citadel/www/setup \
78 $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit/
79 mv $(CURDIR)/debian/webcit/var/lib/citadel/www/webserver \
80 $(CURDIR)/debian/citadel-webcit/usr/sbin/
83 # Build architecture-independent files here.
84 binary-indep: build install
85 # We have nothing to do by default.
87 # Build architecture-dependent files here.
88 binary-arch: build install
91 dh_installchangelogs ChangeLog
118 binary: binary-indep binary-arch
119 .PHONY: build clean binary-indep binary-arch binary install configure