/[gentoo-x86]/www-servers/thttpd/thttpd-2.26.4-r1.ebuild
Gentoo

Contents of /www-servers/thttpd/thttpd-2.26.4-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Dec 29 14:33:27 2012 UTC (18 months, 1 week ago) by ago
Branch: MAIN
Changes since 1.8: +2 -2 lines
Stable for sparc, wrt bug #441548

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.26.4-r1.ebuild,v 1.8 2012/11/22 14:34:07 blueness Exp $
4
5 EAPI="4"
6
7 inherit eutils flag-o-matic toolchain-funcs
8
9 MY_P="s${P}"
10
11 DESCRIPTION="Fork of thttpd, a small, fast, multiplexing webserver."
12 HOMEPAGE="http://opensource.dyc.edu/sthttpd"
13 SRC_URI="http://opensource.dyc.edu/pub/sthttpd/${MY_P}.tar.gz"
14 S="${WORKDIR}/${MY_P}"
15
16 LICENSE="BSD GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 arm ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
19 IUSE=""
20
21 RDEPEND=""
22 DEPEND=""
23
24 WEBROOT="/var/www/localhost"
25
26 THTTPD_USER=thttpd
27 THTTPD_GROUP=thttpd
28 THTTPD_DOCROOT="${EPREFIX}${WEBROOT}/htdocs"
29
30 DOCS=( README TODO )
31
32 pkg_setup() {
33 ebegin "Creating thttpd user and group"
34 enewgroup ${THTTPD_GROUP}
35 enewuser ${THTTPD_USER} -1 -1 -1 ${THTTPD_GROUP}
36 }
37
38 src_configure() {
39 econf WEBDIR=${THTTPD_DOCROOT}
40 }
41
42 src_install () {
43 default
44
45 newinitd "${FILESDIR}"/thttpd.init.1 thttpd
46 newconfd "${FILESDIR}"/thttpd.confd.1 thttpd
47
48 insinto /etc/logrotate.d
49 newins "${FILESDIR}/thttpd.logrotate" thttpd
50
51 insinto /etc/thttpd
52 doins "${FILESDIR}"/thttpd.conf.sample
53
54 #move htdocs to docdir, bug #429632
55 docompress -x /usr/share/doc/"${PF}"/htdocs.dist
56 mv "${ED}"${WEBROOT}/htdocs \
57 "${ED}"/usr/share/doc/"${PF}"/htdocs.dist
58 mkdir "${ED}"${WEBROOT}/htdocs
59
60 keepdir ${WEBROOT}/htdocs
61
62 chown root:${THTTPD_GROUP} "${ED}/usr/sbin/makeweb" \
63 || die "Failed chown makeweb"
64 chmod 2751 "${ED}/usr/sbin/makeweb" \
65 || die "Failed chmod makeweb"
66 chmod 755 "${ED}/usr/share/doc/${PF}/htdocs.dist/cgi-bin/printenv" \
67 || die "Failed chmod printenv"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20