Skip to content

Commit

Permalink
mkgitolite: Define a group for all packages
Browse files Browse the repository at this point in the history
Define a group of all package repositories, rather than just using @ALL,
so gitolite can be used to control access to other cygwin repositories
as well.

Also define a per-repo post-recieve hook to perform package builds.

Also rearrange things so comments in giolite configuration file
consistently preceed the what they are commenting on.
  • Loading branch information
jon-turney committed Nov 8, 2024
1 parent 7f371b8 commit 844a307
Show file tree
Hide file tree
Showing 2 changed files with 2,527 additions and 9 deletions.
13 changes: 9 additions & 4 deletions calm/mkgitoliteconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,20 @@ def do_main(pkglist, file=sys.stdout):
print('', file=file)
print('@leads = %s' % ' '.join(map(transform_username, common_constants.TRUSTEDMAINT.split('/'))), file=file)
print('', file=file)
print('repo @all', file=file)
print('repo @allpackages', file=file)
print(' RW = @leads', file=file)
print(' RW+ playground$ = @all', file=file)
print('# anyone can create, push, rewind or delete the \'playground\' branch', file=file)
print(' RW+ playground$ = @all', file=file)
print(' R = @all', file=file)
print(' R = gitweb daemon', file=file)
print(' option hook.post-receive = pkgbuild', file=file)
print(' config core.sharedrepository = all', file=file)
print(' config uploadpack.allowReachableSHA1InWant = true', file=file)
print(' config receive.advertisePushOptions = true', file=file)
print(' - VREF/MAX_NEWBIN_SIZE/1024 = @all', file=file)
print('# this rejects binary files over the size limit, text files of any size are still permitted', file=file)
print(' - VREF/HIGHLANDER/cygport = @all', file=file)
print(' - VREF/MAX_NEWBIN_SIZE/1024 = @all', file=file)
print('# this checks for trees which contain more than one .cygport file', file=file)
print(' - VREF/HIGHLANDER/cygport = @all', file=file)
print('', file=file)

# for each package
Expand Down Expand Up @@ -106,6 +107,10 @@ def do_main(pkglist, file=sys.stdout):
print("config repo.desc = cygwin packaging for %s" % (p), file=file)
print("", file=file)

print('# accumulate list of all package repos into allpackages group', file=file)
for p in sorted(pkgs):
print("@allpackages = git/cygwin-packages/%s" % (p), file=file)


#
#
Expand Down
Loading

0 comments on commit 844a307

Please sign in to comment.