blob: 45099d9664c0868023ed0f6070ceefddafc87d92 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/vultureng/vultureng-0.6.ebuild,v 1.3 2005/05/25 18:44:45 swegener Exp $
inherit flag-o-matic eutils
DESCRIPTION="INTRINsec Reverse Proxy"
HOMEPAGE="http://vulture.open-source.fr"
SRC_URI="http://vulture.open-source.fr/download/VultureNG-${PV}.tar.gz"
S=${WORKDIR}/VultureNG-${PV}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
#IUSE="apache2 sqlite"
INTRINsec_HOME="/opt/INTRINsec"
RDEPEND="dev-lang/perl
dev-perl/perl-ldap
dev-perl/Apache-Session
=dev-perl/DBD-SQLite-0.31
dev-perl/DBD-Pg
dev-perl/libwww-perl
net-www/mod_security
>=www-apache/mod_perl-1.99
>=net-www/apache-2.0.52
dev-php/mod_php
dev-php/PECL-sqlite
app-admin/sudo
net-www/mod_ssl
dev-libs/openssl"
DEPEND="dev-libs/openssl
dev-db/sqlite
dev-lang/perl"
src_compile() {
sed -i -e 's|/opt/INTRINsec/VultureNG|/opt/INTRINsec/vultureng|g'\
www/WEB-INF/phpmvc-config.xml sql/sqlite.dump
sqlite sql/db < sql/sqlite.dump
rm -f lib/Vulture/Makefile
libpath=`perl -MConfig -e 'print $Config{sitelib}'`
make OPT=LIB=${D}/${libpath}
}
src_install () {
make PREFIX=${D}${INTRINsec_HOME} NAME=${PN} install
fowners apache:apache ${INTRINsec_HOME}/${PN}
insopts -m0600 -o apache -g apache
insinto ${INTRINsec_HOME}/${PN}/conf
doins ebuild/httpd.conf
insinto ${INTRINsec_HOME}/${PN}/www
doins ebuild/config.php
insinto ${INTRINsec_HOME}/${PN}/sql
doins sql/db
# insinto /etc/init.d
# insopts -m0750 -o root -g root
# newins ebuild/VultureNG.init vultureng
newinitd ebuild/VultureNG.init vultureng
}
pkg_postinst() {
openssl req -x509 -newkey rsa:2048 -batch -nodes\
-config ${INTRINsec_HOME}/${PN}/conf/openssl.cnf\
-out ${INTRINsec_HOME}/${PN}/conf/vultureng.crt\
-keyout ${INTRINsec_HOME}/${PN}/conf/vultureng.key
einfo "Vulture is installed. You can now type the following :"
einfo "echo \"apache ALL=NOPASSWD:/usr/sbin/apache2,/bin/kill\" >> /etc/sudoers"
}
|