Bug 171708 - [PATCH] security/py27-fail2ban: update to 0.8.7.1
Summary: [PATCH] security/py27-fail2ban: update to 0.8.7.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 14:50 UTC by Mark Felder
Modified: 2012-11-24 03:08 UTC (History)
1 user (show)

See Also:


Attachments
py27-fail2ban-0.8.7.1.patch (5.15 KB, patch)
2012-09-17 14:50 UTC, Mark Felder
no flags Details | Diff
fail2ban.patch (4.54 KB, patch)
2012-09-17 16:43 UTC, Mark Felder
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Felder freebsd_committer freebsd_triage 2012-09-17 14:50:11 UTC
- Update to 0.8.7.1
- Fix installation so it doesn't overwrite your config files every time you upgrade the port
- Fix some space/tab issues to make portlint happy
- Use dirrmtry in a few places because some people have their own custom filters, actions, etc.

Added file(s):
- files/patch-setup.py

Port maintainer (theis@gmx.at) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: update, diff: suffix)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-09-17 14:50:22 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

swills@ wants his PRs (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-09-17 14:50:26 UTC
Maintainer of security/py-fail2ban,

Please note that PR ports/171708 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/171708

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2012-09-17 14:50:28 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 theis 2012-09-17 15:08:25 UTC
> Port maintainer (theis@gmx.at) is cc'd.

I had it on my TODO list ...

Most is OK (and straightforward, anyway).

But: Overwriting files (that was keeping me from submitting the patch so 
far): According to
   http://www.fail2ban.org/wiki/index.php/MANUAL_0_8#Configuration
local modifications may / should be done in a file named 
"<something>.local", e.g. "jail.local". It would be nice to remind 
people to do it that way and don't mess around with the .conf files in a 
installation message and / or UPDATE message.
Are you now using the .dist files instead of the .conf files? I don't 
think that would be a good idea because then people have to copy them to 
.conf for their local modifications and thus deviate from the manual.


Best regards

Christoph
Comment 5 Mark Felder freebsd_committer freebsd_triage 2012-09-17 15:31:45 UTC
On Mon, 17 Sep 2012 09:08:25 -0500, Christoph Theis <theis@gmx.at> wrote:

> Are you now using the .dist files instead of the .conf files? I don't  
> think that would be a good idea because then people have to copy them to  
> .conf for their local modifications and thus deviate from the manual.

I was going to have it install to .dist files and then the user has to  
copy to .conf before using the software. Like most people, I've never read  
their entire manual because the software is pretty self explanatory. I  
never even knew about the .local files until you pointed it out now. This  
is sort of bizarre; not many programs work like this.

In that case I think it's probably best to ignore this patch and instead  
update the port with a big warning saying to use .local files instead.  
I'll be replying with those changes.


Thanks
Comment 6 theis 2012-09-17 15:55:47 UTC
Hi!

Am 17.09.2012 16:31, schrieb Mark Felder:
> I was going to have it install to .dist files and then the user has to
> copy to .conf before using the software. Like most people, I've never
> read their entire manual because the software is pretty self
> explanatory. I never even knew about the .local files until you pointed
> it out now. This is sort of bizarre; not many programs work like this.

Yes, it is. And was the source of some discussions in the past.

Other ports install configuration files as .default or something else, 
copy them to the intended file if they don't exist (e.g. in the 
post-install step) and on deinstall remove both files if they are 
identical (e.g. in pkg-plist). But it is not really the fail2ban way to 
do the configuration.

> In that case I think it's probably best to ignore this patch and instead
> update the port with a big warning saying to use .local files instead.
> I'll be replying with those changes.

OK. And thanks for the patch.


Best regards

Christoph
Comment 7 Mark Felder freebsd_committer freebsd_triage 2012-09-17 16:43:31 UTC
Please review the attached patch.


Thanks!
Comment 8 theis 2012-09-17 17:01:29 UTC
Am 17.09.2012 17:43, schrieb Mark Felder:
> Please review the attached patch.

It's OK.

Thanks

Christoph
Comment 9 Mark Linimon freebsd_committer freebsd_triage 2012-10-06 20:14:53 UTC
State Changed
From-To: feedback->open

Maintainer approved.
Comment 10 Steve Wills freebsd_committer freebsd_triage 2012-11-24 03:08:48 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!