1 |
commit: 56e531d27c15620166c918874701fe37c553d523 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 9 23:14:11 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 9 23:17:54 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e531d2 |
7 |
|
8 |
dev-vcs/gitolite: migrate to GLEP 81 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/781566 |
11 |
Closes: https://bugs.gentoo.org/589468 |
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
13 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
14 |
|
15 |
dev-vcs/gitolite/gitolite-2.3.1-r2.ebuild | 65 +++++++++++++++++++ |
16 |
dev-vcs/gitolite/gitolite-3.6.11-r1.ebuild | 100 +++++++++++++++++++++++++++++ |
17 |
2 files changed, 165 insertions(+) |
18 |
|
19 |
diff --git a/dev-vcs/gitolite/gitolite-2.3.1-r2.ebuild b/dev-vcs/gitolite/gitolite-2.3.1-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..51044fbe818 |
22 |
--- /dev/null |
23 |
+++ b/dev-vcs/gitolite/gitolite-2.3.1-r2.ebuild |
24 |
@@ -0,0 +1,65 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+inherit perl-module |
31 |
+ |
32 |
+DESCRIPTION="Highly flexible server for git directory version tracker" |
33 |
+HOMEPAGE="https://github.com/sitaramc/gitolite" |
34 |
+SRC_URI="https://milki.github.com/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="amd64 x86" |
39 |
+IUSE="contrib vim-syntax" |
40 |
+ |
41 |
+DEPEND=" |
42 |
+ dev-lang/perl |
43 |
+ >=dev-vcs/git-1.6.6 |
44 |
+ virtual/perl-File-Path |
45 |
+ virtual/perl-File-Temp |
46 |
+" |
47 |
+RDEPEND=" |
48 |
+ ${DEPEND} |
49 |
+ acct-group/git |
50 |
+ acct-user/git[gitolite] |
51 |
+ !dev-vcs/gitolite-gentoo |
52 |
+ vim-syntax? ( app-vim/gitolite-syntax )" |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ rm Makefile doc/COPYING || die |
56 |
+ rm -rf contrib/{gitweb,vim} || die |
57 |
+ |
58 |
+ echo "${PF}" > conf/VERSION |
59 |
+} |
60 |
+ |
61 |
+src_install() { |
62 |
+ local gl_bin="${D}/usr/bin" |
63 |
+ gl_bin=${gl_bin/\/\//\/} |
64 |
+ |
65 |
+ dodir /usr/share/gitolite/{conf,hooks} /usr/bin |
66 |
+ |
67 |
+ # install using upstream method |
68 |
+ export PATH="${gl_bin}:${PATH}" |
69 |
+ ./src/gl-system-install ${gl_bin} \ |
70 |
+ "${D}"/usr/share/gitolite/conf "${D}"/usr/share/gitolite/hooks || die |
71 |
+ sed -e "s:${D}::g" "${D}/usr/bin/gl-setup" \ |
72 |
+ -i "${D}/usr/share/gitolite/conf/example.gitolite.rc" || die |
73 |
+ |
74 |
+ rm "${D}"/usr/bin/*.pm |
75 |
+ insinto "${VENDOR_LIB}" |
76 |
+ doins src/*.pm |
77 |
+ |
78 |
+ dodoc README.mkd doc/* |
79 |
+ |
80 |
+ use contrib && dodoc -r contrib |
81 |
+} |
82 |
+ |
83 |
+pkg_postinst() { |
84 |
+ # bug 352291 |
85 |
+ ewarn |
86 |
+ elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitolite)." |
87 |
+ elog "Especially if you're migrating from gitosis." |
88 |
+ ewarn |
89 |
+} |
90 |
|
91 |
diff --git a/dev-vcs/gitolite/gitolite-3.6.11-r1.ebuild b/dev-vcs/gitolite/gitolite-3.6.11-r1.ebuild |
92 |
new file mode 100644 |
93 |
index 00000000000..c83049e8e95 |
94 |
--- /dev/null |
95 |
+++ b/dev-vcs/gitolite/gitolite-3.6.11-r1.ebuild |
96 |
@@ -0,0 +1,100 @@ |
97 |
+# Copyright 1999-2021 Gentoo Authors |
98 |
+# Distributed under the terms of the GNU General Public License v2 |
99 |
+ |
100 |
+EAPI=7 |
101 |
+ |
102 |
+[[ ${PV} == *9999 ]] && SCM="git-2" |
103 |
+EGIT_REPO_URI="https://github.com/sitaramc/${PN}.git" |
104 |
+EGIT_MASTER=master |
105 |
+ |
106 |
+inherit perl-module ${SCM} |
107 |
+ |
108 |
+DESCRIPTION="Highly flexible server for git directory version tracker" |
109 |
+HOMEPAGE="https://github.com/sitaramc/gitolite" |
110 |
+if [[ ${PV} != *9999 ]]; then |
111 |
+ SRC_URI="https://github.com/sitaramc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
112 |
+ KEYWORDS="amd64 arm x86" |
113 |
+else |
114 |
+ SRC_URI="" |
115 |
+fi |
116 |
+ |
117 |
+LICENSE="GPL-2" |
118 |
+SLOT="0" |
119 |
+IUSE="selinux tools" |
120 |
+ |
121 |
+DEPEND=" |
122 |
+ dev-lang/perl |
123 |
+ >=dev-vcs/git-1.6.6 |
124 |
+ virtual/perl-File-Path |
125 |
+ virtual/perl-File-Temp |
126 |
+" |
127 |
+RDEPEND=" |
128 |
+ ${DEPEND} |
129 |
+ acct-group/git |
130 |
+ acct-user/git[gitolite] |
131 |
+ !app-vim/gitolite-syntax |
132 |
+ !dev-vcs/gitolite-gentoo |
133 |
+ selinux? ( sec-policy/selinux-gitosis ) |
134 |
+ dev-perl/JSON |
135 |
+" |
136 |
+ |
137 |
+src_prepare() { |
138 |
+ default |
139 |
+ echo ${PF} > src/VERSION || die |
140 |
+} |
141 |
+ |
142 |
+src_install() { |
143 |
+ local uexec=/usr/libexec/${PN} |
144 |
+ |
145 |
+ rm -rf src/lib/Gitolite/Test{,.pm} |
146 |
+ insinto $VENDOR_LIB |
147 |
+ doins -r src/lib/Gitolite |
148 |
+ |
149 |
+ dodoc README.markdown CHANGELOG |
150 |
+ # These are meant by upstream as examples, you are strongly recommended to |
151 |
+ # customize them for your needs. |
152 |
+ dodoc contrib/utils/ipa_groups.pl contrib/utils/ldap_groups.sh |
153 |
+ |
154 |
+ insinto /usr/share/vim/vimfiles |
155 |
+ doins -r contrib/vim/* |
156 |
+ |
157 |
+ insopts -m0755 |
158 |
+ insinto $uexec |
159 |
+ doins -r src/{commands,syntactic-sugar,triggers,VREF}/ |
160 |
+ doins -r contrib/{commands,triggers,hooks} |
161 |
+ |
162 |
+ insopts -m0644 |
163 |
+ doins src/VERSION |
164 |
+ |
165 |
+ exeinto $uexec |
166 |
+ doexe src/gitolite{,-shell} |
167 |
+ |
168 |
+ dodir /usr/bin |
169 |
+ for bin in gitolite{,-shell}; do |
170 |
+ dosym /usr/libexec/${PN}/${bin} /usr/bin/${bin} |
171 |
+ done |
172 |
+ |
173 |
+ if use tools; then |
174 |
+ dobin check-g2-compat convert-gitosis-conf |
175 |
+ dobin contrib/utils/rc-format-v3.4 |
176 |
+ fi |
177 |
+ |
178 |
+ fperms 0644 ${uexec}/VREF/MERGE-CHECK # It's meant as example only |
179 |
+} |
180 |
+ |
181 |
+pkg_postinst() { |
182 |
+ local old_ver |
183 |
+ for old_ver in ${REPLACING_VERSIONS}; do |
184 |
+ if ver_test ${old_ver} -lt "3" ; then |
185 |
+ ewarn |
186 |
+ elog "***NOTE*** This is a major upgrade and will likely break your existing gitolite-2.x setup!" |
187 |
+ elog "Please read http://gitolite.com/gitolite/migr/index.html first!" |
188 |
+ fi |
189 |
+ done |
190 |
+ |
191 |
+ # bug 352291 |
192 |
+ ewarn |
193 |
+ elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitolite)." |
194 |
+ elog "Especially if you're migrating from gitosis." |
195 |
+ ewarn |
196 |
+} |