ports/185255: shells/ksh93 : fix exec/unexec entries in pkg-plist
Christoph Moench-Tegeder
cmt at burggraben.net
Sat Dec 28 22:50:01 UTC 2013
>Number: 185255
>Category: ports
>Synopsis: shells/ksh93 : fix exec/unexec entries in pkg-plist
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 28 22:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Christoph Moench-Tegeder
>Release: FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD elch.exwg.net 9.2-RELEASE FreeBSD 9.2-RELEASE #11 r255911: Fri Sep 27 17:09:40 CEST 2013 cmt at elch.exwg.net:/usr/obj/usr/src/sys/ELCH amd64
shells/ksh93 ksh93-20120801_1
>Description:
Installing ksh93 adds the manpage (/usr/local/man/man1/ksh93.1.gz)
to /etc/shells, which is not very helpful.
>How-To-Repeat:
>Fix:
According to the documentation in https://wiki.freebsd.org/ports/StageDir
and pkg_create(1)/pkg-create(1), the @exec command corresponds to the
last installed file, and the @unexec command should go before that
file in pkg-plist.
Index: pkg-plist
===================================================================
--- pkg-plist (revision 337927)
+++ pkg-plist (working copy)
@@ -1,7 +1,7 @@
+ at unexec echo "Updating /etc/shells"; sed -i "" "\|%D/%F|d" /etc/shells
bin/ksh93
+ at exec echo "Updating /etc/shells"; sed -i "" "\|%D/%F|d" /etc/shells; echo %D/%F >> /etc/shells
man/man1/ksh93.1.gz
- at exec echo "Updating /etc/shells"; sed -i "" "\|%D/%F|d" /etc/shells; echo %D/%F >> /etc/shells
- at unexec echo "Updating /etc/shells"; sed -i "" "\|%D/%F|d" /etc/shells
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dirs
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/popd
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pushd
Regards,
Christoph
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list