# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit perl-module # Internal version is 1.0.1, but upstream calls it 1.02 MY_PF="OCSNG_UNIX_AGENT-1.02" DESCRIPTION="Powerful inventory and package deployment system." HOMEPAGE="http://www.ocsinventory-ng.org/index.php?page=English" SRC_URI="mirror://sourceforge/ocsinventory/${MY_PF}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 amd64" IUSE="logrotate" DEPEND="dev-lang/perl" RDEPEND="sys-apps/dmidecode dev-perl/libwww-perl virtual/perl-IO-Compress dev-perl/XML-Simple dev-perl/Net-IP perl-core/Digest-MD5 dev-perl/Net-SSLeay sys-apps/smartmontools logrotate? ( app-admin/logrotate )" # Workaround stupid sources MY_P=Ocsinventory-Agent-${PV} S=${WORKDIR}/${MY_P} src_install() { # Do *NOT* run postinst, it breaks the ebuild for now rm "${S}"/run-postinst perl-module_pkg_preinst perl-module_src_install perl-module_pkg_postinst insinto /etc/ocsinventory doins "${FILESDIR}"/ocsinventory-agent.cfg keepdir /var/log/ocsinventory-agent if use logrotate ; then insinto /etc/logrotate.d newins logrotate.ocsinventory-agent ocsinventory-agent fi insinto /etc/cron.daily newins "${FILESDIR}"/ocsinventory-agent.cron ocsinventory-agent }