/[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 - (hide annotations) (download)
Sat Dec 29 14:33:27 2012 UTC (23 months, 3 weeks 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 blueness 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.9 # $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 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     LICENSE="BSD GPL-2"
17     SLOT="0"
18 ago 1.9 KEYWORDS="amd64 arm ~hppa ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
19 blueness 1.1 IUSE=""
20    
21     RDEPEND=""
22     DEPEND=""
23    
24 blueness 1.2 WEBROOT="/var/www/localhost"
25    
26 blueness 1.1 THTTPD_USER=thttpd
27     THTTPD_GROUP=thttpd
28 blueness 1.2 THTTPD_DOCROOT="${EPREFIX}${WEBROOT}/htdocs"
29 blueness 1.1
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 blueness 1.2 #move htdocs to docdir, bug #429632
55 blueness 1.1 docompress -x /usr/share/doc/"${PF}"/htdocs.dist
56 blueness 1.2 mv "${ED}"${WEBROOT}/htdocs \
57 blueness 1.1 "${ED}"/usr/share/doc/"${PF}"/htdocs.dist
58 blueness 1.2 mkdir "${ED}"${WEBROOT}/htdocs
59 blueness 1.1
60 blueness 1.2 keepdir ${WEBROOT}/htdocs
61 blueness 1.1
62 blueness 1.8 chown root:${THTTPD_GROUP} "${ED}/usr/sbin/makeweb" \
63 blueness 1.1 || die "Failed chown makeweb"
64 blueness 1.8 chmod 2751 "${ED}/usr/sbin/makeweb" \
65 blueness 1.1 || die "Failed chmod makeweb"
66 blueness 1.8 chmod 755 "${ED}/usr/share/doc/${PF}/htdocs.dist/cgi-bin/printenv" \
67 blueness 1.1 || die "Failed chmod printenv"
68     }

  ViewVC Help
Powered by ViewVC 1.1.20