X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=debian%2Frules;h=4546ede3e2286f31106f4987b4b06e326f764427;hb=HEAD;hp=9f3524403569357763e6d39675989297099849a1;hpb=15e05480fc735ba8623513a87061d5babd55acfc;p=pazpar2-moved-to-github.git diff --git a/debian/rules b/debian/rules index 9f35244..4546ede 100755 --- a/debian/rules +++ b/debian/rules @@ -1,120 +1,47 @@ #!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - - -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - - -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -config.status: configure - dh_testdir - # Add here commands to configure the package. -ifneq "$(wildcard /usr/share/misc/config.sub)" "" - cp -f /usr/share/misc/config.sub config.sub -endif -ifneq "$(wildcard /usr/share/misc/config.guess)" "" - cp -f /usr/share/misc/config.guess config.guess -endif - ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --with-yaz=/usr/bin --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" - - -build: build-stamp - -build-stamp: config.status - dh_testdir - - # Add here commands to compile the package. - $(MAKE) - - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - - # Add here commands to clean up after the build process. - -$(MAKE) distclean - rm -f config.sub config.guess - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/pazpar2. - $(MAKE) DESTDIR=$(CURDIR)/debian/pazpar2 install - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs NEWS - # pazpar2-doc package - mv $(CURDIR)/debian/pazpar2/usr/share/doc/pazpar2/* $(CURDIR)/debian/pazpar2-doc/usr/share/doc/pazpar2-doc - # pazpar2-apache2 package - cp $(CURDIR)/debian/pazpar2.cfg $(CURDIR)/debian/pazpar2/etc/pazpar2/ - cp etc/settings/*.xml $(CURDIR)/debian/pazpar2/etc/pazpar2/settings/ - cp etc/*.xml $(CURDIR)/debian/pazpar2/etc/pazpar2/settings/ - cp etc/*.xsl $(CURDIR)/debian/pazpar2/etc/pazpar2/ - cp $(CURDIR)/debian/ap2pazpar2.cfg $(CURDIR)/debian/pazpar2-apache2/etc/apache2/conf.d - # pazpar2-test1 package - cp www/test1/index.html $(CURDIR)/debian/pazpar2-test1/usr/share/pazpar2/test1/ - cp www/test1/search.js $(CURDIR)/debian/pazpar2-test1/usr/share/pazpar2/test1/ - # pazpar2-jsdemo package - cp www/jsdemo/*.html $(CURDIR)/debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/ - cp www/jsdemo/*.js $(CURDIR)/debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/ +export DH_VERBOSE=1 + +%: + dh $@ --without python-support + +override_dh_auto_test: + true + +override_dh_auto_configure: + dh_auto_configure -- --with-yaz=/usr/bin + +override_dh_strip: + dh_strip --dbg-package=pazpar2-dbg + +override_dh_auto_install: + dh_auto_install + mkdir -p debian/pazpar2-doc/usr/share/doc + mv debian/tmp/usr/share/doc/pazpar2 debian/pazpar2-doc/usr/share/doc/pazpar2-doc +# pazpar2 package + cp etc/server.xml debian/pazpar2/etc/pazpar2/server.xml + cp etc/default.xml debian/pazpar2/etc/pazpar2/services-available/ + cp etc/mkc.xml debian/pazpar2/etc/pazpar2/services-available/ + cp etc/services/*.xml debian/pazpar2/etc/pazpar2/services-available + cp etc/settings/*.xml debian/pazpar2/etc/pazpar2/settings/ + cp -r etc/settings/mkc debian/pazpar2/etc/pazpar2/settings +# pazpar2-apache2 package + cp debian/ap2pazpar2.cfg debian/pazpar2-apache2/etc/pazpar2 +# pazpar2-test1 package + cp www/test1/index.html debian/pazpar2-test1/usr/share/pazpar2/test1/ + cp www/test1/search.js debian/pazpar2-test1/usr/share/pazpar2/test1/ +# pazpar2-jsdemo package + cp www/jsdemo/*.html debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/ + cp www/jsdemo/*.js debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/ + cp www/jsdemo/*.png debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/ + cp www/jsdemo/*.css debian/pazpar2-jsdemo/usr/share/pazpar2/jsdemo/ +# pazpar2-js package + cp debian/ap2pazpar2-js.cfg debian/pazpar2-js/etc/pazpar2 + mv debian/tmp/usr/share/pazpar2/js/pz2.js debian/pazpar2-js/usr/share/pazpar2/js/ +# pazpar2-xsl package + cp etc/xsl/*.xsl debian/pazpar2-xsl/usr/share/pazpar2/xsl + +override_dh_installchangelogs: dh_installchangelogs NEWS - dh_installdocs - dh_installexamples -# dh_install -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_python - dh_installinit -# dh_installcron -# dh_installinfo - dh_installman - dh_link - dh_strip - dh_compress - dh_fixperms -# dh_perl -# dh_makeshlibs - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install +override_dh_installdocs: + dh_installdocs -A README