diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2008-07-03 03:12:25 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2008-07-03 03:12:25 +0000 |
commit | 4e3066eb7381bb9775e634d33237a73b93c74ba3 (patch) | |
tree | 08f848ad0225b46913a308657aa1440e0725fe9c /app-admin/bcfg2 | |
parent | add server USE flag for app-admin/bcfg2 in use.local.desc (diff) | |
download | gentoo-2-4e3066eb7381bb9775e634d33237a73b93c74ba3.tar.gz gentoo-2-4e3066eb7381bb9775e634d33237a73b93c74ba3.tar.bz2 gentoo-2-4e3066eb7381bb9775e634d33237a73b93c74ba3.zip |
Initial commit. ebuild written by Michael Jinks <mjinks@uchicago.edu>, proxied maintainer. bug #164467
(Portage version: 2.2_rc1/cvs/Linux 2.6.22-gentoo-r2 i686)
Diffstat (limited to 'app-admin/bcfg2')
-rw-r--r-- | app-admin/bcfg2/ChangeLog | 11 | ||||
-rw-r--r-- | app-admin/bcfg2/Manifest | 5 | ||||
-rw-r--r-- | app-admin/bcfg2/bcfg2-0.9.6_pre1.ebuild | 59 | ||||
-rw-r--r-- | app-admin/bcfg2/files/bcfg2-server.rc | 23 | ||||
-rw-r--r-- | app-admin/bcfg2/metadata.xml | 18 |
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..aae2b54fcece --- /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 1204 RMD160 f4a0d9b6e86d24e8f6c62850409a70af23f94ed1 SHA1 54368a9f4d97683090c8933e05304ed1097c52f1 SHA256 948fe304b4c00187a3462c28182140a01d241742eb5ca5e3d3e619ffacd3e30e +MISC ChangeLog 374 RMD160 4175245bc81f8a1b6fcd80cf111f0403eb162cb1 SHA1 95bdff7b9db01e0a7de992688b8734dd9d7e8712 SHA256 e8494d56337153876409f0fec33eaa3f1a6c5fe5615df88995bbcb359a13a51c +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> |