pld-gitolite: gitolite.conf (NEW), gitolite.rc (NEW), pld-gitolite.spec (NE...

draenog draenog at pld-linux.org
Fri Dec 16 22:22:22 CET 2011


Author: draenog                      Date: Fri Dec 16 21:22:22 2011 GMT
Module: pld-gitolite                  Tag: HEAD
---- Log message:
- initial version

---- Files affected:
pld-gitolite:
   gitolite.conf (NONE -> 1.1)  (NEW), gitolite.rc (NONE -> 1.1)  (NEW), pld-gitolite.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: pld-gitolite/gitolite.conf
diff -u /dev/null pld-gitolite/gitolite.conf:1.1
--- /dev/null	Fri Dec 16 22:22:22 2011
+++ pld-gitolite/gitolite.conf	Fri Dec 16 22:22:17 2011
@@ -0,0 +1,28 @@
+ at admins = admin
+
+ at aidath-builders = builder-aidath-src
+ at th-builders = builderth
+ at ac-builders = builderac
+ at ti-builders = buildersti
+ at builders = @th-builders @ac-builders @aidath-builders
+
+repo    gitolite-admin
+        RW+     =   @admins
+
+repo    testing
+        RW+     =   @all
+
+repo    Refs
+        R = @all daemon
+
+repo   packages/..*
+        C = @all
+        R = daemon
+        RW refs/tags/auto-th = @th-builders
+        RW refs/tags/auto-ac = @ac-builders
+        RW refs/tags/auto-ti = @ti-builders
+        - refs/tags/auto- = @all
+        - = @builders
+        RW master$ = @all
+        -  master$ = @all
+        RW+ = @all

================================================================
Index: pld-gitolite/gitolite.rc
diff -u /dev/null pld-gitolite/gitolite.rc:1.1
--- /dev/null	Fri Dec 16 22:22:22 2011
+++ pld-gitolite/gitolite.rc	Fri Dec 16 22:22:17 2011
@@ -0,0 +1,97 @@
+# configuration variables for gitolite
+
+# PLEASE READ THE DOCUMENTATION BEFORE EDITING OR ASKING QUESTIONS
+# ( http://github.com/sitaramc/gitolite/blob/pu/doc/gitolite.rc.mkd )
+#   ( or http://sitaramc.github.com/gitolite/doc/gitolite.rc.html )
+
+# this file is in perl syntax.  However, you do NOT need to know perl to edit
+# it; it should be fairly self-explanatory and easy to maintain
+
+# ------------------------------------------------------------------------------
+# DO NOT TOUCH THIS SECTION!
+# ------------------------------------------------------------------------------
+
+$GL_ADMINDIR=$ENV{HOME} . "/.gitolite";
+$GL_CONF="$GL_ADMINDIR/conf/gitolite.conf";
+$GL_KEYDIR="$GL_ADMINDIR/keydir";
+$GL_CONF_COMPILED="$GL_ADMINDIR/conf/gitolite.conf-compiled.pm";
+
+# DO NOT CHANGE THE NEXT FOUR LINES UNLESS YOU REALLY KNOW WHAT YOU'RE DOING.
+# These variables are set automatically by the install method you choose.
+#            (PACKAGE MAINTAINERS: PLEASE READ doc/packaging.mkd)
+$GL_PACKAGE_CONF = "/etc/gitolite";
+$GL_PACKAGE_HOOKS = "/usr/share/gitolite/hooks";
+
+# ------------------------------------------------------------------------------
+# most often used/changed variables
+# ------------------------------------------------------------------------------
+$GL_WILDREPOS = 1;
+$PROJECTS_LIST = $ENV{HOME} . "/projects.list";
+# $WEB_INTERFACE = "gitweb";
+# $GITWEB_URI_ESCAPE = 0;
+$REPO_UMASK = 0077;
+
+# ------------------------------------------------------------------------------
+# variables with an efficiency/performance impact
+# ------------------------------------------------------------------------------
+$GL_BIG_CONFIG = 1;
+$GL_NO_DAEMON_NO_GITWEB = 1;
+# $GL_NICE_VALUE = 0;
+# $BIG_INFO_CAP = 20;
+
+# ------------------------------------------------------------------------------
+# VARIABLES WITH A SECURITY IMPACT.  READ DOCS BEFORE CHANGING THESE!
+# http://github.com/sitaramc/gitolite/blob/pu/doc/gitolite.rc.mkd#_variables_with_a_security_impact
+# (or http://sitaramc.github.com/gitolite/doc/gitolite.rc.html#_variables_with_a_security_impact)
+# ------------------------------------------------------------------------------
+# $GL_ALL_READ_ALL = 0;
+$GIT_PATH="";
+$GL_GITCONFIG_KEYS = "";
+$GL_NO_CREATE_REPOS = 0;
+$GL_NO_CREATE_WILDCARD_REPOS = 1;
+$GL_NO_SETUP_AUTHKEYS = 0;
+# $GL_WILDREPOS_DEFPERMS = 'R @all';
+$HTPASSWD_FILE = "";
+$RSYNC_BASE = "";
+$SVNSERVE = "";
+# $UPDATE_CHAINS_TO = "hooks/update.secondary";
+# $ADMIN_POST_UPDATE_CHAINS_TO = "hooks/post-update.secondary";
+$GL_ADC_PATH = $ENV{HOME} . "/adc/bin";
+# $GL_GET_MEMBERSHIPS_PGM = "/usr/local/bin/expand-ldap-user-to-groups"
+# $GL_HTTP_ANON_USER = "mob";
+# $GL_REF_OR_FILENAME_PATT=qr(^[0-9a-zA-Z][0-9a-zA-Z._\@/+ :,-]*$);
+
+# ------------------------------------------------------------------------------
+# less used/changed variables
+# ------------------------------------------------------------------------------
+# $GL_ALL_INCLUDES_SPECIAL = 0;
+# $GL_SLAVE_MODE = 0;
+# $ENV{GL_SLAVES} = 'gitolite at server2 gitolite at server3';
+# PLEASE USE SINGLE QUOTES ABOVE, NOT DOUBLE QUOTES
+$GL_WILDREPOS_PERM_CATS = "READERS WRITERS";
+# $GL_SITE_INFO = "XYZ.COM DEVELOPERS: PLEASE SEE http://xyz.com/gitolite/help first";
+# $GL_HOSTNAME = "frodo";       # read doc/mirroring.mkd COMPLETELY before setting this
+
+# ------------------------------------------------------------------------------
+# rarely changed variables
+# ------------------------------------------------------------------------------
+$GL_LOGT="$GL_ADMINDIR/logs/gitolite-%y-%m.log";
+# $GL_PERFLOGT="$GL_ADMINDIR/logs/perf-gitolite-%y-%m.log";
+
+# ------------------------------------------------------------------------------
+# variables that should NOT be changed after the install step completes
+# ------------------------------------------------------------------------------
+$REPO_BASE="repositories";
+
+# ------------------------------------------------------------------------------
+# DO NOT TOUCH ANY THING AFTER THIS LINE
+# ------------------------------------------------------------------------------
+
+# ------------------------------------------------------------------------------
+# per perl rules, this should be the last line in such a file:
+1;
+
+# Local variables:
+# mode: perl
+# End:
+# vim: set syn=perl:

================================================================
Index: pld-gitolite/pld-gitolite.spec
diff -u /dev/null pld-gitolite/pld-gitolite.spec:1.1
--- /dev/null	Fri Dec 16 22:22:22 2011
+++ pld-gitolite/pld-gitolite.spec	Fri Dec 16 22:22:17 2011
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+Summary:	Gitolite setup used by PLD
+Name:		pld-gitolite
+Version:	0.1
+Release:	0.1
+License:	GPL v2
+Group:		Development/Building
+Source0:	https://github.com/draenog/gitolite-scripts/tarball/v%{version}/gitolite-scripts.tar.bz2
+# Source0-md5:	ac759e1ab4d95fd154a30c3c5254de40
+Source1:	gitolite.conf
+Source2:	gitolite.rc
+Requires:	gitolite
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Gitolite setup used by PLD Linux Distribution
+
+%prep
+%setup -qc
+mv draenog-gitolite-scripts-*/* .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+# create directories if necessary
+install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/home/services/gitolite/repositories
+install -d $RPM_BUILD_ROOT/home/services/gitolite/.gitolite/{conf,hooks/common}
+
+cp -a %{SOURCE1} $RPM_BUILD_ROOT/home/services/gitolite/.gitolite/conf
+cp -a %{SOURCE2} $RPM_BUILD_ROOT/home/services/gitolite/.gitolite.rc
+cp -a hooks/* $RPM_BUILD_ROOT/home/services/gitolite/.gitolite/hooks/common
+cp -a adc $RPM_BUILD_ROOT/home/services/gitolite/
+touch $RPM_BUILD_ROOT/home/services/gitolite//projects.list
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+%groupadd -g 264 gitolite
+%useradd -u 264 -d /home/services/gitolite -s /bin/sh -g gitolite -c "PLD Gitolie User" gitolite
+
+%post
+
+%preun
+
+%postun
+if [ "$1" = "0" ]; then
+	%userremove gitolite
+	%groupremove gitolite
+fi
+
+
+%files
+%defattr(644,gitolite,gitolite,755)
+/home/services/gitolite
+%dir /home/services/gitolite/repositories
+%config(noreplace) %verify(not md5 mtime size) /home/services/gitolite/.gitolite/conf/gitolite.conf
+%config(noreplace) %verify(not md5 mtime size) /home/services/gitolite/.gitolite.rc
+%attr(744,gitolite,gitolite) /home/services/gitolite/adc/bin/create
+%attr(744,gitolite,gitolite) /home/services/gitolite/.gitolite/hooks/common//update.secondary
+%attr(744,gitolite,gitolite) /home/services/gitolite/.gitolite/hooks/common//post-receive
+%attr(744,gitolite,gitolite) /home/services/gitolite/.gitolite/hooks/common//post-receive.d/mailnotification
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/12/16 21:22:17  draenog
+- initial version
+
================================================================


More information about the pld-cvs-commit mailing list