Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426868 - app-admin/ulogd-2.0.2 version bump
Summary: app-admin/ulogd-2.0.2 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Coacher
URL: http://netfilter.org/projects/ulogd/i...
Whiteboard:
Keywords: EBUILD, PATCH
: 449690 (view as bug list)
Depends on:
Blocks: 285376 375777 375825 418351
  Show dependency tree
 
Reported: 2012-07-16 16:03 UTC by franky
Modified: 2015-11-03 09:55 UTC (History)
6 users (show)

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


Attachments
proposed ebuild for ulogd-2.0.1 (ulogd-2.0.1-r2.ebuild,1.71 KB, text/plain)
2012-12-13 22:51 UTC, Coacher
Details
ulogd initscript (ulogd.init,922 bytes, text/plain)
2012-12-13 22:51 UTC, Coacher
Details
ulogd logrotate (ulogd.logrotate,315 bytes, text/plain)
2012-12-13 22:53 UTC, Coacher
Details
ulogd-2.0.1.ebuild (ulogd-2.0.1-r2.ebuild,1.70 KB, text/plain)
2013-01-02 17:32 UTC, Coacher
Details
ulogd.logrotate (ulogd.logrotate,339 bytes, text/plain)
2013-01-02 17:34 UTC, Coacher
Details
ulogd-2.0.1.ebuild (ulogd-2.0.1-r2.ebuild,2.02 KB, text/plain)
2013-01-03 17:30 UTC, Coacher
Details
ulogd-2.0.1.ebuild (ulogd-2.0.1-r2.ebuild,2.05 KB, text/plain)
2013-01-10 12:16 UTC, Coacher
Details
ulogd.init (ulogd.init,922 bytes, text/plain)
2013-03-05 01:55 UTC, Coacher
Details
metadata.xml (metadata.xml,858 bytes, text/plain)
2013-03-05 01:56 UTC, Coacher
Details
ulogd-2.0.2.ebuild (ulogd-2.0.2.ebuild,2.75 KB, text/plain)
2013-03-05 02:02 UTC, Coacher
Details
ulogd-2.0.2.ebuild (ulogd-2.0.2.ebuild,2.76 KB, text/plain)
2013-03-05 02:31 UTC, Coacher
Details
ulogd-2.0.2-automagic.patch (ulogd-2.0.2-automagic.patch,1.83 KB, patch)
2013-03-14 23:47 UTC, Coacher
Details | Diff
ulogd-2.0.2-r1.ebuild (ulogd-2.0.2-r1.ebuild,2.94 KB, text/plain)
2013-03-14 23:51 UTC, Coacher
Details
ulogd-2.0.2.ebuild (ulogd-2.0.2.ebuild,3.00 KB, text/plain)
2013-03-19 11:55 UTC, Sergey Popov
Details
ulogd-2.0.2.ebuild (ulogd-2.0.2.ebuild,3.02 KB, text/plain)
2013-03-19 12:02 UTC, Sergey Popov
Details
ulogd-2.0.2-r1.ebuild (ulogd-2.0.2-r9999.ebuild,3.00 KB, text/plain)
2013-03-20 12:29 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description franky 2012-07-16 16:03:25 UTC
A normal bump request :)

althought, it might need 1 new package: libnetfilter_acct


libnetfilter_acct: as a dependency for flexible traffic accounting via nfnetlink_acct and iptables nfacct match (it requires Linux kernel >= 3.3.x). 



Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2012-07-22 17:36:46 UTC
This package needs a proxy maintainer for this and libnetfilter_acct:
http://www.gentoo.org/proj/en/qa/proxy-maintainers/
Comment 2 Coacher 2012-12-13 09:07:29 UTC
(In reply to comment #1)
> This package needs a proxy maintainer for this and libnetfilter_acct:
> http://www.gentoo.org/proj/en/qa/proxy-maintainers/

Are there any prerequisites for a canditate? I would like to volunteer for ulogd and libnetfilter_acct. I am maintaining this in my local overlay anyway.
Comment 3 Sergey Popov gentoo-dev 2012-12-13 09:18:51 UTC
(In reply to comment #1)
> This package needs a proxy maintainer for this and libnetfilter_acct:
> http://www.gentoo.org/proj/en/qa/proxy-maintainers/

What's wrong with libnetfilter_acct? Netmon tries to bump it as soon as new version is out...
Comment 4 Pacho Ramos gentoo-dev 2012-12-13 18:37:18 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > This package needs a proxy maintainer for this and libnetfilter_acct:
> > http://www.gentoo.org/proj/en/qa/proxy-maintainers/
> 
> Are there any prerequisites for a canditate? I would like to volunteer for
> ulogd and libnetfilter_acct. I am maintaining this in my local overlay
> anyway.

Will CC proxy-maintainer people to let them know you are interested

(In reply to comment #3)
> (In reply to comment #1)
> > This package needs a proxy maintainer for this and libnetfilter_acct:
> > http://www.gentoo.org/proj/en/qa/proxy-maintainers/
> 
> What's wrong with libnetfilter_acct? Netmon tries to bump it as soon as new
> version is out...

Anyway, I guess he could co-maintain it, no? :/
Comment 5 Coacher 2012-12-13 18:54:19 UTC
(In reply to comment #4)
> Will CC proxy-maintainer people to let them know you are interested

Thank you!
Comment 6 Coacher 2012-12-13 22:51:25 UTC
Created attachment 332248 [details]
proposed ebuild for ulogd-2.0.1

Totally forgot to attach all this.
Comment 7 Coacher 2012-12-13 22:51:46 UTC
Created attachment 332250 [details]
ulogd initscript
Comment 8 Coacher 2012-12-13 22:53:36 UTC
Created attachment 332252 [details]
ulogd logrotate

Please note `create` directive in logrotate script. If logfile (current, not rotated) is not owned by `ulogd` user (or whatever user we are running as) ulogd will silently crash during reopen_logs.
Comment 9 Sergey Popov gentoo-dev 2012-12-14 07:52:35 UTC
> (In reply to comment #3)
> > (In reply to comment #1)
> > > This package needs a proxy maintainer for this and libnetfilter_acct:
> > > http://www.gentoo.org/proj/en/qa/proxy-maintainers/
> > 
> > What's wrong with libnetfilter_acct? Netmon tries to bump it as soon as new
> > version is out...
> 
> Anyway, I guess he could co-maintain it, no? :/

Personally, i do not mind adding new maintainer(and proxy maintainers team) to co-maintainers for libnetfilter_acct.
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2012-12-14 09:46:46 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Will CC proxy-maintainer people to let them know you are interested
> 
> Thank you!

Yes, we will help you pushing this ebuild. Just give us sometime to review it
Comment 11 Coacher 2012-12-14 17:23:15 UTC
(In reply to comment #9)
> > (In reply to comment #3)
> > > (In reply to comment #1)
> > > > This package needs a proxy maintainer for this and libnetfilter_acct:
> > > > http://www.gentoo.org/proj/en/qa/proxy-maintainers/
> > > 
> > > What's wrong with libnetfilter_acct? Netmon tries to bump it as soon as new
> > > version is out...
> > 
> > Anyway, I guess he could co-maintain it, no? :/
> 
> Personally, i do not mind adding new maintainer(and proxy maintainers team)
> to co-maintainers for libnetfilter_acct.

Cool, thanks! Hope I could be helpful.
Comment 12 Coacher 2012-12-14 17:24:41 UTC
(In reply to comment #10)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > Will CC proxy-maintainer people to let them know you are interested
> > 
> > Thank you!
> 
> Yes, we will help you pushing this ebuild. Just give us sometime to review it

That's great. Are there any actions required from my side? Maybe there's some guide about it or wiki page?
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2012-12-14 19:39:09 UTC
(In reply to comment #12)
> (In reply to comment #10)
> > (In reply to comment #5)
> > > (In reply to comment #4)
> > > > Will CC proxy-maintainer people to let them know you are interested
> > > 
> > > Thank you!
> > 
> > Yes, we will help you pushing this ebuild. Just give us sometime to review it
> 
> That's great. Are there any actions required from my side? Maybe there's
> some guide about it or wiki page?

What would you like to know? No actions are required apart from fixing the bugs for your package. You may also want to have a look on the project page

http://www.gentoo.org/proj/en/qa/proxy-maintainers/index.xml
Comment 14 Coacher 2012-12-15 16:08:30 UTC
(In reply to comment #13)
> What would you like to know? No actions are required apart from fixing the
> bugs for your package. You may also want to have a look on the project page
> 
> http://www.gentoo.org/proj/en/qa/proxy-maintainers/index.xml

I was wondering if there are some formal things I have to do. Fixing bugs and maintaining is assumed automatically. Thanks for the link.

I still have some questions on how typical workflow around bugs happen, but I guess it is better to ask it in a more appropriate place. As far as I understood from the link you gave me there should be a person from a Proxy Maintaining Team who is my assigned Commiter, am I right? How do I know who is it? I'd like to ask him directly instead of further discussing it in this bug comments.
Comment 15 Markos Chandras (RETIRED) gentoo-dev 2012-12-21 18:45:56 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > What would you like to know? No actions are required apart from fixing the
> > bugs for your package. You may also want to have a look on the project page
> > 
> > http://www.gentoo.org/proj/en/qa/proxy-maintainers/index.xml
> 
> I was wondering if there are some formal things I have to do. Fixing bugs
> and maintaining is assumed automatically. Thanks for the link.
> 
> I still have some questions on how typical workflow around bugs happen, but
> I guess it is better to ask it in a more appropriate place. As far as I
> understood from the link you gave me there should be a person from a Proxy
> Maintaining Team who is my assigned Commiter, am I right? How do I know who
> is it? I'd like to ask him directly instead of further discussing it in this
> bug comments.

Just email the entire team. You don't have a dedicated committer. Anyone of us can commit your fixes.
Comment 16 Markos Chandras (RETIRED) gentoo-dev 2012-12-21 18:56:18 UTC
A couple of comments:

- your ebuild must not have stable keywords

if you tried running "repoman full" on it you could see some fatal failures such as

   app-admin/ulogd/ulogd-2.0.1.ebuild: RDEPEND: ~ppc(default/linux/powerpc/ppc32/10.0) ['>=net-libs/libnetfilter_acct-1.0.1', 'dev-libs/libdbi']

it's because it is dev-db/libdbi and NOT dev-lbis/libdbi
also, libnetfilter_acct is not keyworded for ppc, so your ebuild must not have ppc keyword in it.

Please fix your ebuild and always run repoman full before you submit it.
Comment 17 Sergey Popov gentoo-dev 2013-01-02 09:13:20 UTC
*** Bug 449690 has been marked as a duplicate of this bug. ***
Comment 18 Coacher 2013-01-02 17:32:48 UTC
Created attachment 334068 [details]
ulogd-2.0.1.ebuild

Sorry for a really big delay since last comment. I was busy with my finals then with New Year's madness. Happy New Year everyone, hence it's a bit late.

Attached file is an edited version of ebuild, list of changes:
* keyworded unstable (~amd64, ~x86)
* proper libdbi package naming
* dropped arches not supported by libnetfilter_acct. I really don't know why libnetfilter_acct doesn't support anything more than x86 & amd64. Should I file a bug? Anyway, several libnetfilter_* deps will become optional in a next release of ulogd and libnetfilter_acct is among them.

Thanks to Markos for pointing me in the right direction and introducing repoman tool to me.
Comment 19 Coacher 2013-01-02 17:34:45 UTC
Created attachment 334070 [details]
ulogd.logrotate

Slightly updated logrotate script: prevent it from generating useless output to stdout.
Comment 20 Sergey Popov gentoo-dev 2013-01-02 20:04:18 UTC
(In reply to comment #18)
> * dropped arches not supported by libnetfilter_acct. I really don't know why
> libnetfilter_acct doesn't support anything more than x86 & amd64.

Because nobody has tested it on those arches, i think.

> Should I file a bug?

Yes, please, this bug will be dependency of this one.
Comment 21 Coacher 2013-01-03 17:30:26 UTC
Created attachment 334218 [details]
ulogd-2.0.1.ebuild

Minor changes: use internal portage functions instead of direct chown/chmod calls, add postinst elog message about necessary config changes which should be enough for #375777
Comment 22 Coacher 2013-01-10 12:16:14 UTC
Created attachment 335054 [details]
ulogd-2.0.1.ebuild

Create ulogd homedir (/var/log/ulogd) only if needed.
Comment 23 Coacher 2013-03-05 01:55:59 UTC
Created attachment 340988 [details]
ulogd.init

Update copyright terms.
Comment 24 Coacher 2013-03-05 01:56:15 UTC
Created attachment 340990 [details]
metadata.xml
Comment 25 Coacher 2013-03-05 02:02:24 UTC
Created attachment 340992 [details]
ulogd-2.0.2.ebuild

ulogd verbump.

changelog:

* input plugins are now optional

* make more output plugins optional too, like pcap and sqlite. Though they are
  not truly optional i.e. they will be built anyway if appropriate packages are
  installed in your system, but I think it is nice not to force user to install
  them unconditionally.

* add checks for kernel version, since some features like NFACCT require pretty
  recent kernel (>=3.3.0)

* depend on linuxdoc-tools[latex] (see bug 375825)
Comment 26 Coacher 2013-03-05 02:16:59 UTC
@proxy-maint team, how about moving this into the tree?

ulogd-1.* branch haven't seen changes for about 5 years from now.

Bugs filed against app-admin/ulogd-2.0.0_beta4 are all addressed in ebuilds attached here and bugs against ulogd-1.* are simply obsolete by now.

Since libnetfilter_acct is optional since 2.0.2 I am feeling like removing bug 450016 from deps of this one.

What do you think?
Comment 27 Coacher 2013-03-05 02:31:11 UTC
Created attachment 340996 [details]
ulogd-2.0.2.ebuild

Minor changes: depend on virtual/latex-base rather than linuxdoc-tools[latex] as latter one brings also *.sty files with it.
Comment 28 Andrew Savchenko gentoo-dev 2013-03-05 08:54:26 UTC
(In reply to comment #25)
> * make more output plugins optional too, like pcap and sqlite. Though they
> are
>   not truly optional i.e. they will be built anyway if appropriate packages
> are
>   installed in your system, but I think it is nice not to force user to
> install
>   them unconditionally.

Perhaps you should fix automagick in the build system then.
Comment 29 Coacher 2013-03-06 09:24:29 UTC
(In reply to comment #28)
> (In reply to comment #25)
> > * make more output plugins optional too, like pcap and sqlite. Though they
> > are
> >   not truly optional i.e. they will be built anyway if appropriate packages
> > are
> >   installed in your system, but I think it is nice not to force user to
> > install
> >   them unconditionally.
> 
> Perhaps you should fix automagick in the build system then.

OK, that sounds like a good idea. Maybe you know a package in the tree that already does that so I won't have to reinvent the wheel?
Comment 30 Andrew Savchenko gentoo-dev 2013-03-06 14:24:11 UTC
Hi,

(In reply to comment #29)
> OK, that sounds like a good idea. Maybe you know a package in the tree that
> already does that so I won't have to reinvent the wheel?

Exact fix depends on your build system. Good guide is here:
http://www.gentoo.org/proj/en/qa/automagic.xml
Comment 31 Coacher 2013-03-14 23:45:21 UTC
(In reply to comment #30)
> Hi,
> 
> (In reply to comment #29)
> > OK, that sounds like a good idea. Maybe you know a package in the tree that
> > already does that so I won't have to reinvent the wheel?
> 
> Exact fix depends on your build system. Good guide is here:
> http://www.gentoo.org/proj/en/qa/automagic.xml

Thank you, Andrew. This link is very helpful.
Comment 32 Coacher 2013-03-14 23:47:32 UTC
Created attachment 342060 [details, diff]
ulogd-2.0.2-automagic.patch
Comment 33 Coacher 2013-03-14 23:51:41 UTC
Created attachment 342062 [details]
ulogd-2.0.2-r1.ebuild

Add patch to fix automagic support of dbi, pcap and sqlite3 output plugins.
Comment 34 Coacher 2013-03-19 09:56:55 UTC
So, once again @proxy-main team what do you think about adding this verion to the tree?
Comment 35 Markos Chandras (RETIRED) gentoo-dev 2013-03-19 10:22:25 UTC
(In reply to comment #34)
> So, once again @proxy-main team what do you think about adding this verion
> to the tree?

Yes. Did you send  ulogd-2.0.2-automagic.patch upstream?
Comment 36 Coacher 2013-03-19 10:26:23 UTC
Well, it is attached here in this bug. I am newbie in proxy-maintaining, should I also send it somewhere else?
Comment 37 Markos Chandras (RETIRED) gentoo-dev 2013-03-19 11:19:35 UTC
(In reply to comment #36)
> Well, it is attached here in this bug. I am newbie in proxy-maintaining,
> should I also send it somewhere else?

You should also send it to upstream developers to include it in the next release (if they find it useful otherwise you will have to rewrite it for every version bump if needed)

http://netfilter.org/projects/ulogd/index.html
Comment 38 Sergey Popov gentoo-dev 2013-03-19 11:55:02 UTC
Created attachment 342630 [details]
ulogd-2.0.2.ebuild

Improved ebuild for ulogd-2.0.2:

- some QA fixes, alphabetical sort of dependencies, IUSE, src_configure options, etc;
- improved readability of sed statement;
- move fowners and fperms from pkg_preinst to src_install;
- add keepdir for /var/log/ulogd instead of checkpath in pkg_setup;
- replace die about nfacct plugin and kernel <= 3.3 with ewarn - ulogd build fine with older kernels and this plugin enabled;
- use readme.gentoo eclass;
- prune unnecessary libtool files for modules.
Comment 39 Sergey Popov gentoo-dev 2013-03-19 12:02:45 UTC
Created attachment 342634 [details]
ulogd-2.0.2.ebuild

Err, there was mistake in previous ebuild in keepdir statement - it was '/var/run/ulogd' and it should be '/var/log/ulogd' - we should create directory for logfiles.
Comment 40 Markos Chandras (RETIRED) gentoo-dev 2013-03-19 18:46:24 UTC
(In reply to comment #39)
> Created attachment 342634 [details]
> ulogd-2.0.2.ebuild
> 
> Err, there was mistake in previous ebuild in keepdir statement - it was
> '/var/run/ulogd' and it should be '/var/log/ulogd' - we should create
> directory for logfiles.

The ebuild looks good to me. please commit
Comment 41 Coacher 2013-03-19 19:25:56 UTC
(In reply to comment #37)
> (In reply to comment #36)
> > Well, it is attached here in this bug. I am newbie in proxy-maintaining,
> > should I also send it somewhere else?
> 
> You should also send it to upstream developers to include it in the next
> release (if they find it useful otherwise you will have to rewrite it for
> every version bump if needed)
> 
> http://netfilter.org/projects/ulogd/index.html

Oh, ulogd's upstream. I've thought of gentoo cvs tree. Yeah, I'll sure send this patch there.
Comment 42 Coacher 2013-03-19 20:07:28 UTC
 And thanks(In reply to comment #39)
> Created attachment 342634 [details]
> ulogd-2.0.2.ebuild
> 
> Err, there was mistake in previous ebuild in keepdir statement - it was
> '/var/run/ulogd' and it should be '/var/log/ulogd' - we should create
> directory for logfiles.

Sergey, thank you very much for your ebuild corrections and improvements.
Comment 43 Coacher 2013-03-19 20:10:30 UTC
(In reply to comment #40)
> (In reply to comment #39)
> > Created attachment 342634 [details]
> > ulogd-2.0.2.ebuild
> > 
> > Err, there was mistake in previous ebuild in keepdir statement - it was
> > '/var/run/ulogd' and it should be '/var/log/ulogd' - we should create
> > directory for logfiles.
> 
> The ebuild looks good to me. please commit

Great news! Thanks.

This ebuild also addresses bugs #375777 and #375825, so could you please close them?
Comment 44 Sergey Popov gentoo-dev 2013-03-20 08:18:42 UTC
Ok, i will commit this after some small improvements and careful testing...
Comment 45 Sergey Popov gentoo-dev 2013-03-20 08:39:19 UTC
+  20 Mar 2013; Sergey Popov <pinkbyte@gentoo.org> +ulogd-2.0.2.ebuild,
+  +files/ulogd-2.0.2-automagic.patch, +files/ulogd-2.init,
+  +files/ulogd-2.logrotate, metadata.xml:
+  Version bump, wrt bug #426868, fix bugs #375825 and #375777. Package will be
+  maintained by Coacher <itumaykin AT gmail.com> through proxy maintainers

@Coacher, i remove keyword request on libnetfilter_acct from "Depends" on this bug. You should file rekeyword request on new version of ulogd(due to bunch of introduced dependencies) and add that bug in "Depends". More info - http://devmanual.gentoo.org/keywording/index.html

Feel free to contact with proxy maintainers by e-mail or IRC if you need some clarification on maintaining procedures.
Comment 46 Coacher 2013-03-20 12:29:38 UTC
Created attachment 342712 [details]
ulogd-2.0.2-r1.ebuild

Fix a small typo made by Sergey: double "ulogd.conf.in" in sed call which results in paths being "/var/log/ulogd/ulogd/" instead of simply "/var/log/ulogd".

P.S. I can't make your attachment obsolete which sucks so here's revbump.
Comment 47 Coacher 2013-03-20 13:16:28 UTC
(In reply to comment #37)
> (In reply to comment #36)
> > Well, it is attached here in this bug. I am newbie in proxy-maintaining,
> > should I also send it somewhere else?
> 
> You should also send it to upstream developers to include it in the next
> release (if they find it useful otherwise you will have to rewrite it for
> every version bump if needed)
> 
> http://netfilter.org/projects/ulogd/index.html

Done. Author agreed to merge this into their git so next version should be fixed.
Comment 48 Coacher 2013-03-20 13:17:05 UTC
(In reply to comment #45)
> +  20 Mar 2013; Sergey Popov <pinkbyte@gentoo.org> +ulogd-2.0.2.ebuild,
> +  +files/ulogd-2.0.2-automagic.patch, +files/ulogd-2.init,
> +  +files/ulogd-2.logrotate, metadata.xml:
> +  Version bump, wrt bug #426868, fix bugs #375825 and #375777. Package will
> be
> +  maintained by Coacher <itumaykin AT gmail.com> through proxy maintainers
> 
> @Coacher, i remove keyword request on libnetfilter_acct from "Depends" on
> this bug. You should file rekeyword request on new version of ulogd(due to
> bunch of introduced dependencies) and add that bug in "Depends". More info -
> http://devmanual.gentoo.org/keywording/index.html
> 
> Feel free to contact with proxy maintainers by e-mail or IRC if you need
> some clarification on maintaining procedures.

Done. https://bugs.gentoo.org/show_bug.cgi?id=462480
Comment 49 Sergey Popov gentoo-dev 2013-03-20 13:24:20 UTC
+  20 Mar 2013; Sergey Popov <pinkbyte@gentoo.org> ulogd-2.0.2.ebuild:
+  Fix a typo in sed statement, wrt bug #426868, thanks to Coacher <itumaykin AT
+  gmail.com>