Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459724 - www-apps/dspam-web-3.10.2 version bump
Summary: www-apps/dspam-web-3.10.2 version bump
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords: EBUILD, PATCH, PMASKED
Depends on:
Blocks:
 
Reported: 2013-02-28 15:17 UTC by INODE64 Sistemas
Modified: 2020-09-04 00:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dspam-web-3.10.2.ebuild (dspam-web-3.10.2.ebuild,2.49 KB, text/plain)
2013-02-28 15:17 UTC, INODE64 Sistemas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description INODE64 Sistemas 2013-02-28 15:17:04 UTC
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
Comment 1 INODE64 Sistemas 2013-02-28 15:17:45 UTC
Created attachment 340506 [details]
dspam-web-3.10.2.ebuild
Comment 2 INODE64 Sistemas 2013-02-28 15:24:46 UTC
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 3 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-28 16:26:48 UTC
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}
Comment 4 Larry the Git Cow gentoo-dev 2020-08-04 02:43:17 UTC
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(-)
Comment 5 INODE64 Sistemas 2020-08-04 07:06:04 UTC
It exists new project for dspam, see

https://github.com/Trogious/dspam-enhanced
Comment 6 Larry the Git Cow gentoo-dev 2020-09-04 00:10:35 UTC
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(-)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-09-04 00:12:05 UTC
Package removed following last-rites.