here is the patch to move openct to udev
with latest rules. (same as posted to the
other bug).

please apply and close both.

Regards, Andreas
* Migrate to udev based setup as distributions deprecate of hal.
* New udev rules no longer generate warnings. (Closes: #563755)
* Now compiled "--with-bundle=" for pcsc support. (Closes: 528123)
 
diff -udrNPp openct-0.6.19-1/debian/openct.install openct-0.6.19-0/debian/openct.install
--- openct-0.6.19-1/debian/openct.install	2010-01-10 06:21:37.000000000 +0100
+++ openct-0.6.19-0/debian/openct.install	2010-02-10 09:41:21.000000000 +0100
@@ -6,17 +6,12 @@ debian/tmp/usr/lib/libopenctapi.a
 debian/tmp/usr/lib/openct-ifd.so
 debian/tmp/usr/lib/openct-ifd.la
 debian/tmp/usr/lib/openct-ifd.a
-
-debian/10-usb-openct.fdi usr/share/hal/fdi/information/10freedesktop
-debian/10-usb-openct-policy.fdi usr/share/hal/fdi/policy/10osvendor
-debian/hald-addon-openct usr/lib/hal
-
+debian/tmp/usr/lib/pcsc/drivers/*
 etc/openct.conf etc/
-
 debian/openct.reader.conf etc/reader.conf.d
-
 debian/tmp/usr/share/man
-etc/openct-disable.fdi usr/share/doc/examples
 doc/nonpersistent/wiki.out/*.html usr/share/doc/openct/html
 doc/nonpersistent/wiki.out/*.css usr/share/doc/openct/html
 doc/api.out/html/* usr/share/doc/openct/html/api
+debian/60-openct.rules lib/udev/rules.d
+debian/tmp/lib/udev/*
diff -udrNPp openct-0.6.19-1/debian/patches/series openct-0.6.19-0/debian/patches/series
--- openct-0.6.19-1/debian/patches/series	2010-01-10 06:26:03.000000000 +0100
+++ openct-0.6.19-0/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-debian-changes
diff -udrNPp openct-0.6.19-1/debian/rules openct-0.6.19-0/debian/rules
--- openct-0.6.19-1/debian/rules	2010-01-10 06:21:37.000000000 +0100
+++ openct-0.6.19-0/debian/rules	2010-02-10 09:41:21.000000000 +0100
@@ -3,16 +3,14 @@
 include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
-DEB_CONFIGURE_EXTRA_FLAGS = --enable-pcsc
+DEB_CONFIGURE_EXTRA_FLAGS = --enable-pcsc --with-udev=/lib/udev \
+	--with-bundle=/usr/lib/pcsc/drivers
 
 DEB_INSTALL_DOCS_ALL := NEWS TODO
 
 install/openct::
 	cp -f etc/init-script debian/openct.init
-	cp -f etc/openct.fdi debian/10-usb-openct.fdi
-	cp -f etc/openct-policy.fdi debian/10-usb-openct-policy.fdi
-	cp -f etc/openct.hald debian/hald-addon-openct
-	chmod 0755 debian/hald-addon-openct
+	cp -f etc/openct.udev debian/60-openct.rules
 
 binary-post-install/openct::
 # Rename some stuff 
@@ -20,5 +18,4 @@ binary-post-install/openct::
 		$(CURDIR)/debian/openct/etc/reader.conf.d/openct
 
 clean::
-	rm -f debian/openct.init debian/10-usb-openct.fdi \
-		  debian/10-usb-openct-policy.fdi debian/hald-addon-openct
+	rm -f debian/openct.init debian/60-openct.rules

Reply via email to