diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-24 22:32:49 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-24 22:32:49 +0000 |
commit | 963854440c8d5cb49ac23779c965d0f6fb408744 (patch) | |
tree | 097b956f7e23b0db264fe1d3cdeee8eafc050cd9 /Keywords | |
parent | ddf8b3e6be1c5e8bd6c6415891ec22c20f432245 (diff) |
Notes
Diffstat (limited to 'Keywords')
-rw-r--r-- | Keywords/xmlcatmgr.ucl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Keywords/xmlcatmgr.ucl b/Keywords/xmlcatmgr.ucl new file mode 100644 index 000000000000..474c4a81bc79 --- /dev/null +++ b/Keywords/xmlcatmgr.ucl @@ -0,0 +1,34 @@ +# $FreeBSD$ + +actions: [file] +arguments: true +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 |