Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 429090 - app-admin/logcheck ebuild improvements
Summary: app-admin/logcheck ebuild improvements
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Paweł Hajdan, Jr. (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-07-31 19:28 UTC by Manuel Rüger (RETIRED)
Modified: 2012-12-08 05:17 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Rüger (RETIRED) gentoo-dev 2012-07-31 19:28:46 UTC
wrt bug #425092 
--- Comment #3 from Paweł Hajdan, Jr. <phajdan.jr@gentoo.org> ---
Bumped, thanks. I only switched to EAPI 4, I don't see the reason for other
updates in your patch. Please file a separate bug and explain more if needed.


Further explanations:


-DESCRIPTION="Mails anomalies in the system logfiles to the administrator."
+DESCRIPTION="Mails anomalies in the system logfiles to the administrator"

> It is not common to have a period in the description. 

-DEPEND=""
 RDEPEND="!app-admin/logsentry
        app-misc/lockfile-progs
        dev-lang/perl
        dev-perl/mime-construct
+       virtual/mailx"
-       virtual/mailx
-       ${DEPEND}"

> DEPEND is a variable, that is optional. So it can be dropped.

+       doexe "${FILESDIR}"/${PN}.cron
+
+       fowners -R logcheck:logcheck /etc/logcheck /var/{lib,lock}/logcheck 
-       doexe "${FILESDIR}/${PN}.cron"
 }
 
 pkg_postinst() {
-       chown -R logcheck:logcheck /etc/logcheck /var/{lib,lock}/logcheck || die

> If you could do the same in ${D}, is there a reason to change the users etc-dir unasked? If it is related to a previous logsentry install that uses the same dir, then an elog would be better imho because there could be file collisions, too.

+       elog "Please read the guide at http://www.gentoo.org/doc/en/logcheck.xml"
-       elog "Please read the guide ad http://www.gentoo.org/doc/en/logcheck.xml"

> Typo fix.
Comment 1 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-08-01 07:32:41 UTC
(In reply to comment #0)
> > DEPEND is a variable, that is optional. So it can be dropped.

Not really. Do you have something more to support that point? "It works now" does not count.

> +       doexe "${FILESDIR}"/${PN}.cron
> +
> +       fowners -R logcheck:logcheck /etc/logcheck /var/{lib,lock}/logcheck 
> -       doexe "${FILESDIR}/${PN}.cron"
>  }
>  
>  pkg_postinst() {
> -       chown -R logcheck:logcheck /etc/logcheck /var/{lib,lock}/logcheck ||
> die
> 
> > If you could do the same in ${D}, is there a reason to change the users etc-dir unasked? If it is related to a previous logsentry install that uses the same dir, then an elog would be better imho because there could be file collisions, too.

Collisions in /etc are handled differently. I don't remember now, but unless there is a serious, real problem with the current code, I'd not like to change it.
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2012-08-15 23:39:37 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > > DEPEND is a variable, that is optional. So it can be dropped.
> 
> Not really. Do you have something more to support that point? "It works now"
> does not count.
> 

http://dev.gentoo.org/~ulm/pms/head/pms.html#x1-660007.2
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2012-12-08 05:17:01 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > (In reply to comment #0)
> > > > DEPEND is a variable, that is optional. So it can be dropped.
> > 
> > Not really. Do you have something more to support that point? "It works now"
> > does not count.
> > 
> 
> http://dev.gentoo.org/~ulm/pms/head/pms.html#x1-660007.2

Thank you. I didn't know that. Still, the ebuild may define the variable, and I prefer to define it, even if it's empty.