Reinstalling or upgrading sysutils/scanbuttond will overwrite user-modified config .sh files in /usr/local/etc/scanbuttond/. This patch changes the port to work like other ports. If there are user .sh files present, they are left alone. If not present, sample files are installed. The patch is based on sysutils/apcupsd, which seemed to be the right way to do it. Fix: Apply patch. Patch attached with submission follows: How-To-Repeat: Modify /usr/local/etc/scanbuttond/buttonpressed.sh initscanner.sh. Reinstall the port. Notice the modified files have been replaced with sample files from the port.
Maintainer of sysutils/scanbuttond, Please note that PR ports/159183 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/159183 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
On 07/25/11 18:30, Edwin Groothuis wrote: > Maintainer of sysutils/scanbuttond, > > Please note that PR ports/159183 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/159183 > The patch looks good. I approve it. Thanks!
State Changed From-To: feedback->open Maintainer approved.
Responsible Changed From-To: freebsd-ports-bugs->zi I'll take it.
zi 2011-07-28 21:56:21 UTC FreeBSD ports repository Modified files: sysutils/scanbuttond Makefile pkg-plist Log: Do not overwrite user-edited config files in ETCDIR [1] Bump PORTREVISION Add LICENSE PR: ports/159183 Submitted by: Warren Block <wblock@wonkity.com> [1] Approvd by: tabthorpe (mentor), maintainer Revision Changes Path 1.11 +21 -2 ports/sysutils/scanbuttond/Makefile 1.2 +9 -3 ports/sysutils/scanbuttond/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"
State Changed From-To: open->closed Committed, with minor changes. Thanks!