diff options
author | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 19:03:31 +0000 |
---|---|---|
committer | Stuart Herbert <stuart@gentoo.org> | 2004-08-08 19:03:31 +0000 |
commit | c45a25031d0bba7356326daaebb26c3cbb85170e (patch) | |
tree | 2df95153ceaf6be7794411a64b7d2f9f4af861c8 /www-servers/tux | |
parent | stable on ia64 (Manifest recommit) (diff) | |
download | gentoo-2-c45a25031d0bba7356326daaebb26c3cbb85170e.tar.gz gentoo-2-c45a25031d0bba7356326daaebb26c3cbb85170e.tar.bz2 gentoo-2-c45a25031d0bba7356326daaebb26c3cbb85170e.zip |
Moved from net-www/tux to www-servers/tux.
Diffstat (limited to 'www-servers/tux')
-rw-r--r-- | www-servers/tux/ChangeLog | 24 | ||||
-rw-r--r-- | www-servers/tux/Manifest | 17 | ||||
-rw-r--r-- | www-servers/tux/files/digest-tux-2.2.7 | 1 | ||||
-rw-r--r-- | www-servers/tux/files/digest-tux-3.2.16 | 1 | ||||
-rw-r--r-- | www-servers/tux/files/tux.conf.d | 42 | ||||
-rw-r--r-- | www-servers/tux/files/tux.init.d | 62 | ||||
-rw-r--r-- | www-servers/tux/tux-2.2.7.ebuild | 29 | ||||
-rw-r--r-- | www-servers/tux/tux-3.2.16.ebuild | 39 |
8 files changed, 215 insertions, 0 deletions
diff --git a/www-servers/tux/ChangeLog b/www-servers/tux/ChangeLog new file mode 100644 index 000000000000..e37a2e31461a --- /dev/null +++ b/www-servers/tux/ChangeLog @@ -0,0 +1,24 @@ +# ChangeLog for net-www/tux +# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/tux/ChangeLog,v 1.1 2004/08/08 19:03:31 stuart Exp $ + +*tux-2.2.7 (08 Aug 2004) + + 08 Aug 2004; Stuart Herbert <stuart@gentoo.org> +files/tux.conf.d, + +files/tux.init.d, +tux-2.2.7.ebuild, +tux-3.2.16.ebuild: + Moved from net-www/tux to www-servers/tux. + +*tux-3.2.16 (21 Feb 2004) + + 21 Feb 2004; Mike Frysinger <vapier@gentoo.org> : + Version bump. + +*tux-3.2.14 (18 Nov 2003) + + 18 Nov 2003; Mike Frysinger <vapier@gentoo.org> : + Version bump. + +*tux-2.2.7 (17 Jun 2003) + + 17 Jun 2003; Mike Frysinger <vapier@gentoo.org> : + Initial import. Ebuild submitted by me for #7727. diff --git a/www-servers/tux/Manifest b/www-servers/tux/Manifest new file mode 100644 index 000000000000..0eab4a2a2541 --- /dev/null +++ b/www-servers/tux/Manifest @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 5f4031105ba12950f4f06bc46df6535d ChangeLog 520 +MD5 f4e1994b7ee66891df1ce7d94057e8fa tux-2.2.7.ebuild 809 +MD5 7cea7f44637927f9b886849db2dbdbd0 tux-3.2.16.ebuild 988 +MD5 5cdf6a00aa7a9f1a9c960054ddf17917 files/digest-tux-2.2.7 60 +MD5 cfa17291b408a5db403bdaefc13bde68 files/tux.conf.d 1853 +MD5 ea5da7f38eafe7b43c2b6369f5f43d9a files/tux.init.d 1703 +MD5 eec61576fb028448bc45ca00fe54efeb files/digest-tux-3.2.16 61 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.4 (GNU/Linux) + +iD8DBQFA+f6BmdTrptrqvGERApMuAJ4xfdslYrkVvmUarl16DNsZ9iGKpACdFCr4 +C117S5v/vluZxZRxwaDxOSc= +=v8LC +-----END PGP SIGNATURE----- diff --git a/www-servers/tux/files/digest-tux-2.2.7 b/www-servers/tux/files/digest-tux-2.2.7 new file mode 100644 index 000000000000..9d9b100f83ee --- /dev/null +++ b/www-servers/tux/files/digest-tux-2.2.7 @@ -0,0 +1 @@ +MD5 275eb94b7fa7b0c0b2ce7dbdfe760b2b tux-2.2.7.tar.gz 60407 diff --git a/www-servers/tux/files/digest-tux-3.2.16 b/www-servers/tux/files/digest-tux-3.2.16 new file mode 100644 index 000000000000..e9b2d30fb1a0 --- /dev/null +++ b/www-servers/tux/files/digest-tux-3.2.16 @@ -0,0 +1 @@ +MD5 5046ac02f5ce29fefee7bac9842a99e0 tux-3.2.16.tar.gz 62226 diff --git a/www-servers/tux/files/tux.conf.d b/www-servers/tux/files/tux.conf.d new file mode 100644 index 000000000000..7107219ed93d --- /dev/null +++ b/www-servers/tux/files/tux.conf.d @@ -0,0 +1,42 @@ +# Config file for /etc/init.d/tux +# modified from original to be Gentoo like +# $Header: /var/cvsroot/gentoo-x86/www-servers/tux/files/tux.conf.d,v 1.1 2004/08/08 19:03:31 stuart Exp $ + +# TUX_THREADS sets the number of kernel threads (and associated daemon +# threads) that will be used. $TUX_THREADS defaults to 1. +# TUX_THREADS=1 + +# DOCROOT is the document root; it works the same way as other web +# servers such as apache. This must have only 1 trailing /. +TUX_DOCROOT=/var/www/localhost/htdocs/ + +# LOGFILE is the file where tux logs information for each +# request. Note that tux writes log files in a binary format and to +# read them you will need to first convert them into standard +# W3C-conforming HTTPD log files using the utility tux2w3c. If no +# LOGFILE is specified then requests will not be logged. +TUX_LOGFILE=/var/log/tux + +# TUX_UID and TUX_GID are the user and group as which the daemon runs +# This does not mean that you should execute untrusted modules -- they +# are opened as user/group root, which means that the _init() function, +# if it exists, is run as root. This feature is only designed to help +# protect from programming mistakes; it is NOT really a security mechanism. +TUX_UID=nobody +TUX_GID=nobody + +# CGIs can be started in a chroot environment by default. +# set TUX_CGIROOT=/ if you want CGI programs to have access to the whole system. +TUX_CGIROOT=/home/httpd/htdocs + +# each HTTP connection has an individual timer that makes sure +# no connection hangs forever. (due to browser bugs or DoS attacks.) +# TUX_KEEPALIVE=30 + +# TUX_MODULES is a list of user-space TUX modules. User-space TUX +# modules are used to serve dynamically-generated data via tux. +# "man 2 tux" for more information +# TUX_MODULES="demo.tux demo2.tux demo3.tux demo4.tux" + +# TUX_MODULEPATH is the path to user-space TUXapi modules +# TUX_MODULEPATH="/" diff --git a/www-servers/tux/files/tux.init.d b/www-servers/tux/files/tux.init.d new file mode 100644 index 000000000000..14537b670692 --- /dev/null +++ b/www-servers/tux/files/tux.init.d @@ -0,0 +1,62 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/tux/files/tux.init.d,v 1.1 2004/08/08 19:03:31 stuart Exp $ + +checkconfig() { + if [ ! -e /proc/sys/net/tux ] ; then + # maybe they built is a module ... + modprobe tux >& /dev/null + if [ ! -e /proc/sys/net/tux ] ; then + eerror "Make sure tux support is enabled in your kernel!" + return 1 + fi + fi + if [ -z "${TUX_DOCROOT}" ] ; then + eerror "You must specify TUX_DOCROOT in /etc/conf.d/tux" + return 1 + fi + if [ -z "${TUX_UID}" ] || [ -z "${TUX_GID}" ] ; then + eerror "You must specify TUX_UID and TUX_GID in /etc/conf.d/tux" + return 1 + fi + [ -z "${TUX_THREADS}" ] && TUX_THREADS=1 + [ -z "${TUX_CGIROOT}" ] && TUX_CGIROOT=${TUX_DOCROOT} + [ -z "${TUX_KEEPALIVE}" ] && TUX_KEEPALIVE=30 + [ -n "${TUX_MODULEPATH}" ] && TUX_MODULES="-m ${TUX_MODULEPATH} ${TUX_MODULES}" + return 0 +} + +setconfig() { + echo ${TUX_THREADS} > /proc/sys/net/tux/threads + echo ${TUX_DOCROOT} > /proc/sys/net/tux/documentroot + if [ -n "${TUX_LOGFILE}" ] ; then + echo 1 > /proc/sys/net/tux/logging + echo ${TUX_LOGFILE} > /proc/sys/net/tux/logfile + else + echo 0 > /proc/sys/net/tux/logging + fi + echo ${TUX_UID} > /proc/sys/net/tux/cgi_uid + echo ${TUX_GID} > /proc/sys/net/tux/cgi_gid + echo ${TUX_CGIROOT} > /proc/sys/net/tux/cgiroot + echo ${TUX_KEEPALIVE} > /proc/sys/net/tux/keepalive_timeout +} + +start() { + checkconfig || return 1 + + ebegin "Starting tux" + setconfig + /usr/sbin/tux -d \ + -u ${TUX_UID} -g ${TUX_GID} \ + -t ${TUX_THREADS} \ + -r ${TUX_DOCROOT} \ + ${TUX_MODULES} + eend $? +} + +stop() { + ebegin "Stopping tux" + /usr/sbin/tux --stop + eend $? +} diff --git a/www-servers/tux/tux-2.2.7.ebuild b/www-servers/tux/tux-2.2.7.ebuild new file mode 100644 index 000000000000..426f79de91ec --- /dev/null +++ b/www-servers/tux/tux-2.2.7.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/tux/tux-2.2.7.ebuild,v 1.1 2004/08/08 19:03:31 stuart Exp $ + +DESCRIPTION="kernel level httpd" +HOMEPAGE="http://people.redhat.com/mingo/TUX-patches/" +SRC_URI="http://people.redhat.com/mingo/TUX-patches/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" + +DEPEND="dev-libs/glib + dev-libs/popt" + +src_compile() { + emake tux tux2w3c tuxstat TMPDIR=${T} || die +} + +src_install() { + make install TOPDIR=${D} || die + rm -rf ${D}/etc/{rc.d,sysconfig} ${D}/var/tux + exeinto /etc/init.d ; newexe ${FILESDIR}/tux.init.d tux + insinto /etc/conf.d ; newins ${FILESDIR}/tux.conf.d tux + + dodoc NEWS SUCCESS tux.README docs/*.txt + docinto samples + dodoc samples/* demo*.c +} diff --git a/www-servers/tux/tux-3.2.16.ebuild b/www-servers/tux/tux-3.2.16.ebuild new file mode 100644 index 000000000000..d69a2945b4de --- /dev/null +++ b/www-servers/tux/tux-3.2.16.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/tux/tux-3.2.16.ebuild,v 1.1 2004/08/08 19:03:31 stuart Exp $ + +DESCRIPTION="kernel level httpd" +HOMEPAGE="http://people.redhat.com/mingo/TUX-patches/" +SRC_URI="http://people.redhat.com/mingo/TUX-patches/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="doc" + +RDEPEND="dev-libs/glib + dev-libs/popt" +DEPEND="${RDEPEND} + doc? ( app-text/docbook-sgml-utils )" + +src_unpack() { + unpack ${A} + cd ${S} + sed -i "s:-g -fomit-frame-pointer -O2:${CFLAGS}:" Makefile + use doc || echo "all:" > docs/Makefile +} + +src_compile() { + emake || die +} + +src_install() { + make install TOPDIR=${D} || die + rm -rf ${D}/etc/{rc.d,sysconfig} ${D}/var/tux + exeinto /etc/init.d ; newexe ${FILESDIR}/tux.init.d tux + insinto /etc/conf.d ; newins ${FILESDIR}/tux.conf.d tux + + dodoc NEWS SUCCESS tux.README docs/*.txt + docinto samples + dodoc samples/* demo*.c +} |