diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-01-27 00:10:12 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-01-27 00:25:40 -0800 |
commit | 1b8e6f6772146d6cd66af46f3bd5453850b5e71b (patch) | |
tree | af32544a624434ec59aca9b92d5e66788838a477 /sys-apps/etckeeper/etckeeper-1.18.14.ebuild | |
parent | dev-ruby/rack: keyworded 2.1.1 for ppc, bug #706388 (diff) | |
download | gentoo-1b8e6f6772146d6cd66af46f3bd5453850b5e71b.tar.gz gentoo-1b8e6f6772146d6cd66af46f3bd5453850b5e71b.tar.bz2 gentoo-1b8e6f6772146d6cd66af46f3bd5453850b5e71b.zip |
sys-apps/etckeeper: bump to 1.18.14, removed bzr support
it's py2 only which is going away.
if bzr gets ported to py3 we can add it back here
Package-Manager: Portage-2.3.85, Repoman-2.3.20
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-apps/etckeeper/etckeeper-1.18.14.ebuild')
-rw-r--r-- | sys-apps/etckeeper/etckeeper-1.18.14.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/sys-apps/etckeeper/etckeeper-1.18.14.ebuild b/sys-apps/etckeeper/etckeeper-1.18.14.ebuild new file mode 100644 index 000000000000..7935c8c83a3a --- /dev/null +++ b/sys-apps/etckeeper/etckeeper-1.18.14.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 prefix systemd tmpfiles + +DESCRIPTION="A collection of tools to let /etc be stored in a repository" +HOMEPAGE="https://etckeeper.branchable.com/" +SRC_URI="https://git.joeyh.name/index.cgi/etckeeper.git/snapshot/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm ~ppc64 ~x86" +SLOT="0" +IUSE="cron test" + +BDEPEND="test? ( + dev-util/bats + dev-vcs/git +)" + +RDEPEND="app-portage/portage-utils + cron? ( virtual/cron ) + || ( + dev-vcs/git + dev-vcs/mercurial + dev-vcs/darcs + ) +" + +RESTRICT="!test? ( test )" + +PATCHES=( "${FILESDIR}"/${PN}-1.18.14-gentoo.patch ) + +src_prepare() { + default + hprefixify *.d/* etckeeper + sed -i \ + -e s'@zsh/vendor-completions@zsh/site-functions@' \ + -e s"@/lib/systemd/system@"$(systemd_get_systemunitdir)"@" \ + Makefile || die + rm -v init.d/60darcs-deleted-symlinks || die +} + +src_compile() { + : +} + +src_install(){ + emake DESTDIR="${ED}" install + + doenvd "$(prefixify_ro "${FILESDIR}"/99${PN})" + + newbashcomp bash_completion ${PN} + dodoc doc/README.mdwn + newdoc "${FILESDIR}"/bashrc-r1 bashrc.example + + rm -rv "${ED}/var/cache" || die + newtmpfiles "${FILESDIR}/${PN}".tmpfilesd "${PN}".conf + + if use cron ; then + exeinto /etc/cron.daily + newexe debian/cron.daily etckeeper + fi +} + +pkg_postinst(){ + tmpfiles_process "${PN}.conf" + + elog "${PN} supports git, mercurial and darcs" + elog "This ebuild just ensures at least one is installed!" + elog + elog "You may want to adjust your /etc/portage/bashrc" + elog "see the example file in /usr/share/doc/${PF}" + elog + elog "To initialise your etc-dir as a repository run:" + elog "${PN} init -d /etc" +} |