sys-apps/etckeeper: version bump to v1.18.8.
authorM. J. Everitt <m.j.everitt@iee.org>
Sat, 13 Oct 2018 00:39:28 +0000 (01:39 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Sat, 13 Oct 2018 22:01:46 +0000 (00:01 +0200)
Closes: https://bugs.gentoo.org/668482
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Signed-off-by: M. J. Everitt <m.j.everitt@iee.org>
Closes: https://github.com/gentoo/gentoo/pull/10132
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
sys-apps/etckeeper/Manifest
sys-apps/etckeeper/etckeeper-1.18.8.ebuild [new file with mode: 0644]

index 4643b0b07fa6b12e0bdc10f8672c9546db34b56a..7ecf553c6cca78e39cacc9219d06a2152f22c6a4 100644 (file)
@@ -1,2 +1,3 @@
 DIST etckeeper-1.18.6.tar.gz 73487 BLAKE2B 2ec0a0ff2d87879586328de638212cbbf3bc0c87d9b1869beb6509f6b445996411d0116ecb2c4d407b3329a7b1a555f00077d20630fbbd45b2d75527d9d4c6ca SHA512 a5a3a4677f31cf1d010ab40ed37ce602c71c2e8ebf2273bf8be6dc8209f603ae0fc6a2c0d5d60d9a9d9aa4f3e7b7c0037534890cbc67b38132e5f654abcda04c
 DIST etckeeper-1.18.7.tar.gz 77568 BLAKE2B 168b5b683c25a60c6626a678aed2f650106d4db554acbc239a2cd3c937f4b399ccca4f28fded30175c5787d8bd0907a25d62e6566e7902a2e914cd01513a8c2e SHA512 44b8f66b95663da1370943128bb5673e57bd7b9df7e727c93baea5dfc79852ebba9d0834827fed19722668849d3ed18b045db5cb42135e198576a2b839523d1a
+DIST etckeeper-1.18.8.tar.gz 84964 BLAKE2B 0429efb61e3d23a897413e472a66216051324381c670cc4842526539d9d173ed1918822d31a04e7e3fa2da7a5a6c805781227677316b8802a770ddb19f576b31 SHA512 35607622d7533d9acb28af2320a571b66ac5a5e2dd44703ec542e0a95622b11a7709134f26d6dba6741b99247c00481172c2601109dc501630f02c25530a516c
diff --git a/sys-apps/etckeeper/etckeeper-1.18.8.ebuild b/sys-apps/etckeeper/etckeeper-1.18.8.ebuild
new file mode 100644 (file)
index 0000000..2cd9ba3
--- /dev/null
@@ -0,0 +1,76 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit bash-completion-r1 prefix python-r1
+
+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="bazaar cron test"
+REQUIRED_USE="bazaar? ( ${PYTHON_REQUIRED_USE} )"
+
+VCS_DEPEND="dev-vcs/git
+       dev-vcs/mercurial
+       dev-vcs/darcs"
+DEPEND="bazaar? ( dev-vcs/bzr[${PYTHON_USEDEP}] )"
+RDEPEND="${DEPEND}
+       app-portage/portage-utils
+       cron? ( virtual/cron )
+       bazaar? ( ${PYTHON_DEPS} )
+       !bazaar? ( || ( ${VCS_DEPEND} ) )"
+DEPEND="${DEPEND}
+       test? ( dev-util/bats )"
+RESTRICT="!test? ( test )"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.18.6-gentoo.patch )
+
+src_prepare() {
+       default
+       hprefixify *.d/* etckeeper
+}
+
+src_compile() {
+       :
+}
+
+src_install(){
+       emake DESTDIR="${ED}" install
+
+       bzr_install() {
+               "${EPYTHON}" ./${PN}-bzr/__init__.py install --root="${ED}" ||
+                       die "bzr support installation failed!"
+       }
+       use bazaar && python_foreach_impl bzr_install
+
+       doenvd "$(prefixify_ro "${FILESDIR}"/99${PN})"
+
+       newbashcomp bash_completion ${PN}
+       dodoc doc/README.mdwn
+       newdoc "${FILESDIR}"/bashrc-r1 bashrc.example
+
+       if use cron ; then
+               exeinto /etc/cron.daily
+               newexe debian/cron.daily etckeeper
+       fi
+}
+
+pkg_postinst(){
+       elog "${PN} supports the following VCS: ${VCS_DEPEND}"
+       elog "  dev-vcs/bzr"
+       elog "This ebuild just ensures at least one is installed!"
+       elog "For dev-vcs/bzr you need to enable 'bazaar' useflag."
+       elog
+       elog "You may want to adjust your /etc/portage/bashrc"
+       elog "see the example file in /usr/share/doc/${PF}/examples"
+       elog
+       elog "To initialise your etc-dir as a repository run:"
+       elog "${PN} init -d /etc"
+}