diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-06-16 19:54:12 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-06-16 19:54:12 +0000 |
commit | 67f7dc228f44e062cfbecb294d8fc1beff7e21cf (patch) | |
tree | 3d9e87e38b9a5371313c18bddc19e36acb81b194 /net-www/tux | |
parent | use mirror:// in SRC_URI (diff) | |
download | gentoo-2-67f7dc228f44e062cfbecb294d8fc1beff7e21cf.tar.gz gentoo-2-67f7dc228f44e062cfbecb294d8fc1beff7e21cf.tar.bz2 gentoo-2-67f7dc228f44e062cfbecb294d8fc1beff7e21cf.zip |
initial ebuild
Diffstat (limited to 'net-www/tux')
-rw-r--r-- | net-www/tux/ChangeLog | 8 | ||||
-rw-r--r-- | net-www/tux/Manifest | 5 | ||||
-rw-r--r-- | net-www/tux/files/digest-tux-2.2.7 | 1 | ||||
-rw-r--r-- | net-www/tux/files/tux.conf.d | 42 | ||||
-rw-r--r-- | net-www/tux/files/tux.init.d | 61 | ||||
-rw-r--r-- | net-www/tux/tux-2.2.7.ebuild | 29 |
6 files changed, 146 insertions, 0 deletions
diff --git a/net-www/tux/ChangeLog b/net-www/tux/ChangeLog new file mode 100644 index 000000000000..26c91d1c0082 --- /dev/null +++ b/net-www/tux/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-www/tux +# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/tux/ChangeLog,v 1.1 2003/06/16 19:54:02 vapier Exp $ + +*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/net-www/tux/Manifest b/net-www/tux/Manifest new file mode 100644 index 000000000000..7ce11ee5a1a2 --- /dev/null +++ b/net-www/tux/Manifest @@ -0,0 +1,5 @@ +MD5 afd2e11572098f44d56eda3381cafab0 tux-2.2.7.ebuild 816 +MD5 5cdf6a00aa7a9f1a9c960054ddf17917 files/digest-tux-2.2.7 60 +MD5 e6d1cb3d4aa003c2c697dd85045fc726 files/tux.init.d 1700 +MD5 cf663fe61e62783571ccb44751607de3 files/tux.conf.d 1842 +MD5 ee360a218aab2ab023d40a39c6385e2a ChangeLog 335 diff --git a/net-www/tux/files/digest-tux-2.2.7 b/net-www/tux/files/digest-tux-2.2.7 new file mode 100644 index 000000000000..9d9b100f83ee --- /dev/null +++ b/net-www/tux/files/digest-tux-2.2.7 @@ -0,0 +1 @@ +MD5 275eb94b7fa7b0c0b2ce7dbdfe760b2b tux-2.2.7.tar.gz 60407 diff --git a/net-www/tux/files/tux.conf.d b/net-www/tux/files/tux.conf.d new file mode 100644 index 000000000000..fa64923ecaa9 --- /dev/null +++ b/net-www/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/net-www/tux/files/tux.conf.d,v 1.1 2003/06/16 19:54:02 vapier 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=/home/httpd/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/net-www/tux/files/tux.init.d b/net-www/tux/files/tux.init.d new file mode 100644 index 000000000000..c849ba50ffc1 --- /dev/null +++ b/net-www/tux/files/tux.init.d @@ -0,0 +1,61 @@ +#!/sbin/runscript +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/tux/files/tux.init.d,v 1.1 2003/06/16 19:54:02 vapier 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}" +} + +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/net-www/tux/tux-2.2.7.ebuild b/net-www/tux/tux-2.2.7.ebuild new file mode 100644 index 000000000000..1737a730db55 --- /dev/null +++ b/net-www/tux/tux-2.2.7.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-www/tux/tux-2.2.7.ebuild,v 1.1 2003/06/16 19:54:02 vapier 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 +} |