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

Contents of /www-servers/thttpd/thttpd-2.26.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sun Aug 19 16:25:30 2012 UTC (22 months, 3 weeks ago) by armin76
Branch: MAIN
Changes since 1.8: +2 -2 lines
Re-add ~sparc wrt #422445

(Portage version: 2.1.11.5/cvs/Linux ia64)

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.2.ebuild,v 1.8 2012/07/13 13:54:39 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 THTTPD_USER=thttpd
25 THTTPD_GROUP=thttpd
26 THTTPD_DOCROOT="${EPREFIX}/var/www/localhost/htdocs"
27
28 DOCS=( README TODO )
29
30 pkg_setup() {
31 ebegin "Creating thttpd user and group"
32 enewgroup ${THTTPD_GROUP}
33 enewuser ${THTTPD_USER} -1 -1 -1 ${THTTPD_GROUP}
34 }
35
36 src_configure() {
37 econf WEBDIR=${THTTPD_DOCROOT}
38 }
39
40 src_install () {
41 default
42
43 newinitd "${FILESDIR}"/thttpd.init thttpd
44 newconfd "${FILESDIR}"/thttpd.confd thttpd
45
46 insinto /etc/logrotate.d
47 newins "${FILESDIR}/thttpd.logrotate" thttpd
48
49 insinto /etc/thttpd
50 doins "${FILESDIR}"/thttpd.conf.sample
51 }
52
53 pkg_postinst() {
54 chown root:${THTTPD_GROUP} "${EROOT}/usr/sbin/makeweb" \
55 || die "Failed chown makeweb"
56 chmod 2751 "${EROOT}/usr/sbin/makeweb" \
57 || die "Failed chmod makeweb"
58 chmod 755 "${THTTPD_DOCROOT}/cgi-bin/printenv" \
59 || die "Failed chmod printenv"
60 elog "Adjust THTTPD_DOCROOT in /etc/conf.d/thttpd !"
61 }

  ViewVC Help
Powered by ViewVC 1.1.20