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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Thu Jun 26 08:39:18 2008 UTC (6 years, 2 months ago) by bangert
Branch: MAIN
Changes since 1.5: +12 -14 lines
remove bindnow-flags (bug #227029) - remove ancient version - fix quoting
(Portage version: 2.1.4.4)

1 bangert 1.6 # Copyright 1999-2008 Gentoo Foundation
2 bangert 1.1 # Distributed under the terms of the GNU General Public License v2
3 bangert 1.6 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.25b-r7.ebuild,v 1.5 2007/10/01 17:53:45 fmccor Exp $
4 bangert 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 fmccor 1.5 KEYWORDS="amd64 ~hppa ~mips ppc sparc x86 ~x86-fbsd"
16 bangert 1.1 IUSE="static"
17    
18     THTTPD_USER=thttpd
19     THTTPD_GROUP=thttpd
20    
21     src_unpack() {
22     unpack ${A}
23 bangert 1.6 cd "${S}"
24     epatch "${FILESDIR}"/${MY_P}/*.diff
25 bangert 1.1 }
26    
27     pkg_setup() {
28     enewgroup ${THTTPD_GROUP}
29     enewuser ${THTTPD_USER} -1 -1 -1 ${THTTPD_GROUP}
30     }
31    
32     src_compile() {
33     ## TODO: what to do with IPv6?
34     use static && append-ldflags -static
35    
36     econf || die "econf failed"
37     emake || die "emake failed"
38     }
39    
40     src_install () {
41     dodir /usr/share/man/man1
42 bangert 1.6 make prefix="${D}"/usr \
43     MANDIR="${D}"/usr/share/man \
44 bangert 1.1 WEBGROUP=${THTTPD_GROUP} \
45 bangert 1.6 WEBDIR="${D}"/var/www/localhost \
46 bangert 1.1 "$@" install || die "make install failed"
47    
48 bangert 1.6 mv "${D}"/usr/sbin/{,th_}htpasswd
49     mv "${D}"/usr/share/man/man1/{,th_}htpasswd.1
50 bangert 1.1
51 bangert 1.6 newinitd "${FILESDIR}"/${MY_P}/thttpd.init thttpd
52     newconfd "${FILESDIR}"/${MY_P}/thttpd.confd thttpd
53 bangert 1.1
54     dodoc README INSTALL TODO
55    
56     insinto /etc/logrotate.d
57     newins "${FILESDIR}/thttpd.logrotate" thttpd
58    
59     insinto /etc/thttpd
60 bangert 1.6 doins "${FILESDIR}"/${MY_P}/thttpd.conf.sample
61 bangert 1.1 }
62    
63     pkg_postinst() {
64     elog "Adjust THTTPD_DOCROOT in /etc/conf.d/thttpd !"
65     }

  ViewVC Help
Powered by ViewVC 1.1.20