From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- www-apps/dspam-web/Manifest | 7 +++ www-apps/dspam-web/dspam-web-3.10.1.ebuild | 70 ++++++++++++++++++++++++++++++ www-apps/dspam-web/files/postinst-en.txt | 32 ++++++++++++++ www-apps/dspam-web/files/setperms | 9 ++++ www-apps/dspam-web/metadata.xml | 9 ++++ 5 files changed, 127 insertions(+) create mode 100644 www-apps/dspam-web/Manifest create mode 100644 www-apps/dspam-web/dspam-web-3.10.1.ebuild create mode 100644 www-apps/dspam-web/files/postinst-en.txt create mode 100644 www-apps/dspam-web/files/setperms create mode 100644 www-apps/dspam-web/metadata.xml (limited to 'www-apps/dspam-web') diff --git a/www-apps/dspam-web/Manifest b/www-apps/dspam-web/Manifest new file mode 100644 index 000000000000..a1ba93dc2178 --- /dev/null +++ b/www-apps/dspam-web/Manifest @@ -0,0 +1,7 @@ +AUX postinst-en.txt 935 SHA256 9d864da422c9e28e8ac645a2534af7a885d22ff4b49e5b7ef938e8bb84ea81dc SHA512 b7a2253cf0c91c966f538ebf2bb839fbe2affef1c249c9bf7f3b32f07810195a502ff149f1cfebbf1abfc39c84edbfd0df7952ca7d21049bfe2175bd9456cb12 WHIRLPOOL 87bccc02668e678097b540e44569d070c6076fd4e2744d80a7ed1dfa27ec29c3666a1a0c0afbcd3ab0ccbf1d64465bffc7ba0dced6a35b9cba44b6b8eebbd16a +AUX setperms 255 SHA256 85cfd1a8a6e322698c5e09573dfb4e04220e8642d1835e9a7eedbb809736e9ed SHA512 38bd7c199950a4df65e5583e84da1a776beecf6a2726dc483663b282b29bfd8d80a86ff680850f1ff6b8fc10e8a049c1efd666377c157f2726c665246884a1ed WHIRLPOOL 4f57c0aa60ac7b090168b2c0ddb099f949477d261f2d1d00616792bdafa219f5a900e02399ec312a41d08487de6750c2e95d9553ac2cc641f730c52d3a025a87 +DIST dspam-3.10.1.tar.gz 1044198 SHA256 359d9f58564a87da131b8390d0eeecae4aa40d22ff74b97256d46835a2474063 SHA512 44c8ee6df058ed6b9c97722201bcd99645f93dd697676b2480a221280d8d1bc64c6eb03d4c69eede7c54028bbfc4583e7bbd7c4607587bcd037a559e868040ee WHIRLPOOL 9e422324150d34295b1dbc4caaaca408711a15d23a4f488c2950921829f5c44f5a719a93ae5160d3f26822efd0f70809697dab0607fde7e25857dc63866faa19 +EBUILD dspam-web-3.10.1.ebuild 1698 SHA256 e04627b4db55aa28c09b778fe1cb981d1bb05cf26bfebae8aacebd26b791b2fc SHA512 37e20d57b8f6c2220deca084b02fddfc5c77c50b3d2010f9ba3f11daaf1b24b5865c2dc74ddb1194a9b4ee79bcd515e8aec01975fcaad908081bcfb19c1f8106 WHIRLPOOL 6510f2b17f0c6ccfca23c103a8cba2d2d5e83adc2a075445e1500e5a18d10166a4821a0ec5987754d605ad1e6cc1ca6fd810cfd85b528d0eb3e4bf9e7c657a01 +MISC ChangeLog 2476 SHA256 e7f0858e4377f8d5ed40e34f331a68c1197647b266b3d65d53c24ce3abbd6d80 SHA512 7f18ee3dd4fa62473903d9bbb85b77a4145230223d5cbd6ed0d8f77a9ca699910b7e729c71ec2909a69777c43b0c1a0a97b1adac44925d9d60e9ac3155a22175 WHIRLPOOL bcfcbd2404066b632d83139eff89375352e911a705367914c1efd7fcd816bbad19c29814be19e32224c9f3540cea591ec1c5bbc131bd2a4fb917fb6e991d9876 +MISC ChangeLog-2015 7711 SHA256 c74ac6ad1882849643c6bb2e33226143e20b7fbd751fd7ef9b341250608c1c07 SHA512 065b99fe02563e26d3efa17c8bfecfe316d57c795c9beb46680bccfa319e042cb5be03bf093ab30bbf4e9e56509db65fcb230496deed3939c629f6f3bc76c7c7 WHIRLPOOL 255c979b60ecfb3e1ba5a2e9ee605f349734ac0ed2052c2ab1a60c8fcda5ddbdbb400863b4e48781fec7f4d20ac76e5f006d0ea9be6704c5c9fde2475e48f295 +MISC metadata.xml 364 SHA256 311633420681aea721f8632da35ba8643d664b58778f80f68d576148625a0cf8 SHA512 a30327548152850c82f53069bf25d9742e5e56d2f476923411526208e1c92a181ebdb3fe7f7f0a3538560b88d8f2686842034999e7d4b22a84f7f30a260aef0e WHIRLPOOL 792e17b3fbd0615cd5b7c5442bca685d7cbc4eb5cdcb1c0319468a5bb403c37dd8f455e45a456e1fba9fb1a4ff78f6807024bb55b8a2d7dd9f013f7d0a05b1a7 diff --git a/www-apps/dspam-web/dspam-web-3.10.1.ebuild b/www-apps/dspam-web/dspam-web-3.10.1.ebuild new file mode 100644 index 000000000000..7ab4583673b5 --- /dev/null +++ b/www-apps/dspam-web/dspam-web-3.10.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit webapp + +DESCRIPTION="Web based administration and user controls for dspam" +HOMEPAGE="http://dspam.nuclearelephant.com/" +SRC_URI="http://dspam.nuclearelephant.com/sources/dspam-${PV}.tar.gz" + +LICENSE="AGPL-3" +KEYWORDS="amd64 ~ppc x86" +IUSE="" + +RDEPEND=">=mail-filter/dspam-${PV}[-user-homedirs] + dev-perl/GD[png] + dev-perl/GD-Graph3d + dev-perl/GDGraph + dev-perl/GDTextUtil" + +need_httpd_cgi + +# some FHS-like structure +HOMEDIR="/var/spool/dspam" +CONFDIR="/etc/mail/dspam" + +S="${WORKDIR}/dspam-${PV}" + +src_configure() { + econf \ + --with-dspam-home=${HOMEDIR} \ + --sysconfdir=${CONFDIR} +} + +src_compile() { + cd webui + default +} + +src_install() { + webapp_src_preinst + + cd webui + insinto "${MY_HTDOCSDIR}" + insopts -m644 + doins htdocs/*.{css,gif} + insinto "${MY_CGIBINDIR}/templates" + doins cgi-bin/templates/*.html + insinto "${MY_CGIBINDIR}" + doins cgi-bin/{admins,configure.pl,default.prefs,rgb.txt,*.cgi} + + webapp_configfile "${MY_CGIBINDIR}"/{admins,configure.pl,default.prefs,rgb.txt} + + webapp_hook_script "${FILESDIR}/setperms" + webapp_postinst_txt en "${FILESDIR}/postinst-en.txt" + + webapp_src_install +} + +pkg_postinst() { + ewarn "If you're using apache dspam-web's config requires the scripts in the cgi-bin" + ewarn "to be run as dspam:dspam. You will have to put a global SuexecUserGroup" + ewarn "declaration in the main server config which will force everything in cgi-bin" + ewarn "to run as dspam:dspam." + ewarn "You should use a dedicated virtual host for this application or at least" + ewarn "one that don't have any other cgi scripts." + ewarn + webapp_pkg_postinst +} diff --git a/www-apps/dspam-web/files/postinst-en.txt b/www-apps/dspam-web/files/postinst-en.txt new file mode 100644 index 000000000000..500f5002abc2 --- /dev/null +++ b/www-apps/dspam-web/files/postinst-en.txt @@ -0,0 +1,32 @@ +Define your virtual host like this: + + DocumentRoot ${VHOST_HTDOCSDIR} + ServerName ${VHOST_HOSTNAME} + + #Use dspam.cgi as main index + RewriteEngine On + RewriteRule ^/?$ /cgi-bin/dspam.cgi [redirect,last] + + SuexecUserGroup dspam dspam + ScriptAlias /cgi-bin/ ${VHOST_CGIBINDIR}/ + + + Options FollowSymLinks ExecCGI + SetHandler cgi-script + + AllowOverride None + Order deny,allow + Allow from all + + AuthType basic + AuthName "DSPAM Control Center" + #For those lucky enough to have a LDAP authentication database + AuthLDAPURL ldap://localhost:389/ou=People,dc=yourdomain,dc=com?uid?sub?(objectClass=posixAccount) + Require valid-user + + + +The configuration files are: + - ${VHOST_CGIBINDIR}/configure.pl + - ${VHOST_CGIBINDIR}/admins (super-users of this service) + - ${VHOST_CGIBINDIR}/default.prefs (not used by those who use MySQL or PostgreSQL backend) diff --git a/www-apps/dspam-web/files/setperms b/www-apps/dspam-web/files/setperms new file mode 100644 index 000000000000..91c4fcf10fdf --- /dev/null +++ b/www-apps/dspam-web/files/setperms @@ -0,0 +1,9 @@ +#!/bin/sh + +if [[ "$1" = "install" ]]; then + chgrp -R dspam "${VHOST_CGIBINDIR}" + chown dspam "${VHOST_CGIBINDIR}" "${VHOST_CGIBINDIR}"/*.cgi + chmod -R ugo+r "${VHOST_CGIBINDIR}" + chmod 0755 "${VHOST_CGIBINDIR}" + chmod ugo+rx "${VHOST_CGIBINDIR}"/*.cgi +fi diff --git a/www-apps/dspam-web/metadata.xml b/www-apps/dspam-web/metadata.xml new file mode 100644 index 000000000000..55f6db411c72 --- /dev/null +++ b/www-apps/dspam-web/metadata.xml @@ -0,0 +1,9 @@ + + + + + web-apps@gentoo.org + Gentoo Webapps + +Web Administrative interface for a statistical-algorithmic hybrid anti-spam filter + -- cgit v1.2.3