mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
create bsd12 branch
This commit is contained in:
11
Keywords/desktop-file-utils.ucl
Normal file
11
Keywords/desktop-file-utils.ucl
Normal file
@@ -0,0 +1,11 @@
|
||||
# $FreeBSD: head/Keywords/desktop-file-utils.ucl 368907 2014-09-22 12:48:27Z bapt $
|
||||
#
|
||||
# MAINTAINER: gnome@FreeBSD.org
|
||||
|
||||
actions: []
|
||||
post-install: <<EOD
|
||||
update-desktop-database -q > /dev/null || true
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
update-desktop-database -q > /dev/null || true
|
||||
EOD
|
||||
19
Keywords/fc.ucl
Normal file
19
Keywords/fc.ucl
Normal file
@@ -0,0 +1,19 @@
|
||||
# $FreeBSD: head/Keywords/fc.ucl 396872 2015-09-13 23:30:21Z hrs $
|
||||
#
|
||||
# MAINTAINER: x11@FreeBSD.org
|
||||
|
||||
actions: [dir]
|
||||
post-install: <<EOD
|
||||
case "%@" in
|
||||
/*) fontsdir="%@" ;;
|
||||
*) fontsdir="%D/%@" ;;
|
||||
esac
|
||||
fc-cache -fs ${fontsdir} 2>/dev/null || true
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
case "%@" in
|
||||
/*) fontsdir="%@" ;;
|
||||
*) fontsdir="%D/%@" ;;
|
||||
esac
|
||||
fc-cache -fs ${fontsdir} 2>/dev/null || true
|
||||
EOD
|
||||
29
Keywords/fcfontsdir.ucl
Normal file
29
Keywords/fcfontsdir.ucl
Normal file
@@ -0,0 +1,29 @@
|
||||
# $FreeBSD: head/Keywords/fcfontsdir.ucl 383480 2015-04-06 20:22:58Z feld $
|
||||
#
|
||||
# MAINTAINER: x11@FreeBSD.org
|
||||
|
||||
actions: [dir]
|
||||
post-install: <<EOD
|
||||
case "%@" in
|
||||
/*) fontsdir="%@" ;;
|
||||
*) fontsdir="%D/%@" ;;
|
||||
esac
|
||||
fc-cache -fs ${fontsdir} 2>/dev/null || true
|
||||
mkfontscale ${fontsdir} 2>/dev/null || true
|
||||
mkfontdir ${fontsdir} 2>/dev/null || true
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
case "%@" in
|
||||
/*) fontsdir="%@" ;;
|
||||
*) fontsdir="%D/%@" ;;
|
||||
esac
|
||||
fc-cache -fs ${fontsdir} 2>/dev/null || true
|
||||
mkfontscale ${fontsdir} 2>/dev/null || true
|
||||
if [ -e ${fontsdir}/fonts.scale -a "`stat -f '%%z' ${fontsdir}/fonts.scale 2>/dev/null`" = '2' ]; then
|
||||
rm ${fontsdir}/fonts.scale
|
||||
fi
|
||||
mkfontdir ${fontsdir} 2>/dev/null || true
|
||||
if [ -e ${fontsdir}/fonts.dir -a "`stat -f '%%z' ${fontsdir}/fonts.dir 2>/dev/null`" = '2' ]; then
|
||||
rm ${fontsdir}/fonts.dir
|
||||
fi
|
||||
EOD
|
||||
15
Keywords/fmtutil.ucl
Normal file
15
Keywords/fmtutil.ucl
Normal file
@@ -0,0 +1,15 @@
|
||||
# $FreeBSD: head/Keywords/fmtutil.ucl 362833 2014-07-24 17:10:57Z bapt $
|
||||
#
|
||||
# MAINTAINER: portmgr@FreeBSD.org
|
||||
|
||||
actions: []
|
||||
post-install: <<EOD
|
||||
fmtutil-sys --missing >/dev/null
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
set -- %@
|
||||
for f in $@; do
|
||||
rm -f $f
|
||||
rmdir -p ${f%/*} 2>/dev/null
|
||||
done
|
||||
EOD
|
||||
27
Keywords/fontsdir.ucl
Normal file
27
Keywords/fontsdir.ucl
Normal file
@@ -0,0 +1,27 @@
|
||||
# $FreeBSD: head/Keywords/fontsdir.ucl 396872 2015-09-13 23:30:21Z hrs $
|
||||
#
|
||||
# MAINTAINER: x11@FreeBSD.org
|
||||
|
||||
actions: [dir]
|
||||
post-install: <<EOD
|
||||
case "%@" in
|
||||
/*) fontsdir="%@" ;;
|
||||
*) fontsdir="%D/%@" ;;
|
||||
esac
|
||||
mkfontscale ${fontsdir} 2>/dev/null || true
|
||||
mkfontdir ${fontsdir} 2>/dev/null || true
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
case "%@" in
|
||||
/*) fontsdir="%@" ;;
|
||||
*) fontsdir="%D/%@" ;;
|
||||
esac
|
||||
mkfontscale ${fontsdir} 2>/dev/null || true
|
||||
if [ -e ${fontsdir}/fonts.scale -a "`stat -f '%%z' ${fontsdir}/fonts.scale 2>/dev/null`" = '2' ]; then
|
||||
rm ${fontsdir}/fonts.scale
|
||||
fi
|
||||
mkfontdir ${fontsdir} 2>/dev/null || true
|
||||
if [ -e ${fontsdir}/fonts.dir -a "`stat -f '%%z' ${fontsdir}/fonts.dir 2>/dev/null`" = '2' ]; then
|
||||
rm ${fontsdir}/fonts.dir
|
||||
fi
|
||||
EOD
|
||||
16
Keywords/glib-schemas.ucl
Normal file
16
Keywords/glib-schemas.ucl
Normal file
@@ -0,0 +1,16 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
# MAINTAINER: gnome@FreeBSD.org
|
||||
#
|
||||
# Rebuild the glib schema cache.
|
||||
#
|
||||
# Ports installing glib schemas should use the GLIB_SCHEMAS macro
|
||||
# from USE_GNOME instead of calling this keyword directly.
|
||||
|
||||
actions: []
|
||||
post-install: <<EOD
|
||||
glib-compile-schemas %D/share/glib-2.0/schemas > /dev/null || true
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
glib-compile-schemas %D/share/glib-2.0/schemas > /dev/null || true
|
||||
EOD
|
||||
19
Keywords/info.ucl
Normal file
19
Keywords/info.ucl
Normal file
@@ -0,0 +1,19 @@
|
||||
# $FreeBSD: head/Keywords/info.ucl 399974 2015-10-22 13:30:32Z bapt $
|
||||
#
|
||||
# MAINTAINER: portmgr@FreeBSD.org
|
||||
|
||||
actions: [file]
|
||||
post-install: <<EOD
|
||||
case "%@" in
|
||||
/*) file="%@" ;;
|
||||
*) file="%D/%@" ;;
|
||||
esac
|
||||
indexinfo ${PKG_ROOTDIR}${file%/*}
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
case "%@" in
|
||||
/*) file="%@" ;;
|
||||
*) file="%D/%@" ;;
|
||||
esac
|
||||
indexinfo ${PKG_ROOTDIR}${file%/*}
|
||||
EOD
|
||||
15
Keywords/javavm.ucl
Normal file
15
Keywords/javavm.ucl
Normal file
@@ -0,0 +1,15 @@
|
||||
# $FreeBSD: head/Keywords/javavm.ucl 419368 2016-07-31 12:47:28Z bapt $
|
||||
#
|
||||
# The argument is not registered as a file because of how the various
|
||||
# jdk/jre are made: kind of autoplist which would make the bin/java registered
|
||||
# twice
|
||||
#
|
||||
# MAINAINER: java@FreeBSD.org
|
||||
|
||||
actions: []
|
||||
post-install: <<EOD
|
||||
registervm %@
|
||||
EOD
|
||||
pre-deinstall: <<EOD
|
||||
unregistervm %@
|
||||
EOD
|
||||
24
Keywords/kld.ucl
Normal file
24
Keywords/kld.ucl
Normal file
@@ -0,0 +1,24 @@
|
||||
# $FreeBSD: head/Keywords/kld.ucl 416132 2016-05-29 23:08:43Z bapt $
|
||||
#
|
||||
# MAINTAINER: rene@FreeBSD.org
|
||||
|
||||
actions: []
|
||||
post-install: <<EOD
|
||||
case "%@" in
|
||||
/*) kmoddir="%@" ;;
|
||||
*) kmoddir="%D/%@" ;;
|
||||
esac
|
||||
/usr/sbin/kldxref ${PKG_ROOTDIR}${kmoddir}
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
case "%@" in
|
||||
/*) kmoddir="%@" ;;
|
||||
*) kmoddir="%D/%@" ;;
|
||||
esac
|
||||
/usr/sbin/kldxref ${PKG_ROOTDIR}${kmoddir}
|
||||
case "${kmoddir}" in
|
||||
%D/*) ;;
|
||||
/boot/modules) ;;
|
||||
*) rmdir -p ${PKG_ROOTDIR}${kmoddir} 2>/dev/null || true ;;
|
||||
esac
|
||||
EOD
|
||||
15
Keywords/ldconfig-linux.ucl
Normal file
15
Keywords/ldconfig-linux.ucl
Normal file
@@ -0,0 +1,15 @@
|
||||
# $FreeBSD: head/Keywords/ldconfig-linux.ucl 509644 2019-08-23 12:46:14Z bapt $
|
||||
#
|
||||
# MAINTAINER: portmgr@FreeBSD.org
|
||||
#
|
||||
|
||||
post-install: <<EOD
|
||||
if [ -n "$(/sbin/sysctl -q compat.linux.osrelease)" ]; then
|
||||
%@/sbin/ldconfig
|
||||
fi
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
if [ -n "$(/sbin/sysctl -q compat.linux.osrelease)" ]; then
|
||||
%@/sbin/ldconfig
|
||||
fi
|
||||
EOD
|
||||
19
Keywords/ldconfig.ucl
Normal file
19
Keywords/ldconfig.ucl
Normal file
@@ -0,0 +1,19 @@
|
||||
# $FreeBSD: head/Keywords/ldconfig.ucl 509644 2019-08-23 12:46:14Z bapt $
|
||||
#
|
||||
# MAINTAINER: portmgr@FreeBSD.org
|
||||
#
|
||||
|
||||
post-install: <<EOD
|
||||
if ! /usr/sbin/service ldconfig restart >/dev/null; then
|
||||
if [ -z "${INSTALL_AS_USER}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
if ! /usr/sbin/service ldconfig restart >/dev/null; then
|
||||
if [ -z "${INSTALL_AS_USER}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
EOD
|
||||
11
Keywords/rmtry.ucl
Normal file
11
Keywords/rmtry.ucl
Normal file
@@ -0,0 +1,11 @@
|
||||
# $FreeBSD: head/Keywords/rmtry.ucl 367153 2014-09-03 05:16:13Z bapt $
|
||||
#
|
||||
# MAINTAINER: portmgr@FreeBSD.org
|
||||
actions: []
|
||||
post-deinstall: <<EOD
|
||||
case "%@" in
|
||||
/*) f="%@" ;;
|
||||
*) f="%D/%@" ;;
|
||||
esac
|
||||
/bin/rm -f $f 2>/dev/null || /usr/bin/true
|
||||
EOD
|
||||
61
Keywords/sample.ucl
Normal file
61
Keywords/sample.ucl
Normal file
@@ -0,0 +1,61 @@
|
||||
# $FreeBSD: head/Keywords/sample.ucl 417335 2016-06-22 21:44:25Z bapt $
|
||||
#
|
||||
# MAINTAINER: portmgr@FreeBSD.org
|
||||
#
|
||||
# @sample etc/somefile.conf.sample
|
||||
# or
|
||||
# @sample file1 file2
|
||||
#
|
||||
# Where file1 is considered as a sample file and file2 the target file
|
||||
#
|
||||
# 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(1)]
|
||||
arguments: true
|
||||
post-install: <<EOD
|
||||
case "%1" in
|
||||
/*) sample_file="%1" ;;
|
||||
*) sample_file="%D/%1" ;;
|
||||
esac
|
||||
target_file="${sample_file%.sample}"
|
||||
set -- %@
|
||||
if [ $# -eq 2 ]; then
|
||||
target_file=${2}
|
||||
fi
|
||||
case "${target_file}" in
|
||||
/*) target_file="${target_file}" ;;
|
||||
*) target_file="%D/${target_file}" ;;
|
||||
esac
|
||||
if ! [ -f "${target_file}" ]; then
|
||||
/bin/cp -p "${sample_file}" "${target_file}"
|
||||
fi
|
||||
EOD
|
||||
pre-deinstall: <<EOD
|
||||
case "%1" in
|
||||
/*) sample_file="%1" ;;
|
||||
*) sample_file="%D/%1" ;;
|
||||
esac
|
||||
target_file="${sample_file%.sample}"
|
||||
set -- %@
|
||||
if [ $# -eq 2 ]; then
|
||||
set -- %@
|
||||
target_file=${2}
|
||||
fi
|
||||
case "${target_file}" in
|
||||
/*) target_file="${target_file}" ;;
|
||||
*) target_file="%D/${target_file}" ;;
|
||||
esac
|
||||
if cmp -s "${target_file}" "${sample_file}"; then
|
||||
rm -f "${target_file}"
|
||||
else
|
||||
echo "You may need to manually remove ${target_file} if it is no longer needed."
|
||||
fi
|
||||
EOD
|
||||
11
Keywords/shared-mime-info.ucl
Normal file
11
Keywords/shared-mime-info.ucl
Normal file
@@ -0,0 +1,11 @@
|
||||
# $FreeBSD: head/Keywords/shared-mime-info.ucl 368907 2014-09-22 12:48:27Z bapt $
|
||||
#
|
||||
# MAINTAINER: gnome@FreeBSD.org
|
||||
|
||||
actions: []
|
||||
post-install: <<EOD
|
||||
update-mime-database %D/%@ || true
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
update-mime-database %D/%@ || true
|
||||
EOD
|
||||
28
Keywords/shell.ucl
Normal file
28
Keywords/shell.ucl
Normal file
@@ -0,0 +1,28 @@
|
||||
# $FreeBSD: head/Keywords/shell.ucl 417133 2016-06-19 22:21:22Z bapt $
|
||||
#
|
||||
# MAINTAINER: portmgr@FreeBSD.org
|
||||
#
|
||||
# @shell bin/shell
|
||||
#
|
||||
# Handle adding and remove a path to a shell binary into /etc/shells
|
||||
#
|
||||
|
||||
actions: [file]
|
||||
post-install: <<EOD
|
||||
case "%@" in
|
||||
/*) file="%@" ;;
|
||||
*) file="%D/%@" ;;
|
||||
esac
|
||||
cp ${PKG_ROOTDIR}/etc/shells ${PKG_ROOTDIR}/etc/shells.bak
|
||||
(grep -v "^${file}$" ${PKG_ROOTDIR}/etc/shells.bak; echo ${file}) > ${PKG_ROOTDIR}/etc/shells
|
||||
rm -f ${PKG_ROOTDIR}/etc/shells.bak
|
||||
EOD
|
||||
pre-deinstall: <<EOD
|
||||
case "%@" in
|
||||
/*) file="%@" ;;
|
||||
*) file="%D/%@" ;;
|
||||
esac
|
||||
cp ${PKG_ROOTDIR}/etc/shells ${PKG_ROOTDIR}/etc/shells.bak
|
||||
grep -v "^${file}$" ${PKG_ROOTDIR}/etc/shells.bak > ${PKG_ROOTDIR}/etc/shells
|
||||
rm -f ${PKG_ROOTDIR}/etc/shells.bak
|
||||
EOD
|
||||
22
Keywords/terminfo.ucl
Normal file
22
Keywords/terminfo.ucl
Normal file
@@ -0,0 +1,22 @@
|
||||
# $FreeBSD: head/Keywords/terminfo.ucl 398827 2015-10-08 14:12:53Z amdmi3 $
|
||||
#
|
||||
|
||||
actions: []
|
||||
post-install: <<EOD
|
||||
terminfodir=%D/share/misc
|
||||
terminfodb=${terminfodir}/terminfo.db
|
||||
if [ -e ${terminfodb}.default ] && which -s tic; then
|
||||
cp ${terminfodb}.default ${terminfodb}
|
||||
find -s ${terminfodir} -name "*.terminfo" -exec tic {} \;
|
||||
fi
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
terminfodir=%D/share/misc
|
||||
terminfodb=${terminfodir}/terminfo.db
|
||||
if [ -e ${terminfodb}.default ] && which -s tic; then
|
||||
cp ${terminfodb}.default ${terminfodb}
|
||||
find -s ${terminfodir} -name "*.terminfo" -exec tic {} \;
|
||||
else
|
||||
rm -f ${terminfodb}
|
||||
fi
|
||||
EOD
|
||||
33
Keywords/xmlcatmgr.ucl
Normal file
33
Keywords/xmlcatmgr.ucl
Normal file
@@ -0,0 +1,33 @@
|
||||
# $FreeBSD: head/Keywords/xmlcatmgr.ucl 417878 2016-07-01 13:09:49Z bapt $
|
||||
|
||||
actions: [file]
|
||||
post-install: <<EOD
|
||||
case "%@" in
|
||||
/*) cat="%@" ;;
|
||||
*) cat="%D/%@" ;;
|
||||
esac
|
||||
case "%@" in
|
||||
*.xml)
|
||||
xmlcatmgr_cmd="xmlcatmgr -c ${PKG_ROOTDIR}%D/share/xml/catalog.ports add nextCatalog"
|
||||
;;
|
||||
*)
|
||||
xmlcatmgr_cmd="xmlcatmgr -sc ${PKG_ROOTDIR}%D/share/sgml/catalog.ports add CATALOG"
|
||||
;;
|
||||
esac
|
||||
${xmlcatmgr_cmd} ${cat}
|
||||
EOD
|
||||
post-deinstall: <<EOD
|
||||
case "%@" in
|
||||
/*) cat="%@" ;;
|
||||
*) cat="%D/%@" ;;
|
||||
esac
|
||||
case "%@" in
|
||||
*.xml)
|
||||
xmlcatmgr_cmd="xmlcatmgr -c ${PKG_ROOTDIR}%D/share/xml/catalog.ports remove nextCatalog"
|
||||
;;
|
||||
*)
|
||||
xmlcatmgr_cmd="xmlcatmgr -sc ${PKG_ROOTDIR}%D/share/sgml/catalog.ports remove CATALOG"
|
||||
;;
|
||||
esac
|
||||
${xmlcatmgr_cmd} ${cat}
|
||||
EOD
|
||||
Reference in New Issue
Block a user