summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:22 +0200
committerDaniel Baumann <daniel@debian.org>2007-09-23 14:46:22 +0200
commit4a0b1ba4d428c623d14bae7f0db85c80abb0da0a (patch)
treede03aceffba0ce13f098d970cc89f806db7af5d7 /debian/rules
downloadlive-boot-4a0b1ba4d428c623d14bae7f0db85c80abb0da0a.tar.gz
live-boot-4a0b1ba4d428c623d14bae7f0db85c80abb0da0a.zip
Adding casper 1.59+debian-1.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules58
1 files changed, 58 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1b140bb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,58 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+VERSION:=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
+DEB_BUILD_PROG:=dpkg-buildpackage -us -uc -rfakeroot
+
+upstream:
+ cd .. && bzr branch http://mammadori.homeip.net/bzr/casper-debian || exit 0
+ rm .bzr -rf
+ find . -type d -name .svn -exec rm -rf {} \; || exit 0
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+ $(MAKE) -C casper-md5check
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ rm -f build-stamp
+
+ -$(MAKE) -C casper-md5check clean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_clean -k
+ dh_installdirs
+ dh_install
+
+ install -m755 casper-md5check/casper-md5check debian/casper/usr/lib/casper
+ install -D -m 644 debian/casper.lintian debian/casper/usr/share/lintian/overrides/casper
+ chmod 0755 debian/casper/usr/share/initramfs-tools/scripts/casper
+
+binary-indep: build install
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installinit -r --no-start -- start 89 0 6 .
+ dh_installchangelogs debian/changelog.upstream
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install