/[gentoo-x86]/www-servers/webfs/webfs-1.21-r2.ebuild
Gentoo

Contents of /www-servers/webfs/webfs-1.21-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Jul 29 18:15:51 2012 UTC (20 months, 2 weeks ago) by armin76
Branch: MAIN
Changes since 1.4: +2 -2 lines
Drop alpha/sparc keywords

(Portage version: 2.1.11.5/cvs/Linux ia64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-servers/webfs/webfs-1.21-r2.ebuild,v 1.4 2012/06/29 12:58:34 ranger Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Lightweight HTTP server for static content"
8 SRC_URI="http://dl.bytesex.org/releases/${PN}/${P}.tar.gz"
9 HOMEPAGE="http://linux.bytesex.org/misc/webfs.html"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ppc x86"
14 IUSE="ssl threads"
15
16 DEPEND="ssl? ( dev-libs/openssl )"
17
18 RDEPEND="${DEPEND}
19 app-misc/mime-types"
20
21 src_unpack() {
22 unpack ${A}
23 cd "${S}"
24 epatch "${FILESDIR}/webfs-1.21-Variables.mk-dont-strip-binaries-on-install.patch"
25 }
26
27 src_compile() {
28 local myconf
29 use ssl || myconf="${myconf} USE_SSL=no"
30 use threads && myconf="${myconf} USE_THREADS=yes"
31
32 emake prefix=/usr ${myconf} || die "emake failed"
33 }
34
35 src_install() {
36 local myconf
37 use ssl || myconf="${myconf} USE_SSL=no"
38 use threads && myconf="${myconf} USE_THREADS=yes"
39 einstall ${myconf} mandir="${D}/usr/share/man" || die "make install failed"
40 newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} || die "newinitd failed"
41 newconfd "${FILESDIR}"/${PN}.confd ${PN} || die "newconfd failed"
42 dodoc README
43 }

  ViewVC Help
Powered by ViewVC 1.1.20