create bsd12 branch

This commit is contained in:
ziggi
2019-12-26 07:26:06 +00:00
commit 5cfdab6bfe
14432 changed files with 2272620 additions and 0 deletions

33
Keywords/xmlcatmgr.ucl Normal file
View 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