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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jul 24 18:31:46 2006 UTC (8 years, 1 month ago) by bangert
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
punt old/insecure version - bug #140493 - thanks jakub
(Portage version: 2.1-r1)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 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.9.0-r1.ebuild,v 1.2 2006/04/27 18:49:03 chtekk Exp $
4
5 inherit toolchain-funcs depend.php
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="~amd64 ppc sparc x86"
17 IUSE="php"
18
19 DEPEND="virtual/libc
20 >=sys-apps/portage-2.0.51"
21 RDEPEND="virtual/libc
22 php? ( virtual/httpd-php )"
23
24 S=${WORKDIR}/${MY_P}
25
26 pkg_setup() {
27 use php && require_php_cgi
28 }
29
30 src_unpack() {
31 unpack ${A}
32 cd ${S}
33 sed -i -e '/install -m 755 bin\/banana/d' configure || die "sed banana"
34 }
35
36 src_compile() {
37 # monkey has it's own funky script ... cant use econf
38 env STRIP=true \
39 ./configure \
40 --prefix=/usr \
41 --bindir=/usr/bin \
42 --cgibin=${WEBROOT}/cgi-bin \
43 --sysconfdir=/etc/${PN} \
44 --datadir=${WEBROOT}/htdocs \
45 --logdir=/var/log/${PN} \
46 --lang=en \
47 || die
48 # Don't install the banana script, it is broken as is anyway and the
49 # functionality is provided by the ${FILESDIR}/monkeyd.init.d script.
50 sed -i '/install -m 755 bin\/banana/d' Makefile
51 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
52 }
53
54 src_install() {
55 make \
56 PREFIX=${D}/usr \
57 BINDIR=${D}/usr/bin \
58 CGIBIN=${D}${WEBROOT}/cgi-bin \
59 SYSCONFDIR=${D}/etc/${PN} \
60 DATADIR=${D}${WEBROOT}/htdocs \
61 LOGDIR=${D}/var/log/${PN} \
62 install \
63 || die
64 if use php ; then
65 dosed '/^#AddScript application\/x-httpd-php/s:^#::' /etc/monkeyd/monkey.conf
66 dosed 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' /etc/monkeyd/monkey.conf
67 fi
68 [ -e ${ROOT}/${WEBROOT}/htdocs/index.html ] && mv ${D}${WEBROOT}/htdocs/{index,index-monkey}.html
69 dosed "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" /etc/monkeyd/monkey.conf
70 newinitd ${FILESDIR}/monkeyd.init.d monkeyd
71 newconfd ${FILESDIR}/monkeyd.conf.d monkeyd
72 dodoc MODULES HowItWorks.txt README ChangeLog
73 }

  ViewVC Help
Powered by ViewVC 1.1.20