[csw-devel] SF.net SVN: gar:[2458] csw/mgar/pkg/openjade/trunk
bdwalton at users.sourceforge.net
bdwalton at users.sourceforge.net
Thu Dec 4 21:32:13 CET 2008
Revision: 2458
http://gar.svn.sourceforge.net/gar/?rev=2458&view=rev
Author: bdwalton
Date: 2008-12-04 20:32:11 +0000 (Thu, 04 Dec 2008)
Log Message:
-----------
Added postinstall and preremove scripts to register/unregister the sgml/xml
stuff that gets installed. chroot is used to handle the case where
PKG_INSTALL_ROOT is set and isn't '/'.
Modified Paths:
--------------
csw/mgar/pkg/openjade/trunk/Makefile
csw/mgar/pkg/openjade/trunk/checksums
Added Paths:
-----------
csw/mgar/pkg/openjade/trunk/files/CSWopenjade.postinstall
csw/mgar/pkg/openjade/trunk/files/CSWopenjade.preremove
Modified: csw/mgar/pkg/openjade/trunk/Makefile
===================================================================
--- csw/mgar/pkg/openjade/trunk/Makefile 2008-12-04 18:01:12 UTC (rev 2457)
+++ csw/mgar/pkg/openjade/trunk/Makefile 2008-12-04 20:32:11 UTC (rev 2458)
@@ -17,7 +17,7 @@
MASTER_SITES = $(SF_MIRRORS)
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
-DISTFILES += $(call admfiles,CSWopenjade,depend)
+DISTFILES += $(call admfiles,CSWopenjade,depend postinstall preremove)
PATCHFILES = openjade-1.3.1-nsl.patch
Modified: csw/mgar/pkg/openjade/trunk/checksums
===================================================================
--- csw/mgar/pkg/openjade/trunk/checksums 2008-12-04 18:01:12 UTC (rev 2457)
+++ csw/mgar/pkg/openjade/trunk/checksums 2008-12-04 20:32:11 UTC (rev 2458)
@@ -1,4 +1,6 @@
7df692e3186109cc00db6825b777201e download/openjade-1.3.2.tar.gz
3bceb78eeb9bdb38e98e75c6fb20714e download/CSWopenjade.gspec
ea3dd2c469bf7e8efd183f82b743c90f download/CSWopenjade.depend
+a31c09c1e08da2712e87446762d9fcdc download/CSWopenjade.postinstall
+b35aca62389881efb0c0ebb296d9ae14 download/CSWopenjade.preremove
ca3a0ff43d8ed182f432d723927cd2e9 download/openjade-1.3.1-nsl.patch
Added: csw/mgar/pkg/openjade/trunk/files/CSWopenjade.postinstall
===================================================================
--- csw/mgar/pkg/openjade/trunk/files/CSWopenjade.postinstall (rev 0)
+++ csw/mgar/pkg/openjade/trunk/files/CSWopenjade.postinstall 2008-12-04 20:32:11 UTC (rev 2458)
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+CONFCAT=/opt/csw/etc/sgml/openjade-1.3.2-27.soc
+CATALOG=/opt/csw/share/sgml/openjade-1.3.2/catalog
+
+insterror()
+{
+ cat <<EOF
+An error was encountered while installing the openjade sgml catalog info.
+
+Please look in /opt/csw/etc/sgml and possibly rerun:
+/opt/csw/bin/install-catalog --add $CONFCAT $CATALOG
+
+EOF
+ exit 1
+}
+
+PREFIX=
+
+case "$PKG_INSTALL_ROOT" in
+ ""|"/")
+ :
+ ;;
+ *)
+ PREFIX="/usr/sbin/chroot $PKG_INSTALL_ROOT"
+ ;;
+esac
+
+$PREFIX /opt/csw/bin/install-catalog --add $CONFCAT $CATALOG || insterror ()
Added: csw/mgar/pkg/openjade/trunk/files/CSWopenjade.preremove
===================================================================
--- csw/mgar/pkg/openjade/trunk/files/CSWopenjade.preremove (rev 0)
+++ csw/mgar/pkg/openjade/trunk/files/CSWopenjade.preremove 2008-12-04 20:32:11 UTC (rev 2458)
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+CONFCAT=/opt/csw/etc/sgml/openjade-1.3.2-27.soc
+CATALOG=/opt/csw/share/sgml/openjade-1.3.2/catalog
+
+insterror()
+{
+ cat <<EOF
+An error was encountered while removing the openjade sgml catalog info.
+
+Please look in /opt/csw/etc/sgml and possibly rerun:
+/opt/csw/bin/install-catalog --remove $CONFCAT $CATALOG
+
+EOF
+ exit 1
+}
+
+PREFIX=
+
+case "$PKG_INSTALL_ROOT" in
+ ""|"/")
+ :
+ ;;
+ *)
+ PREFIX="/usr/sbin/chroot $PKG_INSTALL_ROOT"
+ ;;
+esac
+
+$PREFIX /opt/csw/bin/install-catalog --remove $CONFCAT $CATALOG || insterror ()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list