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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Oct 8 19:58:07 2006 UTC (7 years, 6 months ago) by drizzt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Added ~x86-fbsd keyword.

(Portage version: 2.1.2_pre2-r2)

1 dsd 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 drizzt 1.2 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.25b-r5.ebuild,v 1.1 2006/09/06 14:31:17 dsd Exp $
4 dsd 1.1
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 drizzt 1.2 KEYWORDS="~amd64 ~hppa ppc x86 ~x86-fbsd"
16 dsd 1.1 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