Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 594720 - www-apache/mod_security-2.7.7 ebuild does not install mlogc
Summary: www-apache/mod_security-2.7.7 ebuild does not install mlogc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-21 19:38 UTC by Chris Frederick
Modified: 2017-05-08 01:56 UTC (History)
3 users (show)

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


Attachments
mod_security-2.7.7-r1.ebuild (mod_security-2.7.7-r1.ebuild,2.49 KB, text/plain)
2016-09-26 13:48 UTC, Chris Frederick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Frederick 2016-09-21 19:38:38 UTC
The ebuild's src_configure() function contains the line "$(use_enable curl mlogc)" so it appears that building mlogc requires the curl use flag, but it is never installed.

Running: 
USE="curl" emerge www-apache/mod_security
grep mlogc /var/db/pkg/www-apache/mod_security-2.7.7/CONTENTS

grep shows no results.

Running:
USE="curl" ebuild /usr/portage/www-apache/mod_security/mod_security-2.7.7.ebuild compile
find /var/tmp/portage/www-apache/mod_security-2.7.7 -name mlogc -type f -executable

find returns /var/tmp/portage/www-apache/mod_security-2.7.7/work/modsecurity-apache_2.7.7/mlogc/mlogc

I'm guessing src_install() needs to have some more code added to handle mlogc based on the curl use flag.
Comment 1 Tomáš Mózes 2016-09-22 04:58:59 UTC
Hi Chris, the awesome piece of software lacks a maintainer currently... Would you like to proxy maintain it?
Comment 2 Chris Frederick 2016-09-22 15:04:41 UTC
Testing an overlay with the following added to src_install():

if use curl; then
    exeinto /usr/bin
    doexe "${S}/mlogc/mlogc"
    dodir /etc/apache2
    mv "${S}/mlogc/mlogc-default.conf" "${D}/etc/apache2/mlogc.conf"
fi

I wouldn't mind being a proxy maintainer for this, my only hesitation would be my available free time can be unpredictable.
Comment 3 Chris Frederick 2016-09-26 13:48:50 UTC
Created attachment 448042 [details]
mod_security-2.7.7-r1.ebuild

Attached ebuild with mlogc install working.
Comment 4 Pacho Ramos gentoo-dev 2016-10-01 14:00:56 UTC
CCing proxy-maintainers
Comment 5 Michael Orlitzky gentoo-dev 2017-05-08 01:56:14 UTC
I just committed mod_security-2.9.1 to fix this. Thanks for the report and the suggested fix. I changed the USE flag name to "mlogc", because USE=curl was kind of obtuse, and the configuration file is installed straight to /etc/mlogc.conf. Oh and the log-collector perl thingy is installed too.

I don't use any of this stuff, so please report back if I screwed up in some way =)