Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/git/files: git-daemon.initd git-daemon.confd 20081123-git-1.6.0.4-noperl-cvsserver.patch 50git-gentoo.el
Date: Mon, 24 Nov 2008 01:08:08
Message-Id: E1L4Pvq-0003xG-5j@stork.gentoo.org
1 robbat2 08/11/24 01:08:06
2
3 Modified: git-daemon.initd git-daemon.confd
4 Added: 20081123-git-1.6.0.4-noperl-cvsserver.patch
5 50git-gentoo.el
6 Log:
7 Fix bug #235393 for Emacs users. Fix bug #238351 for running the standalone init.d more safely as non-root and include the pidfile. Bug #247487, cvsserver now needs the Perl stuff. Bug #248446, fix htmldir support.
8 (Portage version: 2.2_rc14/cvs/Linux 2.6.28-rc5-00117-g7f0f598 x86_64)
9
10 Revision Changes Path
11 1.4 dev-util/git/files/git-daemon.initd
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/git-daemon.initd?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/git-daemon.initd?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/git-daemon.initd?r1=1.3&r2=1.4
16
17 Index: git-daemon.initd
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/git/files/git-daemon.initd,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -p -w -b -B -u -u -r1.3 -r1.4
23 --- git-daemon.initd 16 Sep 2008 17:52:15 -0000 1.3
24 +++ git-daemon.initd 24 Nov 2008 01:08:06 -0000 1.4
25 @@ -1,7 +1,7 @@
26 #!/sbin/runscript
27 # Copyright 1999-2008 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-util/git/files/git-daemon.initd,v 1.3 2008/09/16 17:52:15 robbat2 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-util/git/files/git-daemon.initd,v 1.4 2008/11/24 01:08:06 robbat2 Exp $
31
32 depend() {
33 need net
34 @@ -11,12 +11,16 @@ depend() {
35 start() {
36 ebegin "Starting git-daemon"
37 start-stop-daemon --start --quiet --background \
38 - --exec /usr/bin/git -- daemon ${GITDAEMON_OPTS}
39 + --exec /usr/bin/git/git -- daemon \
40 + --pid-file=/var/run/git-daemon.pid \
41 + --user=${GIT_USER} --group=${GIT_GROUP} \
42 + ${GITDAEMON_OPTS}
43 eend $?
44 }
45
46 stop() {
47 ebegin "Stopping git-daemon"
48 - start-stop-daemon --stop --quiet --name git-daemon
49 + start-stop-daemon --stop --quiet \
50 + --pidfile /var/run/git-daemon.pid
51 eend $?
52 }
53
54
55
56 1.2 dev-util/git/files/git-daemon.confd
57
58 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/git-daemon.confd?rev=1.2&view=markup
59 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/git-daemon.confd?rev=1.2&content-type=text/plain
60 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/git-daemon.confd?r1=1.1&r2=1.2
61
62 Index: git-daemon.confd
63 ===================================================================
64 RCS file: /var/cvsroot/gentoo-x86/dev-util/git/files/git-daemon.confd,v
65 retrieving revision 1.1
66 retrieving revision 1.2
67 diff -p -w -b -B -u -u -r1.1 -r1.2
68 --- git-daemon.confd 5 Oct 2005 15:05:04 -0000 1.1
69 +++ git-daemon.confd 24 Nov 2008 01:08:06 -0000 1.2
70 @@ -1,12 +1,19 @@
71 # conf.d file for git-daemon
72 #
73 # Please check man 1 git-daemon for more information about the options
74 -# git-daemon accepts.
75 +# git-daemon accepts. You MUST edit this to include your repositories you wish
76 +# to serve.
77 #
78 -# Meaningful options are:
79 +# Some of the meaningful options are:
80 # --syslog --- Enables syslog logging
81 # --verbose --- Enables verbose logging
82 # --export-all --- Exports all repositories
83 # --port=XXXX --- Starts in port XXXX instead of 9418
84 #
85 -GITDAEMON_OPTS="--syslog"
86 +GITDAEMON_OPTS="--syslog /var/git"
87 +
88 +# To run an anonymous git safely, the following user should be able to only
89 +# read your Git repositories. It should not able able to write to anywhere on
90 +# your system, esp. not the repositories.
91 +GIT_USER="nobody"
92 +GIT_GROUP="nobody"
93
94
95
96 1.1 dev-util/git/files/20081123-git-1.6.0.4-noperl-cvsserver.patch
97
98 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/20081123-git-1.6.0.4-noperl-cvsserver.patch?rev=1.1&view=markup
99 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/20081123-git-1.6.0.4-noperl-cvsserver.patch?rev=1.1&content-type=text/plain
100
101 Index: 20081123-git-1.6.0.4-noperl-cvsserver.patch
102 ===================================================================
103 # Patch for Gentoo bug #247487
104
105 # git-cvsserver is not present when NO_PERL is set in Makefile which breaks
106 # install target...
107
108 --- git-1.6.0.4/Makefile
109 +++ git-1.6.0.4/Makefile
110 @@ -1376,10 +1376,11 @@
111 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(bindir_SQ)'
112 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
113 $(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
114 - $(INSTALL) git$X git-upload-pack$X git-receive-pack$X git-upload-archive$X git-shell$X git-cvsserver '$(DESTDIR_SQ)$(bindir_SQ)'
115 + $(INSTALL) git$X git-upload-pack$X git-receive-pack$X git-upload-archive$X git-shell$X '$(DESTDIR_SQ)$(bindir_SQ)'
116 $(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
117 ifndef NO_PERL
118 $(MAKE) -C perl prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install
119 + $(INSTALL) git-cvsserver '$(DESTDIR_SQ)$(bindir_SQ)'
120 endif
121 ifndef NO_TCLTK
122 $(MAKE) -C gitk-git install
123
124
125
126 1.1 dev-util/git/files/50git-gentoo.el
127
128 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/50git-gentoo.el?rev=1.1&view=markup
129 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/50git-gentoo.el?rev=1.1&content-type=text/plain
130
131 Index: 50git-gentoo.el
132 ===================================================================
133
134 ;;; dev-util/git site-lisp configuration
135
136 (add-to-list 'load-path "@SITELISP@")
137 (autoload 'git-status "git" "Entry point into git-status mode." t)
138 ;;(autoload 'git-blame-mode "git-blame"
139 ;; "Minor mode for incremental blame for Git." t)
140
141 ;; GNU Emacs >=22.2 already includes vc-git.el.
142 ;; Enable the following only if Emacs has no GIT support.
143 (unless (fboundp 'vc-git-registered)
144 (add-to-list 'load-path "@SITELISP@/compat")
145 (add-to-list 'vc-handled-backends 'GIT))