[Pkg-utopia-commits] r465 - packages/unstable/dhcdbd/debian

Riccardo Setti giskard-guest at costa.debian.org
Thu Jan 12 22:44:48 UTC 2006


Author: giskard-guest
Date: 2006-01-12 22:44:47 +0000 (Thu, 12 Jan 2006)
New Revision: 465

Added:
   packages/unstable/dhcdbd/debian/dhcdbd.dhcp3
Modified:
   packages/unstable/dhcdbd/debian/rules
Log:
added dhcdbd.dhcp3 script 

Added: packages/unstable/dhcdbd/debian/dhcdbd.dhcp3
===================================================================
--- packages/unstable/dhcdbd/debian/dhcdbd.dhcp3	2006-01-12 10:12:19 UTC (rev 464)
+++ packages/unstable/dhcdbd/debian/dhcdbd.dhcp3	2006-01-12 22:44:47 UTC (rev 465)
@@ -0,0 +1,13 @@
+if [ -n "${dhc_dbus}" ]; then
+		/usr/bin/dbus-send \
+		--system \
+		--dest=com.redhat.dhcp \
+		--type=method_call \
+		/com/redhat/dhcp/$interface \
+		com.redhat.dhcp.set \
+		'string:'"`env | /bin/egrep -v '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`";
+		if (( ( dhc_dbus & 31 ) == 31 )); then
+				exit 0;
+		fi;
+fi;
+

Modified: packages/unstable/dhcdbd/debian/rules
===================================================================
--- packages/unstable/dhcdbd/debian/rules	2006-01-12 10:12:19 UTC (rev 464)
+++ packages/unstable/dhcdbd/debian/rules	2006-01-12 22:44:47 UTC (rev 465)
@@ -11,9 +11,10 @@
 
 install_arch:: build test
 	
+	mkdir -p $(CURDIR)/debian/dhcdbd/etc/dhcp3/dhclient-exit-hooks.d/
+	cp $(CURDIR)/debian/dhcdbd.dhcp3 $(CURDIR)/debian/dhcdbd/etc/dhcp3/dhclient-exit-hooks.d/dhcdbd
+	
 	chown root:root $(CURDIR)/debian/dhcdbd/sbin/dhcdbd
 	chmod 6755 $(CURDIR)/debian/dhcdbd/sbin/dhcdbd
-	chmod -x $(CURDIR)/debian/dhcdbd/usr/share/dbus-1/services/dhcdbd.service
-	chmod -x $(CURDIR)/debian/dhcdbd/etc/dbus-1/system.d/dhcdbd.conf
 	
 	




More information about the Pkg-utopia-commits mailing list