/[gentoo-x86]/www-servers/monkeyd/monkeyd-0.8.3.ebuild
Gentoo

Contents of /www-servers/monkeyd/monkeyd-0.8.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Feb 20 22:45:46 2005 UTC (9 years, 5 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/monkeyd-0.8.3.ebuild,v 1.1 2004/08/08 17:41:38 stuart Exp $
4
5 WEBROOT=/var/www/localhost
6
7 MY_P="${PN/d}-${PV}"
8 DESCRIPTION="fast, efficient, (REALLY) small, and easy to configure web server"
9 HOMEPAGE="http://monkeyd.sourceforge.net/"
10 SRC_URI="http://monkeyd.sourceforge.net/versions/${MY_P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc"
15 IUSE="php"
16
17 DEPEND="virtual/libc"
18 RDEPEND="virtual/libc
19 php? ( dev-php/php-cgi )"
20
21 S=${WORKDIR}/${MY_P}
22
23 src_compile() {
24 # monkey has it's own funky script ... cant use econf
25 ./configure \
26 --prefix=/usr \
27 --bindir=/usr/bin \
28 --cgibin=${WEBROOT}/cgi-bin \
29 --sysconfdir=/etc/${PN} \
30 --datadir=${WEBROOT}/htdocs \
31 --logdir=/var/log/${PN} \
32 --lang=en \
33 || die
34 emake CFLAGS="${CFLAGS}" || die
35 }
36
37 src_install() {
38 make \
39 PREFIX=${D}/usr \
40 BINDIR=${D}/usr/bin \
41 CGIBIN=${D}${WEBROOT}/cgi-bin \
42 SYSCONFDIR=${D}/etc/${PN} \
43 DATADIR=${D}${WEBROOT}/htdocs \
44 LOGDIR=${D}/var/log/${PN} \
45 install \
46 || die
47 if use php ; then
48 dosed '/^#AddScript application\/x-httpd-php/s:^#::' /etc/monkeyd/monkey.conf
49 dosed 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' /etc/monkeyd/monkey.conf
50 fi
51 [ -e ${ROOT}/${WEBROOT}/htdocs/index.html ] && mv ${D}${WEBROOT}/htdocs/{index,index-monkey}.html
52 dosed "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" /etc/monkeyd/monkey.conf
53 exeinto /etc/init.d ; newexe ${FILESDIR}/monkeyd.init.d monkeyd
54 insinto /etc/conf.d ; newins ${FILESDIR}/monkeyd.conf.d monkeyd
55 dodoc MODULES HowItWorks.txt README ChangeLog
56 }

  ViewVC Help
Powered by ViewVC 1.1.20