/[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.2 - (hide annotations) (download)
Sun Feb 20 22:47:11 2005 UTC (9 years, 5 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Dont install the banana script #82567 and fix the init.d script to work better #82566 by James Rowe.
(Portage version: 2.0.51-r15)

1 vapier 1.1 # Copyright 1999-2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 vapier 1.2 # $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/monkeyd-0.9.0.ebuild,v 1.1 2004/12/09 02:05:56 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="~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