summaryrefslogtreecommitdiff
path: root/app-admin/bcfg2
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-admin/bcfg2
reinit the tree, so we can have metadata
Diffstat (limited to 'app-admin/bcfg2')
-rw-r--r--app-admin/bcfg2/Manifest6
-rw-r--r--app-admin/bcfg2/bcfg2-1.2.4-r1.ebuild66
-rw-r--r--app-admin/bcfg2/files/bcfg2-server-1.2.0.rc23
-rw-r--r--app-admin/bcfg2/metadata.xml13
4 files changed, 108 insertions, 0 deletions
diff --git a/app-admin/bcfg2/Manifest b/app-admin/bcfg2/Manifest
new file mode 100644
index 000000000000..a02fa58802c5
--- /dev/null
+++ b/app-admin/bcfg2/Manifest
@@ -0,0 +1,6 @@
+AUX bcfg2-server-1.2.0.rc 481 SHA256 a6c3cb71fd4d94cf77a691205c31c870b9d583eb54ee589bdae3c36f15d28a3d SHA512 06a0134018d2475ce116b9dbcceeedba00dc4392d7dbb3ef7bfb42294806476613ab596e08656cfbd30661cc700a9f4fa122d330c4ed48006c572658298fd65c WHIRLPOOL 52991d0fd9fcee28f0c2714343de64555f1430297ea59267527c3218c3955285fab7ea5e4b98d383ec8c768c43d70df5b246b68c4d8ad3fd1a5e707d5abbe4cf
+DIST bcfg2-1.2.4.tar.gz 1959767 SHA256 c874139508c7a1c31c224548ae53dc40fe54e091cc0c036cc9d9c382263d4d16 SHA512 15f9079dd18485088464da5ea63e53435e2a2141970e6c0400797424bd3c612928349438ed0f6bb2874eb4599768e210e3fef970ed09f8fb2c2d673b986221d9 WHIRLPOOL 4b87826149ef86e9e5f955c2f0b79351c6fd46b9a3c18f773e25e35d60424605bfc47125c9ed3ac3b5174017595d9a173a20b9b0fe9aa69da51e0bde1836da65
+EBUILD bcfg2-1.2.4-r1.ebuild 1603 SHA256 c807e486a9b493cfffa88c506ee173cfa05ca74b080ac560e4f391e8b1048fac SHA512 e2626067f2c0d515d0c89bdcb51735b667e94781807e242e6e52d8404b09c5a01dd518274f47b2dae8daaeb2ed374ef32a3997181aef98745e80f706c8dcf5ad WHIRLPOOL 5c7059e6fd35d326ad1f14e44101d959d13b701d923327f9581cea1a0546fbf5b15cafea38a2c50ffac715f16cd53f24584dfd0104a58e86cf6e642f4ceb9cde
+MISC ChangeLog 3633 SHA256 0963b0226ca46835846420d135625109a8d90018aae0473d5c85aa93ca52f931 SHA512 3de417b276d590a66a9ff3aedc580c5e6bb85cb0144b5d7eab9053490da090dafaba9e30949e4673d3352509de9dc9d894564682c47a5392ff90807ec7dd832d WHIRLPOOL f211a8800f6d0be86a4e517cace5663f4c2ca04e67e8b829a88dacae1da0c8708552f44bfcc2702175a1057aae65c95488bf180eab70da0119e219ca434ba186
+MISC ChangeLog-2015 5297 SHA256 ae7430ed03e2c3a05d63c41ca5fa4df563cfc5110accabc7e6282720e3b30583 SHA512 247bf8b798a1a2685294cb465b088af393dc03201e965a3f62791274d5c707bf6865a1d1b9a3c23ca808d548a9a1d238c3ed4dadd442b6318875698ec6aad7bd WHIRLPOOL 34d55c51a8ab0c3e9be49882d9e1a8b95da2a0e6e65c0fc518868e62837ccc0e3c6596dfcaa0113f55984dc45514ed7e91ed79fa3d0eeda7f3cf7ea89dae3241
+MISC metadata.xml 465 SHA256 f5c2d212f2ba0ca212750749329bd2b57a626f5a4f2960986c73bbae9b504acf SHA512 97d6a0be1c4b11585e0acbd0b9f150890d761ebbcf6ad4609c929ba1179a08682d84c366b4f5f48b18a577ae730cbfc204f1d39a2d1f6cef2dd1b2ea6e24b7eb WHIRLPOOL 6ef3bdea077a29abe62cd27c6b4b618845f7885e93f1bde55068407061a1abafd0c27f6d278ffa0afe94edbdf837a51edf74fd58a66193f05cce660e3b73e7f6
diff --git a/app-admin/bcfg2/bcfg2-1.2.4-r1.ebuild b/app-admin/bcfg2/bcfg2-1.2.4-r1.ebuild
new file mode 100644
index 000000000000..99526eb04d2b
--- /dev/null
+++ b/app-admin/bcfg2/bcfg2-1.2.4-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE='ssl'
+
+inherit distutils-r1
+
+DESCRIPTION="Configuration management tool"
+HOMEPAGE="http://bcfg2.org"
+SRC_URI="ftp://ftp.mcs.anl.gov/pub/bcfg/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
+IUSE="doc cheetah genshi server"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
+RDEPEND="app-portage/gentoolkit[${PYTHON_USEDEP}]
+ cheetah? ( dev-python/cheetah[${PYTHON_USEDEP}] )
+ genshi? ( dev-python/genshi[${PYTHON_USEDEP}] )
+ server? (
+ dev-libs/libgamin[python,${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/nose[${PYTHON_USEDEP}]
+ !kernel_linux? ( virtual/fam ) )"
+
+python_compile_all() {
+ if use doc; then
+ einfo "Building Bcfg2 documentation"
+ sphinx-build doc doc_output || die
+ fi
+}
+
+python_install() {
+ distutils-r1_python_install \
+ --record=PY_SERVER_LIBS
+
+ if ! use server; then
+ rm -f "${ED%/}"/usr/bin/bcfg2-* || die
+ rm -f "${D%/}$(python_get_scriptdir)"/bcfg2-* || die
+ rm -rf "${ED%/}"/usr/share/bcfg2 || die
+ rm -rf "${ED%/}"/usr/share/man/man8 || die
+ else
+ newinitd "${FILESDIR}/${PN}-server-1.2.0.rc" bcfg2-server
+ fi
+
+ insinto /etc
+ doins examples/bcfg2.conf
+
+ if use doc; then
+ cd doc_output || die
+ docinto html
+ dodoc -r [a-z]* _images _static
+ fi
+}
+
+pkg_postinst () {
+ if use server; then
+ einfo "If this is a new installation, you probably need to run:"
+ einfo " bcfg2-admin init"
+ fi
+}
diff --git a/app-admin/bcfg2/files/bcfg2-server-1.2.0.rc b/app-admin/bcfg2/files/bcfg2-server-1.2.0.rc
new file mode 100644
index 000000000000..f40248037079
--- /dev/null
+++ b/app-admin/bcfg2/files/bcfg2-server-1.2.0.rc
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+#
+# bcfgd - bcfg configuration daemon
+#
+#
+
+depend () {
+ need net
+}
+
+start () {
+ ebegin "Starting bcfg2-server"
+ start-stop-daemon --start --quiet --pidfile /var/run/bcfg2-server.pid \
+ --exec /usr/sbin/bcfg2-server -- -D /var/run/bcfg2-server.pid
+ eend $? "Failed to start bcfg2-server"
+}
+
+stop () {
+ ebegin "Stopping bcfg2-server"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bcfg2-server.pid \
+ --signal INT
+ eend $? "Failed to stop bcfg2-server"
+}
diff --git a/app-admin/bcfg2/metadata.xml b/app-admin/bcfg2/metadata.xml
new file mode 100644
index 000000000000..f46d2d0d99a9
--- /dev/null
+++ b/app-admin/bcfg2/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+</maintainer>
+<use>
+ <flag name="cheetah">Include dev-python/cheetah support</flag>
+ <flag name="genshi">Include dev-python/genshi support</flag>
+ <flag name="server">Installs scripts to be used on the server-side of this app</flag>
+</use>
+</pkgmetadata>