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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Feb 9 16:12:53 2005 UTC (9 years, 7 months ago) by ka0ttic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
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-2004 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 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