# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils DESCRIPTION="Argus System and Network Monitoring Software." HOMEPAGE="http://argus.tcp4me.com" SRC_URI="http://www.tcp4me.com/code/argus-archive/${P}.tgz" LICENSE="Artistic" SLOT="0" KEYWORDS="x86 ~sparc" IUSE="qpage crypt ipv6" DEPEND="qpage? ( sys-apps/qpage ) crypt? ( dev-perl/Crypt-DES dev-perl/Digest-HMAC dev-perl/Digest-MD5 dev-perl/Digest-SHA1 ) ipv6? ( dev-perl/Socket6 ) >=sys-libs/db-3.2 >=dev-lang/perl-5.6.1 net-analyzer/fping dev-perl/DB_File dev-perl/DBI dev-perl/GD" pkg_setup() { enewuser argus -1 /bin/bash /dev/null apache } src_unpack() { use qpage || ewarn " Not building with qpage, if you want qpage: USE="qpage" emerge sys-apps/argus" unpack ${A} && cd "${P}" epatch ${FILESDIR}/${P}-makefile.patch } src_compile() { dir_bin=/usr/bin dir_sbin=/usr/sbin dir_lib=/usr/lib/argus dir_data=/usr/share/argus export dir_bin dir_sbin dir_lib dir_data ./Configure emake || die "compile problem" } src_install() { make install || die mkdir -p ${D}/etc/init.d install -g root -o root -m 0755 ${FILESDIR}/rc.argusd ${D}/etc/init.d/argusd || die } pkg_postinst() { einfo " Configuration: /usr/share/argus/config " einfo " User Config: /usr/share/argus/users " echo ewarn " You must configure users before running " ewarn " See /usr/share/argus/apache.example for " ewarn " for apache config modifications " echo einfo " Don't forget to set argus on startup: " einfo " rc-update add argusd default " echo }