Commit graph

8 commits

Author SHA1 Message Date
Mathieu Arnold
5d33e04596
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
2021-04-06 16:27:10 +02:00
Baptiste Daroussin
60f52c054d Add error checks to @shell
Check errors from Lua io.* library calls to make it show useful error messages
when they do occur instead of ("attempt to index a nil value")

Submitted by:	RhToad (in IRC) <andrew@tao173.riddles.org.uk>
Differential Revision:	https://reviews.freebsd.org/D27154
2021-01-27 17:24:07 +00:00
Baptiste Daroussin
d3e58fed85 Convert @shell from shell script to lua script
This makes @shell rootdir friendly and cross install friendly
as well as capsicumized.

Bonus: the /etc/shells is now only touched when needed

Reviewed by:	manu, mat
Approved by:	portmgr (mat)
Differential Revision:	D26640
2020-10-22 06:39:16 +00:00
Baptiste Daroussin
a593d30187 Remove now useless comments 2016-06-19 22:21:22 +00:00
Baptiste Daroussin
97a6b58a85 Make @shell rootdir friendly to allow cross installation 2016-05-29 22:53:22 +00:00
Mark Johnston
0cebfcf22e When updating /etc/shells, only remove existing entries that match the new
entry exactly. Otherwise we may clobber entries that contain the new entry
as a substring.

Reviewed by:	bdrewery
Approved by:	bdrewery
Sponsored by:	EMC / Isilon Storage Division
2015-02-16 21:34:46 +00:00
Alex Kozlov
6107ede2ac - Accept absolute path for @fc, @fontsdir, @fcfontsdir, @shell keywords
Approved by:	portmgr (antoine, bapt)
Differential Revision:	https://reviews.freebsd.org/D721
2014-10-08 21:39:47 +00:00
Baptiste Daroussin
1cee61cab5 Convert keywords in pure ucl format
yaml version will be removed later
2014-07-24 17:10:57 +00:00