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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Feb 11 03:07:39 2012 UTC (3 years, 1 month 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-2009 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-r1.ebuild,v 1.2 2009/04/20 08:09:58 bangert Exp $
4
5 EAPI="2"
6
7 inherit toolchain-funcs eutils depend.php
8
9 WEBROOT=/var/www/localhost
10
11 MY_P="${PN/d}-${PV}"
12 DESCRIPTION="Fast, efficient, (REALLY) small, and easy to configure web server"
13 HOMEPAGE="http://monkeyd.sourceforge.net/"
14 SRC_URI="http://monkeyd.sourceforge.net/versions/${MY_P}.tar.gz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~amd64 ~mips ~ppc ~sparc ~x86"
19 IUSE="php"
20
21 RDEPEND="php? ( virtual/httpd-php )"
22
23 S="${WORKDIR}/${MY_P}"
24
25 pkg_setup() {
26 use php && require_php_cgi
27 }
28
29 src_prepare() {
30 epatch "${FILESDIR}/monkeyd-0.9.2-honor-LDFLAGS-and-support--as-needed-and-fix-jobserver.patch"
31
32 # Don't install the banana script, it is broken as is anyway and the
33 # functionality is provided by the ${FILESDIR}/monkeyd.init.d script.
34 sed -i '/install -m 755 bin\/banana/d' configure || die "sed banana"
35 }
36
37 src_configure() {
38 # monkey has it's own funky script ... cant use econf
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 }
49
50 src_compile() {
51 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed"
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 "make install failed"
64
65 if use php ; then
66 dosed '/^#AddScript application\/x-httpd-php/s:^#::' /etc/monkeyd/monkey.conf
67 dosed 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' /etc/monkeyd/monkey.conf
68 fi
69
70 mv "${D}"${WEBROOT}/htdocs/{index,index-monkey}.html
71
72 dosed "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" /etc/monkeyd/monkey.conf
73 newinitd "${FILESDIR}"/monkeyd.init.d monkeyd
74 newconfd "${FILESDIR}"/monkeyd.conf.d monkeyd
75 dodoc README MODULES *.txt
76 }

  ViewVC Help
Powered by ViewVC 1.1.20