1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
PACKAGE=drupal6
include /usr/share/dpatch/dpatch.make
build: patch
clean-patched:
dh_testdir
dh_testroot
dh_clean
clean: clean-patched unpatch
install:build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -X.svn -XCVS
dh_install -XCVS -X.svn
# fix permissions
find $(CURDIR)/debian/$(PACKAGE)/usr/share/drupal6 \
-name '*.png' -o -name '*.jpg' | xargs chmod a-x
chmod +x $(CURDIR)/debian/$(PACKAGE)/usr/share/drupal6/scripts/*
rm $(CURDIR)/debian/$(PACKAGE)/usr/share/drupal6/misc/jquery.js
install -m640 .htaccess debian/drupal6/etc/drupal/6/htaccess
install -m644 debian/drupal6.lintian debian/drupal6/usr/share/lintian/overrides/drupal6
# Everything else is handled by dh_install
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs CHANGELOG.txt
dh_installdocs -XCVS -X.svn
dh_installexamples
dh_installdebconf
dh_installcron
dh_link
dh_compress
dh_fixperms
dh_installdeb
ifeq ($(PO2DEBCONF),yes)
po2debconf -e utf8 debian/templates.master > debian/templates
endif
dh_gencontrol -- -V'debconf-depends=debconf (>= $(MINDEBCONFVER))'
dh_md5sums
dh_builddeb
binary: binary-indep
.PHONY: build clean binary-indep binary install #PHONY_CONFIGURE#
|