mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-vcs/gitolite: Drop old versions
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
@@ -1,4 +1 @@
|
||||
DIST gitolite-2.3.1.tar.gz 255807 BLAKE2B b51a664d6e786702cad999fa8df6d86f80eb9cc908ed092b55272c59a4bd52145302e638612f1788d68b2445b8c665f025b24c47d50992dd3f6ef2fd6eb63ee7 SHA512 a658104b54ff6668022a6010b961fbe13b8e7a66242d547e0e4cf685574d8a1fd60065112095b0d73b826f6346973cb3a5db307d84fd5aceba852f2ddd0c86ee
|
||||
DIST gitolite-3.6.11.tar.gz 198340 BLAKE2B 9daf1e2cb2ebdca652d87aaa67b433174d35ece2ad859de6c6d6295f453b6fa86d15240e964fdc58fc4ee5b1018b935b7032e6bacef9743487189857782220cd SHA512 7c11b3dfde9ecf9ef66185aab175d78302c42cc24f13e3e855fa27ffaee65b5887bdd7f96b00b6eed944b91af2b86993b284d1a09fe5a5a3cce82acd33631212
|
||||
DIST gitolite-3.6.12.tar.gz 203704 BLAKE2B b70bd8108f6c9d0e6d8776ab4338c523b0f27db305974fa40a0e074908302f8a8803fcf2f88a4c3e9972311b400142d7e3f9569d7ebd86f7343e2b70e3701d6e SHA512 f6a7f4daf8a6f73db823a95cd677c1c436e04a05460a239b5844468cf0f3e6f8da1b1cd86d98c84bb8e80e5ca446c9afd0ca221cce622398c0d0a3ce18062c22
|
||||
DIST gitolite-3.6.13.tar.gz 204615 BLAKE2B f4a6f5ea106695371b75837fc8ff39a62f0464247781abcaa79bc779cd72a2c2483c2436cbd9cb1091689e51b09a3a9ee17bcce5bdab02b6cb641b1c8bab7066 SHA512 95c232dd117b8849b205946b6427422abadbfb0d59fdb72f1de75813cbe3fbf63cbc0f5f5f2de4e761797c0cf5423c94805a55af87b7ff78a2d9ea9f2406dfcb
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Highly flexible server for git directory version tracker"
|
||||
HOMEPAGE="https://github.com/sitaramc/gitolite"
|
||||
SRC_URI="https://milki.github.com/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="contrib vim-syntax"
|
||||
|
||||
DEPEND="
|
||||
dev-lang/perl
|
||||
>=dev-vcs/git-1.6.6
|
||||
virtual/perl-File-Path
|
||||
virtual/perl-File-Temp
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
acct-group/git
|
||||
acct-user/git[gitolite]
|
||||
!dev-vcs/gitolite-gentoo
|
||||
vim-syntax? ( app-vim/gitolite-syntax )"
|
||||
|
||||
src_prepare() {
|
||||
rm Makefile doc/COPYING || die
|
||||
rm -rf contrib/{gitweb,vim} || die
|
||||
|
||||
echo "${PF}" > conf/VERSION
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local gl_bin="${D}/usr/bin"
|
||||
gl_bin=${gl_bin/\/\//\/}
|
||||
|
||||
dodir /usr/share/gitolite/{conf,hooks} /usr/bin
|
||||
|
||||
# install using upstream method
|
||||
export PATH="${gl_bin}:${PATH}"
|
||||
./src/gl-system-install ${gl_bin} \
|
||||
"${D}"/usr/share/gitolite/conf "${D}"/usr/share/gitolite/hooks || die
|
||||
sed -e "s:${D}::g" "${D}/usr/bin/gl-setup" \
|
||||
-i "${D}/usr/share/gitolite/conf/example.gitolite.rc" || die
|
||||
|
||||
rm "${D}"/usr/bin/*.pm
|
||||
insinto "${VENDOR_LIB}"
|
||||
doins src/*.pm
|
||||
|
||||
dodoc README.mkd doc/*
|
||||
|
||||
use contrib && dodoc -r contrib
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# bug 352291
|
||||
ewarn
|
||||
elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitolite)."
|
||||
elog "Especially if you're migrating from gitosis."
|
||||
ewarn
|
||||
}
|
||||
@@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
[[ ${PV} == *9999 ]] && SCM="git-2"
|
||||
EGIT_REPO_URI="https://github.com/sitaramc/${PN}.git"
|
||||
EGIT_MASTER=master
|
||||
|
||||
inherit perl-module ${SCM}
|
||||
|
||||
DESCRIPTION="Highly flexible server for git directory version tracker"
|
||||
HOMEPAGE="https://github.com/sitaramc/gitolite"
|
||||
if [[ ${PV} != *9999 ]]; then
|
||||
SRC_URI="https://github.com/sitaramc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 arm x86"
|
||||
else
|
||||
SRC_URI=""
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="selinux tools"
|
||||
|
||||
DEPEND="
|
||||
dev-lang/perl
|
||||
>=dev-vcs/git-1.6.6
|
||||
virtual/perl-File-Path
|
||||
virtual/perl-File-Temp
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
acct-group/git
|
||||
acct-user/git[gitolite]
|
||||
!app-vim/gitolite-syntax
|
||||
!dev-vcs/gitolite-gentoo
|
||||
selinux? ( sec-policy/selinux-gitosis )
|
||||
dev-perl/JSON
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
echo ${PF} > src/VERSION || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local uexec=/usr/libexec/${PN}
|
||||
|
||||
rm -rf src/lib/Gitolite/Test{,.pm}
|
||||
insinto $VENDOR_LIB
|
||||
doins -r src/lib/Gitolite
|
||||
|
||||
dodoc README.markdown CHANGELOG
|
||||
# These are meant by upstream as examples, you are strongly recommended to
|
||||
# customize them for your needs.
|
||||
dodoc contrib/utils/ipa_groups.pl contrib/utils/ldap_groups.sh
|
||||
|
||||
insinto /usr/share/vim/vimfiles
|
||||
doins -r contrib/vim/*
|
||||
|
||||
insopts -m0755
|
||||
insinto $uexec
|
||||
doins -r src/{commands,syntactic-sugar,triggers,VREF}/
|
||||
doins -r contrib/{commands,triggers,hooks}
|
||||
|
||||
insopts -m0644
|
||||
doins src/VERSION
|
||||
|
||||
exeinto $uexec
|
||||
doexe src/gitolite{,-shell}
|
||||
|
||||
dodir /usr/bin
|
||||
for bin in gitolite{,-shell}; do
|
||||
dosym ../libexec/${PN}/${bin} /usr/bin/${bin}
|
||||
done
|
||||
|
||||
if use tools; then
|
||||
dobin check-g2-compat convert-gitosis-conf
|
||||
dobin contrib/utils/rc-format-v3.4
|
||||
fi
|
||||
|
||||
fperms 0644 ${uexec}/VREF/MERGE-CHECK # It's meant as example only
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local old_ver
|
||||
for old_ver in ${REPLACING_VERSIONS}; do
|
||||
if ver_test ${old_ver} -lt "3" ; then
|
||||
ewarn
|
||||
elog "***NOTE*** This is a major upgrade and will likely break your existing gitolite-2.x setup!"
|
||||
elog "Please read http://gitolite.com/gitolite/migr/index.html first!"
|
||||
fi
|
||||
done
|
||||
|
||||
# bug 352291
|
||||
ewarn
|
||||
elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitolite)."
|
||||
elog "Especially if you're migrating from gitosis."
|
||||
ewarn
|
||||
}
|
||||
@@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit perl-module
|
||||
|
||||
DESCRIPTION="Highly flexible server for git directory version tracker"
|
||||
HOMEPAGE="https://github.com/sitaramc/gitolite"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/sitaramc/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/sitaramc/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 arm x86"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="selinux tools"
|
||||
|
||||
DEPEND="
|
||||
dev-lang/perl
|
||||
>=dev-vcs/git-1.6.6
|
||||
virtual/perl-File-Path
|
||||
virtual/perl-File-Temp
|
||||
"
|
||||
RDEPEND="
|
||||
${DEPEND}
|
||||
acct-group/git
|
||||
acct-user/git[gitolite]
|
||||
!app-vim/gitolite-syntax
|
||||
!dev-vcs/gitolite-gentoo
|
||||
selinux? ( sec-policy/selinux-gitosis )
|
||||
dev-perl/JSON
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
echo ${PF} > src/VERSION || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local uexec=/usr/libexec/${PN}
|
||||
|
||||
rm -rf src/lib/Gitolite/Test{,.pm}
|
||||
insinto $VENDOR_LIB
|
||||
doins -r src/lib/Gitolite
|
||||
|
||||
dodoc README.markdown CHANGELOG
|
||||
# These are meant by upstream as examples, you are strongly recommended to
|
||||
# customize them for your needs.
|
||||
dodoc contrib/utils/ipa_groups.pl contrib/utils/ldap_groups.sh
|
||||
|
||||
insinto /usr/share/vim/vimfiles
|
||||
doins -r contrib/vim/*
|
||||
|
||||
insopts -m0755
|
||||
insinto $uexec
|
||||
doins -r src/{commands,syntactic-sugar,triggers,VREF}/
|
||||
doins -r contrib/{commands,triggers,hooks}
|
||||
|
||||
insopts -m0644
|
||||
doins src/VERSION
|
||||
|
||||
exeinto $uexec
|
||||
doexe src/gitolite{,-shell}
|
||||
|
||||
dodir /usr/bin
|
||||
for bin in gitolite{,-shell}; do
|
||||
dosym ../libexec/${PN}/${bin} /usr/bin/${bin}
|
||||
done
|
||||
|
||||
if use tools; then
|
||||
dobin check-g2-compat convert-gitosis-conf
|
||||
dobin contrib/utils/rc-format-v3.4
|
||||
fi
|
||||
|
||||
fperms 0644 ${uexec}/VREF/MERGE-CHECK # It's meant as example only
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local old_ver
|
||||
for old_ver in ${REPLACING_VERSIONS}; do
|
||||
if ver_test ${old_ver} -lt "3" ; then
|
||||
ewarn
|
||||
elog "***NOTE*** This is a major upgrade and will likely break your existing gitolite-2.x setup!"
|
||||
elog "Please read http://gitolite.com/gitolite/migr/index.html first!"
|
||||
fi
|
||||
done
|
||||
|
||||
# bug 352291
|
||||
ewarn
|
||||
elog "Please make sure that your 'git' user has the correct homedir (/var/lib/gitolite)."
|
||||
elog "Especially if you're migrating from gitosis."
|
||||
ewarn
|
||||
}
|
||||
@@ -11,7 +11,6 @@
|
||||
rewind a given branch.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="contrib">Install user-contributed files</flag>
|
||||
<flag name="tools">Install tools to e.g. convert a Gitosis config to
|
||||
gitolite or one to check if your setup is gitolite >= 3.x compatible</flag>
|
||||
</use>
|
||||
|
||||
Reference in New Issue
Block a user