diff options
Diffstat (limited to 'Keywords/xmlcatmgr.ucl')
-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 |