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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Feb 9 16:12:53 2005 UTC (9 years, 2 months ago) by ka0ttic
Branch: MAIN
Fix versioning (b is part of PV). Also fixed setXid QA notice for makeweb executable. Marked stable on x86.
(Portage version: 2.0.51-r15)

1 # Copyright 1999-2005 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.25.ebuild,v 1.1 2004/08/08 18:34:03 stuart Exp $
4
5 inherit 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="x86 ~ppc"
16 IUSE=""
17
18 DEPEND="virtual/libc"
19
20 src_compile() {
21 append-ldflags -Wl,-z,now
22
23 ## TODO: what to do with IPv6?
24 econf || die
25 # if use ipv6; then
26 # :
27 # fi
28 emake || die
29 }
30
31 src_install () {
32 dodir /usr/share/man/man1
33 make prefix=${D}/usr \
34 MANDIR=${D}/usr/share/man \
35 WEBGROUP=nogroup \
36 WEBDIR=${D}/var/www/localhost \
37 "$@" install || die "installation failed :("
38
39 mv ${D}/usr/sbin/{,th_}htpasswd
40 mv ${D}/usr/share/man/man1/{,th_}htpasswd.1
41
42 newinitd ${FILESDIR}/${MY_P}/thttpd.init thttpd
43 newconfd ${FILESDIR}/${MY_P}/thttpd.confd thttpd
44
45 dodoc README INSTALL TODO
46
47 insinto /etc/thttpd
48 doins ${FILESDIR}/${MY_P}/thttpd.conf.sample
49 }
50
51 pkg_postinst() {
52 einfo "Adjust THTTPD_DOCROOT in /etc/conf.d/thttpd !"
53 }

  ViewVC Help
Powered by ViewVC 1.1.20