summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/fleet')
-rw-r--r--app-admin/fleet/ChangeLog10
-rw-r--r--app-admin/fleet/files/fleet.service9
-rw-r--r--app-admin/fleet/files/fleet.socket2
-rw-r--r--app-admin/fleet/fleet-0.10.0-r1.ebuild54
4 files changed, 72 insertions, 3 deletions
diff --git a/app-admin/fleet/ChangeLog b/app-admin/fleet/ChangeLog
index 620ed3cf2c3a..c9f2c661c787 100644
--- a/app-admin/fleet/ChangeLog
+++ b/app-admin/fleet/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-admin/fleet
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/fleet/ChangeLog,v 1.13 2015/04/17 23:31:39 alunduil Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/fleet/ChangeLog,v 1.14 2015/04/25 21:51:42 alunduil Exp $
+
+*fleet-0.10.0-r1 (25 Apr 2015)
+
+ 25 Apr 2015; Alex Brandt <alunduil@gentoo.org> +files/fleet.socket,
+ +fleet-0.10.0-r1.ebuild, files/fleet.service:
+ add version 0.10.0-r1 provided by Stefan Junker <code@stefanjunker.de> *
+ renamed: fleetd.service -> fleet.service * added fleet.socket * added elog
+ message elaborating
17 Apr 2015; Alex Brandt <alunduil@gentoo.org> -fleet-0.9.0.ebuild:
remove version 0.9.0
diff --git a/app-admin/fleet/files/fleet.service b/app-admin/fleet/files/fleet.service
index 82d2bcc9790c..1f44fe9df62c 100644
--- a/app-admin/fleet/files/fleet.service
+++ b/app-admin/fleet/files/fleet.service
@@ -1,9 +1,14 @@
[Unit]
-Description=fleet
+Description=fleet daemon
Wants=etcd.service
+Wants=fleet.socket
+After=fleet.socket
+
[Service]
-ExecStart=/usr/bin/fleet
+ExecStart=/usr/bin/fleetd
+Restart=always
+RestartSec=10s
[Install]
WantedBy=multi-user.target
diff --git a/app-admin/fleet/files/fleet.socket b/app-admin/fleet/files/fleet.socket
new file mode 100644
index 000000000000..4fc446e8fe37
--- /dev/null
+++ b/app-admin/fleet/files/fleet.socket
@@ -0,0 +1,2 @@
+[Socket]
+ListenStream=/var/run/fleet.sock
diff --git a/app-admin/fleet/fleet-0.10.0-r1.ebuild b/app-admin/fleet/fleet-0.10.0-r1.ebuild
new file mode 100644
index 000000000000..d70804752f63
--- /dev/null
+++ b/app-admin/fleet/fleet-0.10.0-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/fleet/fleet-0.10.0-r1.ebuild,v 1.1 2015/04/25 21:51:42 alunduil Exp $
+
+EAPI=5
+
+inherit systemd vcs-snapshot
+
+DESCRIPTION="A Distributed init System"
+HOMEPAGE="https://github.com/coreos/fleet"
+SRC_URI="https://github.com/coreos/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc examples"
+
+DEPEND=">=dev-lang/go-1.3"
+RDEPEND=""
+
+src_compile() {
+ ./build || die 'Build failed'
+}
+
+RESTRICT="test" # Tests fail due to Gentoo bug #500452
+src_test() {
+ ./test || die 'Tests failed'
+}
+
+src_install() {
+ dobin "${S}"/bin/fleetd
+ dobin "${S}"/bin/fleetctl
+
+ systemd_dounit "${FILESDIR}"/fleet.service
+ systemd_dounit "${FILESDIR}"/fleet.socket
+
+ dodoc README.md
+ use doc && dodoc -r Documentation
+ use examples && dodoc -r examples
+
+ keepdir /etc/${PN}
+ insinto /etc/${PN}
+ newins "${PN}".conf.sample "${PN}".conf
+}
+
+pkg_postinst() {
+ ewarn "Please read this if you are upgrading from a version <0.10.0-r1."
+ ewarn ""
+ ewarn "Starting with fleet 0.10 the fleetctl utility has"
+ ewarn "'--endpoint=unix:///var/run/fleet.sock' as default argument, which is"
+ ewarn "why we have introduced the fleet.socket unit and renamed the service"
+ ewarn "from fleetd.service to fleet.service. If you run fleet on system"
+ ewarn "startup, please re-enable it via 'systemctl enable fleet'."
+}