X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fdebian%2Frules;h=992fd5296718ed565c8c48dc4919fbaa3e248d6d;hb=450479dfe521f48535fb40bad0e7ee528b68bd36;hp=1c5c346abf0e21970f96894d2f2d656f26ddb99e;hpb=9d9f8bb7bfee22a9748f8a23c204286391cd5b17;p=citadel.git diff --git a/webcit/debian/rules b/webcit/debian/rules index 1c5c346ab..992fd5296 100755 --- a/webcit/debian/rules +++ b/webcit/debian/rules @@ -13,12 +13,19 @@ DESTDIR=$(CURDIR)/debian/citadel-webcit EXTRA_ARGS= PROFILE_ARGS= -#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling" +#to enable debugging: export DEB_BUILD_OPTIONS="debug profiling compression" + + +ifneq (,$(findstring compression,$(DEB_BUILD_OPTIONS))) + ZLIB_ARGS=--without-zlib +else + ZLIB_ARGS=--with-zlib +endif ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS))) PROFILE_ARGS= --with-gprof endif ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -ggdb -rdynamic -MD -MP + CFLAGS += -O0 -ggdb -rdynamic -MD -MP -D TECH_PREVIEW LDFLAGS += -pg EXTRA_ARGS = --with-backtrace else @@ -38,8 +45,9 @@ configure-stamp: --with-rundir=/var/run/citadel \ --with-ical --with-db --with-ldap \ --with-ssldir=/etc/ssl/webcit/ \ - --with-zlib --with-ssl --with-libiconf \ + $(ZLIB_ARGS) --with-ssl --with-libiconf \ --with-newt --with-included-gettext \ + --with-datadir=/var/run/citadel \ --enable-debug $(EXTRA_ARGS) $(PROFILE_ARGS) touch configure-stamp @@ -72,6 +80,7 @@ install: build dh_clean -k dh_installdirs $(MAKE) install-bin install-locale install-wwwdata DESTDIR=$(DESTDIR) + rm $(DESTDIR)/usr/share/citadel-webcit/static/prototype.js # mkdir -p $(DESTDIR)/etc/citadel; cp webcit.conf $(DESTDIR)/etc/citadel/ @@ -84,7 +93,7 @@ binary-indep: build install binary-arch: build install dh_testdir dh_testroot -# dh_installchangelogs ChangeLog + dh_installchangelogs dh_installdocs dh_installexamples dh_install