diff --git a/configure.in b/configure.in index eac20ef..ce10dd1 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ # process this file with autoconf to get a configure script AC_INIT(Makefile.am) -AM_INIT_AUTOMAKE(libraw1394, 0.8) +AM_INIT_AUTOMAKE(libraw1394, 0.8.1) AM_CONFIG_HEADER(config.h) AC_PROG_CC diff --git a/debian/Makefile.am b/debian/Makefile.am index 93e5600..69d0562 100644 --- a/debian/Makefile.am +++ b/debian/Makefile.am @@ -1,3 +1,4 @@ # process this file with automake to create a Makefile.in -EXTRA_DIST = control rules changelog copyright libraw1394.postinst.in +EXTRA_DIST = control rules changelog copyright \ + libraw1394.postinst.in libraw1394-potato.postinst.in diff --git a/debian/changelog b/debian/changelog index d4f41f5..ee6834c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +libraw1394 (0.8.1) unstable; urgency=low + + * Use and require makedev (>= 2.3.1-49) which includes /dev/raw1394 + (still supports potato by setting a variable during debian build). + + -- Andreas Bombe Mon, 11 Dec 2000 02:26:34 +0100 + libraw1394 (0.8) unstable; urgency=low * New libraw1394 release. diff --git a/debian/control b/debian/control index 7e4f6a2..b1de40e 100644 --- a/debian/control +++ b/debian/control @@ -1,14 +1,14 @@ Source: libraw1394 Section: libs Priority: optional -Maintainer: Andreas E. Bombe +Maintainer: Andreas Bombe Standards-Version: 3.1.1.1 Build-Depends: debhelper Package: libraw1394-dev Architecture: any Section: devel -Depends: libraw1394-4, libc6-dev +Depends: libraw1394-${soversion} (= ${Source-Version}), libc6-dev Description: library for direct access to IEEE 1394 bus - development files libraw1394 is the only supported interface to the kernel side raw1394 of the Linux IEEE-1394 subsystem, which provides direct access to the @@ -22,7 +22,7 @@ Description: library for direct access to IEEE 1394 bus - development files Package: libraw1394-4 Architecture: any Section: libs -Depends: ${shlibs:Depends} +Depends: ${makedev-depend}${shlibs:Depends} Description: library for direct access to IEEE 1394 bus (aka FireWire) libraw1394 is the only supported interface to the kernel side raw1394 of the Linux IEEE-1394 subsystem, which provides direct access to the diff --git a/debian/libraw1394-potato.postinst.in b/debian/libraw1394-potato.postinst.in new file mode 100644 index 0000000..d7c58e3 --- /dev/null +++ b/debian/libraw1394-potato.postinst.in @@ -0,0 +1,47 @@ +#!/bin/sh -e + +if [ "$1" = "configure" ]; then + ldconfig + + if [ ! -c /dev/raw1394 ]; then + cat <$@ @@ -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