/[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.7 - (hide annotations) (download)
Wed Jul 11 23:36:11 2012 UTC (2 years, 2 months ago) by blueness
Branch: MAIN
Changes since 1.6: +2 -2 lines
Add GPL-2 for init scripts, bug #426182

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 blueness 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 blueness 1.7 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.26.2.ebuild,v 1.6 2012/06/27 15:57:02 jer Exp $
4 blueness 1.1
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 blueness 1.7 LICENSE="BSD GPL-2"
17 blueness 1.1 SLOT="0"
18 jer 1.6 KEYWORDS="amd64 ~hppa ~mips x86 ~amd64-linux ~x86-linux"
19 blueness 1.1 IUSE=""
20    
21     RDEPEND=""
22     DEPEND=""
23    
24     THTTPD_USER=thttpd
25     THTTPD_GROUP=thttpd
26 zmedico 1.2 THTTPD_DOCROOT="${EPREFIX}/var/www/localhost/htdocs"
27 blueness 1.1
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 zmedico 1.2 chown root:${THTTPD_GROUP} "${EROOT}/usr/sbin/makeweb" \
55 blueness 1.1 || die "Failed chown makeweb"
56 zmedico 1.2 chmod 2751 "${EROOT}/usr/sbin/makeweb" \
57 blueness 1.1 || 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