summaryrefslogtreecommitdiffstats
path: root/net-nntp/colobus/colobus-2.1-r1.ebuild
blob: a289e49ea83b5752b254558ca7fb3a46b65c5f6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="colobus"
HOMEPAGE="http://trainedmonkey.com/colobus/"
SRC_URI="http://trainedmonkey.com/colobus/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="amd64 x86"
DEPEND=""
RDEPEND="dev-lang/perl
	dev-perl/DBI
	perl-core/Digest-MD5
	dev-perl/MailTools"
#RDEPEND=""


#S="${WORKDIR}/${P/_/}"

src_install() {
	mkdir -p ${D}/usr/lib/
	tar xzf ${DISTDIR}/${P}.tar.gz -C ${D}/usr/lib
	EPATCH_OPTS="-p1 -d ${D}/usr/lib/${P}" epatch ${FILESDIR}/colobus-ds.patch


	mkdir -p ${D}/etc/cron.hourly/
	echo "(cd /usr/lib/${P} && ./colobus-archive -a >/dev/null)" > ${D}/etc/cron.hourly/colobus.sh
	chmod 0755 ${D}/etc/cron.hourly/colobus.sh

}