Bug 108466 - sysutils/logrotate: [patch] syslog.sample should go in /usr/local/share/examples/logrotate
Summary: sysutils/logrotate: [patch] syslog.sample should go in /usr/local/share/examp...
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: Gabor Kovesdan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-28 08:40 UTC by Ian Tegebo
Modified: 2007-02-17 21:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Tegebo 2007-01-28 08:40:14 UTC
At our site, having syslog.sample put into /usr/local/etc/logrotate.d means
we have to add 'tabooext + .sample' to our conf file which sends error
messages through cron emails about ignoring the aforementioned example file.

If syslog.sample were put into /usr/local/share/examples/logrotate then
we wouldn't have to take special measures in our cluster installation
procedure; obviously for one or two machines this irritation would never arise.

Fix: 

Submitting two patches for the Makefile and the pkg-plist.

Makefile:
34a35
>       @${MKDIR} ${PREFIX}/share/examples/logrotate
37c38
<       @${INSTALL_DATA} ${FILESDIR}/syslog.sample ${PREFIX}/etc/logrotate.d/
---
>       @${INSTALL_DATA} ${FILESDIR}/syslog.sample ${PREFIX}/share/examples/logrotate/


pkg-plist:
3c3,4
< etc/logrotate.d/syslog.sample
---
> share/examples/logrotate/syslog.sample
> @dirrm share/examples/logrotate
How-To-Repeat: Include /usr/local/etc/logrotate.d in your logrotate.conf.
Comment 1 Shaun Amott freebsd_committer freebsd_triage 2007-01-29 10:45:23 UTC
State Changed
From-To: open->feedback

Awaiting maintainer's feedback.
Comment 2 Gabor Kovesdan freebsd_committer freebsd_triage 2007-02-16 07:40:08 UTC
State Changed
From-To: feedback->open

Maintainer timeout. 


Comment 3 Gabor Kovesdan freebsd_committer freebsd_triage 2007-02-16 07:40:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gabor

Take.
Comment 4 js 2007-02-16 19:21:38 UTC
Hi,

Sorry, there was a failure with my email system in late January.  I'm 
fine with this change, it makes more sense.

Regards:
-- 
Balazs Nagy
Comment 5 dfilter service freebsd_committer freebsd_triage 2007-02-17 20:57:02 UTC
gabor       2007-02-17 20:56:56 UTC

  FreeBSD ports repository

  Modified files:
    sysutils/logrotate   Makefile pkg-plist 
  Log:
  - Install the sample file to EXAMPLESDIR
  - Bump PORTREVISION
  
  PR:             ports/108466
  Submitted by:   Ian Tegebo <yontege@rescomp.berkeley.edu>
  Approved by:    Balazs Nagy <js@iksz.hu> (maintainer),
                  erwin (mentor, implicit)
  
  Revision  Changes    Path
  1.22      +3 -3      ports/sysutils/logrotate/Makefile
  1.2       +2 -2      ports/sysutils/logrotate/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Gabor Kovesdan freebsd_committer freebsd_triage 2007-02-17 21:24:11 UTC
State Changed
From-To: open->closed

Committed, thanks! Note, that the plist change also requires a PORTREVISION 
bump, and you should use the EXAMPLESDIR macro for reffering to 
${PREFIX}/share/examples/${PORTNAME}. I fixed these in the port 
before committing.