[csw-devel] SF.net SVN: gar:[5149] csw/mgar/pkg/gitosis/trunk/Makefile

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Jun 4 02:29:00 CEST 2009


Revision: 5149
          http://gar.svn.sourceforge.net/gar/?rev=5149&view=rev
Author:   bdwalton
Date:     2009-06-04 00:29:00 +0000 (Thu, 04 Jun 2009)

Log Message:
-----------
Leverage cswclassutils to add a gitosis user/group during install,
which sets up the gitosis ~/ in /var/opt/csw/.  This is where the
repositories will be hosted from.

Prune .pyc and .pyo files from the merge...use cswpycompile when it's
available too.

Modified Paths:
--------------
    csw/mgar/pkg/gitosis/trunk/Makefile

Modified: csw/mgar/pkg/gitosis/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gitosis/trunk/Makefile	2009-06-04 00:28:07 UTC (rev 5148)
+++ csw/mgar/pkg/gitosis/trunk/Makefile	2009-06-04 00:29:00 UTC (rev 5149)
@@ -18,7 +18,7 @@
 
 PREREQUISITE_PKGS_CSWgitosis = CSWpython
 
-REQUIRED_PKGS_CSWgitosis = CSWgit CSWpython
+REQUIRED_PKGS_CSWgitosis = CSWgit CSWpython CSWcswclassutils
 
 GIT_REPOS = git://eagain.net/gitosis.git
 GIT_USE_PROXY = 1
@@ -42,6 +42,15 @@
 INSTALL_SCRIPTS = $(WORKSRC)/setup.py
 INSTALL_ARGS = --root $(DESTDIR) --single-version-externally-managed
 
+CSWUG = gitosis:gitosis:Gitosis Host:/var/opt/csw/gitosis:/bin/bash:m:
+CSWUGD = $(INSTALLISADIR)/opt/csw/etc/pkg/CSW$(GARNAME)
+
+EXTRA_MERGE_EXCLUDE_FILES = .*\.pyo .*\.pyc
+
+PROTOTYPE_FILTER  = awk '$$$$3 ~ /\/CSWgitosis\/cswusergroup$$$$/ { $$$$2 = "cswusergroup" } { print }'
+
+SPKG_CLASSES = none cswusergroup
+
 include gar/category.mk
 
 PATH := /opt/csw/gnu:$(PATH)
@@ -49,3 +58,8 @@
 # Set a slightly altered revstamp to indicate that we're not using a
 # pressed release.
 SPKG_REVSTAMP := $(SPKG_REVSTAMP)_$(PATCHLEVEL)
+
+post-install-modulated:
+	@( gmkdir -p $(CSWUGD); \
+		echo "$(CSWUG)" > $(CSWUGD)/cswusergroup )
+	$(MAKECOOKIE)
\ No newline at end of file


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