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.
12 DESTDIR=$(CURDIR)/debian/citadel-webcit/
16 CFLAGS = -Wall -g -ggdb
18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
24 configure: configure-stamp
27 CFLAGS="$(CFLAGS)" ./configure \
28 --host=$(DEB_HOST_GNU_TYPE) \
29 --build=$(DEB_BUILD_GNU_TYPE) \
30 --prefix=/etc/citadel/www/ \
31 --with-sysconfdir=/etc/citadel \
32 --with-spooldir=/var/spool/citadel \
33 --with-datadir=/etc/citadel \
34 --with-rundir=/var/run/citadel \
35 --with-ical --with-db --with-ldap \
36 --with-zlib --with-ssl --with-libiconf \
37 --with-newt --with-included-gettext
44 build-stamp: configure-stamp
47 # Add here commands to compile the package.
49 #docbook-to-man debian/webcit.sgml > webcit.1
56 rm -f build-stamp configure-stamp
58 # Add here commands to clean up after the build process.
69 # Add here commands to install the package into debian/webcit.
70 $(MAKE) -C . install DESTDIR=$(DESTDIR)
71 # there are debian tinymce packages arround, so we don't ship it another time.
72 rm -rf $(DESTDIR)/etc/citadel/www/tiny_mce
73 # we don't use the setup anymore, omit it.
74 rm -f $(DESTDIR)/etc/citadel/www/setup
75 # locale -> /usr/share/locale
76 mkdir -p $(DESTDIR)/usr/share/
77 mv $(DESTDIR)/etc/citadel/www/locale \
78 $(DESTDIR)/usr/share/locale
80 mkdir -p $(DESTDIR)/usr/sbin
81 mv $(DESTDIR)/etc/citadel/www/webserver \
85 # Build architecture-independent files here.
86 binary-indep: build install
87 # We have nothing to do by default.
89 # Build architecture-dependent files here.
90 binary-arch: build install
93 # dh_installchangelogs ChangeLog
103 dh_installinit --name=webcit
120 binary: binary-indep binary-arch
121 .PHONY: build clean binary-indep binary-arch binary install configure