X-Git-Url: https://git.tokkee.org/?p=pkg-mlmmj.git;a=blobdiff_plain;f=debian%2Frules;h=7133dcbaf5be1e7fd2a8788eb732c7ea22bb704c;hp=09a42813e2791c4b4ff5666349aa053f0df693c5;hb=b627d6c56573fb1cda2f59eed6f1fee901362fe6;hpb=eeaa09e2f09a120b59c70d7ec37efc9add9cf1ae diff --git a/debian/rules b/debian/rules old mode 100755 new mode 100644 index 09a4281..7133dcb --- a/debian/rules +++ b/debian/rules @@ -1,15 +1,13 @@ #!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# GNU copyright 1997 to 1999 by Joey Hess. +# debian/rules for mlmmj +# (based on the sample debian/rules by Joey Hess +# and Craig Small as shipped with dh-make). # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -export PACKAGE=mlmmj -export DH_OPTIONS -export TEXTDIR = $(CURDIR)/debian/mlmmj/usr/share/mlmmj/text.skel -CONFIGURERUN=no +WEB_DIR = debian/mlmmj-php-web/usr/share/mlmmj-php-web/www +WEB_ADMIN_DIR = debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/www include /usr/share/dpatch/dpatch.make @@ -26,7 +24,7 @@ else endif -export CFLAGS = -Wall -g +CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else @@ -34,97 +32,92 @@ else endif -config.status: patch-stamp configure - ./configure $(confflags) +config.status: configure patch-stamp + dh_testdir + ./configure $(confflags) CFLAGS="$(CFLAGS)" + +build: build-stamp -build-arch: build-arch-stamp config.status +build-stamp: config.status dh_testdir - # Add here commands to compile the package. $(MAKE) - #/usr/bin/docbook-to-man debian/mlmmj.sgml > mlmmj.1 -build-arch-stamp: - touch build-arch-stamp -build-indep-stamp: - touch build-indep-stamp - -build-indep: build-indep-stamp config.status + touch build-stamp clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp [ ! -f Makefile ] || $(MAKE) distclean - rm -f build-stamp build-indep-stamp build-arch-stamp config.log configure-stamp - rm -rf $(CURDIR)/debian/DEBIAN dh_clean -install-arch: build-arch +install-arch: build dh_testdir dh_testroot dh_clean -k - dh_installdirs + dh_installdirs -a - # Add here commands to install the package into debian/mlmmj. $(MAKE) install DESTDIR=$(CURDIR)/debian/mlmmj # Don't advertise that mlmmj-make-ml is a shell script # And install our own version of mlmmj-make-ml, until upstream # has stabilised somewhat - rm -f $(CURDIR)/debian/mlmmj/usr/bin/mlmmj-make-ml.sh - install -m 755 -D $(CURDIR)/debian/mlmmj-make-ml \ - $(CURDIR)/debian/mlmmj/usr/bin/mlmmj-make-ml + rm -f debian/mlmmj/usr/bin/mlmmj-make-ml.sh + install -m 755 -D debian/mlmmj-make-ml \ + debian/mlmmj/usr/bin/mlmmj-make-ml mv debian/mlmmj/usr/share/man/man1/mlmmj-make-ml.sh.1 \ debian/mlmmj/usr/share/man/man1/mlmmj-make-ml.1 dh_install -s -install-indep: build-indep - # mlmmj-php-web - install -m 644 -D $(CURDIR)/contrib/web/php-user/mlmmj.php \ - $(CURDIR)/debian/mlmmj-php-web/var/www/mlmmj-php-web/mlmmj.php - install -m 644 -D $(CURDIR)/contrib/web/php-user/README \ - $(CURDIR)/debian/mlmmj-php-web/usr/share/doc/mlmmj-php-web/README - install -m 644 -D $(CURDIR)/contrib/web/php-user/example.html \ - $(CURDIR)/debian/mlmmj-php-web/usr/share/doc/mlmmj-php-web/examples/examples.html +install-indep: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs -i + + # mlmmj-php-web + install -m 644 -D contrib/web/php-user/mlmmj.php \ + $(WEB_DIR)/mlmmj.php + install -m 644 -D contrib/web/php-user/README \ + debian/mlmmj-php-web/usr/share/doc/mlmmj-php-web/README + install -m 644 -D contrib/web/php-user/example.html \ + debian/mlmmj-php-web/usr/share/doc/mlmmj-php-web/examples/examples.html + install -m 644 -D debian/mlmmj-php-web.apache.conf \ + debian/mlmmj-php-web/etc/mlmmj-php-web/apache.conf + # mlmmj-php-web-admin - install -d $(CURDIR)/debian/mlmmj-php-web-admin/var/www/mlmmj-php-web-admin - install -m 644 $(CURDIR)/contrib/web/php-admin/htdocs/*.php \ - $(CURDIR)/debian/mlmmj-php-web-admin/var/www/mlmmj-php-web-admin/ - install -m 644 $(CURDIR)/contrib/web/php-admin/htdocs/dot.htaccess \ - $(CURDIR)/debian/mlmmj-php-web-admin/var/www/mlmmj-php-web-admin/.htaccess - install -m 644 -D $(CURDIR)/contrib/web/php-admin/README \ - $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/doc/mlmmj-php-web-admin/README - install -d $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/conf - install -d $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/templates - install -m 644 $(CURDIR)/contrib/web/php-admin/conf/* \ - $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/conf/ - install -m 644 $(CURDIR)/contrib/web/php-admin/templates/* \ - $(CURDIR)/debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/templates/ - install -m 644 -D $(CURDIR)/debian/htpasswd \ - $(CURDIR)/debian/mlmmj-php-web-admin/etc/mlmmj-php-web-admin/htpasswd + install -m 755 -d $(WEB_ADMIN_DIR) + install -m 644 contrib/web/php-admin/htdocs/*.php \ + $(WEB_ADMIN_DIR)/ + install -m 644 contrib/web/php-admin/htdocs/dot.htaccess \ + $(WEB_ADMIN_DIR)/.htaccess + install -m 644 -D contrib/web/php-admin/README \ + debian/mlmmj-php-web-admin/usr/share/doc/mlmmj-php-web-admin/README + install -d debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/conf + install -d debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/templates + install -m 644 contrib/web/php-admin/conf/* \ + debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/conf/ + install -m 644 contrib/web/php-admin/templates/* \ + debian/mlmmj-php-web-admin/usr/share/mlmmj-php-web-admin/templates/ + install -m 644 -D debian/htpasswd \ + debian/mlmmj-php-web-admin/etc/mlmmj-php-web-admin/htpasswd + install -m 644 -D debian/mlmmj-php-web-admin.apache.conf \ + debian/mlmmj-php-web-admin/etc/mlmmj-php-web-admin/apache.conf binary-common: dh_testdir dh_testroot dh_installchangelogs ChangeLog - dh_installdocs -A FAQ TUNABLES TODO UPGRADE AUTHORS README README.access VERSION README.exim4 README.sendmail + dh_installdocs -A FAQ TUNABLES TODO UPGRADE README* dh_installdebconf dh_installexamples -# dh_install -# dh_installmenu dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_installinit dh_installcron -# dh_installinfo dh_link dh_strip dh_compress dh_fixperms -# dh_perl -# dh_python -# dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol @@ -141,4 +134,4 @@ binary: binary-arch binary-indep build: build-arch build-indep -.PHONY: build-arch build-indep clean binary-indep binary-arch binary-common install-indep install-arch build configure +.PHONY: build-arch build-indep clean binary-indep binary-arch binary-common install-indep install-arch build