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

Contents of /www-servers/monkeyd/monkeyd-0.8.2.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, 6 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.2.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"
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 ./configure \
25 --prefix=/usr \
26 --bindir=/usr/bin \
27 --cgibin=${WEBROOT}/cgi-bin \
28 --sysconfdir=/etc/${PN} \
29 --datadir=${WEBROOT}/htdocs \
30 --logdir=/var/log/${PN} \
31 --lang=en \
32 || die
33 emake CFLAGS="${CFLAGS}" || die
34 }
35
36 src_install() {
37 make \
38 PREFIX=${D}/usr \
39 BINDIR=${D}/usr/bin \
40 CGIBIN=${D}${WEBROOT}/cgi-bin \
41 SYSCONFDIR=${D}/etc/${PN} \
42 DATADIR=${D}${WEBROOT}/htdocs \
43 LOGDIR=${D}/var/log/${PN} \
44 install \
45 || die
46 if use php ; then
47 dosed '/^#AddScript application\/x-httpd-php/s:^#::' /etc/monkeyd/monkey.conf
48 dosed 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' /etc/monkeyd/monkey.conf
49 fi
50 [ -e ${ROOT}/${WEBROOT}/htdocs/index.html ] && mv ${D}${WEBROOT}/htdocs/{index,index-monkey}.html
51 dosed "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" /etc/monkeyd/monkey.conf
52 exeinto /etc/init.d ; newexe ${FILESDIR}/monkeyd.init.d monkeyd
53 insinto /etc/conf.d ; newins ${FILESDIR}/monkeyd.conf.d monkeyd
54 dodoc MODULES HowItWorks.txt README ChangeLog
55 }

  ViewVC Help
Powered by ViewVC 1.1.20