From 4803b48da3d729072438bd2162c2745e485e9761 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Mon, 17 Aug 2015 13:44:45 -0700 Subject: [PATCH] Remove app-admin/ocsinventory-agent, unmaintained --- app-admin/ocsinventory-agent/Manifest | 2 - .../ocsinventory-agent-2.0.5.ebuild | 86 ------------------- 2 files changed, 88 deletions(-) delete mode 100644 app-admin/ocsinventory-agent/Manifest delete mode 100644 app-admin/ocsinventory-agent/ocsinventory-agent-2.0.5.ebuild diff --git a/app-admin/ocsinventory-agent/Manifest b/app-admin/ocsinventory-agent/Manifest deleted file mode 100644 index 741216e..0000000 --- a/app-admin/ocsinventory-agent/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST Ocsinventory-Unix-Agent-2.0.5.tar.gz 1707443 SHA256 7ef1c25dce5f1e0854abc423513c1733219cc73e4c36057dbdad6757e1609a64 SHA512 99ebf61a4e8274be7deae32448594cc213e69ef67239c99e6f05b41f2624d95105632bd00c57a747d8aa5b4d7a31ff6fab9afbf618a2d9bfd3b28bb500b6f095 WHIRLPOOL a64cd5b0fa61128619ca5f2cfb3606e886a987ae2ec70e44d41bbb9d7be54276a938c1970b1f9720cbafb1690248216c6244670b85f76bfe997fa1bf9530379c -EBUILD ocsinventory-agent-2.0.5.ebuild 2328 SHA256 2b60a22823fa27699ec19996870eb7813c3f407b353c62e165828a9ecf32a495 SHA512 bea18388833a2d0b3ccbcb8dc306c86bf6ccf2072b9e1d35928c45c26055b70bd65c7bf7dbbc1b70a121f5d3fff0d87ee7e5e1ee8a48114904374d76b56a0ff6 WHIRLPOOL 8ae1a899129468ae6f841c8b9cce305e2b48eb57500228e6be60a87964b66ca1f39bed694880bf2e33d7f3e3a9b2c9b6e0ccec210af6d74dfec3e800c0f1b3ca diff --git a/app-admin/ocsinventory-agent/ocsinventory-agent-2.0.5.ebuild b/app-admin/ocsinventory-agent/ocsinventory-agent-2.0.5.ebuild deleted file mode 100644 index 5323cf5..0000000 --- a/app-admin/ocsinventory-agent/ocsinventory-agent-2.0.5.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -inherit perl-module - -MY_N="Ocsinventory-Unix-Agent" -MY_P="${MY_N}-${PV}" - -DESCRIPTION="Powerful inventory and package deployment system" -HOMEPAGE="http://www.ocsinventory-ng.org/" -SRC_URI="http://launchpad.net/${MY_N,,}/stable-2.0/${PV}/+download/${MY_P}.tar.gz" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~x86 ~amd64" -IUSE="logrotate ssl" - -RDEPEND=" - perl-core/Digest-MD5 - dev-perl/XML-Simple - dev-perl/LWP-UserAgent-Determined - dev-perl/Net-IP - dev-perl/Net-SSLeay - virtual/perl-File-Temp - logrotate? ( app-admin/logrotate ) - ssl? ( dev-perl/Crypt-SSLeay ) -" - -src_prepare() { - # Workaround stupid sources - mv "${WORKDIR}/${MY_P}" "${S}" - cd "${S}" - sed -i -e "s:PATH_TO_LOG_DIRECTORY:/var/log/${PN}:" \ - etc/logrotate.d/ocsinventory-agent - - #epatch "${FILESDIR}"/equery-invocation.patch -} - -src_install() { - mytargets=pure_install - perl-module_src_install - - insinto /etc/ocsinventory-agent - doins etc/ocsinventory-agent/modules.conf - - insinto /etc/cron.daily - echo -e "#!/bin/sh -/usr/bin/ocsinventory-agent --logfile /var/log/${PN}/agent.log -s \`. /etc/default/ocsinventory-agent;echo \${SERVER}\`" \ - > "${D}/etc/cron.daily/${PN}" - fperms 0755 /etc/cron.daily/${PN} - - insinto /etc/default - doins etc/default/ocsinventory-agent - - keepdir /var/{lib,log}/${PN} - if use logrotate ; then - insinto /etc/logrotate.d - doins etc/logrotate.d/ocsinventory-agent - fi -} - -check_opt_pkg() { - if ! has_version $1; then - missing_opt_pkg="${missing_opt_pkg}\t- $1: ${@:2}\n" - fi -} - -pkg_postinst() { - missing_opt_pkg="" - check_opt_pkg sys-apps/dmidecode "Read the BIOS stats" - check_opt_pkg sys-apps/pciutils "List PCI devices" - check_opt_pkg net-analyzer/nmap "Use the network discover feature" - check_opt_pkg x11-misc/read-edid "Get the serial number of the screen" - check_opt_pkg dev-perl/Net-CUPS "Detect the printers" - check_opt_pkg sys-apps/smartmontools "" - - if [[ -n $missing_opt_pkg ]]; then - elog "Following packages gives additional functionalities" - elog -n $missing_opt_pkg - fi - - elog "A script has been installed in /etc/cron.daily/ for the OCS Inventory agent" - elog "to run regularly." -}