diff --git a/app-admin/mmc-core/ChangeLog b/app-admin/mmc-core/ChangeLog new file mode 100644 index 0000000..0d7e356 --- /dev/null +++ b/app-admin/mmc-core/ChangeLog @@ -0,0 +1,94 @@ +# ChangeLog for app-admin/mmc-agent +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 21 Feb 2010; Mario Fetka + mmc-agent-2.3.2_p798.ebuild: + correct inherit error + + 21 Feb 2010; Mario Fetka + mmc-agent-2.3.2_p798.ebuild: + add eutils class + + 18 Feb 2010; Mario Fetka + mmc-agent-2.3.2-r1.ebuild, mmc-agent-2.3.2-r2.ebuild, + mmc-agent-2.3.2-r3.ebuild, mmc-agent-2.3.2-r4.ebuild, + mmc-agent-2.3.2_p798.ebuild: + add arm keyword + + 05 Feb 2010; Mario Fetka + mmc-agent-2.3.2_p798.ebuild, +files/mmc-agent-2.3.2-userquota-2.patch: + update userquota plugin + + 02 Feb 2010; Mario Fetka + +files/mmc-agent-2.3.2-bulkimport-2.patch: + Bump bulkimport patch + + 29 Jan 2010; Mario Fetka + mmc-agent-2.3.2_p798.ebuild, +files/mmc-agent-2.3.2-bulkimport-1.patch, + +files/mmc-agent-2.3.2-userquota-1.patch: + Add Userquota & bulkimport module + + 05 Dec 2009; Mario Fetka + +mmc-agent-2.3.2_p798.ebuild: + Use the special pulse2 release + + 09 Sep 2009; Mario Fetka + mmc-agent-2.3.2-r4.ebuild: + correct typo + +*mmc-agent-2.3.2-r4 (03 Sep 2009) + + 03 Sep 2009; Mario Fetka + +mmc-agent-2.3.2-r4.ebuild: + add missing dependencies + +*mmc-agent-2.3.2-r3 (04 Jul 2009) + + 04 Jul 2009; Mario Fetka + +mmc-agent-2.3.2-r3.ebuild, +files/mmc-agent-2.3.2-powerdns-2.patch: + update the powerdns patch + +* mmc-agent-2.3.2-r2 (17 Apr 2009) + + 17 Apr 2009; Mario Fetka mmc-agent-2.3.2-r2: + EAPI2 and test cleanup + + 16 Apr 2009; Mario Fetka + mmc-agent-2.3.2-r1.ebuild: + add die to do* + + 30 Mar 2009; Mario Fetka ChangeLog: + Add PowerDNS Support + + 16 Mar 2009; Mario Fetka + files/mmc-agent-2.3.1-kerberos-1.patch: + Remove diff from patch + + 13 Mar 2009; Mario Fetka mmc-agent-2.3.2.ebuild: + remove wrong dependency on gettext + + 13 Mar 2009; Mario Fetka mmc-agent-2.3.2.ebuild: + new dependencies on gettext + + 27 Feb 2009; Mario Fetka mmc-agent-2.3.2.ebuild: + Add Dependency + + 21 Jan 2009; Mario Fetka + files/mmc-agent-2.3.1-kerberos-1.patch, + +files/mmc-agent-2.3.2-printing-1.patch: + Update kerberos Patch + + 11 Jan 2009; Mario Fetka +mmc-agent-2.3.2.ebuild: + Bump + + 02 Nov 2008; Mario Fetka + files/mmc-agent-2.3.1-kerberos-1.patch: + update patch + + 31 Jul 2008; Mario Fetka mmc-agent-2.3.1.ebuild: + repoman Cleanup + + 14 Jun 2008; Mario Fetka +metadata.xml: + Initial import + diff --git a/app-admin/mmc-core/Manifest b/app-admin/mmc-core/Manifest new file mode 100644 index 0000000..a01e572 --- /dev/null +++ b/app-admin/mmc-core/Manifest @@ -0,0 +1,5 @@ +AUX mmc-agent.initd 438 RMD160 d7dc64366782ab0d6fe4347d6a169b88a4e03a49 SHA1 e4ae8808678161237703bbb63b144899c9a544c9 SHA256 922d0bacad3eda749f8807e3ae5c183f636fa93e0d41d7079e570c58ebccb879 +AUX mmc-core-3.0.0-install-target-1.patch 3093 RMD160 962349bf319836e3b261197f75e98203ba598a81 SHA1 f38c257806bea19b5d44a6f4f55fa92787f529f1 SHA256 35d615fb32f59a327eb6a3ecce57def0636deabd4f4faea6fe3ab10897194dec +DIST mmc-core-3.0.0.tar.gz 645109 RMD160 ca519b20ebf011ce78533ce0faec61dd48af35cf SHA1 927f4a8a1e335d97d3af86bb528c7c15960db8c3 SHA256 6aa9a8020ed352cb3c4f6e9c808802e1959fd6d6415d3b66e77453edc4ad9f49 +EBUILD mmc-core-3.0.0.ebuild 1161 RMD160 8cdf2b6f47d636d091b323aa16f8dab2ae51351b SHA1 621f3a239d6c9965ce0efa4ae4a0aa37c194f65e SHA256 a637782661ccc0126b501b925d26181d6c667f7ce1d9052c8e565aae9dc4e9a8 +MISC ChangeLog 2840 RMD160 dcce269790797e36cff6c62549ec34f7189ef3ee SHA1 5c5329227787c70c4c09836a0eae134d003d1698 SHA256 273406fbfb2a8a4030ca52a98e9b97d2b8b1f3e29979d0e5856cac8dbcb4a219 diff --git a/app-admin/mmc-core/files/mmc-agent.initd b/app-admin/mmc-core/files/mmc-agent.initd new file mode 100755 index 0000000..2e3555e --- /dev/null +++ b/app-admin/mmc-core/files/mmc-agent.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +depend() { + need net slapd +} + +start() { + ebegin "Starting mmc-agent" + eval start-stop-daemon --start --quiet --exec /usr/sbin/mmc-agent --pidfile /var/run/mmc-agent.pid + eend $? +} + +stop() { + ebegin "Stopping mmc-agent" + start-stop-daemon --stop --quiet --pidfile /var/run/mmc-agent.pid + eend $? +} diff --git a/app-admin/mmc-core/files/mmc-core-3.0.0-install-target-1.patch b/app-admin/mmc-core/files/mmc-core-3.0.0-install-target-1.patch new file mode 100644 index 0000000..90566da --- /dev/null +++ b/app-admin/mmc-core/files/mmc-core-3.0.0-install-target-1.patch @@ -0,0 +1,84 @@ +Submitted By: Mario Fetka (geos_one) (mario dot fetka at gmail dot com) +Date: 2010-05-01 +Initial Package Version: 3.0.0 +Origin: me +Upstream Status: unknown +Description: split install target + +diff -Naur mmc-core-3.0.0.orig/agent/Makefile mmc-core-3.0.0/agent/Makefile +--- mmc-core-3.0.0.orig/agent/Makefile 2010-04-29 12:01:45.000000000 +0000 ++++ mmc-core-3.0.0/agent/Makefile 2010-05-01 10:04:57.802871100 +0000 +@@ -52,37 +52,56 @@ + @echo "Nothing to do" + + # Install everything +-install: ++install: install_py install_lib_backup install_sbin install_bin install_cfg + @# Install directories + @echo "" + @echo "Move old configuration files to $(DESTDIR)$(ETCDIR)$(BACKUP)" + -[ -d $(DESTDIR)$(ETCDIR) ] && mv -f $(DESTDIR)$(ETCDIR) $(DESTDIR)$(ETCDIR)$(BACKUP) ++ ++install_nopy: install_lib_backup install_sbin install_bin install_cfg ++ @# Install directories + @echo "" +- @echo "Creating directories..." +- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(SBINDIR) +- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(BINDIR) +- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(LIBDIR) +- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(LIBDIRBACKUP) +- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(ETCDIR) +- $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(PYTHON_PREFIX) ++ # @echo "Move old configuration files to $(DESTDIR)$(ETCDIR)$(BACKUP)" ++ # -[ -d $(DESTDIR)$(ETCDIR) ] && mv -f $(DESTDIR)$(ETCDIR) $(DESTDIR)$(ETCDIR)$(BACKUP) ++ + ++install_py: ++ @echo "" ++ @echo "Creating python directories..." ++ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(PYTHON_PREFIX) + @echo "" + @echo "Install python code in $(DESTDIR)$(PYTHON_PREFIX)" + $(PYTHON) setup.py install --no-compile --prefix $(DESTDIR)$(PYTHON_PREFIX) + ++install_lib_backup: ++ @echo "" ++ @echo "Creating lib backup directories..." ++ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(LIBDIRBACKUP) + @echo "" + @echo "Install LIBDIRBACKUP in $(DESTDIR)$(LIBDIRBACKUP)" + + $(INSTALL) $(LIBFILESBACKUP) -m 755 -o root -g root $(DESTDIR)$(LIBDIRBACKUP) + ++install_sbin: ++ @echo "" ++ @echo "Creating sbin directories..." ++ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(SBINDIR) + @echo "" + @echo "Install SBINFILES in $(DESTDIR)$(SBINDIR)" + $(INSTALL) $(SBINFILES) -m 755 -o root -g root $(DESTDIR)$(SBINDIR) + ++install_bin: ++ @echo "" ++ @echo "Creating bin directories..." ++ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(BINDIR) + @echo "" + @echo "Install BINFILES in $(DESTDIR)$(BINDIR)" + $(INSTALL) $(BINFILES) -m 755 -o root -g root $(DESTDIR)$(BINDIR) + ++install_cfg: ++ @echo "" ++ @echo "Creating config directories..." ++ $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(ETCDIR) + @echo "" + @echo "Install CONFILES in $(DESTDIR)$(ETCDIR)" + $(INSTALL) -d -m 755 -o root -g root $(DESTDIR)$(ETCDIR)/agent +@@ -97,7 +116,7 @@ + $(SED) -i 's!##SBINDIR##!$(SBINDIR)!' $(DESTDIR)$(INITDIR)/mmc-agent + + ifndef NOCHECKPASSWORD +- $(MAKE) -C openldap-check-password install CC=$(CC) INSTALL=$(INSTALL) ++ $(MAKE) -C openldap-check-password install CC=$(CC) INSTALL=$(INSTALL) DESTDIR=$(DESTDIR) + endif + + include common.mk diff --git a/app-admin/mmc-core/mmc-core-3.0.0.ebuild b/app-admin/mmc-core/mmc-core-3.0.0.ebuild new file mode 100644 index 0000000..813624f --- /dev/null +++ b/app-admin/mmc-core/mmc-core-3.0.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" +SUPPORT_PYTHON_ABIS="1" + +inherit eutils distutils + +MY_P="${P/_p/-}" +MY_PV="${PV/_p*/}" + +DESCRIPTION="The MMC Agent and its Core Python plugins." +HOMEPAGE="http://mds.mandriva.org/" +SRC_URI="http://mds.mandriva.org/pub/mmc-core/sources//${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="" + +SLOT="0" + +RDEPEND=">=dev-python/twisted-web-0.7.0 + >=dev-python/python-ldap-2.2.1 + !app-admin/mmc-agent" + +DEPEND="sys-apps/lsb-release" + +S="${WORKDIR}/${PN}-${MY_PV}/agent" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-3.0.0-install-target-1.patch + distutils_src_prepare +} + +# from marienz's setuptools.eclass: +src_install() { + emake install_nopy PREFIX=/usr DESTDIR=${D} NOCHECKPASSWORD="1" + distutils_src_install + newinitd "${FILESDIR}"/mmc-agent.initd mmc-agent +} + +pkg_postinst() { + elog "To disable some plugin in your mmc environments, you have to set" + elog "disable to 1 in /etc/mmc/plugins/*.ini" + elog "(one config file per service)" + elog "You can't disable the base plugin." +}