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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Feb 11 03:07:39 2012 UTC (2 years, 7 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20