/[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.1 - (hide annotations) (download)
Wed Apr 4 12:24:20 2012 UTC (2 years, 4 months ago) by blueness
Branch: MAIN
Version bump after I forked the code

(Portage version: 2.1.10.49/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     # $Header: /var/cvsroot/gentoo-x86/www-servers/thttpd/thttpd-2.25b-r9.ebuild,v 1.1 2012/03/24 02:59:02 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"
17     SLOT="0"
18     KEYWORDS="~amd64 ~x86"
19     IUSE=""
20    
21     RDEPEND=""
22     DEPEND=""
23    
24     THTTPD_USER=thttpd
25     THTTPD_GROUP=thttpd
26     THTTPD_DOCROOT="/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} "${ROOT}/usr/sbin/makeweb" \
55     || die "Failed chown makeweb"
56     chmod 2751 "${ROOT}/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