From 5987584f1991cf4a6a2f8693d279857c576abbe6 Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Sat, 4 Feb 2012 23:14:31 +0100 Subject: [PATCH] net-misc/opsiconfd: Initial Commit (Portage version: 2.2.0_alpha84/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit) --- net-misc/opsiconfd/ChangeLog | 10 +++ net-misc/opsiconfd/Manifest | 4 + net-misc/opsiconfd/metadata.xml | 8 ++ net-misc/opsiconfd/opsiconfd-4.0.1.9.ebuild | 82 +++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 net-misc/opsiconfd/ChangeLog create mode 100644 net-misc/opsiconfd/Manifest create mode 100644 net-misc/opsiconfd/metadata.xml create mode 100644 net-misc/opsiconfd/opsiconfd-4.0.1.9.ebuild diff --git a/net-misc/opsiconfd/ChangeLog b/net-misc/opsiconfd/ChangeLog new file mode 100644 index 0000000..f7d9a4c --- /dev/null +++ b/net-misc/opsiconfd/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for net-misc/opsiconfd +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*opsiconfd-4.0.1.9 (04 Feb 2012) + + 04 Feb 2012; Mario Fetka +opsiconfd-4.0.1.9.ebuild, + +metadata.xml: + Initial Commit + diff --git a/net-misc/opsiconfd/Manifest b/net-misc/opsiconfd/Manifest new file mode 100644 index 0000000..256c7cf --- /dev/null +++ b/net-misc/opsiconfd/Manifest @@ -0,0 +1,4 @@ +DIST opsiconfd-4.0.1.9-5.1.src.rpm 44994 RMD160 7781b37adb7e3da9421825f21e51513b0bb416e2 SHA1 5400749b3179d474bf32c3f98b7b48d5a92eaadb SHA256 8ef5db61a7514c786aa9098c6cc4f55afa99a0ccebf9f3fe5e695d54d7f2027c +EBUILD opsiconfd-4.0.1.9.ebuild 2117 RMD160 23c0ea4ddbca3d2f84c81f8336c9d11db408f3be SHA1 58528b1e849df8532e4b3eb5b2437a2f57581533 SHA256 9a4c1a9012bda290cbb0370071a7649d1e57075f5931d87e243c433b65ad3554 +MISC ChangeLog 266 RMD160 68de453a22d421d7e7079b991d01fe9b8dacf54e SHA1 356bddf2add67a17dd74da339ab353a9e10b8bd1 SHA256 fbddb60e462bbd95ef7f40e6e2a1c1048ef3d56dd8540c92f96d283140d92304 +MISC metadata.xml 226 RMD160 bebcbe7a5e3d2be83c25e006192f71ebf45abb14 SHA1 ec2b713fc2363b8c51e9c164d0802eeb59d9d296 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2 diff --git a/net-misc/opsiconfd/metadata.xml b/net-misc/opsiconfd/metadata.xml new file mode 100644 index 0000000..6589d3b --- /dev/null +++ b/net-misc/opsiconfd/metadata.xml @@ -0,0 +1,8 @@ + + + +no-herd + + mario.fetka@gmail.com + + diff --git a/net-misc/opsiconfd/opsiconfd-4.0.1.9.ebuild b/net-misc/opsiconfd/opsiconfd-4.0.1.9.ebuild new file mode 100644 index 0000000..526317c --- /dev/null +++ b/net-misc/opsiconfd/opsiconfd-4.0.1.9.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/trac/trac-0.12.2-r1.ebuild,v 1.1 2011/12/31 20:17:50 idl0r Exp $ + +EAPI="2" +PYTHON_DEPEND="2" +SUPPORT_PYTHON_ABIS="1" +RPM_VER="5.1" + +inherit distutils eutils rpm + +DESCRIPTION="opsi configuration service" +HOMEPAGE="http://opsi.org" +LICENSE="GPL-2" +SRC_URI="http://download.opensuse.org/repositories/home:/uibmz:/opsi:/opsi40-testing/openSUSE_12.1/src/${P}-${RPM_VER}.src.rpm" + +IUSE="" + +KEYWORDS="~amd64 ~arm ~x86" + +# doing so because tools, python packages... overlap +SLOT="0" + +RDEPEND="dev-python/python-opsi + dev-python/twisted + net-analyzer/rrdtool[python] + net-dns/avahi[python]" +DEPEND="${RDEPEND} + dev-python/setuptools + dev-libs/openssl + dev-python/dbus-python + sys-process/procps" + +RESTRICT_PYTHON_ABIS="3.*" + +pkg_setup() { + python_pkg_setup + + enewgroup pcpatch 992 + enewuser opsiconfd 993 -1 /var/lib/opsi pcpatch + enewgroup opsiadmin +} + + +# the default src_compile just calls setup.py build +# currently, this switches i18n catalog compilation based on presence of Babel + +src_install() { + distutils_src_install + + # project environments might go in here +# keepdir /var/lib/trac + + # Use this as the egg-cache for tracd +# dodir /var/lib/trac/egg-cache +# keepdir /var/lib/trac/egg-cache +# fowners tracd:tracd /var/lib/trac/egg-cache + + # documentation +# cp -r contrib "${D}"/usr/share/doc/${P}/ + + # tracd init script +# newconfd "${FILESDIR}"/tracd.confd tracd +# newinitd "${FILESDIR}"/tracd.initd tracd + +} + +pkg_postinst() { + distutils_pkg_postinst +#openssl req -x509 -newkey rsa:2048 -batch -nodes\ +#-config ${INTRINsec_HOME}/${PN}/conf/openssl.cnf\ +#-out ${INTRINsec_HOME}/${PN}/conf/vulture.crt\ +#-keyout ${INTRINsec_HOME}/${PN}/conf/vulture.key +#einfo "Vulture is installed. You can now type the following :" +#einfo "echo \"apache ALL=NOPASSWD:/usr/sbin/apache2\" >> /etc/sudoers" + +chmod 600 /etc/opsi/opsiconfd.pem +chown opsiconfd:opsiadmin /etc/opsi/opsiconfd.pem || true +chmod 750 /var/log/opsi/opsiconfd +chown -R opsiconfd:pcpatch /var/log/opsi/opsiconfd + +}