/[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.3 - (hide annotations) (download)
Sun Aug 19 16:25:30 2012 UTC (23 months ago) by armin76
Branch: MAIN
Changes since 1.2: +2 -2 lines
Re-add ~sparc wrt #422445

(Portage version: 2.1.11.5/cvs/Linux ia64)

1 blueness 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 armin76 1.3 # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.26.4-r1.ebuild,v 1.2 2012/08/08 13:24:57 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 armin76 1.3 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    
63     pkg_postinst() {
64     chown root:${THTTPD_GROUP} "${EROOT}/usr/sbin/makeweb" \
65     || die "Failed chown makeweb"
66     chmod 2751 "${EROOT}/usr/sbin/makeweb" \
67     || die "Failed chmod makeweb"
68 blueness 1.2 chmod 755 "${EROOT}/usr/share/doc/${PF}/htdocs.dist/cgi-bin/printenv" \
69 blueness 1.1 || die "Failed chmod printenv"
70     }

  ViewVC Help
Powered by ViewVC 1.1.20