From: Mikle Kolyada Date: Sun, 28 Jan 2018 01:23:07 +0000 (+0300) Subject: dev-vcs/monotone: remove last rited package X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=48cb223907cae5bbe36d9cd35fb10865e15c414b;p=gentoo.git dev-vcs/monotone: remove last rited package Closes: https://bugs.gentoo.org/634316 Closes: https://bugs.gentoo.org/434242 Closes: https://bugs.gentoo.org/496724 Closes: https://bugs.gentoo.org/526280 Closes: https://bugs.gentoo.org/537572 --- diff --git a/dev-vcs/monotone/Manifest b/dev-vcs/monotone/Manifest deleted file mode 100644 index 38eb9d77a858..000000000000 --- a/dev-vcs/monotone/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST monotone-1.0-gentoo-patchset.tar.bz2 14029 BLAKE2B 2a75b0339f1b82836b34235ff66e90c8640d1a6eaf978c4882112e603e1123c82cb941efc06dd246c929c18018b1bcfa78f0cf0cf695aa9a293007eaf3abd7bf SHA512 70c5c885afca10ac3ab1c8ba855302333d2d137697f8f2c0cefdf0c57c466e0b03535ebd5cf936df273004646aeaa4bc55bd4b9f006285f8a825b8a665c77e60 -DIST monotone-1.0.tar.bz2 3588074 BLAKE2B 973789ba12a02f73932cd7fbc51a0570d43ea53f5b04d2ab361d445c2b1774e8603ce03b5751c06c312901484c398d82c02c34c0f127ff99e6400ace755a407b SHA512 85f5a015ee3f7a924e16b7f20974cadd18bd6aaf2815eca0da42689373fc654c661051ce6981ec473f9eac7f9796cfed3431f0cfe16d1cbe0b0b625302ef3e77 diff --git a/dev-vcs/monotone/files/hooks.lua b/dev-vcs/monotone/files/hooks.lua deleted file mode 100644 index bbdb0042a5f6..000000000000 --- a/dev-vcs/monotone/files/hooks.lua +++ /dev/null @@ -1,4 +0,0 @@ --- Add custom hooks after the following line. It includes the identification --- needed to start the server. - -include(get_confdir() .. "/passphrase.lua") diff --git a/dev-vcs/monotone/files/monotone-0.36.initd b/dev-vcs/monotone/files/monotone-0.36.initd deleted file mode 100644 index 286264c5f772..000000000000 --- a/dev-vcs/monotone/files/monotone-0.36.initd +++ /dev/null @@ -1,84 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2006-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later - -extra_commands="import" - -depend() { - need net -} - -# Substitute common default values -MTN_USER=${MTN_USER:-monotone} -MTN_GROUP=${MTN_GROUP:-monotone} -MTN_KEY=${MTN_KEY:-monotone@`hostname --fqdn`} -MTN_CONFDIR=${MTN_CONFDIR:-/etc/monotone} -MTN_COMMON="--norc --confdir=${MTN_CONFDIR} \ - --keydir=${MTN_KEYDIR:-/var/lib/monotone/keys} \ - --db=${MTN_DB:-/var/lib/monotone/default.mtn} \ - --rcfile=${MTN_CONFDIR}/hooks.lua --log=/var/log/monotone/monotone.log" - #--dump=$ERRORLOG -MTN_PIDFILE="/var/run/monotone/monotone.pid" -MTN_HOME=$(awk -F: -vuid=$MTN_USER -vuser=$MTN_USER '$3 == uid || $1 == user { print $6 }' < /etc/passwd) - -dbexists() { - # Create the database if it doesn't exist - if [ ! -e ${MTN_DB:-/var/lib/monotone/default.mtn} ]; then - ebegin "Creating monotone database" - start-stop-daemon --start \ - --user ${MTN_USER} --group ${MTN_GROUP} \ - --exec /usr/bin/mtn -- ${MTN_COMMON} db init - eend $? - fi - if [ ! -e ${MTN_KEYDIR:-/var/lib/monotone/keys}/${MTN_KEY} ]; then - ebegin "Creating monotone server keypair" - export MTN_PWD=${RANDOM} - yes "${MTN_PWD}" | \ - start-stop-daemon --start \ - --user ${MTN_USER} --group ${MTN_GROUP} \ - --exec /usr/bin/mtn -- ${MTN_COMMON} genkey ${MTN_KEY} - - eend $? - # Update the password lua hook - cat > ${MTN_CONFDIR}/passphrase.lua < - - - - A free distributed version control system. It provides a simple, -single-file transactional version store, with fully disconnected -operation and an efficient peer-to-peer synchronization -protocol. It understands history-sensitive merging, lightweight -branches, integrated code review and 3rd party testing. It uses -cryptographic version naming and client-side RSA certificates. It -has good internationalization support, has no external -dependencies, runs on linux, solaris, OSX, windows, and other -unixes, and is licensed under the GNU GPL. - - diff --git a/dev-vcs/monotone/monotone-1.0-r4.ebuild b/dev-vcs/monotone/monotone-1.0-r4.ebuild deleted file mode 100644 index 2b4a541b8a1a..000000000000 --- a/dev-vcs/monotone/monotone-1.0-r4.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# QA failiures reported in https://code.monotone.ca/p/monotone/issues/181/ -EAPI="4" -inherit bash-completion-r1 elisp-common eutils toolchain-funcs user - -DESCRIPTION="Monotone Distributed Version Control System" -HOMEPAGE="http://monotone.ca" -SRC_URI="http://monotone.ca/downloads/${PV}/${P}.tar.bz2 - https://dev.gentoo.org/~mgorny/dist/${P}-gentoo-patchset.tar.bz2" - -LICENSE="GPL-2" -SLOT="1" -KEYWORDS="amd64 ~ia64 x86" -IUSE="doc ipv6 nls test" - -RDEPEND="sys-libs/zlib - >=dev-libs/libpcre-7.6 - >=dev-libs/botan-1.8.0:0 - >=dev-db/sqlite-3.3.8 - >=dev-lang/lua-5.1 - net-dns/libidn" -DEPEND="${RDEPEND} - >=dev-libs/boost-1.33.1 - nls? ( >=sys-devel/gettext-0.11.5 ) - doc? ( sys-apps/texinfo ) - test? ( dev-tcltk/expect - app-shells/bash-completion )" - -pkg_setup() { - enewgroup monotone - enewuser monotone -1 -1 /var/lib/monotone monotone -} - -src_prepare() { - if [[ $(gcc-major-version) -lt "3" || - ( $(gcc-major-version) -eq "3" && $(gcc-minor-version) -le 3 ) ]]; then - die 'requires >=gcc-3.4' - fi - epatch "${WORKDIR}/${P}-gentoo-patchset/monotone-1.0-bash-completion-tests.patch" - epatch "${WORKDIR}/${P}-gentoo-patchset/monotone-1.0-botan-1.10-v2.patch" - epatch "${WORKDIR}/${P}-gentoo-patchset/monotone-1.0-glibc-2.14-file-handle.patch" - epatch "${WORKDIR}/${P}-gentoo-patchset/monotone-1.0-boost-1.53.patch" - epatch "${WORKDIR}/${P}-gentoo-patchset/monotone-1.0-pcre3.patch" - epatch "${WORKDIR}/${P}-gentoo-patchset/monotone-1.0-texinfo-5.1.patch" - epatch "${WORKDIR}/${P}-gentoo-patchset/monotone-1.0-gcc6.patch" -} - -src_configure() { - econf \ - $(use_enable nls) \ - $(use_enable ipv6) -} - -src_compile() { - emake - use doc && emake html -} - -src_test() { - # Disables netsync_bind_opt test - # https://code.monotone.ca/p/monotone/issues/179/ - export DISABLE_NETWORK_TESTS=true - if [[ ${UID} != 0 ]]; then - emake check - else - ewarn "Tests will fail if ran as root, skipping." - fi -} - -src_install() { - emake DESTDIR="${D}" install - - mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die - - rm "${ED}"/etc/bash_completion.d/monotone.bash_completion || die - newbashcomp extra/shell/monotone.bash_completion ${PN} - - if use doc; then - dohtml -r doc/html/* - dohtml -r doc/figures - fi - - dodoc AUTHORS NEWS README* UPGRADE - docinto contrib - docompress -x /usr/share/doc/${PF}/contrib - dodoc -r contrib - newconfd "${FILESDIR}"/monotone.confd monotone - newinitd "${FILESDIR}"/${PN}-0.36.initd monotone - - insinto /etc/monotone - newins "${FILESDIR}"/hooks.lua hooks.lua - newins "${FILESDIR}"/read-permissions read-permissions - newins "${FILESDIR}"/write-permissions write-permissions - - keepdir /var/lib/monotone/keys/ /var/{log,run}/monotone - fowners monotone:monotone /var/lib/monotone{,/keys} /var/{log,run}/monotone -} - -pkg_postinst() { - elog - elog "For details and instructions to upgrade from previous versions," - elog "please read /usr/share/doc/${PF}/UPGRADE.bz2" - elog - elog " 1. edit /etc/conf.d/monotone" - elog " 2. import the first keys to enable access with" - elog " env HOME=\${homedir} mtn pubkey me@example.net | /etc/init.d/monotone import" - elog " Thereafter, those with write permission can add other keys via" - elog " netsync with 'monotone push --key-to-push=IDENT' and then IDENT" - elog " can be used in the read-permission and write-permission files." - elog " 3. adjust permisions in /etc/monotone/read-permissions" - elog " and /etc/monotone/write-permissions" - elog " 4. start the daemon: /etc/init.d/monotone start" - elog " 5. make persistent: rc-update add monotone default" - elog -}