From 0966e80dce18c948225fe6b739c879809bc07b78 Mon Sep 17 00:00:00 2001 From: aeb Date: Thu, 23 Nov 2000 22:55:47 +0000 Subject: [PATCH] Add ldconfig in deb postinst for Debian policy conformance. git-svn-id: svn://svn.linux1394.org/libraw1394/trunk@42 53a565d1-3bb7-0310-b661-cf11e63c67ab --- debian/libraw1394.postinst.in | 7 +++++++ debian/rules | 12 ++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 debian/libraw1394.postinst.in 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