diff options
| author | 2000-12-12 00:28:06 +0000 | |
|---|---|---|
| committer | 2000-12-12 00:28:06 +0000 | |
| commit | 8e5e0b811305d444266cb55fc4b7c9bca0c65231 (patch) | |
| tree | a8882cc2163ab3b2005b5ee7858313e6cae7055a /debian/rules | |
| parent | Fix postinst ldconfig. (diff) | |
Debian scripts use makedev (>=2.3.1-49) in postinst by default now.
Postinst script using mknod added as alternative.
Revision bumped up to 0.8.1.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@47 53a565d1-3bb7-0310-b661-cf11e63c67ab
Diffstat (limited to '')
| -rw-r--r-- | debian/rules | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/debian/rules b/debian/rules index 7f73d44..7e76af2 100644 --- a/debian/rules +++ b/debian/rules @@ -1,13 +1,14 @@ #!/usr/bin/make -f -#export DH_VERBOSE=1 export DH_COMPAT=1 +potato-build = no majorname = $(shell grep library_names src/libraw1394.la | cut -d"'" -f 2 | cut -d" " -f 2) fullversionname = $(shell grep library_names src/libraw1394.la | cut -d"'" -f 2 | cut -d" " -f 1) major = $(shell echo $(majorname) | cut -d"." -f 3) +libraw = libraw1394-$(major) autoclean-files: echo $@ >$@ @@ -46,12 +47,26 @@ binary-arch: build install autoclean-files dh_testdir dh_testroot - dh_movefiles -plibraw1394-$(major) \ + dh_movefiles -p$(libraw) \ usr/lib/$(majorname) \ usr/lib/$(fullversionname) - echo debian/libraw1394-$(major).postinst >>autoclean-files - cp debian/libraw1394.postinst.in debian/libraw1394-$(major).postinst + echo >>autoclean-files \ + debian/substvars \ + debian/$(libraw).postinst \ + debian/$(libraw).substvars + + echo "soversion=$(major)" >>debian/substvars + if [ "$(potato-build)" = "yes" ]; then \ + cp debian/libraw1394-potato.postinst.in \ + debian/$(libraw).postinst; \ + echo "makedev-depend=" >>debian/$(libraw).substvars; \ + else \ + cp debian/libraw1394.postinst.in \ + debian/$(libraw).postinst; \ + echo "makedev-depend=makedev (>= 2.3.1-49), " \ + >>debian/$(libraw).substvars; \ + fi dh_installdocs README NEWS dh_installchangelogs |
