Update to last version 3.10.2 - Add depents for apache suexec and auth_mysql for run in a same user - Create user dspam if not exist - Include langs - Fix template missing .pl - Fix sysconfdir to /etc/dspam Reproducible: Always
Created attachment 340506 [details] dspam-web-3.10.2.ebuild
Example auth mysql in apache 2.2.x #Use dspam.cgi as main index RewriteEngine On RewriteRule ^/?$ /cgi-bin/dspam.cgi [redirect,last] SuexecUserGroup dspam dspam ScriptAlias /cgi-bin/ ${VHOST_CGIBINDIR}/ <Directory "${VHOST_CGIBINDIR}"> Options FollowSymLinks ExecCGI SetHandler cgi-script AllowOverride None Order deny,allow Allow from all AuthBasicAuthoritative Off AuthUserFile /dev/null AuthName "DSPAM Control Center" AuthType Basic AuthMySQLUser USERDB AuthMySQLPassword PASSWORD AuthMySQLDB DATABASE AuthMySQLUserTable users AuthMySQLNameField email AuthMySQLPasswordField password AuthMySQLPwEncryption none require valid-user </Directory>
Comment on attachment 340506 [details] dspam-web-3.10.2.ebuild --- dspam-web-3.10.1.ebuild 2012-02-06 20:30:51.000000000 +0100 +++ - 2013-02-28 17:26:34.946669007 +0100 @@ -4,7 +4,7 @@ EAPI="4" -inherit webapp +inherit webapp user DESCRIPTION="Web based administration and user controls for dspam" HOMEPAGE="http://dspam.nuclearelephant.com/" @@ -18,20 +18,44 @@ dev-perl/GD[png] dev-perl/GD-Graph3d dev-perl/GDGraph - dev-perl/GDTextUtil" + dev-perl/GDTextUtil + www-apache/mod_auth_mysql + www-servers/apache[suexec]" need_httpd_cgi # some FHS-like structure -HOMEDIR="/var/spool/dspam" -CONFDIR="/etc/mail/dspam" +DSPAM_HOME=/var/spool/dspam +DSPAM_CONF=/etc/dspam S="${WORKDIR}/dspam-${PV}" +pkg_setup() { + # create dspam user and group + dspam_setup_user + + webapp_pkg_setup +} + +dspam_setup_user() { + # DSPAM CGI web gui (www-apps/dspam-web) needs to run as a regular user + # under suexec in apache, so DSPAM user/group need to be regular users too + + local euid egid + for euid in {1000..5000} ; do + [ -z "$(egetent passwd ${euid})" ] && break + done + for egid in {1000..5000} ; do + [ -z "$(egetent group ${egid})" ] && break + done + enewgroup dspam ${egid} + enewuser dspam ${euid} -1 "${DSPAM_HOME}" dspam,mail +} + src_configure() { econf \ - --with-dspam-home=${HOMEDIR} \ - --sysconfdir=${CONFDIR} + --with-dspam-home=${DSPAM_HOME} \ + --sysconfdir=${DSPAM_CONF} } src_compile() { @@ -47,7 +71,13 @@ insopts -m644 doins htdocs/*.{css,gif} insinto "${MY_CGIBINDIR}/templates" - doins cgi-bin/templates/*.html + doins cgi-bin/templates/{*.html,*.pl} + + for DIR in cs de es-es fr he pt-br ru; do + insinto "${MY_CGIBINDIR}/templates/${DIR}" + doins cgi-bin/templates/${DIR}/{*.html,*.pl} + done + insinto "${MY_CGIBINDIR}" doins cgi-bin/{admins,configure.pl,default.prefs,rgb.txt,*.cgi}
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed48ebd52b116f14a01fffda637e895aadd88a2a commit ed48ebd52b116f14a01fffda637e895aadd88a2a Author: Sam James <sam@gentoo.org> AuthorDate: 2020-08-04 01:24:48 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-08-04 02:43:11 +0000 profiles/package.mask: last-rite www-apps/dspam-web Bug: https://bugs.gentoo.org/459724 Bug: https://bugs.gentoo.org/680486 Signed-off-by: Sam James <sam@gentoo.org> profiles/package.mask | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
It exists new project for dspam, see https://github.com/Trogious/dspam-enhanced
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=135e90ac4e1cfee4fe57f04842d4d0fe8ce8b7ec commit 135e90ac4e1cfee4fe57f04842d4d0fe8ce8b7ec Author: Sam James <sam@gentoo.org> AuthorDate: 2020-09-04 00:08:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-09-04 00:10:09 +0000 www-apps/dspam-web: remove last-rited pkg Bug: https://bugs.gentoo.org/459724 Bug: https://bugs.gentoo.org/680486 Signed-off-by: Sam James <sam@gentoo.org> profiles/package.mask | 9 ---- www-apps/dspam-web/Manifest | 1 - 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 ---- 6 files changed, 130 deletions(-)
Package removed following last-rites.