Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /home/cvsroot/gentoo-x86/net-www/cvsweb/cvsweb-1.112.ebuild,v 1.10 2003/09/06 01:54:08 msterret Exp $ |
3 |
# $Header: /home/cvsroot/gentoo-x86/net-www/cvsweb/cvsweb-1.112.ebuild,v 1.10 2003/09/06 01:54:08 msterret Exp $ |
4 |
|
4 |
|
|
|
5 |
inherit webapp-apache |
6 |
|
5 |
SLOT="0" |
7 |
SLOT="0" |
6 |
KEYWORDS="x86 sparc ~ppc" |
8 |
KEYWORDS="x86 sparc ~ppc" |
7 |
LICENSE="BSD" |
9 |
LICENSE="BSD" |
Lines 12-17
Link Here
|
12 |
S="${WORKDIR}/cvsweb" |
14 |
S="${WORKDIR}/cvsweb" |
13 |
RDEPEND=">=dev-lang/perl-5 >=app-text/rcs-5.7" |
15 |
RDEPEND=">=dev-lang/perl-5 >=app-text/rcs-5.7" |
14 |
|
16 |
|
|
|
17 |
webapp-detect || NO_WEBSERVER=1 |
18 |
|
19 |
pkg_setup() { |
20 |
webapp-pkg_setup "${NO_WEBSERVER}" |
21 |
einfo "Installing into ${HTTPD_CGIBIN}." |
22 |
} |
23 |
|
15 |
src_unpack() { |
24 |
src_unpack() { |
16 |
unpack ${P}.tar.gz |
25 |
unpack ${P}.tar.gz |
17 |
cd ${S} |
26 |
cd ${S} |
Lines 19-33
Link Here
|
19 |
for x in cvsweb.cgi cvsweb.conf |
28 |
for x in cvsweb.cgi cvsweb.conf |
20 |
do |
29 |
do |
21 |
cp ${x} ${x}.orig |
30 |
cp ${x} ${x}.orig |
22 |
sed -e "s:/usr/local/web/apache/conf/:/etc/apache/conf/:g" ${x}.orig > ${x} |
31 |
sed -e "s:/usr/local/web/apache/conf/:${APACHECONF_DIR}:" ${x}.orig > ${x} |
|
|
32 |
cp ${x} ${x}.orig |
33 |
sed -e "s:\#\$ENV{'PATH'} = '/usr/local/bin':\$ENV{'PATH'} = '/usr/bin':" ${x}.orig > ${x} |
34 |
rm ${x}.orig |
23 |
done |
35 |
done |
24 |
} |
36 |
} |
25 |
|
37 |
|
26 |
src_install() { |
38 |
src_install() { |
27 |
cd ${S} |
39 |
cd ${S} |
28 |
insinto /etc/apache/conf |
40 |
insinto ${APACHECONF_DIR} |
29 |
doins cvsweb.conf |
41 |
doins cvsweb.conf |
30 |
insinto /home/httpd/cgi-bin |
42 |
insinto ${HTTPD_CGIBIN} |
31 |
insopts -m755 |
43 |
insopts -m755 |
32 |
doins cvsweb.cgi |
44 |
doins cvsweb.cgi |
33 |
dodoc README TODO |
45 |
dodoc README TODO |