summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/bcfg2')
-rw-r--r--app-admin/bcfg2/ChangeLog11
-rw-r--r--app-admin/bcfg2/Manifest5
-rw-r--r--app-admin/bcfg2/bcfg2-0.9.6_pre1.ebuild59
-rw-r--r--app-admin/bcfg2/files/bcfg2-server.rc23
-rw-r--r--app-admin/bcfg2/metadata.xml18
5 files changed, 116 insertions, 0 deletions
diff --git a/app-admin/bcfg2/ChangeLog b/app-admin/bcfg2/ChangeLog
new file mode 100644
index 000000000000..994886dd4c36
--- /dev/null
+++ b/app-admin/bcfg2/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-admin/bcfg2
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/ChangeLog,v 1.1 2008/07/03 03:12:24 darkside Exp $
+
+*bcfg2-0.9.6_pre1 (03 Jul 2008)
+
+ 03 Jul 2008; Jeremy Olexa <darkside@gentoo.org> +files/bcfg2-server.rc,
+ +metadata.xml, +bcfg2-0.9.6_pre1.ebuild:
+ Initial commit. ebuild written by Michael Jinks <mjinks@uchicago.edu>,
+ proxied maintainer, bug #164467
+
diff --git a/app-admin/bcfg2/Manifest b/app-admin/bcfg2/Manifest
new file mode 100644
index 000000000000..11f9fa1bbbb2
--- /dev/null
+++ b/app-admin/bcfg2/Manifest
@@ -0,0 +1,5 @@
+AUX bcfg2-server.rc 483 RMD160 bb62e38431cec8cddf275b0c7c05555b7ef90727 SHA1 b883878c6bb8c1787629d8b3288037356e8f239a SHA256 0c73b6c09fbb8cc7f3387e1565f2327d728d41d7875c73df3708f2c94c8d96f0
+DIST bcfg2-0.9.6pre1.tar.gz 613062 RMD160 2d1ba7fb92aa4d4b4768ea45610189e63d652191 SHA1 928ebb0aa897ea36587950e04058c69809ad6738 SHA256 7717333be14869697c9871064401e9a4a6aa2126f2751edbf65df4eca5eaf535
+EBUILD bcfg2-0.9.6_pre1.ebuild 1307 RMD160 d311d49cfca6119391c576d88e3cc29cd66737c3 SHA1 6a24637738ff715957ea97dd6d76ce3f3a6c128b SHA256 e380d234e117a57863457d877fcbce0ab842cca16ea42a9485a6508ea28452e8
+MISC ChangeLog 463 RMD160 9a86704992be94f76d68539678d0ac702edd4607 SHA1 c44f41bc118987b3236093cdb88a11b7261c240a SHA256 efb3fe2b910e969c70c6f1eeed5209a416cf5deaa8ce63b234f3b8a7d4dc21b5
+MISC metadata.xml 471 RMD160 4eb23b40915e380b880367e17caf97dc2210c103 SHA1 b9feebd4b5576381839ef1cf7ecce4bf5d7f5e80 SHA256 9a27a02a0ebeb6df32474aefbd503237e2bbf552e04932334994fb441eb1b6dc
diff --git a/app-admin/bcfg2/bcfg2-0.9.6_pre1.ebuild b/app-admin/bcfg2/bcfg2-0.9.6_pre1.ebuild
new file mode 100644
index 000000000000..53b8a8dcced0
--- /dev/null
+++ b/app-admin/bcfg2/bcfg2-0.9.6_pre1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/bcfg2/bcfg2-0.9.6_pre1.ebuild,v 1.1 2008/07/03 03:12:24 darkside Exp $
+
+inherit distutils
+
+DESCRIPTION="Bcfg2 is a configuration management tool."
+HOMEPAGE="http://trac.mcs.anl.gov/projects/bcfg2"
+
+# handle the "pre" case
+MY_P="${P/_/}"
+SRC_URI="ftp://ftp.mcs.anl.gov/pub/bcfg/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="server"
+
+DEPEND="|| ( >=dev-lang/python-2.5
+ ( >=dev-lang/python-2.4
+ || ( app-admin/gamin app-admin/fam ) ) )"
+
+RDEPEND="app-portage/gentoolkit
+ server? (
+ dev-python/pyopenssl
+ || ( app-admin/gamin app-admin/fam ) )"
+
+src_compile() {
+ distutils_src_compile
+}
+
+src_install() {
+ python setup.py install --root="${D}" --record=PY_SERVER_LIBS \
+ --install-scripts /usr/sbin
+
+ # Remove files only necessary for a server installation
+ if ! use server; then
+ rm -rf "${D}"/usr/sbin/bcfg2-*
+ rm -rf "${D}"/usr/share/bcfg2
+ rm -rf "${D}"/usr/share/man/man8
+ fi
+
+ # Install a server init.d script
+ if use server; then
+ newinitd "${FILESDIR}"/bcfg2-server.rc bcfg2-server
+ fi
+
+ insinto /etc
+ doins "${S}"/examples/bcfg2.conf
+}
+
+pkg_postinst () {
+ depscan.sh
+}
+
+pkg_postrm () {
+ depscan.sh
+}
diff --git a/app-admin/bcfg2/files/bcfg2-server.rc b/app-admin/bcfg2/files/bcfg2-server.rc
new file mode 100644
index 000000000000..92e4c5c10d5d
--- /dev/null
+++ b/app-admin/bcfg2/files/bcfg2-server.rc
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+#
+# bcfgd - bcfg configuration daemon
+#
+#
+
+depend () {
+ need net
+}
+
+start () {
+ ebegin "Starting bcfg2-server"
+ start-stop-daemon --start --quiet --pidfile /var/run/bcfg2-server.pid \
+ --startas /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..68f59494dcba
--- /dev/null
+++ b/app-admin/bcfg2/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>darkside@gentoo.org</email>
+ <description>Proxy Maintainer</description>
+</maintainer>
+<maintainer>
+ <email>mjinks@uchicago.edu</email>
+ <name>Michael Jinks</name>
+</maintainer>
+<!--
+<use>
+ <flag name='server'>Installs scripts to be used on the server-side of this app</flag>
+</use>
+-->
+</pkgmetadata>