| 1 |
## Example configuration file for svnperms.py. ## |
| 2 |
|
| 3 |
# $Id: svnperms.conf.example 1028289 2010-10-28 13:20:45Z cmpilato $ |
| 4 |
# |
| 5 |
# Multiple global [groups] sections are accepted, but be aware |
| 6 |
# that it's the same as concatenating them all in a single entry. |
| 7 |
# You can also create section specific groups, using a syntax |
| 8 |
# like [sectionname groups]. |
| 9 |
# |
| 10 |
[groups] |
| 11 |
group1 = user1 user2 user3 |
| 12 |
group2 = user4 user5 |
| 13 |
supergroup = @group1 @group2 user6 |
| 14 |
|
| 15 |
# |
| 16 |
# Example repository control, showing allowed syntax. |
| 17 |
# |
| 18 |
# - the latest match is what counts |
| 19 |
# - groups are prefixed by "@" |
| 20 |
# - you can use groups and users in the same definition |
| 21 |
# - all permissions may be revoked with () |
| 22 |
# - line breaks are accepted |
| 23 |
# |
| 24 |
[example1 groups] |
| 25 |
group3 = user9 user10 |
| 26 |
|
| 27 |
[example1] |
| 28 |
trunk/.* = *(add,remove,update) @group1,user4,user5(update) |
| 29 |
user6,user7() |
| 30 |
trunk/.* = user8(add,update) |
| 31 |
tags/[^/]+/ = @group3(add) |
| 32 |
branches/[^/]+/.* = *(add,remove,update) |
| 33 |
|
| 34 |
# |
| 35 |
# One of the most used repository structures, for a single project. |
| 36 |
# |
| 37 |
[example2] |
| 38 |
trunk/.* = *(add,remove,update) |
| 39 |
tags/[^/]+/ = *(add) |
| 40 |
branches/[^/]+/.* = *(add,remove,update) |
| 41 |
|
| 42 |
# |
| 43 |
# Another common structure, expecting a project name inside the repository |
| 44 |
# (like trunk/myproject/ and tags/myproject/). In this example, only admins |
| 45 |
# are allowed to create projects, and there are project specific access |
| 46 |
# lists. |
| 47 |
# |
| 48 |
[example3 groups] |
| 49 |
admins = john |
| 50 |
project1 = user1 user2 |
| 51 |
project2 = user3 user4 |
| 52 |
|
| 53 |
[example3] |
| 54 |
trunk/[^/]+/ = @admins(add,remove) |
| 55 |
trunk/project1/.+ = @project1(add,remove,update) |
| 56 |
trunk/project2/.+ = @project2(add,remove,update) |
| 57 |
tags/[^/]+/ = @admins(add,remove) |
| 58 |
tags/project1/[^/]+/ = @project1(add,remove) |
| 59 |
tags/project2/[^/]+/ = @project2(add,remove) |
| 60 |
branches/[^/]+/ = @admins(add,remove) |
| 61 |
branches/project1/[^/]+/.* = @project1(add,remove,update) |
| 62 |
branches/project2/[^/]+/.* = @project2(add,remove,update) |
| 63 |
|
| 64 |
# |
| 65 |
# A more complex structure, as defined in the following URL: |
| 66 |
# |
| 67 |
# http://moin.conectiva.com.br/RepositorySystem |
| 68 |
# |
| 69 |
[example4 groups] |
| 70 |
admins = user1 user2 |
| 71 |
updaters = user3 |
| 72 |
|
| 73 |
[example4] |
| 74 |
snapshot/[^/]+/(current/(SPECS/|SOURCES/)?)? = *(add) |
| 75 |
snapshot/[^/]+/ = @admins(add,remove) |
| 76 |
snapshot/[^/]+/current/SPECS/[^/]+\.spec = *(add,remove,update) |
| 77 |
snapshot/[^/]+/current/SOURCES/[^/]+ = *(add,remove,update) |
| 78 |
snapshot/[^/]+/releases/[^/]+/([^/+]/)? = autouser(add) |
| 79 |
snapshot/[^/]+/pristine/ = autouser(add,remove) |
| 80 |
branches/[^/]+/.* = *(add,remove,update) |
| 81 |
releases/[^/]+/ = @admins(add) |
| 82 |
tags/[^/]+/ = *(add,remove) |
| 83 |
updates/[^/]+/[^/]+/(current/(SPECS/|SOURCES/)?)? = @updaters,autouser(add) |
| 84 |
updates/[^/]+/[^/]+/current/SPECS/[^/]+\.spec = @updaters,autouser(add,update) |
| 85 |
updates/[^/]+/[^/]+/current/SOURCES/[^/]+ = @updaters,autouser(add,remove,update) |
| 86 |
updates/[^/]+/[^/]+/releases/.* = autouser(add) |
| 87 |
updates/[^/]+/[^/]+/pristine/ = autouser(add,remove) |
| 88 |
|
| 89 |
# |
| 90 |
# Sections can inherit settings from previously defined sections, using |
| 91 |
# the "extends" keyword in the section declaration. In this example, |
| 92 |
# the [example5] section inherits all the settings from [example2], and |
| 93 |
# adds a new setting for a releases directory which behaves like the |
| 94 |
# tags directory. |
| 95 |
# |
| 96 |
[example5 extends example2] |
| 97 |
releases/[^/]+/ = *(add) |
| 98 |
|