/[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.1.1 - (hide annotations) (download) (vendor branch)
Wed Nov 30 09:46:42 2005 UTC (8 years, 9 months ago) by chriswhite
Changes since 1.1: +2 -2 lines
*** empty log message ***

1 ka0ttic 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 chriswhite 1.1.1.1 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.25b.ebuild,v 1.2 2005/05/17 18:10:17 hansmi Exp $
4 ka0ttic 1.1
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 chriswhite 1.1.1.1 KEYWORDS="ppc x86"
16 ka0ttic 1.1 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