| 1 | GLEP: 36 |
1 | GLEP: 36 |
| 2 | Title: Subversion/CVS for Gentoo Hosted Projects |
2 | Title: Subversion/CVS for Gentoo Hosted Projects |
| 3 | Version: $Revision: 1.3 $ |
3 | Version: $Revision: 1.4 $ |
| 4 | Author: Aaron Walker <ka0ttic@gentoo.org> |
4 | Author: Aaron Walker <ka0ttic@gentoo.org> |
| 5 | Last-Modified: $Date: 2005/04/14 13:08:37 $ |
5 | Last-Modified: $Date: 2005/04/14 13:22:07 $ |
| 6 | Status: Draft |
6 | Status: Draft |
| 7 | Type: Standards Track |
7 | Type: Standards Track |
| 8 | Content-Type: text/x-rst |
8 | Content-Type: text/x-rst |
| 9 | Created: 11-Nov-2004 |
9 | Created: 11-Nov-2004 |
| 10 | Post-Date: 13-Mar-2005, 21-Mar-2005, 14-Apr-2005 |
10 | Post-Date: 13-Mar-2005, 21-Mar-2005 |
| 11 | |
11 | |
| 12 | Abstract |
12 | Abstract |
| 13 | ======== |
13 | ======== |
| 14 | |
14 | |
| 15 | Allow maintainers of Gentoo hosted projects to choose between Subversion/CVS. |
15 | Allow maintainers of Gentoo hosted projects to choose between Subversion/CVS. |
| … | |
… | |
| 50 | |
50 | |
| 51 | $ emerge subversion |
51 | $ emerge subversion |
| 52 | |
52 | |
| 53 | 2. Write wrapper script for svnserve:: |
53 | 2. Write wrapper script for svnserve:: |
| 54 | |
54 | |
| 55 | $ $EDITOR /usr/local/bin/svnserve-ssh && chmod +x \ |
|
|
| 56 | > /usr/local/bin/svnserve-ssh |
|
|
| 57 | |
55 | |
|
|
56 | $ $EDITOR /usr/local/bin/svnserve-ssh && chmod +x \ |
|
|
57 | > /usr/local/bin/svnserve-ssh |
|
|
58 | |
| 58 | #!/bin/sh |
59 | #!/bin/sh |
| 59 | umask 002 |
60 | umask 002 |
| 60 | exec /usr/bin/svnserve "$@" |
61 | exec /usr/bin/svnserve "$@" |
| 61 | |
62 | |
| 62 | 3. Modify the svnserve rc script:: |
63 | 3. Modify the svnserve rc script:: |
| 63 | |
64 | |
| 64 | $ cp /etc/init.d/svnserve /etc/init.d/svnserve-ssh |
65 | $ cp /etc/init.d/svnserve /etc/init.d/svnserve-ssh |
| 65 | $ sed -i 's:/usr/bin/svnserve:/usr/local/bin/svnserve-ssh:' \ |
66 | $ sed -i 's:/usr/bin/svnserve:/usr/local/bin/svnserve-ssh:' \ |
| 66 | > /etc/init.d/svnserve-ssh |
67 | > /etc/init.d/svnserve-ssh |
| 67 | |
68 | |
| 68 | 4. Edit svnserve rc config:: |
69 | 4. Edit svnserve rc config:: |
| 69 | |
70 | |
| 70 | $ ln -s /etc/init.d/svnserve /etc/init.d/svnserve-ssh |
71 | $ ln -s /etc/init.d/svnserve /etc/init.d/svnserve-ssh |
| 71 | $ $EDITOR /etc/init.d/svnserve |
72 | $ $EDITOR /etc/init.d/svnserve |