[csw-devel] SF.net SVN: gar:[7665] csw/mgar/pkg/mtr/trunk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Dec 18 14:58:32 CET 2009


Revision: 7665
          http://gar.svn.sourceforge.net/gar/?rev=7665&view=rev
Author:   dmichelsen
Date:     2009-12-18 13:58:32 +0000 (Fri, 18 Dec 2009)

Log Message:
-----------
mtr: Add prototype modifiers and merge wildcards

Modified Paths:
--------------
    csw/mgar/pkg/mtr/trunk/Makefile
    csw/mgar/pkg/mtr/trunk/checksums

Modified: csw/mgar/pkg/mtr/trunk/Makefile
===================================================================
--- csw/mgar/pkg/mtr/trunk/Makefile	2009-12-18 13:35:20 UTC (rev 7664)
+++ csw/mgar/pkg/mtr/trunk/Makefile	2009-12-18 13:58:32 UTC (rev 7665)
@@ -48,6 +48,7 @@
 
 TEST_SCRIPTS =
 
+
 CONFIGURE_ARGS = $(DIRPATHS)
 
 # ------------------ BEWARE:  NASTY HACK AHEAD --------------------
@@ -60,38 +61,31 @@
 EXTRA_MODULATORS = GUI
 MODULATIONS_GUI = disable enable
 
-ifeq ($(GUI), disable)
-CONFIGURE_ARGS += --without-gtk
-endif
 
-ifeq ($(GUI), enable)
-CONFIGURE_ARGS += --disable-gtktest
-EXTRA_PKG_CONFIG_PATH = /opt/csw/X11/lib/pkgconfig
-endif
 
+CONFIGURE_ARGS_GUI-disable = --without-gtk
+CONFIGURE_ARGS_GUI-enable = --disable-gtktest
+CONFIGURE_ARGS += $(CONFIGURE_ARGS_GUI-$(GUI))
+
+EXTRA_PKG_CONFIG_PATH_GUI-enable = /opt/csw/X11/lib/pkgconfig
+EXTRA_PKG_CONFIG_PATH += $(EXTRA_PKG_CONFIG_PATH_GUI-$(GUI))
+
 # Rename the modulated binaries so that we can distinguish them
 # Could also be done via ./configure --program-suffix, but the
 # install-exec-hook for mtr doesn't honor the transformed name
 # and fails.
-EXTRA_PAX_ARGS_isa-sparcv8-gui-enable  = -s ",^.$(sbindir)/mtr$$,$(sbindir)/mtr-gui,p"
-EXTRA_PAX_ARGS_isa-sparcv8-gui-disable = -s ",^.$(sbindir)/mtr$$,$(sbindir)/mtr-nongui,p"
-EXTRA_PAX_ARGS_isa-i386-gui-enable     = -s ",^.$(sbindir)/mtr$$,$(sbindir)/mtr-gui,p"
-EXTRA_PAX_ARGS_isa-i386-gui-disable    = -s ",^.$(sbindir)/mtr$$,$(sbindir)/mtr-nongui,p"
+EXTRA_PAX_ARGS_isa-default-gui-enable  = -s ",^.$(sbindir)/mtr$$,$(sbindir)/mtr-gui,p"
+EXTRA_PAX_ARGS_isa-default-gui-disable = -s ",^.$(sbindir)/mtr$$,$(sbindir)/mtr-nongui,p"
 
 # Simply copy all files, EXTRA_PAX_ARGS above takes care not to overwrite the 
 # mtr binary on merging.
-MERGE_SCRIPTS_isa-sparcv8-gui-enable  = copy-all
-MERGE_SCRIPTS_isa-sparcv8-gui-disable = copy-all
-MERGE_SCRIPTS_isa-i386-gui-enable     = copy-all
-MERGE_SCRIPTS_isa-i386-gui-disable    = copy-all
+MERGE_SCRIPTS_isa-default-gui-enable  = copy-all
+MERGE_SCRIPTS_isa-default-gui-disable = copy-all
 
-# 1) Move the GUI/non-GUI binaries to their proper location
-# 2) Make mtr setuid so that it can access raw sockets
-PROTOTYPE_FILTER = awk ' \
-	$$$$3 ~ /^\/opt\/csw\/sbin\/mtr-/ { \
-		$$$$3 = "/opt/csw/sbin/mtr=" $$$$3; \
-		$$$$4 = "4755"; \
-	} { print }'
+# Make mtr setuid so that it can access raw sockets
+PROTOTYPE_MODIFIERS = makesuid
+PROTOTYPE_FILES_makesuid = $(sbindir)/mtr-.*
+PROTOTYPE_PERMS_makesuid = 4755
 
 # ------------------ /BEWARE:  NASTY HACK AHEAD --------------------
 

Modified: csw/mgar/pkg/mtr/trunk/checksums
===================================================================
--- csw/mgar/pkg/mtr/trunk/checksums	2009-12-18 13:35:20 UTC (rev 7664)
+++ csw/mgar/pkg/mtr/trunk/checksums	2009-12-18 13:58:32 UTC (rev 7665)
@@ -1,2 +1,2 @@
-4a3e6fef662eb4794e61e334f6c33722  download/gar-base.diff
-23baca52d0922c2ecba7eba05317868c  download/mtr-0.75.tar.gz
+4a3e6fef662eb4794e61e334f6c33722  gar-base.diff
+23baca52d0922c2ecba7eba05317868c  mtr-0.75.tar.gz


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list