diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /www-servers/bozohttpd |
reinit the tree, so we can have metadata
Diffstat (limited to 'www-servers/bozohttpd')
-rw-r--r-- | www-servers/bozohttpd/Manifest | 7 | ||||
-rw-r--r-- | www-servers/bozohttpd/bozohttpd-20170201.ebuild | 37 | ||||
-rw-r--r-- | www-servers/bozohttpd/files/bozohttpd.conffile | 11 | ||||
-rw-r--r-- | www-servers/bozohttpd/files/bozohttpd.initscript | 37 | ||||
-rw-r--r-- | www-servers/bozohttpd/metadata.xml | 9 |
5 files changed, 101 insertions, 0 deletions
diff --git a/www-servers/bozohttpd/Manifest b/www-servers/bozohttpd/Manifest new file mode 100644 index 000000000000..20219d7d6ae4 --- /dev/null +++ b/www-servers/bozohttpd/Manifest @@ -0,0 +1,7 @@ +AUX bozohttpd.conffile 218 SHA256 fb44fd86b49072559f4f6ffab13e9e4e8ce62eda1b29cb6214042c4a697baaf4 SHA512 fbc819db45d9ded83a14cc2088c5446c1a56509e2ed4a80a3bd1bb398d32130c1366ac1aad4152527665e9c8f9d097427160a9bfe703922e73a713abf7020f29 WHIRLPOOL 83a9ee110ca31923c0e687c634da8ef550802d9aca4073cf3d358b316005e778fa5fb551c0adc2b64acd7e509dc8a41d5171f8ec5356ae265e986c5a4b80a29d +AUX bozohttpd.initscript 942 SHA256 055df954b98d0cfab72d9a5b8f6c84d6549f5cb05b51a09edb97f9835549fa44 SHA512 7ea3a704fcc1b5b9ea8c2d66fba6b2f273b77efa97d0222578d82d653d4c0c7d926d9fabf5dd3e14b80cc3e79674290acb0116e68a3b044a91c4d12115c9b365 WHIRLPOOL 6a3656a374f1f3e48e5b90d03f238b4e76fbd4f7d06cb73308dc7fbde4d6eb95aea9d6b6f2dbcc09bc37baa6c5f03c0665a6763dc40212164bf7d016406b192a +DIST bozohttpd-20170201.tar.bz2 55730 SHA256 bfec085149f1d84358554216a1eeb0ec246e8138443118060be4de416d2a95c5 SHA512 f8fba17a454b3825bf0562072bf0acf5890639d83e3bc5c6b7e87f13860d37a3dfc3fd155bd9873d5201b85f31185b24677c22db1cb303fd556f22afa8b7895e WHIRLPOOL 14c7bbe8c7e0955d68c386b91cb009b8cd81a8c89e70f7ab74445d4a9d321ec0347c28233e7688650ba438ef45f66b105434d6e6c74898db60aaa8f1ef20f3b8 +EBUILD bozohttpd-20170201.ebuild 765 SHA256 857219de38000a338d1f71a4d2f622f71fd17ed7d9efcee37b9dab63ae824f33 SHA512 fe4d2a5d28b5dc13a52abd83fd4562ccf155f0f9b5ec2aea105b52962ff27e725603c01503e59577029394ae32367689fa196d9c85913fd19a047f28f13bfef9 WHIRLPOOL e9981660b2939a9472abdc4120a5ec048115c3b031e5b21fe85545879fb1b6a070e5385782962eab5cf23d18acc8353ba1e4ab1867f6b3271f153236394bd052 +MISC ChangeLog 3242 SHA256 7ab3f8276253396be1d940c376c528f27cbd8881daac2ebe31dba8ac0bda9f6c SHA512 a703bab11c9d4f2aed9b5c5326032b7033ad37f35354bb024c9bef94c61439ad56ab01920bc7ca0fbc5c5b1b96c5498d4ca3ce690c55e60fb6c67185a52e86af WHIRLPOOL 7370ea69ea03a79e0858d06747d274cedd80ce8196132a452a596fd924391f13b4bf333a4c9de1f7ec8a61262ae1025f64a28a20eb852fc18759215fb63e4926 +MISC ChangeLog-2015 3871 SHA256 7de0b06ead580d0561860acfb0977b6416b3de919c3d85d0cf3a0dbba924e88a SHA512 ec0ebe0eb9995ae49669e6b96c17a9fdbbca8fbcf2e6aaa7560ed5c9b569d5104a2d8c56a9efd95422187b4a8566e58206068a895e56ef2c1d2eefe4b5f35fc3 WHIRLPOOL d9adb76c526daa9945dad67db27387b9dfd75710d22b0c032e113bdbb28460bebad55e1a67c8678344535309f9edf860e71b580d364e2f9735e9b4f9c0b76f63 +MISC metadata.xml 312 SHA256 4835cd8441c49746cfc0861a4ef46562393818ec1e04f84c9df14cacb03f50a6 SHA512 9970b0a12f1e68b7f0babffef064357434c7c3e37c1e92d8b336d70ef8f8940b8cc73d68bb0b338a13e6613cf086c5f2e06f119f6feae067cc31b91cd743e41f WHIRLPOOL f73cb1b7ec53046df025dc542c16b55c3d8063c6e171f5f4d87bc35d5a86effe2f0f43df666cb5d7be368e06d0f3d787331d95cbbd870051ee251427f8436b69 diff --git a/www-servers/bozohttpd/bozohttpd-20170201.ebuild b/www-servers/bozohttpd/bozohttpd-20170201.ebuild new file mode 100644 index 000000000000..1044a7a84412 --- /dev/null +++ b/www-servers/bozohttpd/bozohttpd-20170201.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit toolchain-funcs + +DESCRIPTION="bozohttpd is a small and secure http server" +HOMEPAGE="http://www.eterna.com.au/bozohttpd/" +SRC_URI="http://www.eterna.com.au/bozohttpd/${P}.tar.bz2" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="libressl" + +DEPEND="!libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:= )" +RDEPEND="${DEPEND} + virtual/logger" + +src_prepare() { + default + mv Makefile{.boot,} || die +} + +src_compile() { + emake CC="$(tc-getCC)" OPT="${CFLAGS}" +} + +src_install() { + dobin bozohttpd + doman bozohttpd.8 + + newconfd "${FILESDIR}"/${PN}.conffile bozohttpd + newinitd "${FILESDIR}"/${PN}.initscript bozohttpd +} diff --git a/www-servers/bozohttpd/files/bozohttpd.conffile b/www-servers/bozohttpd/files/bozohttpd.conffile new file mode 100644 index 000000000000..49dbbe5517c4 --- /dev/null +++ b/www-servers/bozohttpd/files/bozohttpd.conffile @@ -0,0 +1,11 @@ +# Config file for /etc/init.d/bozohttpd + +# necessary stuff +DATADIR=/var/www/localhost/htdocs +BIND_ADDRESS=localhost +LISTEN_PORT=80 + +# optional stuff +#USER=daemon +#INDEX_DEFAULT=index.php +#APPEND="-C .php /usr/bin/php" diff --git a/www-servers/bozohttpd/files/bozohttpd.initscript b/www-servers/bozohttpd/files/bozohttpd.initscript new file mode 100644 index 000000000000..9f05c4184178 --- /dev/null +++ b/www-servers/bozohttpd/files/bozohttpd.initscript @@ -0,0 +1,37 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +#NB: Config is in /etc/conf.d/bozohttpd + + +depend() { + need logger net +} + +checkconfig() { + if [ -z "$DATADIR" ] || [ -z "$BIND_ADDRESS" ] || [ -z "$LISTEN_PORT" ]; then + eerror "You need to setup DATADIR, BIND_ADDRESS and LISTEN PORT in /etc/conf.d/bozohttpd first" + return 1 + fi +} + +start() { + checkconfig || return 1 + + local params="" + + [ -n "$USER" ] && params="$params -U $USER" + [ -n "$INDEX_DEFAULT" ] && params="$params -x $INDEX_DEFAULT" + [ -n "$APPEND" ] && params="$params $APPEND" + + ebegin "Starting bozohttpd" + start-stop-daemon --start --exec /usr/bin/bozohttpd -- -b -i $BIND_ADDRESS -I $LISTEN_PORT -X ${params} $DATADIR + eend ${?} +} + +stop() { + ebegin "Stopping bozohttpd" + start-stop-daemon --stop --exec /usr/bin/bozohttpd + eend ${?} +} diff --git a/www-servers/bozohttpd/metadata.xml b/www-servers/bozohttpd/metadata.xml new file mode 100644 index 000000000000..c6139216f04a --- /dev/null +++ b/www-servers/bozohttpd/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +<longdescription> + bozohttpd is designed to be small, simple and relatively + featureless, hopefully increasing its security. +</longdescription> +</pkgmetadata> |