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-2.27.0.ebuild ChangeLog
Date: Fri, 03 Oct 2014 19:30:36
Message-Id: 20141003193031.E477C6DEC@oystercatcher.gentoo.org
1 blueness 14/10/03 19:30:31
2
3 Modified: ChangeLog
4 Added: thttpd-2.27.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.78 www-servers/thttpd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/ChangeLog?rev=1.78&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/ChangeLog?rev=1.78&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/ChangeLog?r1=1.77&r2=1.78
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v
20 retrieving revision 1.77
21 retrieving revision 1.78
22 diff -u -r1.77 -r1.78
23 --- ChangeLog 10 Aug 2014 20:09:17 -0000 1.77
24 +++ ChangeLog 3 Oct 2014 19:30:31 -0000 1.78
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-servers/thttpd
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v 1.77 2014/08/10 20:09:17 slyfox Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/ChangeLog,v 1.78 2014/10/03 19:30:31 blueness Exp $
30 +
31 +*thttpd-2.27.0 (03 Oct 2014)
32 +
33 + 03 Oct 2014; Anthony G. Basile <blueness@g.o> +thttpd-2.27.0.ebuild,
34 + files/thttpd-renamed-htpasswd.patch:
35 + Version bump
36
37 10 Aug 2014; Sergei Trofimovich <slyfox@g.o> thttpd-2.26.4-r2.ebuild,
38 thttpd-2.26.4-r3.ebuild, thttpd-9999.ebuild:
39
40
41
42 1.1 www-servers/thttpd/thttpd-2.27.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/thttpd-2.27.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thttpd/thttpd-2.27.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: thttpd-2.27.0.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.27.0.ebuild,v 1.1 2014/10/03 19:30:31 blueness Exp $
52
53 EAPI="5"
54
55 inherit autotools eutils flag-o-matic toolchain-funcs user
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 }