ports/149081: [PATCH] shells/lshell: @exec installs incorrect file

Jimmy Olgeni olgeni at FreeBSD.org
Thu Jul 29 20:00:07 UTC 2010


>Number:         149081
>Category:       ports
>Synopsis:       [PATCH] shells/lshell: @exec installs incorrect file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 29 20:00:06 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Jimmy Olgeni
>Release:        FreeBSD 8.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD backoffice 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 14:01:04 CEST 2010
>Description:
When installing shells/lshell from a package, the @exec command
that is supposed to install the default configuration file is listed
after etc/logrotate.d/lshell, therefore the logrotate configuration
ends up installed as etc/lshell.conf (due to %f expansion).

Port maintainer (sylvio at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- lshell-0.9.12_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/shells/lshell/Makefile,v
retrieving revision 1.8
diff -u -u -r1.8 Makefile
--- Makefile	28 May 2010 17:32:59 -0000	1.8
+++ Makefile	29 Jul 2010 19:46:03 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	lshell
 PORTVERSION=	0.9.12
+PORTREVISION=	1
 CATEGORIES=	shells
 MASTER_SITES=	SF
 
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/shells/lshell/pkg-plist,v
retrieving revision 1.5
diff -u -u -r1.5 pkg-plist
--- pkg-plist	17 Apr 2010 20:16:46 -0000	1.5
+++ pkg-plist	29 Jul 2010 19:46:03 -0000
@@ -3,8 +3,8 @@
 @unexec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
 @unexec if cmp -s %D/etc/lshell.conf %D/etc/lshell.conf.sample; then rm -f %D/etc/lshell.conf; fi
 etc/lshell.conf.sample
-etc/logrotate.d/lshell
 @exec if [ ! -f %D/etc/lshell.conf ]; then cp %B/%f %D/etc/lshell.conf; fi
+etc/logrotate.d/lshell
 %%PYTHON_SITELIBDIR%%/lshell.py
 %%PYTHON_SITELIBDIR%%/lshell.pyc
 %%PYTHON_SITELIBDIR%%/lshell.pyo
--- lshell-0.9.12_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list