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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Dec 9 02:05:56 2004 UTC (9 years, 4 months ago) by vapier
Branch: MAIN
Version bump.

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.5.ebuild,v 1.1 2004/09/06 22:16:32 vapier Exp $
4
5 inherit toolchain-funcs
6
7 WEBROOT=/var/www/localhost
8
9 MY_P="${PN/d}-${PV}"
10 DESCRIPTION="fast, efficient, (REALLY) small, and easy to configure web server"
11 HOMEPAGE="http://monkeyd.sourceforge.net/"
12 SRC_URI="http://monkeyd.sourceforge.net/versions/${MY_P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~x86 ~ppc ~sparc"
17 IUSE="php"
18
19 DEPEND="virtual/libc
20 >=sys-apps/portage-2.0.51"
21 RDEPEND="virtual/libc
22 php? ( dev-php/php-cgi )"
23
24 S=${WORKDIR}/${MY_P}
25
26 src_unpack() {
27 unpack ${A}
28 cd ${S}
29 sed -i -e '/strip /s:.*::' src/Makefile
30 }
31
32 src_compile() {
33 # monkey has it's own funky script ... cant use econf
34 ./configure \
35 --prefix=/usr \
36 --bindir=/usr/bin \
37 --cgibin=${WEBROOT}/cgi-bin \
38 --sysconfdir=/etc/${PN} \
39 --datadir=${WEBROOT}/htdocs \
40 --logdir=/var/log/${PN} \
41 --lang=en \
42 || die
43 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
44 }
45
46 src_install() {
47 make \
48 PREFIX=${D}/usr \
49 BINDIR=${D}/usr/bin \
50 CGIBIN=${D}${WEBROOT}/cgi-bin \
51 SYSCONFDIR=${D}/etc/${PN} \
52 DATADIR=${D}${WEBROOT}/htdocs \
53 LOGDIR=${D}/var/log/${PN} \
54 install \
55 || die
56 if use php ; then
57 dosed '/^#AddScript application\/x-httpd-php/s:^#::' /etc/monkeyd/monkey.conf
58 dosed 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' /etc/monkeyd/monkey.conf
59 fi
60 [ -e ${ROOT}/${WEBROOT}/htdocs/index.html ] && mv ${D}${WEBROOT}/htdocs/{index,index-monkey}.html
61 dosed "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" /etc/monkeyd/monkey.conf
62 newinitd ${FILESDIR}/monkeyd.init.d monkeyd
63 newconfd ${FILESDIR}/monkeyd.conf.d monkeyd
64 dodoc MODULES HowItWorks.txt README ChangeLog
65 }

  ViewVC Help
Powered by ViewVC 1.1.20