mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
34 lines
705 B
Plaintext
34 lines
705 B
Plaintext
# $FreeBSD$
|
|
|
|
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
|