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

Contents of /net-www/thttpd/thttpd-2.25.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Aug 8 18:34:44 2004 UTC (15 years, 6 months ago) by stuart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Moving to www-servers/thttpd

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-www/thttpd/thttpd-2.25.ebuild,v 1.5 2004/07/01 22:50:41 eradicator Exp $
4
5 MY_P="${P}b"
6
7 DESCRIPTION="Small and fast multiplexing webserver."
8 HOMEPAGE="http://www.acme.com/software/thttpd/"
9 SRC_URI="http://www.acme.com/software/thttpd/${MY_P}.tar.gz"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="~x86 ~ppc"
14 IUSE=""
15
16 DEPEND="virtual/libc"
17 S="${WORKDIR}/${MY_P}"
18
19 src_compile() {
20 ## TODO: what to do with IPv6?
21 econf || die
22 # if use ipv6; then
23 # :
24 # fi
25 emake || die
26 }
27
28 src_install () {
29 mkdir -p ${D}/usr/share/man/man1
30 make prefix=${D}/usr \
31 MANDIR=${D}/usr/share/man \
32 WEBGROUP=nogroup \
33 WEBDIR=${D}/var/www/localhost \
34 "$@" install || die "installation failed :("
35
36 mv ${D}/usr/sbin/{,th_}htpasswd
37 mv ${D}/usr/share/man/man1/{,th_}htpasswd.1
38
39
40 exeinto /etc/init.d
41 newexe ${FILESDIR}/${P}/thttpd.init thttpd
42 insinto /etc/conf.d
43 newins ${FILESDIR}/${P}/thttpd.confd thttpd
44 dodoc README
45
46 insinto /etc/thttpd
47 doins ${FILESDIR}/${P}/thttpd.conf.sample
48 }
49
50 pkg_postinst() {
51 einfo "Adjust THTTPD_DOCROOT in /etc/conf.d/thttpd !"
52 }

  ViewVC Help
Powered by ViewVC 1.1.20