diff options
author | Zac Medico <zmedico@gentoo.org> | 2014-10-15 11:36:56 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2014-10-15 11:36:56 +0000 |
commit | 1d6218be97d360f590369e1b47f2f200ed88e807 (patch) | |
tree | fb856c8e767ce382c48e54f62ce33f9e342c0382 /dev-db/etcd | |
parent | bump (diff) | |
download | historical-1d6218be97d360f590369e1b47f2f200ed88e807.tar.gz historical-1d6218be97d360f590369e1b47f2f200ed88e807.tar.bz2 historical-1d6218be97d360f590369e1b47f2f200ed88e807.zip |
Add dev-db/etcd.
Package-Manager: portage-2.2.14_rc1/cvs/Linux x86_64
Manifest-Sign-Key: 0xAE5719A3
Diffstat (limited to 'dev-db/etcd')
-rw-r--r-- | dev-db/etcd/ChangeLog | 10 | ||||
-rw-r--r-- | dev-db/etcd/Manifest | 18 | ||||
-rw-r--r-- | dev-db/etcd/etcd-0.4.6.ebuild | 46 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.conf | 2 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.confd | 7 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.initd | 54 | ||||
-rw-r--r-- | dev-db/etcd/files/etcd.service | 11 | ||||
-rw-r--r-- | dev-db/etcd/metadata.xml | 12 |
8 files changed, 160 insertions, 0 deletions
diff --git a/dev-db/etcd/ChangeLog b/dev-db/etcd/ChangeLog new file mode 100644 index 000000000000..1cce7ad7eb9d --- /dev/null +++ b/dev-db/etcd/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-db/etcd +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/etcd/ChangeLog,v 1.1 2014/10/15 11:36:53 zmedico Exp $ + +*etcd-0.4.6 (15 Oct 2014) + + 15 Oct 2014; Zac Medico <zmedico@gentoo.org> +etcd-0.4.6.ebuild, + +files/etcd.conf, +files/etcd.confd, +files/etcd.initd, +files/etcd.service, + +metadata.xml: + Add dev-db/etcd. diff --git a/dev-db/etcd/Manifest b/dev-db/etcd/Manifest new file mode 100644 index 000000000000..42e5dcd722d4 --- /dev/null +++ b/dev-db/etcd/Manifest @@ -0,0 +1,18 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX etcd.conf 76 SHA256 3594bdadb402b300d560fc23db53354c0ad73a78e38ba365fa2e62726b333ac1 SHA512 7324b74dcfe050dd7fbc318ca3ce9b5d58bce8fa2ce2d2d771664ef981c834375f7cbfebcb630cd61dab2a3f6bf6c3733ad04f752beadf7bb6fedcc80ff682ce WHIRLPOOL d260b0c66bda20a61ff9703e4527c43d08ad8c4a2d8f83610d38c656cd82fe3a67e674e1082c617de0867b2377b65aa0f4ddc54d900821c42076771302652ee3 +AUX etcd.confd 129 SHA256 11cf9557524f54fb167b117d2691f1dfeb4c2480b2d0c4d46fadf31e4e78df20 SHA512 a08b1c1701370dc23ebd86db915d1e65747dc4ca57ce44d8cba6cf8434d5711786ac96725eed3285f4ba7cdde25ea25a51539d6cd74fc2f4b713f48cda15c4c3 WHIRLPOOL bd537ca7af350d495b7a3583cdc77676f1eefec270d90e4c667a41bab6147954d79c43b85214efcbf74690e477405e33dd1ba47637f1888e56155b0e8b7293ce +AUX etcd.initd 1224 SHA256 68af142251dc0f765fabd6c0b767af5ea1a063d458a7d9067756a1e816c61546 SHA512 0b09a12fb329f14c52439313a63e9ad13d7af0708fa2471137de1c0a063df452588e5fabdf9aa8cad3ec3faf7c0c3a3533cf7ffac9f3d8de189b6e02731abd10 WHIRLPOOL 44b9758ce5d15a952beb4846b77a83bad7b74b005932bf301be09e48841f5500dd510a4c7c59b40d9408a2da8427ed8b7fa460f7ff6dddaa37fa7fbf59e043b0 +AUX etcd.service 190 SHA256 43c70cfc992b8a6e0f8ed9a732ef4434e0f2c664dd2a15e8d54da960184affd1 SHA512 ccc232a10edd474076c9a2a6fb780b241d8a53925ad575c9b5eaa47fe8dc43761e6dfa3f0ba6cd712a1de714ecd55fd030e6b776d27e5326020ba5af55d2f75d WHIRLPOOL c5ab323943583f0af673a88dabeba9b7c22562ac521f1aec8e27595bce111993a2ec7159b0bf18a9fad29d1dda361ba901c50d769579f2a4b901962dfe2addca +DIST etcd-0.4.6.zip 3184823 SHA256 9134701506a6e9f569ef62d3bb4c43f594f30d66ce67060403998233dbfc0ed6 SHA512 5c25b99c826daa20493645e0e2bec38fd06c17029c3677f65f451fe132441d19e00eebd04c462936c22caeaf327b56cf47027ca8080508dc742a5e6a7d3f89c6 WHIRLPOOL 5ab7fb2d51ca1be4c2a54a37953a0154e06eb094d81ebb94f9260c0f786104d273e214f1ee20cd4a46018e6323d23fe697d54f2903c1acadac9ec2c34611abd6 +EBUILD etcd-0.4.6.ebuild 1272 SHA256 df3d0073d7d93cbe0be0ac5ae97ac1b5742d229e5d1746998a0b8f5b1b18799b SHA512 653bc2c52d4358d299c953de8efe08c494948bee840e33a3b21ff96d82ac0392a31a1b567ed0a669659d14a639a960b2ed37b9bb178e3a15405d2b56ec61aff6 WHIRLPOOL 8742b4ad896e7c969143d48cc68f971d2977878e8341c84e799d365a442198ee3feb4810a6ade60351dd225319f1cdcf843842df1021d0bd15ff498f1de691c3 +MISC ChangeLog 405 SHA256 e3c6c433ae20eca6a44bdae7db351c9018b1f2a4e73884eaf94e1fb5c72a19c1 SHA512 3c264cd870d05af6856916a0beaeaa7291280ce16f449471698603c20789f7d18a251b81679fd6cdf31148ee63d65d450f99990dbda57e66f4c627c60684506a WHIRLPOOL 671d74395a38478c94aed5b477e25eeb8cc23a8426cee6b8890c29bdf83f942460e9e8733659b1497a2a5ec28ec34c6749d3d7a567dec184dc23a5e249e68556 +MISC metadata.xml 455 SHA256 4f3ade63d988efeac4abbe16adefe60a476d20820ccdb0e29735ee1fdab08e27 SHA512 2f5f46b44cd96b4f4e1d5f903f8ec94d6535a375885ccb7d6b014f8b811f24589d37f013640951ab428b94e537ed0a78655896eca56f1e280ad04286c7b8c185 WHIRLPOOL 2db6cbe129f7c1ad23302c228ab630d6a72204988340cd0508f023f63d5231e249f590e18c9f92748f0bd1af7e6e4ff09f5cc69835257c6a640f60cafc9a8daf +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iEYEAREIAAYFAlQ+XFQACgkQ/ejvha5XGaN6cACeKTDY7htTYLfIfB5x3e2xss6A +JgYAoLpYAq5/tZN8OnbAb3XlrjR9BOYx +=on9i +-----END PGP SIGNATURE----- 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..ad1e034e5be5 --- /dev/null +++ b/dev-db/etcd/etcd-0.4.6.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/etcd/etcd-0.4.6.ebuild,v 1.1 2014/10/15 11:36:53 zmedico Exp $ + +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="" +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() { + dobin bin/${PN} + newbin bin/bench ${PN}-bench + dodoc -r CHANGELOG Documentation README.md + systemd_dounit "${FILESDIR}/${PN}.service" + systemd_dotmpfilesd "${FILESDIR}/${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/files/etcd.conf b/dev-db/etcd/files/etcd.conf new file mode 100644 index 000000000000..721e9c9161a3 --- /dev/null +++ b/dev-db/etcd/files/etcd.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/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..c8729e1e0b5d --- /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 +# $Header: /var/cvsroot/gentoo-x86/dev-db/etcd/files/etcd.initd,v 1.1 2014/10/15 11:36:53 zmedico Exp $ + +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/metadata.xml b/dev-db/etcd/metadata.xml new file mode 100644 index 000000000000..de8de2cf70aa --- /dev/null +++ b/dev-db/etcd/metadata.xml @@ -0,0 +1,12 @@ +<?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> + </upstream> + <maintainer> + <email>zmedico@gentoo.org</email> + </maintainer> +</pkgmetadata> |