summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-db/etcd
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-db/etcd')
-rw-r--r--dev-db/etcd/Manifest2
-rw-r--r--dev-db/etcd/etcd-0.4.6.ebuild49
-rw-r--r--dev-db/etcd/etcd-2.0.10-r1.ebuild58
-rw-r--r--dev-db/etcd/etcd-2.0.10.ebuild58
-rw-r--r--dev-db/etcd/files/etcd.conf39
-rw-r--r--dev-db/etcd/files/etcd.confd7
-rw-r--r--dev-db/etcd/files/etcd.initd54
-rw-r--r--dev-db/etcd/files/etcd.service11
-rw-r--r--dev-db/etcd/files/etcd.tmpfiles.d.conf2
-rw-r--r--dev-db/etcd/metadata.xml13
10 files changed, 293 insertions, 0 deletions
diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest
new file mode 100644
index 000000000000..72c81762dc89
--- /dev/null
+++ b/dev-db/etcd/Manifest
@@ -0,0 +1,2 @@
+DIST etcd-0.4.6.zip 3184823 SHA256 9134701506a6e9f569ef62d3bb4c43f594f30d66ce67060403998233dbfc0ed6 SHA512 5c25b99c826daa20493645e0e2bec38fd06c17029c3677f65f451fe132441d19e00eebd04c462936c22caeaf327b56cf47027ca8080508dc742a5e6a7d3f89c6 WHIRLPOOL 5ab7fb2d51ca1be4c2a54a37953a0154e06eb094d81ebb94f9260c0f786104d273e214f1ee20cd4a46018e6323d23fe697d54f2903c1acadac9ec2c34611abd6
+DIST etcd-2.0.10.tar.gz 450581 SHA256 6029113d9870e5c6f0d10adbd2b6670958a46575114a094b86b607771a0e5ff3 SHA512 825524ee4c435b8f369970cfe39158443b8e29f6fba5ab86ae8be2d91f6faa0674d15f311bc863092fb6c77b054b8f3b69e163610b546e3c5cf59a111b38a3ed WHIRLPOOL a2b4c160cbc9cde5ebf64fa2fe41f6bc6ac5dc851551778b681d658e511f0dbc7241a4c74a6b520d43fe8e9cee65fa28f94655d64caf6f3c99cbd4ba84a57b65
diff --git a/dev-db/etcd/etcd-0.4.6.ebuild b/dev-db/etcd/etcd-0.4.6.ebuild
new file mode 100644
index 000000000000..3d72d5e4415e
--- /dev/null
+++ b/dev-db/etcd/etcd-0.4.6.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit user systemd
+
+KEYWORDS="~amd64"
+DESCRIPTION="A highly-available key value store for shared configuration and service discovery"
+HOMEPAGE="https://github.com/coreos/etcd/"
+SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.zip -> ${P}.zip"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="doc"
+DEPEND=">=dev-lang/go-1.2"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+}
+
+src_prepare() {
+ sed -e "s:^\(go install\)\(.*\)$:\\1 -x -ldflags=\"-v -linkmode=external -extldflags '${LDFLAGS}'\" \\2:" \
+ -i build || die
+}
+
+src_compile() {
+ CGO_CFLAGS="${CFLAGS}" ./build || die
+}
+
+src_install() {
+ insinto /etc/${PN}
+ doins "${FILESDIR}/${PN}.conf"
+ dobin bin/${PN}
+ newbin bin/bench ${PN}-bench
+ dodoc CHANGELOG README.md
+ use doc && dodoc -r Documentation
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ dodir /var/lib/${PN}
+ fowners ${PN}:${PN} /var/lib/${PN}
+ fperms 755 /var/lib/${PN}
+ dodir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ fperms 755 /var/log/${PN}
+}
diff --git a/dev-db/etcd/etcd-2.0.10-r1.ebuild b/dev-db/etcd/etcd-2.0.10-r1.ebuild
new file mode 100644
index 000000000000..2b7d67d64aab
--- /dev/null
+++ b/dev-db/etcd/etcd-2.0.10-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit user systemd
+
+KEYWORDS="~amd64"
+DESCRIPTION="A highly-available key value store for shared configuration and service discovery"
+HOMEPAGE="https://github.com/coreos/etcd/"
+SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="doc"
+DEPEND=">=dev-lang/go-1.2:="
+RDEPEND="!dev-db/etcdctl"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+}
+
+src_prepare() {
+ sed -e "s|-ldflags '-s'|-x|" \
+ -i build || die
+}
+
+src_compile() {
+ ./build || die
+}
+
+src_install() {
+ insinto /etc/${PN}
+ doins "${FILESDIR}/${PN}.conf"
+ dobin bin/*
+ dodoc README.md
+ use doc && dodoc -r Documentation
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ dodir /var/lib/${PN}
+ fowners ${PN}:${PN} /var/lib/${PN}
+ fperms 755 /var/lib/${PN}
+ dodir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ fperms 755 /var/log/${PN}
+}
+
+src_test() {
+ local x
+ for x in bin/*; do
+ ebegin "running ${x##*/} --help"
+ ${x} --help >/dev/null || die "${x##*/} --help failed"
+ eend
+ done
+}
diff --git a/dev-db/etcd/etcd-2.0.10.ebuild b/dev-db/etcd/etcd-2.0.10.ebuild
new file mode 100644
index 000000000000..a805bdf41ac6
--- /dev/null
+++ b/dev-db/etcd/etcd-2.0.10.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit user systemd
+
+KEYWORDS="~amd64"
+DESCRIPTION="A highly-available key value store for shared configuration and service discovery"
+HOMEPAGE="https://github.com/coreos/etcd/"
+SRC_URI="https://github.com/coreos/etcd/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE="doc"
+DEPEND=">=dev-lang/go-1.2"
+RDEPEND="!dev-db/etcdctl"
+
+pkg_setup() {
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+}
+
+src_prepare() {
+ sed -e "s|-ldflags '-s'|-x|" \
+ -i build || die
+}
+
+src_compile() {
+ ./build || die
+}
+
+src_install() {
+ insinto /etc/${PN}
+ doins "${FILESDIR}/${PN}.conf"
+ dobin bin/*
+ dodoc README.md
+ use doc && dodoc -r Documentation
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ systemd_newtmpfilesd "${FILESDIR}/${PN}.tmpfiles.d.conf" ${PN}.conf
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+ dodir /var/lib/${PN}
+ fowners ${PN}:${PN} /var/lib/${PN}
+ fperms 755 /var/lib/${PN}
+ dodir /var/log/${PN}
+ fowners ${PN}:${PN} /var/log/${PN}
+ fperms 755 /var/log/${PN}
+}
+
+src_test() {
+ local x
+ for x in bin/*; do
+ ebegin "running ${x##*/} --help"
+ ${x} --help >/dev/null || die "${x##*/} --help failed"
+ eend
+ done
+}
diff --git a/dev-db/etcd/files/etcd.conf b/dev-db/etcd/files/etcd.conf
new file mode 100644
index 000000000000..3f34434e8e7c
--- /dev/null
+++ b/dev-db/etcd/files/etcd.conf
@@ -0,0 +1,39 @@
+# For an explanation of the options please see:
+# https://github.com/coreos/etcd/blob/master/Documentation/configuration.md#etcd-configuration
+#
+# The directory to store log and snapshot.
+# If you change this you have to make sure the directory exists at
+# the new path and has the correct permissions.
+# data_dir = "/var/lib/etcd"
+
+# name = "default-name"
+# addr = "127.0.0.1:4001"
+# bind_addr = "127.0.0.1:4001"
+# ca_file = ""
+# cert_file = ""
+# cors = []
+# cpu_profile_file = ""
+# discovery = "http://etcd.local:4001/v2/keys/_etcd/registry/examplecluster"
+# http_read_timeout = 10
+# http_write_timeout = 10
+# key_file = ""
+# peers = []
+# peers_file = ""
+# max_cluster_size = 9
+# max_result_buffer = 1024
+# max_retry_attempts = 3
+# snapshot = true
+# verbose = false
+# very_verbose = false
+
+[peer]
+addr = "127.0.0.1:7001"
+bind_addr = "127.0.0.1:7001"
+# ca_file = ""
+# cert_file = ""
+# key_file = ""
+
+#[cluster]
+# active_size = 9
+# remove_delay = 1800.0
+# sync_interval = 5.0
diff --git a/dev-db/etcd/files/etcd.confd b/dev-db/etcd/files/etcd.confd
new file mode 100644
index 000000000000..4592dac08d56
--- /dev/null
+++ b/dev-db/etcd/files/etcd.confd
@@ -0,0 +1,7 @@
+# Name of this node in the etcd cluster.
+ETCD_NAME=etcd
+
+# Path to the data directory.
+ETCD_DATA_DIR=/var/lib/etcd
+
+ETCD_OPTS=""
diff --git a/dev-db/etcd/files/etcd.initd b/dev-db/etcd/files/etcd.initd
new file mode 100644
index 000000000000..d8134438c856
--- /dev/null
+++ b/dev-db/etcd/files/etcd.initd
@@ -0,0 +1,54 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+SVCNAME=etcd
+PIDPATH=/var/run/${SVCNAME}
+PIDFILE=${PIDPATH}/${SVCNAME}.pid
+LOGPATH=/var/log/${SVCNAME}
+DATADIR=/var/lib/${SVCNAME}
+USER=$SVCNAME
+
+depend() {
+ need net
+ need localmount
+ after bootmisc
+}
+
+start() {
+ if [ ! -d "$PIDPATH" ] ; then
+ mkdir -p "$PIDPATH"
+ chown $USER:$USER "$PIDPATH"
+ fi
+ if [ ! -d "$LOGPATH" ] ; then
+ mkdir -p "$LOGPATH"
+ chown $USER:$USER "$LOGPATH"
+ fi
+ if [ ! -d "$ETCD_DATA_DIR" ] ; then
+ mkdir -p "$ETCD_DATA_DIR"
+ chown $USER:$USER "$ETCD_DATA_DIR"
+ fi
+
+ ebegin "Starting $SVCNAME"
+ start-stop-daemon --start \
+ --pidfile "$PIDFILE" \
+ --user $USER \
+ --chdir "$ETCD_DATA_DIR" \
+ -1 "$LOGPATH/$SVCNAME.log" \
+ -2 "$LOGPATH/$SVCNAME.err" \
+ --background \
+ --make-pidfile \
+ --exec /usr/bin/etcd -- \
+ -name=$ETCD_NAME \
+ -data-dir="$ETCD_DATA_DIR" \
+ $ETCD_OPTS
+ eend $? "Failed to start $SVCNAME"
+}
+
+stop() {
+ ebegin "Stopping $SVCNAME"
+ start-stop-daemon --stop --pidfile $PIDFILE
+ eend $? "Failed to stop $SVCNAME"
+ rm -f "$PIDFILE"
+}
diff --git a/dev-db/etcd/files/etcd.service b/dev-db/etcd/files/etcd.service
new file mode 100644
index 000000000000..8c4663d03234
--- /dev/null
+++ b/dev-db/etcd/files/etcd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=etcd
+
+[Service]
+User=etcd
+PermissionsStartOnly=true
+Environment=ETCD_DATA_DIR=/var/lib/etcd
+Environment=ETCD_NAME=%m
+ExecStart=/usr/bin/etcd
+Restart=always
+RestartSec=10s
diff --git a/dev-db/etcd/files/etcd.tmpfiles.d.conf b/dev-db/etcd/files/etcd.tmpfiles.d.conf
new file mode 100644
index 000000000000..721e9c9161a3
--- /dev/null
+++ b/dev-db/etcd/files/etcd.tmpfiles.d.conf
@@ -0,0 +1,2 @@
+d /var/lib/etcd 0755 etcd etcd - -
+d /var/run/etcd 0755 etcd etcd - -
diff --git a/dev-db/etcd/metadata.xml b/dev-db/etcd/metadata.xml
new file mode 100644
index 000000000000..82f2214aa78f
--- /dev/null
+++ b/dev-db/etcd/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <bugs-to>https://github.com/coreos/etcd/issues</bugs-to>
+ <changelog>https://raw.githubusercontent.com/coreos/etcd/master/CHANGELOG</changelog>
+ <doc>https://github.com/coreos/etcd/blob/master/README.md/</doc>
+ <remote-id type="github">coreos/etcd</remote-id>
+ </upstream>
+ <maintainer>
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>