/[gentoo-x86]/www-servers/thttpd/thttpd-2.25b-r4.ebuild
Gentoo

Contents of /www-servers/thttpd/thttpd-2.25b-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Sep 6 14:31:25 2006 UTC (7 years, 10 months ago) by dsd
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Fix init script to change into configured directory before starting, reported by Laurence Withers in bug #142047
(Portage version: 2.1.1_rc1-r4)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.25b-r4.ebuild,v 1.5 2006/01/01 20:55:11 metalgod Exp $
4
5 inherit eutils flag-o-matic
6
7 MY_P="${P%[a-z]*}"
8
9 DESCRIPTION="Small and fast multiplexing webserver."
10 HOMEPAGE="http://www.acme.com/software/thttpd/"
11 SRC_URI="http://www.acme.com/software/thttpd/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="~amd64 ~hppa ppc x86"
16 IUSE="static"
17
18 src_unpack() {
19 unpack ${A}
20 cd ${S}
21 epatch ${FILESDIR}/${MY_P}/fix-insecure-tmp-creation-CVE-2005-3124.diff
22 }
23
24 src_compile() {
25 ## TODO: what to do with IPv6?
26
27 append-ldflags $(bindnow-flags)
28 use static && append-ldflags -static
29
30 econf || die "econf failed"
31 emake || die "emake failed"
32 }
33
34 src_install () {
35 dodir /usr/share/man/man1
36 make prefix=${D}/usr \
37 MANDIR=${D}/usr/share/man \
38 WEBGROUP=nogroup \
39 WEBDIR=${D}/var/www/localhost \
40 "$@" install || die "make install failed"
41
42 mv ${D}/usr/sbin/{,th_}htpasswd
43 mv ${D}/usr/share/man/man1/{,th_}htpasswd.1
44
45 newinitd ${FILESDIR}/${MY_P}/thttpd.init thttpd
46 newconfd ${FILESDIR}/${MY_P}/thttpd.confd thttpd
47
48 dodoc README INSTALL TODO
49
50 insinto /etc/thttpd
51 doins ${FILESDIR}/${MY_P}/thttpd.conf.sample
52 }
53
54 pkg_postinst() {
55 einfo "Adjust THTTPD_DOCROOT in /etc/conf.d/thttpd !"
56 }

  ViewVC Help
Powered by ViewVC 1.1.20