summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-01-28 04:23:07 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-01-28 04:27:26 +0300
commit48cb223907cae5bbe36d9cd35fb10865e15c414b (patch)
treed6c3430f6a8ee76d213856585362eaa56b57b184 /dev-vcs
parentx11-misc/kronometer: 2.2.1 version bump (diff)
downloadgentoo-48cb223907cae5bbe36d9cd35fb10865e15c414b.tar.gz
gentoo-48cb223907cae5bbe36d9cd35fb10865e15c414b.tar.bz2
gentoo-48cb223907cae5bbe36d9cd35fb10865e15c414b.zip
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
Diffstat (limited to 'dev-vcs')
-rw-r--r--dev-vcs/monotone/Manifest2
-rw-r--r--dev-vcs/monotone/files/hooks.lua4
-rw-r--r--dev-vcs/monotone/files/monotone-0.36.initd84
-rw-r--r--dev-vcs/monotone/files/monotone.confd25
-rw-r--r--dev-vcs/monotone/files/read-permissions7
-rw-r--r--dev-vcs/monotone/files/write-permissions2
-rw-r--r--dev-vcs/monotone/metadata.xml15
-rw-r--r--dev-vcs/monotone/monotone-1.0-r4.ebuild117
8 files changed, 0 insertions, 256 deletions
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 <<EOF
--- This file is automaticaly generated by the init scripts.
--- If you want to add custom hooks, edit ${MTN_CONFDIR}/hooks.lua
--- If you want to change the settings, please edit /etc/conf.d/monotone
-
-function get_passphrase(identity)
- if (identity == "${MTN_KEY}") then
- return "${MTN_PWD}"
- end
- return false
-end
-EOF
- fi
-}
-
-start() {
- cd ${MTN_HOME}
- dbexists
-
- ebegin "Starting monotone server"
- start-stop-daemon --start --background \
- --user ${MTN_USER} --group ${MTN_GROUP} \
- --exec /usr/bin/mtn -- ${MTN_COMMON} --pid-file=${MTN_PIDFILE} \
- --key=${MTN_KEY} --bind=${MTN_ADDRESS:-0.0.0.0} serve
- eend $?
-}
-
-stop() {
- ebegin "Stopping monotone server"
- start-stop-daemon --stop --quiet --pidfile ${MTN_PIDFILE}
- eend $?
-}
-
-import() {
- cd ${MTN_HOME}
- dbexists
-
- # Read packets into the database
- einfo "Importing packets to monotone database"
- cat | /usr/bin/mtn ${MTN_COMMON} read
- eend $?
-}
diff --git a/dev-vcs/monotone/files/monotone.confd b/dev-vcs/monotone/files/monotone.confd
deleted file mode 100644
index 717725431717..000000000000
--- a/dev-vcs/monotone/files/monotone.confd
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-# The commented variables in this file are the defaults that are used
-
-# in the init-script. You don't need to uncomment them except to
-# customize them to different values.
-
-# Location of the served database
-#MTN_DB="/var/lib/monotone/default.mtn"
-
-# Server identification
-#MTN_KEY="monotone@`hostname --fqdn`"
-#MTN_PWD=""
-
-# User and group as which to run monotone
-#MTN_USER="monotone"
-#MTN_GROUP="monotone"
-
-# The address and or port (ADDRESS[:PORT]) monotone should listen on
-#MTN_ADDRESS=0.0.0.0
-
-# Advanced options
-#MTN_CONFDIR=/etc/monotone
-#MTN_KEYDIR=/var/lib/monotone/keys
diff --git a/dev-vcs/monotone/files/read-permissions b/dev-vcs/monotone/files/read-permissions
deleted file mode 100644
index d08200aa0059..000000000000
--- a/dev-vcs/monotone/files/read-permissions
+++ /dev/null
@@ -1,7 +0,0 @@
-pattern "net.example.project.{private,security}*"
-allow "joe@example.net"
-allow "jim@example.net"
-
-comment "everyone can read these branches"
-pattern "net.example.{public,project}*"
-allow "*"
diff --git a/dev-vcs/monotone/files/write-permissions b/dev-vcs/monotone/files/write-permissions
deleted file mode 100644
index 1b138c7fc6c0..000000000000
--- a/dev-vcs/monotone/files/write-permissions
+++ /dev/null
@@ -1,2 +0,0 @@
-joe@example.net
-jim@example.net
diff --git a/dev-vcs/monotone/metadata.xml b/dev-vcs/monotone/metadata.xml
deleted file mode 100644
index fd524bde49c9..000000000000
--- a/dev-vcs/monotone/metadata.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<!-- maintainer-needed -->
- <longdescription>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.
- </longdescription>
-</pkgmetadata>
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
-}