Permalink
Browse files

pulling in trival stuff for the organization of the repositories

git-svn-id: https://pause.perl.org:5460/svn/pause/trunk@828 a0804923-bdb8-0310-8f3c-e6a281b66435
  • Loading branch information...
1 parent 2a4f053 commit c12a219b1aa567cc5f480bc89c73b20ae84144e1 k committed Sep 27, 2006
Showing with 693 additions and 2 deletions.
  1. +1 −1 etc/aliases
  2. +24 −1 etc/cfengine/cf.main
  3. +42 −0 svn/cpanpm/hooks/post-commit
  4. +583 −0 svn/pause/hooks/commit-email.pl
  5. +43 −0 svn/pause/hooks/post-commit
View
@@ -43,4 +43,4 @@ logcheck: k
# Mailinglists
pause-code-commits: k, autrijus@autrijus.org
-cpanpm-code-commits: k
+cpanpm-code-commits: k, xdaveg@gmail.com
View
@@ -8,7 +8,6 @@ files:
links:
any::
- /etc/aliases ->! ../home/k/PAUSE/etc/aliases
/etc/csync2.cfg ->! ../home/k/PAUSE/etc/csync2.cfg
/etc/ntp.conf ->! ../home/k/PAUSE/etc/ntp.conf
/etc/proftpd.conf ->! ../home/k/PAUSE/etc/proftpd.conf
@@ -40,6 +39,26 @@ links:
/usr/lib/mon/mon.d/sm-mta.monitor ->! ../../../../home/k/PAUSE/etc/mon/mon.d/sm-mta.monitor
/usr/lib/mon/mon.d/3ware_cli.monitor ->! ../../../../home/k/PAUSE/etc/mon/mon.d/3ware_cli.monitor
+copy:
+ any::
+ # the SVN repository is not necessarily on PAUSE itself, of course
+ /home/k/dproj/PAUSE/SVN/svn/pause/hooks/post-commit
+ dest=/home/SVN/repos/pause/hooks/post-commit
+ owner=SVN group=www-data mode=0755
+
+ /home/k/dproj/PAUSE/SVN/svn/pause/hooks/commit-email.pl
+ dest=/home/SVN/repos/pause/hooks/commit-email.pl
+ owner=SVN group=www-data mode=0755
+
+ # XXX foreigner, not PAUSE related
+ /home/k/dproj/PAUSE/SVN/svn/cpanpm/hooks/post-commit
+ dest=/home/SVN/repos/cpanpm/hooks/post-commit
+ owner=SVN group=www-data mode=0755
+
+ # sendmail
+ /home/k/PAUSE/etc/aliases dest=/etc/aliases
+ owner=root group=root mode=0644 define=reload_aliases
+
editfiles:
# warn: XXX nonsense to hardcode 1000 here but does cfengine help me do better?
any::
@@ -48,3 +67,7 @@ editfiles:
DeleteLinesContaining "k:x:1000:"
AppendIfNoSuchLine "k:x:1000:k,kstar,abh,SVN,ftp,nobody"
}
+
+shellcommands:
+ reload_aliases::
+ "/usr/sbin/newaliases"
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# POST-COMMIT HOOK
+#
+# The post-commit hook is invoked after a commit. Subversion runs
+# this hook by invoking a program (script, executable, binary,
+# etc.) named `post-commit' (for which
+# this file is a template) with the following ordered arguments:
+#
+# [1] REPOS-PATH (the path to this repository)
+# [2] REV (the number of the revision just committed)
+#
+# Because the commit has already completed and cannot be undone,
+# the exit code of the hook program is ignored. The hook program
+# can use the `svnlook' utility to help it examine the
+# newly-committed tree.
+#
+# On a Unix system, the normal procedure is to have `post-commit'
+# invoke other programs to do the real work, though it may do the
+# work itself too.
+#
+# Note that `post-commit' must be executable by the user(s) who will
+# invoke it (typically the user httpd runs as), and that user must
+# have filesystem-level permission to access the repository.
+#
+# On a Windows system, you should name the hook program
+# `post-commit.bat' or `post-commit.exe',
+# but the basic idea is the same.
+#
+# Here is an example hook script, for a Unix /bin/sh interpreter:
+
+REPOS="$1"
+REV="$2"
+
+/home/SVN/repos/pause/hooks/commit-email.pl "$REPOS" "$REV" cpanpm-code-commits
+# log-commit.py --repository "$REPOS" --revision "$REV"
+
+# -commit-email.pl "$REPOS" "$REV" commit-watchers@example.org
+# -log-commit.py --repository "$REPOS" --revision "$REV"
+# +/usr/local/public-svn/Perl-Repository-APC/hooks/commit-email.pl "$REPOS" "$REV"
+ # k@k242.linux.bogus
+# +# log-commit.py --repository "$REPOS" --revision "$REV"
Oops, something went wrong. Retry.

0 comments on commit c12a219

Please sign in to comment.