freebsd-ports/Keywords/xmlcatmgr.ucl
Mathieu Arnold 5d33e04596
framework: Remove $FreeBSD$
Where appropriate fiddle with a few other things.
2021-04-06 16:27:10 +02:00

34 lines
727 B
Plaintext

# MAINTAINER: portmgr@FreeBSD.org
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