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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20