Update graphics/kcoloredit to version 2.0.0.4.4.0_5
[dports.git] / Keywords / shell.ucl
1 # $FreeBSD: head/Keywords/shell.ucl 362833 2014-07-24 17:10:57Z bapt $
2 #
3 # MAINTAINER: portmgr@FreeBSD.org
4 #
5 # @shell bin/shell
6 #
7 # Handle adding and remove a path to a shell binary into /etc/shells
8 # it replaces the following code:
9 #
10 # bin/shell
11 # @exec echo "Updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
12 # @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
13
14 actions: [file]
15 post-install: <<EOD
16         cp /etc/shells /etc/shells.bak
17         (grep -v %D/%@ /etc/shells.bak; echo %D/%@) > /etc/shells
18         rm -f /etc/shells.bak
19 EOD
20 pre-deinstall: <<EOD
21         cp /etc/shells /etc/shells.bak
22         grep -v %D/%@ /etc/shells.bak > /etc/shells
23         rm -f /etc/shells.bak
24 EOD