Gentoo Archives: gentoo-commits

From: "Thilo Bangert (bangert)" <bangert@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/thttpd: thttpd-2.25b-r8.ebuild ChangeLog
Date: Thu, 28 Oct 2010 22:25:33
Message-Id: 20101028222524.87FA120054@flycatcher.gentoo.org
1 bangert 10/10/28 22:25:24
2
3 Modified: ChangeLog
4 Added: thttpd-2.25b-r8.ebuild
5 Log:
6 Bump. EAPI=3, dont freeze when time goes backwards (#327615), dont link
7 statically by default (#273319), respect CFLAGS (#241464), fix illegal
8 PATH_INFO, use Status on all Location headers, use IP from
9 X-Forwarded-For (all #331747).
10
11 (Portage version: 2.2_rc99/cvs/Linux i686)
12
13 Revision Changes Path
14 1.31 www-servers/thttpd/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/ChangeLog?rev=1.31&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/ChangeLog?rev=1.31&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/ChangeLog?r1=1.30&r2=1.31
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v
23 retrieving revision 1.30
24 retrieving revision 1.31
25 diff -u -r1.30 -r1.31
26 --- ChangeLog 9 Aug 2009 13:39:07 -0000 1.30
27 +++ ChangeLog 28 Oct 2010 22:25:24 -0000 1.31
28 @@ -1,6 +1,19 @@
29 # ChangeLog for www-servers/thttpd
30 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v 1.30 2009/08/09 13:39:07 ssuominen Exp $
32 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
33 +# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v 1.31 2010/10/28 22:25:24 bangert Exp $
34 +
35 +*thttpd-2.25b-r8 (28 Oct 2010)
36 +
37 + 28 Oct 2010; Thilo Bangert <bangert@g.o> +thttpd-2.25b-r8.ebuild,
38 + +files/thttpd-2.25b-fix-illegal-path-info.patch,
39 + +files/thttpd-2.25b-monolithic-timer.patch,
40 + +files/thttpd-2.25b-respect-CFLAGS--dont-link-static.patch,
41 + +files/thttpd-2.25b-use-Status-header.patch,
42 + +files/thttpd-2.25b-use-X-Forwarded-For-header.patch:
43 + Bump. EAPI=3, dont freeze when time goes backwards (#327615), dont link
44 + statically by default (#273319), respect CFLAGS (#241464), fix illegal
45 + PATH_INFO, use Status on all Location headers, use IP from
46 + X-Forwarded-For (all #331747).
47
48 09 Aug 2009; Samuli Suominen <ssuominen@g.o>
49 thttpd-2.25b-r7.ebuild, +files/thttpd-2.25b-glibc-2.10.patch:
50
51
52
53 1.1 www-servers/thttpd/thttpd-2.25b-r8.ebuild
54
55 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/thttpd-2.25b-r8.ebuild?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/thttpd-2.25b-r8.ebuild?rev=1.1&content-type=text/plain
57
58 Index: thttpd-2.25b-r8.ebuild
59 ===================================================================
60 # Copyright 1999-2010 Gentoo Foundation
61 # Distributed under the terms of the GNU General Public License v2
62 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.25b-r8.ebuild,v 1.1 2010/10/28 22:25:24 bangert Exp $
63
64 EAPI="3"
65
66 WANT_AUTOCONF=2.1
67 inherit eutils flag-o-matic autotools
68
69 MY_P="${P%[a-z]*}"
70
71 DESCRIPTION="Small and fast multiplexing webserver."
72 HOMEPAGE="http://www.acme.com/software/thttpd/"
73 SRC_URI="http://www.acme.com/software/thttpd/${P}.tar.gz"
74
75 LICENSE="BSD"
76 SLOT="0"
77 KEYWORDS="~amd64 ~hppa ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
78 IUSE="static"
79
80 THTTPD_USER=thttpd
81 THTTPD_GROUP=thttpd
82
83 src_prepare() {
84 epatch "${FILESDIR}"/${MY_P}/*.diff
85 epatch "${FILESDIR}"/${P}-glibc-2.10.patch
86 epatch "${FILESDIR}"/${P}-fix-illegal-path-info.patch
87 epatch "${FILESDIR}"/${P}-monolithic-timer.patch
88 epatch "${FILESDIR}"/${P}-use-Status-header.patch
89 epatch "${FILESDIR}"/${P}-use-X-Forwarded-For-header.patch
90 epatch "${FILESDIR}"/${P}-respect-CFLAGS--dont-link-static.patch
91 eautoreconf
92 }
93
94 pkg_setup() {
95 ebegin "Creating thttpd user and group"
96 enewgroup ${THTTPD_GROUP}
97 enewuser ${THTTPD_USER} -1 -1 -1 ${THTTPD_GROUP}
98 eend ${?}
99 }
100
101 src_configure() {
102 use static && append-ldflags -static
103 econf || die "econf failed"
104 }
105
106 src_compile() {
107 emake CC="$(tc-getCC)" || die "emake failed"
108 }
109
110 src_install () {
111 dodir /usr/share/man/man1
112 make prefix="${D}"/usr \
113 MANDIR="${D}"/usr/share/man \
114 WEBGROUP=${THTTPD_GROUP} \
115 WEBDIR="${D}"/var/www/localhost \
116 "$@" install || die "make install failed"
117
118 mv "${D}"/usr/sbin/{,th_}htpasswd
119 mv "${D}"/usr/share/man/man1/{,th_}htpasswd.1
120
121 newinitd "${FILESDIR}"/${MY_P}/thttpd.init thttpd
122 newconfd "${FILESDIR}"/${MY_P}/thttpd.confd thttpd
123
124 dodoc README INSTALL TODO
125
126 insinto /etc/logrotate.d
127 newins "${FILESDIR}/thttpd.logrotate" thttpd
128
129 insinto /etc/thttpd
130 doins "${FILESDIR}"/${MY_P}/thttpd.conf.sample
131 }
132
133 pkg_postinst() {
134 elog "Adjust THTTPD_DOCROOT in /etc/conf.d/thttpd !"
135 }