X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/e4821ef71322616f956e7d3148b9738e6faaa0aa..9c15449d763c5e9449f306ae0c320b39375afc98:/debian/rules diff --git a/debian/rules b/debian/rules index 4d37b27..d539af7 100755 --- a/debian/rules +++ b/debian/rules @@ -20,17 +20,15 @@ cgiexecdir=/usr/lib/cgi-bin httpdir=/var/www browser=x-www-browser +CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) +CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) +LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) +export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + # Options to configure. This can be overridden by the caller if necessary. CONFIGURE=--prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --mandir=/usr/share/man --with-browser=${browser} cgiexecdir="${cgiexecdir}" httpdir="${httpdir}" -# Set DEB_BUILD_OPTIONS=noopt to produce a non-optimized build. -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) -CFLAGS=-O0 -g -else -CFLAGS=-O2 -g -endif -export CFLAGS - # Install commands. You wouldn't normally override these. INSTALL=install INSTALL_DATA=$(INSTALL) -p -o root -g root -m 644 @@ -69,13 +67,7 @@ build: echo ./autogen.sh;\ ./autogen.sh;\ fi - @set -e;if test ! -f config.status; then \ - echo ./configure ${CONFIGURE} ${CONFIGURE_EXTRA};\ - ./configure ${CONFIGURE} ${CONFIGURE_EXTRA};\ - else\ - echo ./config.status;\ - ./config.status;\ - fi + ./configure ${CONFIGURE} ${CONFIGURE_EXTRA} $(MAKE) SENDMAIL=${SENDMAIL} ${PARALLEL} pkg-disorder: build @@ -123,7 +115,7 @@ pkg-disorder: build dpkg-shlibdeps -Tdebian/substvars.disorder \ debian/disorder/usr/bin/* $(INSTALL_DATA) CHANGES.html README debian/README.Debian \ - BUGS README.* \ + BUGS README.* docs.css \ debian/disorder/usr/share/doc/disorder/. gzip -9f debian/disorder/usr/share/doc/disorder/README \ debian/disorder/usr/share/doc/disorder/README.* \ @@ -186,6 +178,7 @@ pkg-disorder-server: build $(MKDIR) debian/disorder-server/etc/init.d $(MKDIR) debian/disorder-server${cgiexecdir} $(MKDIR) debian/disorder-server/var/lib/disorder + $(MKDIR) debian/disorder-server/etc/cron.daily $(INSTALL_SCRIPT) examples/disorder.init \ debian/disorder-server/etc/init.d/disorder $(INSTALL_DATA) debian/etc.disorder.config \ @@ -194,6 +187,7 @@ pkg-disorder-server: build debian/disorder-server/etc/disorder/options $(INSTALL_DATA) debian/etc.disorder.options.user \ debian/disorder-server/etc/disorder/options.user + $(INSTALL_SCRIPT) debian/disorder.daily debian/disorder-server/etc/cron.daily/disorder $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) cgi/disorder \ $(shell pwd)/debian/disorder-server${cgiexecdir}/disorder gzip -9f debian/disorder-server/usr/share/man/man*/*