blob: 4d5d25c720795fa28aaad47ab91a77ae4c14201c (
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
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/dansguardian/dansguardian-2.7.6.ebuild,v 1.1 2003/12/05 20:25:07 method Exp $
DESCRIPTION="Web content filtering via proxy"
HOMEPAGE="http://dansguardian.org"
P="DansGuardian-${PV}"
SRC_URI="http://mirror.dansguardian.org/downloads/2/Alpha/${P}-1.source.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
#DEPEND="net-www/squid"
DEPEND=""
RDEPEND=""
S=${WORKDIR}/${P}-1
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/dansguardian-xnaughty-2.7.6-1.diff
}
src_compile() {
./configure \
--prefix= \
--installprefix=${D} \
--mandir=/usr/share/man/ || die "./configure failed"
emake || die
}
src_install() {
if [ -d "/etc/logrotate.d" ]; then mkdir -p ${D}/etc/logrotate.d; fi
make install || die
dodir /etc/init.d
cp ${FILESDIR}/dansguardian.init ${D}/etc/init.d/dansguardian
rm -rf ${D}/etc/rc.d
einfo "Fixing location of initscript"
sed 's/rc.d\///' ${D}/etc/dansguardian/logrotation > ${D}/etc/dansguardian/logrotation.fixed
mv -f ${D}/etc/dansguardian/logrotation.fixed ${D}/etc/dansguardian/logrotation
dodoc INSTALL README LICENSE
}
|