Add ldconfig in deb postinst for Debian policy conformance.
git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@42 53a565d1-3bb7-0310-b661-cf11e63c67ab
This commit is contained in:
parent
3416e8f91a
commit
0966e80dce
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
if [ "$1" = "configure" ]; then
|
||||
ldconfig usr/lib/@libname@
|
||||
fi
|
||||
|
||||
#DEBHELPER#
|
|
@ -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 rm -f
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
|
@ -38,7 +42,7 @@ install: build
|
|||
binary-indep: build install
|
||||
# Nothing to do here
|
||||
|
||||
binary-arch: build install
|
||||
binary-arch: build install autoclean-files
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
|
||||
|
@ -46,6 +50,10 @@ binary-arch: build install
|
|||
usr/lib/$(majorname) \
|
||||
usr/lib/$(fullversionname)
|
||||
|
||||
echo debian/libraw1394-$(major).postinst >>autoclean_files
|
||||
sed <debian/libraw1394.postinst.in >debian/libraw1394-$(major).postinst \
|
||||
-e s/@libname@/$(fullversionname)/
|
||||
|
||||
dh_installdocs
|
||||
dh_installchangelogs
|
||||
dh_strip
|
||||
|
|
Reference in New Issue