diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:24 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:24 +0200 |
commit | 6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e (patch) | |
tree | 333a05a0a341c98203688dc4d01589340eca951c /debian/rules | |
parent | a4a7503df76005df67b006e1324004c808830c32 (diff) | |
download | live-boot-6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e.tar.gz live-boot-6c1a2cfab139bb4a61e7bcf5f4cafe3b7498f64e.zip |
Adding casper 1.66+debian-1.
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 65 |
1 files changed, 52 insertions, 13 deletions
diff --git a/debian/rules b/debian/rules index bd01663..d1d44a5 100755 --- a/debian/rules +++ b/debian/rules @@ -3,25 +3,42 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +# Looking in which build system we are +BUILD_SYSTEM := $(shell lsb_release --short --id) + build: build-stamp build-stamp: dh_testdir - + # Setting BUILD_SYSTEM in the binary package + sed -i -e 's/\(BUILD_SYSTEM="\).*"/\1'$(BUILD_SYSTEM)'"/g' casper.conf +ifeq ($(BUILD_SYSTEM),Debian) + cp debian/control.debian debian/control +else + cp debian/control.ubuntu debian/control +endif + # Building package $(MAKE) -C casper-md5check touch build-stamp clean: + dh_testdir rm -f build-stamp # Cleaning package -$(MAKE) -C casper-md5check clean + # Putting back default files + cp -f debian/control.debian debian/control + sed -i -e 's/\(BUILD_SYSTEM="\).*"/\1'Debian'"/g' casper.conf + dh_clean + install: build + dh_testdir dh_testroot dh_clean -k @@ -37,23 +54,45 @@ install: build # Installing lintian override install -D -m 0644 debian/lintian debian/casper/usr/share/lintian/overrides/casper + # Install casper.conf + install -m 0644 casper.conf debian/casper/etc/casper.conf + binary-indep: build install +ifneq ($(BUILD_SYSTEM),Debian) + # Conditionally build Ubiquity + dh_testdir + dh_testroot + dh_installexamples -i + dh_installdocs -i + dh_installchangelogs -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i +endif binary-arch: build install + dh_testdir dh_testroot - dh_installchangelogs debian/changelog.upstream - dh_installdocs - dh_installexamples - dh_installinit -r --no-start -- start 89 0 6 . - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_gencontrol - dh_md5sums - dh_builddeb +ifeq ($(BUILD_SYSTEM),Debian) + dh_installchangelogs -a debian/changelog.upstream +else + dh_installchangelogs -a +endif + dh_installdocs -a + dh_installexamples -a + dh_installinit -a -r --no-start -- start 89 0 6 . + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install |