configure: configure-stamp
configure-stamp:
dh_testdir
- rm -rf $(CURDIR)/debian/webcit $(CURDIR)/debian/citadel-webcit $(CURDIR)/debian/citadel-webcit-apache
CFLAGS="$(CFLAGS)" ./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
- --prefix=/usr \
- --with-staticdir=/usr/share/doc/citadel-webcit/examples \
- --with-staticrundir=/var/lib/citadel/www/ \
- --with-editor=/usr/share/tiny_mce/ \
+ --prefix=/var/lib/citadel/www/ \
+ --with-sysconfdir=/etc/citadel \
+ --with-spooldir=/var/spool/citadel \
+ --with-datadir=/var/lib/citadel \
--with-rundir=/var/run/citadel \
- --with-ical --with-db --with-ldap --with-zlib --with-ssl --with-libiconf --with-newt --with-included-gettext
+ --with-ical --with-db --with-ldap \
+ --with-zlib --with-ssl --with-libiconf \
+ --with-newt --with-included-gettext
touch configure-stamp
build-stamp: configure-stamp
dh_testdir
- # Add here commands to compile the package.
+# Add here commands to compile the package.
$(MAKE)
- #docbook-to-man debian/webcit.sgml > webcit.1
+#docbook-to-man debian/webcit.sgml > webcit.1
touch build-stamp
dh_testroot
rm -f build-stamp configure-stamp
- # Add here commands to clean up after the build process.
+# Add here commands to clean up after the build process.
-$(MAKE) clean
dh_clean
# Add here commands to install the package into debian/webcit.
root=$(CURDIR)/debian/webcit/
- export root=$(CURDIR)/debian/citadel-webcit; \
- $(MAKE) install DESTDIR=$(CURDIR)/debian/citadel-webcit
- mkdir -p $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit ;\
- mv $(CURDIR)/debian/citadel-webcit/usr/sbin/setup \
- $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit/; \
- cd $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/ && \
- md5sum `find -type f |grep -v md5sums `>md5sums; \
+ mkdir -p $(CURDIR)/debian/webcit/var/lib/citadel/www/
+ export root=$(CURDIR)/debian/webcit; $(MAKE) install DESTDIR=$(CURDIR)/debian/webcit/
+ mkdir -p $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples
+ mkdir -p $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/contrib
+ mkdir -p $(CURDIR)/debian/citadel-webcit/usr/sbin
+ mkdir -p $(CURDIR)/debian/citadel-webcit/usr/lib/citadel-webcit/
+ mv $(CURDIR)/debian/webcit/var/lib/citadel/www/static \
+ $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/
+ mv $(CURDIR)/debian/webcit/var/lib/citadel/www/tiny_mce \
+ $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/
+# locale -> /usr/share/locale
+ mv $(CURDIR)/debian/webcit/var/lib/citadel/www/locale \
+ $(CURDIR)/debian/citadel-webcit/usr/share/locale
+ cd $(CURDIR)/debian/citadel-webcit/usr/share/doc/citadel-webcit/examples/; \
+ md5sum `find -type f |grep -v md5sums `>md5sums;
+# we don't use the setup anymore, omit it.
+ rm -f $(CURDIR)/debian/webcit/var/lib/citadel/www/setup
+ mv $(CURDIR)/debian/webcit/var/lib/citadel/www/webserver \
+ $(CURDIR)/debian/citadel-webcit/usr/sbin/
# Build architecture-independent files here.
binary-arch: build install
dh_testdir
dh_testroot
- dh_installchangelogs ChangeLog
+# dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
# dh_install
+# dh_installmenu
dh_installdebconf
# dh_installlogrotate
-# dh_installinit
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+ dh_installinit --name=webcit
# dh_installcron
+# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
+# dh_perl
+# dh_python
+# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol