diff --git a/debian/libraw1394.postinst.in b/debian/libraw1394.postinst.in new file mode 100644 index 0000000..38bea86 --- /dev/null +++ b/debian/libraw1394.postinst.in @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" = "configure" ]; then + ldconfig usr/lib/@libname@ +fi + +#DEBHELPER# diff --git a/debian/rules b/debian/rules index a07eea6..f610f0e 100644 --- a/debian/rules +++ b/debian/rules @@ -9,6 +9,9 @@ fullversionname = $(shell grep library_names src/libraw1394.la | cut -d"'" -f 2 major = $(shell echo $(majorname) | cut -d"." -f 3) +autoclean-files: + echo $@ >$@ + build: build-stamp build-stamp: dh_testdir @@ -18,7 +21,7 @@ build-stamp: touch build-stamp -clean: +clean: autoclean-files dh_testdir dh_testroot rm -f build-stamp @@ -26,6 +29,7 @@ clean: -$(MAKE) distclean dh_clean + xargs >autoclean_files + sed debian/libraw1394-$(major).postinst \ + -e s/@libname@/$(fullversionname)/ + dh_installdocs dh_installchangelogs dh_strip