diff --git a/Keywords/fc.yaml b/Keywords/fc.yaml deleted file mode 100644 index 239bb4519572..000000000000 --- a/Keywords/fc.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# $FreeBSD$ -# -# MAINTAINER: x11@FreeBSD.org - -actions: [dirrmtry] -post-install: | - fc-cache -s %D/%@ 2>/dev/null || true -post-deinstall: | - fc-cache -s %D/%@ 2>/dev/null || true diff --git a/Keywords/fcfontsdir.yaml b/Keywords/fcfontsdir.yaml deleted file mode 100644 index fdb00a8bf5f4..000000000000 --- a/Keywords/fcfontsdir.yaml +++ /dev/null @@ -1,19 +0,0 @@ -# $FreeBSD$ -# -# MAINTAINER: x11@FreeBSD.org - -actions: [dirrmtry] -post-install: | - fc-cache -s %D/%@ 2>/dev/null || true - mkfontscale %D/%@ 2>/dev/null || true - mkfontdir %D/%@ 2>/dev/null || true -post-deinstall: | - fc-cache -s %D/%@ 2>/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 diff --git a/Keywords/fmtutil.yaml b/Keywords/fmtutil.yaml deleted file mode 100644 index 6e43c183851f..000000000000 --- a/Keywords/fmtutil.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# $FreeBSD$ -# -# MAINTAINER: portmgr@FreeBSD.org - -actions: [] -post-install: | - fmtutil-sys --missing >/dev/null -post-deinstall: | - set -- %@ - for f in $@; do - rm -f $f - rmdir -p ${f%/*} 2>/dev/null - done diff --git a/Keywords/fontsdir.yaml b/Keywords/fontsdir.yaml deleted file mode 100644 index 55357f7fd1ba..000000000000 --- a/Keywords/fontsdir.yaml +++ /dev/null @@ -1,17 +0,0 @@ -# $FreeBSD$ -# -# MAINTAINER: x11@FreeBSD.org - -actions: [dirrmtry] -post-install: | - mkfontscale %D/%@ 2>/dev/null || true - mkfontdir %D/%@ 2>/dev/null || true -post-deinstall: | - 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 diff --git a/Keywords/info.yaml b/Keywords/info.yaml deleted file mode 100644 index 37589b28a92a..000000000000 --- a/Keywords/info.yaml +++ /dev/null @@ -1,11 +0,0 @@ -# $FreeBSD$ -# -# MAINTAINER: portmgr@FreeBSD.org - -actions: [file] -post-install: | - file=%D/%@ - indexinfo ${file%/*} -post-deinstall: | - file=%D/%@ - indexinfo ${file%/*} diff --git a/Keywords/sample.yaml b/Keywords/sample.yaml deleted file mode 100644 index bf65c8a06a81..000000000000 --- a/Keywords/sample.yaml +++ /dev/null @@ -1,37 +0,0 @@ -# $FreeBSD$ -# -# MAINTAINER: portmgr@FreeBSD.org -# -# @sample etc/somefile.conf.sample -# -# This will install the somefile.conf.sample and automatically copy to -# somefile.conf if it doesn't exist. On deinstall it will remove the -# somefile.conf if it still matches the sample, otherwise it is -# kept. -# -# This replaces the old pattern: -# @unexec if cmp -s %D/etc/pkgtools.conf %D/etc/pkgtools.conf.sample; then rm -f %D/etc/pkgtools.conf; fi -# etc/pkgtools.conf.sample -# @exec [ -f %B/pkgtools.conf ] || cp %B/%f %B/pkgtools.conf - -actions: [file] -post-install: | - case "%@" in - /*) sample_file="%@" ;; - *) sample_file="%D/%@" ;; - esac - target_file="${sample_file%.sample}" - if ! [ -f "${target_file}" ]; then - /bin/cp -p "${sample_file}" "${target_file}" - fi -pre-deinstall: | - case "%@" in - /*) sample_file="%@" ;; - *) sample_file="%D/%@" ;; - esac - target_file="${sample_file%.sample}" - if cmp -s "${target_file}" "${sample_file}"; then - rm -f "${target_file}" - else - echo "You may need to manually remove ${target_file} if it's no longer needed." - fi diff --git a/Keywords/shell.yaml b/Keywords/shell.yaml deleted file mode 100644 index 0b373d1c52a0..000000000000 --- a/Keywords/shell.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# $FreeBSD$ -# -# MAINTAINER: portmgr@FreeBSD.org -# -# @shell bin/shell -# -# Handle adding and remove a path to a shell binary into /etc/shells -# it replaces the following code: -# -# bin/shell -# @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 -# @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: | - cp /etc/shells /etc/shells.bak - (grep -v %D/%@ /etc/shells.bak; echo %D/%@) > /etc/shells - rm -f /etc/shells.bak -pre-deinstall: | - cp /etc/shells /etc/shells.bak - grep -v %D/%@ /etc/shells.bak > /etc/shells - rm -f /etc/shells.bak