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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Jun 4 03:37:44 CEST 2009


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

Log Message:
-----------
* Don't create ~/ with cswusergroup
* Do install ~/ and some bash init files with package.
* Do set ownership of ~/ files to gitosis:gitosis in using another class.
* Do ensure /opt/csw/bin is at the head of PATH so python is csw python,
  which will make gitosis-init happy when run.

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:29:00 UTC (rev 5149)
+++ csw/mgar/pkg/gitosis/trunk/Makefile	2009-06-04 01:37:43 UTC (rev 5150)
@@ -18,7 +18,7 @@
 
 PREREQUISITE_PKGS_CSWgitosis = CSWpython
 
-REQUIRED_PKGS_CSWgitosis = CSWgit CSWpython CSWcswclassutils
+REQUIRED_PKGS_CSWgitosis = CSWgit CSWpython CSWcswclassutils CSWpysetuptools
 
 GIT_REPOS = git://eagain.net/gitosis.git
 GIT_USE_PROXY = 1
@@ -42,14 +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:
+GITOSISHOME = /var/opt/csw/gitosis
+CSWUG = gitosis:gitosis:Gitosis Host:$(GITOSISHOME):/bin/bash::
 CSWUGD = $(INSTALLISADIR)/opt/csw/etc/pkg/CSW$(GARNAME)
 
 EXTRA_MERGE_EXCLUDE_FILES = .*\.pyo .*\.pyc
 
-PROTOTYPE_FILTER  = awk '$$$$3 ~ /\/CSWgitosis\/cswusergroup$$$$/ { $$$$2 = "cswusergroup" } { print }'
+PROTOTYPE_FILTER  = awk '$$$$3 ~ /\/CSWgitosis\/cswusergroup$$$$/ { $$$$2 = "cswusergroup" }; $$$$3 ~ /\/var\/opt\/csw\/gitosis/ { $$$$2 = "ugfiles"; $$$$5 = "gitosis"; $$$$6 = "gitosis" } { print }'
 
-SPKG_CLASSES = none cswusergroup
+SPKG_CLASSES = none cswusergroup ugfiles
 
 include gar/category.mk
 
@@ -61,5 +62,8 @@
 
 post-install-modulated:
 	@( gmkdir -p $(CSWUGD); \
-		echo "$(CSWUG)" > $(CSWUGD)/cswusergroup )
+		echo "$(CSWUG)" > $(CSWUGD)/cswusergroup; \
+	   gmkdir -p $(INSTALLISADIR)$(GITOSISHOME); \
+	   echo 'PATH=/opt/csw/bin:$$PATH' > $(INSTALLISADIR)$(GITOSISHOME)/.bashrc; \
+	   echo 'PATH=/opt/csw/bin:$$PATH' > $(INSTALLISADIR)$(GITOSISHOME)/.bash_profile; )
 	$(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