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-localedir=/usr/share/locale \
32 --with-sysconfdir=/etc/citadel \
33 --with-spooldir=/var/spool/citadel \
34 --with-datadir=/etc/citadel \
35 --with-rundir=/var/run/citadel \
36 --with-ical --with-db --with-ldap \
37 --with-zlib --with-ssl --with-libiconf \
38 --with-newt --with-included-gettext
45 build-stamp: configure-stamp
48 # Add here commands to compile the package.
50 #docbook-to-man debian/webcit.sgml > webcit.1
57 rm -f build-stamp configure-stamp
59 # Add here commands to clean up after the build process.
70 # Add here commands to install the package into debian/webcit.
71 $(MAKE) -C . install DESTDIR=$(DESTDIR)
72 # there are debian tinymce packages arround, so we don't ship it another time.
73 rm -rf $(DESTDIR)/etc/citadel/www/tiny_mce
74 # we don't use the setup anymore, omit it.
75 rm -f $(DESTDIR)/etc/citadel/www/setup
76 # locale -> /usr/share/locale
77 mkdir -p $(DESTDIR)/usr/share/
78 mv $(DESTDIR)/etc/citadel/www/locale \
79 $(DESTDIR)/usr/share/locale
81 mkdir -p $(DESTDIR)/usr/sbin
82 mv $(DESTDIR)/etc/citadel/www/webserver \
86 # Build architecture-independent files here.
87 binary-indep: build install
88 # We have nothing to do by default.
90 # Build architecture-dependent files here.
91 binary-arch: build install
94 # dh_installchangelogs ChangeLog
100 # dh_installlogrotate
104 dh_installinit --name=webcit
121 binary: binary-indep binary-arch
122 .PHONY: build clean binary-indep binary-arch binary install configure