You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/mail-filter/disspam/disspam-0.14.ebuild

34 lines
881 B

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/disspam/disspam-0.14.ebuild,v 1.9 2013/08/10 14:55:45 ago Exp $
DESCRIPTION="A Perl script that removes spam from POP3 mailboxes based on RBLs."
HOMEPAGE="http://www.topfx.com/"
SRC_URI="http://www.topfx.com/dist/${P}.tar.gz"
SLOT="0"
LICENSE="Artistic"
KEYWORDS="alpha ~amd64 ~hppa ~mips ppc sparc x86"
IUSE=""
DEPEND=">=dev-lang/perl-5.6.1
>=virtual/perl-libnet-1.11
>=sys-apps/sed-4
>=dev-perl/Net-DNS-0.12"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
#This doesnt look neat but makes it work
sed -i \
-e 's/\/usr\/local\/bin\/perl/\/usr\/bin\/perl/' disspam.pl || \
die "sed disspam.pl failed"
}
src_install() {
dobin disspam.pl
dodoc changes.txt configuration.txt readme.txt sample.conf
}