aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/repoctl.conf
blob: 14506a252bc66810d6c9c84a7e18e9c5d900d2f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<%- 
distribdir = scope.lookupvar('buildsystem::var::repository::distribdir')
distros = scope.lookupvar('buildsystem::var::distros::distros')
arches = {}
distrosections = {}
sectionsrepos = {}
distros.each{|distroname, distro|
    distro['medias'].each{|medianame, media|
	distrosections[medianame] = 1
	media['repos'].each{|reponame, repo|
	    sectionsrepos[reponame] = 1
	}
    }
    distro['arch'].each{|arch|
	arches[arch] = 1
    }
}
-%>
dryrun=echo
if [ -z $SUDO_USER ]
then
   requestuser="$USER"
else
   requestuser="$SUDO_USER"
fi
lockdir=/var/lib/repoctl/locks
hdlistsdir=/var/lib/repoctl/hdlists
rootdir=<%= scope.lookupvar('buildsystem::var::repository::bootstrap_root') %>
finalrootdir=<%= scope.lookupvar('buildsystem::var::repository::mirror_root') %>
distribdir=$rootdir/<%= distribdir %>
finaldistribdir=$finalrootdir/<%= distribdir %>
distroreleases='<%= distros.keys.sort.join(' ') -%>'
distrosections='<%= distrosections.keys.sort.join(' ') -%>'
sectionsrepos='<%= sectionsrepos.keys.sort.join(' ') -%>'
arches='<%= arches.keys.sort.join(' ') -%>'
mirror_rsync_options="-v --delete -alH"
timestampfile="mageia_timestamp"
sha1sumfile="mageia_sha1sum"
sha1sumsigfile="mageia_sha1sum.gpg"
sign_mirror_sha1sum=/bin/true