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:
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