Bug#400215: nut-usbups.rules being overriden by a symlink

2006-12-13 Thread Arnaud Quette

2006/12/2, Carlos Rodrigues [EMAIL PROTECTED]:

I decided to further investigate this matter, as the nut-usb package
seems to be effectively broken while this remains unfixed.

From looking into the package's diff file
(http://ftp.debian.org/debian/pool/main/n/nut/nut_2.0.4-2.3.diff.gz),
I noticed this two changes:

In nut-2.0.4/debian/rules:

+   install -m 644 $(CURDIR)/scripts/hotplug-ng/nut-usbups.rules \
+   $(CURDIR)/debian/nut-usb/etc/udev/rules.d/025_nut-usbups.rules

And, in nut-2.0.4/debian/nut-usb.postinst:

+  configure)
+if [ -d /etc/udev/rules.d/ ] ; then
+cd /etc/udev/rules.d/
+ln -sf ../nut-usbups.rules 025_nut-usbups.rules
+fi

So, it looks to me like the file 025_nut-usbups.rules is being
installed correctly, but then (in the postinst stage) it is overriden
by a symlink pointing to a nonexistent file.

So, either the file is installed into /etc/udev/nut-usbups.rules to
fix the symlink, or the symlink isn't created at all.

Am I correct?


right, I thought I've mentionned this, but the file would better be
installed as /etc/udev/rules.d/025_nut-usbups.rules, removing the
symlink creation in nut-usb.postinst.

@Steinar: while we're at it, would you be interested in co maintaining
these packages? I would be really glad if you accept ;-)

Thanks to you all,
Arnaud (young dady again, still more than busy)
--
Linux / Unix Expert - MGE UPS SYSTEMS - RD Dpt
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://people.debian.org/~aquette/
OpenSource Developer - http://arnaud.quette.free.fr/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#400215: nut-usbups.rules being overriden by a symlink

2006-12-13 Thread Steinar H. Gunderson
On Wed, Dec 13, 2006 at 02:56:33PM +0100, Arnaud Quette wrote:
 @Steinar: while we're at it, would you be interested in co maintaining
 these packages? I would be really glad if you accept ;-)

I do not even have an UPS, so sorry. :-)

/* Steinar */
-- 
Homepage: http://www.sesse.net/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]