[med-svn] r11554 - trunk/packages/fis-gtm/trunk/debian

Luis Ibanez luisibanez-guest at alioth.debian.org
Wed Jul 4 23:02:15 UTC 2012


Author: luisibanez-guest
Date: 2012-07-04 23:02:14 +0000 (Wed, 04 Jul 2012)
New Revision: 11554

Modified:
   trunk/packages/fis-gtm/trunk/debian/changelog
   trunk/packages/fis-gtm/trunk/debian/rules
Log:
ENH: Now taking advantage of the default dh_fixperms, and then
retouching the permissions that are non conformant.



Modified: trunk/packages/fis-gtm/trunk/debian/changelog
===================================================================
--- trunk/packages/fis-gtm/trunk/debian/changelog	2012-07-04 21:09:35 UTC (rev 11553)
+++ trunk/packages/fis-gtm/trunk/debian/changelog	2012-07-04 23:02:14 UTC (rev 11554)
@@ -21,6 +21,9 @@
     Introducing chmods in the override_dh_fixperms section to address
     lintian warnings and errors.
     Introducing chmods in the plugin subdirectory, more on dh_fixperms.
+    Now doing dh_fixperms first, and only retouching the setuid, and
+    the scripts that are non-executable.
+    Added lintian overrides for gtmsecshr and libgtmutil.so.
   * debian/control:
     Added cmake as a build dependency.
   * debian/source:

Modified: trunk/packages/fis-gtm/trunk/debian/rules
===================================================================
--- trunk/packages/fis-gtm/trunk/debian/rules	2012-07-04 21:09:35 UTC (rev 11553)
+++ trunk/packages/fis-gtm/trunk/debian/rules	2012-07-04 23:02:14 UTC (rev 11554)
@@ -44,17 +44,10 @@
 	rm    $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/COPYING
 
 override_dh_fixperms:
+	dh_fixperms
 	echo "overriding dh_fixperms"
-	echo "removing execution premissions from shared libraries"
-	chmod 0644 $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/*.so
-	chmod 0644 $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/plugin/*.so
-	echo "setting standard directory permissions"
-	chmod 0755 $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/gtmsecshrdir
-	echo "setting standard executable permissions"
-	chmod 0755 $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/gtmstart
-	chmod 0755 $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/gtmstop
-	chmod 0755 $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/gtcm_run
-	chmod 0755 $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/gtmsecshrdir/gtmsecshr
+	echo "Restoring setuid"
+	chmod u+s $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/gtmsecshr
 	echo "changing permissions to 644 for files that will be sourced"
 	chmod 0644 $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/gtmprofile
 	chmod 0644 $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)/gtmprofile_preV54000
@@ -73,7 +66,10 @@
 # override files
 # The override is needed according to upstream for GTM to generate executable 'call-in's
 override_dh_lintian:
-	echo "$(BINPKG) binary: shlib-with-executable-stack usr/lib/fis-gtm/*/libgtmshr.so" > debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG) binary: shlib-with-executable-stack usr/lib/fis-gtm/*/libgtmshr.so" >  debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG) binary: setuid-binary usr/lib/fis-gtm/*/gtmsecshr"    >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG) binary: shared-lib-without-dependency-information usr/lib/fis-gtm/*/libgtmutil.so" >> debian/$(BINPKG).lintian-overrides
+
 	dh_lintian
 
 get-orig-source:




More information about the debian-med-commit mailing list