# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Brute-force protection program for OpenSSH servers" HOMEPAGE="http://sshguard.sourceforge.net/" SRC_URI="http://downloads.sourceforge.net/${PN}/${P}.tar.bz2" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="dev-lang/python" RDEPEND="net-firewall/iptables ${DEPEND}" src_compile() { # not using scons, it's a dumb builder gcc -o sshguard.o -c ${CFLAGS} -Wall -I. sshguard.c && \ gcc -o simclist.o -c ${CFLAGS} -Wall -I. simclist.c && \ gcc -o sshguard_log.o -c ${CFLAGS} -Wall -I. sshguard_log.c && \ cp fwalls/command_iptables.h fwalls/command.h && \ gcc -o fwalls/fw.o -c ${CFLAGS} -Wall -I. -I.. fwalls/command.c && \ gcc -o sshguard -lpthread sshguard.o simclist.o sshguard_log.o \ fwalls/fw.o || die "build failed" } src_install() { # again, not using scons, it's a dumb builder dosbin sshguard dodoc README } pkg_postinst() { einfo "Read the post-install guide at ${HOMEPAGE}doc/README" einfo "or ${ROOT}usr/share/doc/${PF}/README*" }