From 1cee61cab57a175608fa153da8f17362ce7f8af4 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 24 Jul 2014 17:10:57 +0000 Subject: Convert keywords in pure ucl format yaml version will be removed later --- Keywords/fc.ucl | 11 +++++++++++ Keywords/fcfontsdir.ucl | 21 +++++++++++++++++++++ Keywords/fmtutil.ucl | 15 +++++++++++++++ Keywords/fontsdir.ucl | 19 +++++++++++++++++++ Keywords/info.ucl | 13 +++++++++++++ Keywords/sample.ucl | 31 +++++++++++++++++++++++++++++++ Keywords/shell.ucl | 24 ++++++++++++++++++++++++ 7 files changed, 134 insertions(+) create mode 100644 Keywords/fc.ucl create mode 100644 Keywords/fcfontsdir.ucl create mode 100644 Keywords/fmtutil.ucl create mode 100644 Keywords/fontsdir.ucl create mode 100644 Keywords/info.ucl create mode 100644 Keywords/sample.ucl create mode 100644 Keywords/shell.ucl (limited to 'Keywords') diff --git a/Keywords/fc.ucl b/Keywords/fc.ucl new file mode 100644 index 000000000000..fbcc0672fca9 --- /dev/null +++ b/Keywords/fc.ucl @@ -0,0 +1,11 @@ +# $FreeBSD$ +# +# MAINTAINER: x11@FreeBSD.org + +actions: [dirrmtry] +post-install: </dev/null || true +EOD +post-deinstall: </dev/null || true +EOD diff --git a/Keywords/fcfontsdir.ucl b/Keywords/fcfontsdir.ucl new file mode 100644 index 000000000000..542465aea714 --- /dev/null +++ b/Keywords/fcfontsdir.ucl @@ -0,0 +1,21 @@ +# $FreeBSD$ +# +# MAINTAINER: x11@FreeBSD.org + +actions: [dirrmtry] +post-install: </dev/null || true + mkfontscale %D/%@ 2>/dev/null || true + mkfontdir %D/%@ 2>/dev/null || true +EOD +post-deinstall: </dev/null || true + mkfontscale %D/%@ 2>/dev/null || true + if [ -e %D/%@/fonts.scale -a "`stat -f '%%z' %D/%@/fonts.scale 2>/dev/null`" = '2' ]; then + rm %D/%@/fonts.scale + fi + mkfontdir %D/%@ 2>/dev/null || true + if [ -e %D/%@/fonts.dir -a "`stat -f '%%z' %D/%@/fonts.dir 2>/dev/null`" = '2' ]; then + rm %D/%@/fonts.dir + fi +EOD diff --git a/Keywords/fmtutil.ucl b/Keywords/fmtutil.ucl new file mode 100644 index 000000000000..b20f2ed9575c --- /dev/null +++ b/Keywords/fmtutil.ucl @@ -0,0 +1,15 @@ +# $FreeBSD$ +# +# MAINTAINER: portmgr@FreeBSD.org + +actions: [] +post-install: </dev/null +EOD +post-deinstall: </dev/null + done +EOD diff --git a/Keywords/fontsdir.ucl b/Keywords/fontsdir.ucl new file mode 100644 index 000000000000..d4974074f448 --- /dev/null +++ b/Keywords/fontsdir.ucl @@ -0,0 +1,19 @@ +# $FreeBSD$ +# +# MAINTAINER: x11@FreeBSD.org + +actions: [dirrmtry] +post-install: </dev/null || true + mkfontdir %D/%@ 2>/dev/null || true +EOD +post-deinstall: </dev/null || true + if [ -e %D/%@/fonts.scale -a "`stat -f '%%z' %D/%@/fonts.scale 2>/dev/null`" = '2' ]; then + rm %D/%@/fonts.scale + fi + mkfontdir %D/%@ 2>/dev/null || true + if [ -e %D/%@/fonts.dir -a "`stat -f '%%z' %D/%@/fonts.dir 2>/dev/null`" = '2' ]; then + rm %D/%@/fonts.dir + fi +EOD diff --git a/Keywords/info.ucl b/Keywords/info.ucl new file mode 100644 index 000000000000..b0d4b02ac4a4 --- /dev/null +++ b/Keywords/info.ucl @@ -0,0 +1,13 @@ +# $FreeBSD$ +# +# MAINTAINER: portmgr@FreeBSD.org + +actions: [file] +post-install: </etc/shells; rm -f /etc/shells.bak +# @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 + +actions: [file] +post-install: < /etc/shells + rm -f /etc/shells.bak +EOD +pre-deinstall: < /etc/shells + rm -f /etc/shells.bak +EOD -- cgit v1.2.3