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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/Attic/thttpd-2.26.2.ebuild,v 1.1 2012/04/04 12:24:20 blueness Exp $ 3# $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/Attic/thttpd-2.26.2.ebuild,v 1.2 2012/04/14 03:57:26 zmedico Exp $
4 4
5EAPI="4" 5EAPI="4"
6 6
7inherit eutils flag-o-matic toolchain-funcs 7inherit eutils flag-o-matic toolchain-funcs
8 8
13SRC_URI="http://opensource.dyc.edu/pub/sthttpd/${MY_P}.tar.gz" 13SRC_URI="http://opensource.dyc.edu/pub/sthttpd/${MY_P}.tar.gz"
14S="${WORKDIR}/${MY_P}" 14S="${WORKDIR}/${MY_P}"
15 15
16LICENSE="BSD" 16LICENSE="BSD"
17SLOT="0" 17SLOT="0"
18KEYWORDS="~amd64 ~x86" 18KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
19IUSE="" 19IUSE=""
20 20
21RDEPEND="" 21RDEPEND=""
22DEPEND="" 22DEPEND=""
23 23
24THTTPD_USER=thttpd 24THTTPD_USER=thttpd
25THTTPD_GROUP=thttpd 25THTTPD_GROUP=thttpd
26THTTPD_DOCROOT="/var/www/localhost/htdocs" 26THTTPD_DOCROOT="${EPREFIX}/var/www/localhost/htdocs"
27 27
28DOCS=( README TODO ) 28DOCS=( README TODO )
29 29
30pkg_setup() { 30pkg_setup() {
31 ebegin "Creating thttpd user and group" 31 ebegin "Creating thttpd user and group"
49 insinto /etc/thttpd 49 insinto /etc/thttpd
50 doins "${FILESDIR}"/thttpd.conf.sample 50 doins "${FILESDIR}"/thttpd.conf.sample
51} 51}
52 52
53pkg_postinst() { 53pkg_postinst() {
54 chown root:${THTTPD_GROUP} "${ROOT}/usr/sbin/makeweb" \ 54 chown root:${THTTPD_GROUP} "${EROOT}/usr/sbin/makeweb" \
55 || die "Failed chown makeweb" 55 || die "Failed chown makeweb"
56 chmod 2751 "${ROOT}/usr/sbin/makeweb" \ 56 chmod 2751 "${EROOT}/usr/sbin/makeweb" \
57 || die "Failed chmod makeweb" 57 || die "Failed chmod makeweb"
58 chmod 755 "${THTTPD_DOCROOT}/cgi-bin/printenv" \ 58 chmod 755 "${THTTPD_DOCROOT}/cgi-bin/printenv" \
59 || die "Failed chmod printenv" 59 || die "Failed chmod printenv"
60 elog "Adjust THTTPD_DOCROOT in /etc/conf.d/thttpd !" 60 elog "Adjust THTTPD_DOCROOT in /etc/conf.d/thttpd !"
61} 61}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20