/[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.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Nov 30 09:46:37 2005 UTC (13 years, 11 months ago) by chriswhite
Changes since 1.1: +1 -1 lines
*** empty log message ***

1 vapier 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 chriswhite 1.1.1.1 # $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/monkeyd-0.9.0-r1.ebuild,v 1.1 2005/02/20 22:47:11 vapier Exp $
4 vapier 1.1
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="~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? ( dev-php/php-cgi )"
23    
24     S=${WORKDIR}/${MY_P}
25    
26     src_unpack() {
27     unpack ${A}
28     cd ${S}
29     sed -i -e '/install -m 755 bin\/banana/d' configure || die "sed banana"
30     }
31    
32     src_compile() {
33     # monkey has it's own funky script ... cant use econf
34     env STRIP=true \
35     ./configure \
36     --prefix=/usr \
37     --bindir=/usr/bin \
38     --cgibin=${WEBROOT}/cgi-bin \
39     --sysconfdir=/etc/${PN} \
40     --datadir=${WEBROOT}/htdocs \
41     --logdir=/var/log/${PN} \
42     --lang=en \
43     || die
44     # Don't install the banana script, it is broken as is anyway and the
45     # functionality is provided by the ${FILESDIR}/monkeyd.init.d script.
46     sed -i '/install -m 755 bin\/banana/d' Makefile
47     emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
48     }
49    
50     src_install() {
51     make \
52     PREFIX=${D}/usr \
53     BINDIR=${D}/usr/bin \
54     CGIBIN=${D}${WEBROOT}/cgi-bin \
55     SYSCONFDIR=${D}/etc/${PN} \
56     DATADIR=${D}${WEBROOT}/htdocs \
57     LOGDIR=${D}/var/log/${PN} \
58     install \
59     || die
60     if use php ; then
61     dosed '/^#AddScript application\/x-httpd-php/s:^#::' /etc/monkeyd/monkey.conf
62     dosed 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' /etc/monkeyd/monkey.conf
63     fi
64     [ -e ${ROOT}/${WEBROOT}/htdocs/index.html ] && mv ${D}${WEBROOT}/htdocs/{index,index-monkey}.html
65     dosed "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" /etc/monkeyd/monkey.conf
66     newinitd ${FILESDIR}/monkeyd.init.d monkeyd
67     newconfd ${FILESDIR}/monkeyd.conf.d monkeyd
68     dodoc MODULES HowItWorks.txt README ChangeLog
69     }

  ViewVC Help
Powered by ViewVC 1.1.20