Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/thttpd: thttpd-9999.ebuild ChangeLog
Date: Sat, 01 Jun 2013 14:21:18
Message-Id: 20130601142114.754172171E@flycatcher.gentoo.org
1 blueness 13/06/01 14:21:14
2
3 Modified: ChangeLog
4 Added: thttpd-9999.ebuild
5 Log:
6 Add live ebuild to follow upstream closely
7
8 (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.64 www-servers/thttpd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/ChangeLog?rev=1.64&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/ChangeLog?rev=1.64&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/ChangeLog?r1=1.63&r2=1.64
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v
20 retrieving revision 1.63
21 retrieving revision 1.64
22 diff -u -r1.63 -r1.64
23 --- ChangeLog 2 Apr 2013 10:55:54 -0000 1.63
24 +++ ChangeLog 1 Jun 2013 14:21:14 -0000 1.64
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-servers/thttpd
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v 1.63 2013/04/02 10:55:54 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v 1.64 2013/06/01 14:21:14 blueness Exp $
30 +
31 +*thttpd-9999 (01 Jun 2013)
32 +
33 + 01 Jun 2013; Anthony G. Basile <blueness@g.o>
34 + +files/thttpd-renamed-htpasswd.patch, +thttpd-9999.ebuild:
35 + Add live ebuild to follow upstream closely
36
37 02 Apr 2013; Agostino Sarubbo <ago@g.o> thttpd-2.26.4-r2.ebuild:
38 Stable for sparc, wrt bug #458896
39
40
41
42 1.1 www-servers/thttpd/thttpd-9999.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/thttpd-9999.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/thttpd-9999.ebuild?rev=1.1&content-type=text/plain
46
47 Index: thttpd-9999.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-9999.ebuild,v 1.1 2013/06/01 14:21:14 blueness Exp $
52
53 EAPI="5"
54
55 inherit autotools eutils flag-o-matic toolchain-funcs
56
57 if [[ ${PV} = 9999* ]]
58 then
59 EGIT_REPO_URI="git://opensource.dyc.edu/s${PN}.git"
60 inherit git-2
61 KEYWORDS=""
62 else
63 MY_P="s${P}"
64 S="${WORKDIR}/${MY_P}"
65 SRC_URI="http://opensource.dyc.edu/pub/sthttpd/${MY_P}.tar.gz"
66 KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux"
67 fi
68
69 DESCRIPTION="Fork of thttpd, a small, fast, multiplexing webserver."
70 HOMEPAGE="http://opensource.dyc.edu/sthttpd"
71
72 LICENSE="BSD GPL-2"
73 SLOT="0"
74 IUSE=""
75
76 RDEPEND=""
77 DEPEND=""
78
79 WEBROOT="/var/www/localhost"
80
81 THTTPD_USER=thttpd
82 THTTPD_GROUP=thttpd
83 THTTPD_DOCROOT="${EPREFIX}${WEBROOT}/htdocs"
84
85 DOCS=( README TODO )
86
87 pkg_setup() {
88 ebegin "Creating thttpd user and group"
89 enewgroup ${THTTPD_GROUP}
90 enewuser ${THTTPD_USER} -1 -1 -1 ${THTTPD_GROUP}
91 }
92
93 src_prepare() {
94 epatch "${FILESDIR}"/thttpd-renamed-htpasswd.patch
95 mv "${S}"/extras/{htpasswd.c,th_htpasswd.c}
96 eautoreconf -f -i
97 }
98
99 src_configure() {
100 econf WEBDIR=${THTTPD_DOCROOT}
101 }
102
103 src_install () {
104 default
105
106 newinitd "${FILESDIR}"/thttpd.init.1 thttpd
107 newconfd "${FILESDIR}"/thttpd.confd.1 thttpd
108
109 insinto /etc/logrotate.d
110 newins "${FILESDIR}/thttpd.logrotate" thttpd
111
112 insinto /etc/thttpd
113 doins "${FILESDIR}"/thttpd.conf.sample
114
115 #move htdocs to docdir, bug #429632
116 docompress -x /usr/share/doc/"${PF}"/htdocs.dist
117 mv "${ED}"${WEBROOT}/htdocs \
118 "${ED}"/usr/share/doc/"${PF}"/htdocs.dist
119 mkdir "${ED}"${WEBROOT}/htdocs
120
121 keepdir ${WEBROOT}/htdocs
122
123 chown root:${THTTPD_GROUP} "${ED}/usr/sbin/makeweb" \
124 || die "Failed chown makeweb"
125 chmod 2751 "${ED}/usr/sbin/makeweb" \
126 || die "Failed chmod makeweb"
127 chmod 755 "${ED}/usr/share/doc/${PF}/htdocs.dist/cgi-bin/printenv" \
128 || die "Failed chmod printenv"
129 }