diff options
author | Stuart Herbert <stuart@gentoo.org> | 2006-10-24 07:23:31 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2006-10-24 07:23:31 +0000 |
commit | 9530276528b803b3c005c3edb72d41ca1b40414a (patch) | |
tree | 1c8a82240f896951a4fe595cdea0ab1730e97241 /www-servers/shttpd | |
parent | Fixing compile errors as described in bug #151289 thanks to Robert Buchholz f... (diff) | |
download | gentoo-2-9530276528b803b3c005c3edb72d41ca1b40414a.tar.gz gentoo-2-9530276528b803b3c005c3edb72d41ca1b40414a.tar.bz2 gentoo-2-9530276528b803b3c005c3edb72d41ca1b40414a.zip |
Version bump for bug 150748
(Portage version: 2.1.2_pre2-r9)
Diffstat (limited to 'www-servers/shttpd')
-rw-r--r-- | www-servers/shttpd/ChangeLog | 9 | ||||
-rw-r--r-- | www-servers/shttpd/files/digest-shttpd-1.35 | 3 | ||||
-rw-r--r-- | www-servers/shttpd/shttpd-1.35.ebuild | 68 |
3 files changed, 78 insertions, 2 deletions
diff --git a/www-servers/shttpd/ChangeLog b/www-servers/shttpd/ChangeLog index a7e5e188e7d7..9b237ed414b7 100644 --- a/www-servers/shttpd/ChangeLog +++ b/www-servers/shttpd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-servers/shttpd -# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-servers/shttpd/ChangeLog,v 1.7 2005/08/23 13:56:47 ka0ttic Exp $ +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/shttpd/ChangeLog,v 1.8 2006/10/24 07:23:30 stuart Exp $ + +*shttpd-1.35 (24 Oct 2006) + + 24 Oct 2006; Stuart Herbert <stuart@gentoo.org> +shttpd-1.35.ebuild: + Version bump; for security bug #150748 23 Aug 2005; Aaron Walker <ka0ttic@gentoo.org> shttpd-1.25.ebuild: Use -1 instead of /bin/false, bug #103421. diff --git a/www-servers/shttpd/files/digest-shttpd-1.35 b/www-servers/shttpd/files/digest-shttpd-1.35 new file mode 100644 index 000000000000..28a7564889cc --- /dev/null +++ b/www-servers/shttpd/files/digest-shttpd-1.35 @@ -0,0 +1,3 @@ +MD5 bd55ca04d480a2a959fc6374daa9acef shttpd-1.35.tar.gz 48962 +RMD160 34b6bacf1735e10d714835994ef5e5618c66a35c shttpd-1.35.tar.gz 48962 +SHA256 b64befdc004f5f3627cd4ea89ebfa3e7db5c671e93d1b8b461b11be7b2e2e5d2 shttpd-1.35.tar.gz 48962 diff --git a/www-servers/shttpd/shttpd-1.35.ebuild b/www-servers/shttpd/shttpd-1.35.ebuild new file mode 100644 index 000000000000..e10036876c91 --- /dev/null +++ b/www-servers/shttpd/shttpd-1.35.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/shttpd/shttpd-1.35.ebuild,v 1.1 2006/10/24 07:23:30 stuart Exp $ + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="Small and embeddable HTTPD server with (optional) CGI support" +HOMEPAGE="http://shttpd.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="ssl cgi threads dmalloc" + +DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g ) + dmalloc? ( >=dev-libs/dmalloc-5.3.0 )" +RDEPEND="${DEPEND} + app-misc/mime-types" + +src_compile() { + local libs + CC=$(tc-getCC) + + if use ssl ; then + libs="${libs} -lcrypto -lssl" + append-flags -DWITH_SSL + fi + + if use dmalloc ; then + libs="${libs} -ldmalloc" + append-flags -DWITH_DMALLOC + fi + + use cgi || append-flags -DNO_CGI + use threads && append-flags -DMT + + append-flags -DCONFIG=\"/etc/${PN}/${PN}.conf\" -DWITH_PUT_AND_DELETE + echo "${CC} ${CFLAGS} ${PN}.c -o ${PN} ${LDFLAGS} ${libs}" + ${CC} ${CFLAGS} ${PN}.c -o ${PN} ${LDFLAGS} ${libs} || die "compile failure" +} + +src_install() { + keepdir /var/log/${PN} + dosbin ${PN} || die + doman ${PN}.1 || die + + insinto /etc/${PN} + doins ${FILESDIR}/${PN}.conf ${PN}.pem || die + + insinto /etc/xinetd.d + newins ${FILESDIR}/${PN}.xinetd ${PN} || die + newinitd ${FILESDIR}/${PN}.initd ${PN} || die + newconfd ${FILESDIR}/${PN}.confd ${PN} || die + + docinto embed + dodoc embed/* shttpd.c +} + +pkg_postinst() { + enewgroup shttpd + enewuser shttpd -1 -1 /var/www/localhost/htdocs shttpd + einfo + einfo "You can run shttpd standalone or in xinetd mode." + einfo "Don't forget to edit /etc/shttpd/shttpd.conf." + einfo "Please read http://shttpd.sourceforge.net/ for more info!" + einfo +} |