[csw-devel] SF.net SVN: gar:[13501] csw/mgar/pkg

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Tue Mar 1 02:52:36 CET 2011


Revision: 13501
          http://gar.svn.sourceforge.net/gar/?rev=13501&view=rev
Author:   bdwalton
Date:     2011-03-01 01:52:35 +0000 (Tue, 01 Mar 2011)

Log Message:
-----------
cswhookdebug: a small set of hooks useful in debugging hooks

Added Paths:
-----------
    csw/mgar/pkg/cswhookdebug/
    csw/mgar/pkg/cswhookdebug/Makefile
    csw/mgar/pkg/cswhookdebug/branches/
    csw/mgar/pkg/cswhookdebug/tags/
    csw/mgar/pkg/cswhookdebug/trunk/
    csw/mgar/pkg/cswhookdebug/trunk/Makefile
    csw/mgar/pkg/cswhookdebug/trunk/checksums
    csw/mgar/pkg/cswhookdebug/trunk/files/

Copied: csw/mgar/pkg/cswhookdebug/Makefile (from rev 13494, csw/mgar/pkg/template/Makefile)
===================================================================
--- csw/mgar/pkg/cswhookdebug/Makefile	                        (rev 0)
+++ csw/mgar/pkg/cswhookdebug/Makefile	2011-03-01 01:52:35 UTC (rev 13501)
@@ -0,0 +1,15 @@
+# vim: ft=make ts=4 sw=4 noet
+
+default:
+	@echo "You are in the pkg/ directory."
+
+%:
+	$(MAKE) -C trunk $* 
+
+paranoid-%:
+	$(MAKE) -C trunk $* || exit 2 
+
+export BUILDLOG ?= $(shell pwd)/buildlog.txt
+
+report-%:
+	$(MAKE) -C trunk $* || echo "	*** make $* in $$i failed ***" >> $(BUILDLOG) 


Property changes on: csw/mgar/pkg/cswhookdebug/trunk
___________________________________________________________________
Added: svn:ignore
   + cookies
download
work


Added: svn:externals
   + gar https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar/gar/v2


Added: csw/mgar/pkg/cswhookdebug/trunk/Makefile
===================================================================
--- csw/mgar/pkg/cswhookdebug/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/cswhookdebug/trunk/Makefile	2011-03-01 01:52:35 UTC (rev 13501)
@@ -0,0 +1,42 @@
+# $Id$
+NAME = cswhookdebug
+VERSION = 1.0
+CATEGORIES = utils
+
+DESCRIPTION = A set of hooks to ease debugging hook callers
+define BLURB
+These hooks simply dump the hook name and arguments with ansi colours
+to make the calling sequence visible during a package maintenance action.
+endef
+
+VENDOR_URL = http://opencsw.org
+MASTER_SITES = 
+DISTFILES  =
+ARCHALL = 1
+
+CONFIGURE_SCRIPTS =
+BUILD_SCRIPTS =
+TEST_SCRIPTS =
+INSTALL_SCRIPTS = custom
+
+include gar/category.mk
+
+post-extract-modulated: $(WORKSRC)
+	cp $(FILEDIR)/gpl-3.0.txt $(WORKSRC)/COPYING
+
+HOOKDIR=$(DESTDIR)/etc/opt/csw/pkg-hooks
+HOOKS  = postinstall postupgrade postremove
+HOOKS += preupgrade preinstall preremove
+HOOKS += prebatchupgrade prebatchinstall prebatchremove
+HOOKS += postbatchupgrade postbatchinstall postbatchremove
+HOOKS += prefetch postfetch preargproc postargproc
+
+install-custom:
+	@echo Installing CSW$(NAME) files...
+	( ginstall -m 0755 -d $(DESTDIR)/opt/csw/share/doc/$(NAME)/ \
+		$(HOOKDIR) $(addprefix $(HOOKDIR)/,$(addsuffix .d,$(HOOKS))); \
+	  ginstall -m 0644 $(FILEDIR)/README $(DESTDIR)$(docdir)/$(NAME)/; \
+	  ginstall -m 0644 $(FILEDIR)/README $(DESTDIR)$(docdir)/$(NAME)/; \
+	  ginstall -m 0644 $(FILEDIR)/README \
+		$(DESTDIR)/opt/csw/share/doc/$(NAME)/; \
+	  $(foreach H,$(HOOKS),ginstall -m 0755 $(FILEDIR)/99-CSW$(NAME)-postupgrade $(HOOKDIR)/$(H).d/99-CSW$(NAME)-$(H);) )


Property changes on: csw/mgar/pkg/cswhookdebug/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/cswhookdebug/trunk/checksums
===================================================================

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