net-misc/opsiconfd: Initial Commit

(Portage version: 2.2.0_alpha84/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)
This commit is contained in:
Mario Fetka 2012-02-04 23:14:31 +01:00
parent 358e6c9e6d
commit 5987584f19
4 changed files with 104 additions and 0 deletions

View File

@ -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 <mario.fetka@gmail.com> +opsiconfd-4.0.1.9.ebuild,
+metadata.xml:
Initial Commit

View File

@ -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

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
<email>mario.fetka@gmail.com</email>
</maintainer>
</pkgmetadata>

View File

@ -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
}