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

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Apr 28 18:06:54 CEST 2011


Revision: 14437
          http://gar.svn.sourceforge.net/gar/?rev=14437&view=rev
Author:   bdwalton
Date:     2011-04-28 16:06:53 +0000 (Thu, 28 Apr 2011)

Log Message:
-----------
bacula/trunk: install a user and group named bacula; we will run director and sd under this username

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

Modified: csw/mgar/pkg/bacula/trunk/Makefile
===================================================================
--- csw/mgar/pkg/bacula/trunk/Makefile	2011-04-28 15:24:54 UTC (rev 14436)
+++ csw/mgar/pkg/bacula/trunk/Makefile	2011-04-28 16:06:53 UTC (rev 14437)
@@ -151,6 +151,7 @@
 PKGFILES_CSWbacula-sd += /var/opt/csw/run
 PKGFILES_CSWbacula-sd += $(localstatedir)/$(NAME)/archive
 PKGFILES_CSWbacula-sd += .*bacula_sd/.*postmsg
+PKGFILES_CSWbacula-sd += /etc/opt/csw/pkg/CSWbacula-sd/cswusergroup
 
 CATALOGNAME_CSWbacula-director = bacula_director
 SPKG_DESC_CSWbacula-director = $(DESCRIPTION) - Director
@@ -175,6 +176,7 @@
 PKGFILES_CSWbacula-director += /var/opt/csw/run
 PKGFILES_CSWbacula-director += .*share/doc/bacula_director/README.CSW
 PKGFILES_CSWbacula-director += .*bacula_director/.*postmsg
+PKGFILES_CSWbacula-director += /etc/opt/csw/pkg/CSWbacula-director/cswusergroup
 
 # force libraries into a separate subdirectory
 libdir = $(prefix)/lib/$(NAME)
@@ -227,6 +229,9 @@
 PRESERVECONF += $(sysconfdir)/bacula-fd.conf $(sysconfdir)/bconsole.conf
 PRESERVECONF += $(sysconfdir)/mtx-changer.conf $(sysconfdir)/query.sql
 
+USERGROUP += /etc/opt/csw/pkg/CSWbacula-director/cswusergroup
+USERGROUP += /etc/opt/csw/pkg/CSWbacula-sd/cswusergroup
+
 POSTMSG  = /opt/csw/share/doc/bacula_director/README.postmsg
 POSTMSG += /opt/csw/share/doc/bacula_console/README.postmsg
 POSTMSG += /opt/csw/share/doc/bacula_sd/README.postmsg
@@ -268,3 +273,12 @@
 	@( cd $(DESTDIR)/etc/opt/csw/bacula; \
 		perl -pi -e "s!<bacula-source>!$(docdir)/$(NAME)!" query.sql )
 	@$(MAKECOOKIE)
+
+post-merge:
+	@echo Adding user/group creation info...
+	@(cd $(PKGROOT)/etc/opt/csw; \
+		for p in director sd; do \
+			mkdir -p pkg/CSWbacula-$$p; \
+			echo "bacula:bacula:Bacula:/var/opt/csw/bacula/:/bin/false:::NP" > pkg/CSWbacula-$$p/cswusergroup; \
+		done)
+


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