[Pkg-voip-commits] r2508 - openser/trunk/debian

Julien Blache jblache at costa.debian.org
Sun Oct 8 10:27:00 UTC 2006


Author: jblache
Date: 2006-10-08 10:26:59 +0000 (Sun, 08 Oct 2006)
New Revision: 2508

Modified:
   openser/trunk/debian/rules
Log:
Remove empty /usr/sbin directories in module packages.


Modified: openser/trunk/debian/rules
===================================================================
--- openser/trunk/debian/rules	2006-10-08 10:18:30 UTC (rev 2507)
+++ openser/trunk/debian/rules	2006-10-08 10:26:59 UTC (rev 2508)
@@ -157,7 +157,7 @@
 		cfg-target=/etc/openser/ \
 		doc-dir=share/doc/openser-unixodbc-module
 
-	#install only the jabber module
+	# install only the jabber module
 	CC="$(CC)" CFLAGS="$(CFLAGS)" TLS=$(TLS) $(MAKE) install-modules-all modules="$(JABBER_MOD_PATH)"  \
 		basedir=$(CURDIR)/debian/openser-jabber-module \
 		prefix=/usr \
@@ -165,7 +165,7 @@
 		cfg-target=/etc/openser/ \
 		doc-dir=share/doc/openser-jabber-module
 
-	#install only the cpl module
+	# install only the cpl module
 	CC="$(CC)" CFLAGS="$(CFLAGS)" TLS=$(TLS) $(MAKE) install-modules-all modules="$(CPL_MOD_PATH)"  \
 		basedir=$(CURDIR)/debian/openser-cpl-module \
 		prefix=/usr \
@@ -173,7 +173,7 @@
 		cfg-target=/etc/openser/ \
 		doc-dir=share/doc/openser-cpl-module
 
-	#install only the radius modules
+	# install only the radius modules
 	CC="$(CC)" CFLAGS="$(CFLAGS)" TLS=$(TLS) $(MAKE) install-modules-all modules="$(RADIUS_MOD_PATH)"  \
 		basedir=$(CURDIR)/debian/openser-radius-modules \
 		prefix=/usr \
@@ -184,6 +184,11 @@
 	mkdir -p $(CURDIR)/debian/openser-radius-modules/etc/openser/
 	mv $(CURDIR)/debian/openser/etc/openser/dictionary.radius $(CURDIR)/debian/openser-radius-modules/etc/openser/
 
+
+	# the modules packages all ship an empty /usr/sbin directory, let's clean that up
+	for p in $(ALL_PACKAGES); \
+		do rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/$$p/usr/sbin; done
+
 # This single target is used to build all the packages, all at once, or
 # one at a time. So keep in mind: any options passed to commands here will
 # affect _all_ packages. Anything you want to only affect one package




More information about the Pkg-voip-commits mailing list