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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Mar 18 18:00:00 2012 UTC (2 years, 5 months ago) by armin76
Branch: MAIN
Changes since 1.3: +2 -2 lines
Drop sparc keywords

(Portage version: 2.1.10.49/cvs/Linux ia64)

1 radhermit 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.4 # $Header: /var/cvsroot/gentoo-x86/www-servers/monkeyd/monkeyd-0.31.0.ebuild,v 1.3 2012/02/28 21:56:48 ranger Exp $
4 radhermit 1.1
5     EAPI="4"
6    
7     inherit toolchain-funcs depend.php multilib
8    
9     WEBROOT=/var/www/localhost
10    
11     MY_P="${PN/d}-${PV}"
12     DESCRIPTION="A small, fast, and scalable web server"
13     HOMEPAGE="http://www.monkey-project.com/"
14     SRC_URI="http://monkey-project.com/releases/${PV:0:4}/${MY_P}.tar.gz"
15    
16     LICENSE="GPL-2"
17     SLOT="0"
18 armin76 1.4 KEYWORDS="~amd64 ~mips ppc x86"
19 radhermit 1.1 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     # Don't install the banana script, it is broken as is anyway and the
31     # functionality is provided by the ${FILESDIR}/monkeyd.init.d script.
32     sed -i '/install -m 755 bin\/banana/d' configure || die "sed banana"
33    
34     # Don't explicitly strip files
35     sed -i -e '/$STRIP /d' -e 's/install -s -m 644/install -m 755/' configure || die
36     }
37    
38     src_configure() {
39     # Non-autotools configure
40     ./configure \
41     --prefix=/usr \
42     --bindir=/usr/bin \
43     --datadir=${WEBROOT}/htdocs \
44     --logdir=/var/log/${PN} \
45     --mandir=/usr/share/man \
46     --plugdir=/usr/$(get_libdir)/monkeyd/plugins \
47     --sysconfdir=/etc/${PN} \
48     || die
49     }
50    
51     src_compile() {
52     emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
53     }
54    
55     src_install() {
56     default
57    
58     if use php ; then
59     sed -i -e '/^#AddScript application\/x-httpd-php/s:^#::' "${D}"/etc/monkeyd/monkey.conf || die
60     sed -i -e 's:/home/my_home/php/bin/php:/usr/bin/php-cgi:' "${D}"/etc/monkeyd/monkey.conf || die
61     fi
62    
63     mv "${D}"${WEBROOT}/htdocs/{index,index-monkey}.html
64    
65     sed -i -e "s:/var/log/monkeyd/monkey.pid:/var/run/monkey.pid:" "${D}"/etc/monkeyd/monkey.conf || die
66     newinitd "${FILESDIR}"/monkeyd.init.d monkeyd
67     newconfd "${FILESDIR}"/monkeyd.conf.d monkeyd
68     }

  ViewVC Help
Powered by ViewVC 1.1.20