23245494 Move sgml-common 0.6.3 to Userland
authorAlan Coopersmith <Alan.Coopersmith@Oracle.COM>
Mon, 03 Oct 2016 13:19:13 -0700
changeset 7042 582373e0fdee
parent 7041 f02b84458bf7
child 7043 5286838de66c
23245494 Move sgml-common 0.6.3 to Userland 23245497 Move xml-common 0.6.3 to Userland LSARC/2005/734 GNOME For Nevada
components/docbook/sgml-common/Makefile
components/docbook/sgml-common/files/html.dcl
components/docbook/sgml-common/files/html.soc
components/docbook/sgml-common/files/xml.dcl
components/docbook/sgml-common/files/xml.soc
components/docbook/sgml-common/patches/sgml-common-01-umask.patch
components/docbook/sgml-common/patches/sgml-common-02-xmldir.patch
components/docbook/sgml-common/patches/sgml-common-03-quotes.patch
components/docbook/sgml-common/patches/sgml-common-04-automake.patch
components/docbook/sgml-common/patches/sgml-common-05-docdir.patch
components/docbook/sgml-common/sgml-common.license
components/docbook/sgml-common/sgml-common.p5m
components/docbook/sgml-common/xml-common.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/Makefile	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,95 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+BUILD_BITS=		64
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		sgml-common
+COMPONENT_VERSION=	0.6.3
+COMPONENT_PROJECT_URL=	http://www.w3.org/2003/entities/
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
+COMPONENT_ARCHIVE_HASH=	\
+    sha256:7dc418c1d361123ffc5e45d61f1b97257940a8eb35d0bfbbc493381cc5b1f959
+COMPONENT_ARCHIVE_URL= http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)/103c9828f24820df86e55e7862e28974/$(COMPONENT_ARCHIVE)
+COMPONENT_BUGDB=	utility/docbook
+
+TPNO=			9459
+
+TEST_TARGET = $(NO_TESTS)
+
+include $(WS_MAKE_RULES)/common.mk
+
+COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
+COMPONENT_PREP_ACTION = \
+        (cd $(@D) ; \
+        aclocal -I . ; \
+        autoconf ; \
+        automake --add-missing --copy )
+
+CONFIGURE_OPTIONS +=	--sysconfdir=$(ETCDIR)
+CONFIGURE_OPTIONS +=	--with-docdir=$(USRSHAREDOCDIR)
+
+# The /etc/sgml/catalog file is really generated by the
+# svc:/application/desktop-cache/docbook-dtds-update:default service.
+# We create (and deliver) an empty file so that if/when this package is
+# removed, then that file will be too.
+COMPONENT_POST_INSTALL_ACTION += $(MKDIR) $(PROTOETCDIR)/sgml/docbook ;
+COMPONENT_POST_INSTALL_ACTION += $(TOUCH) $(PROTOETCDIR)/sgml/catalog ;
+
+# The xmlcatalogs on the other hand are generated here, not by a service.
+SGMLXMLCATALOG=$(ETCDIR)/sgml/docbook/xmlcatalog
+XMLCATALOG=$(ETCDIR)/xml/catalog
+
+# Create an empty XML catalog.
+COMPONENT_POST_INSTALL_ACTION += $(MKDIR) $(PROTOETCDIR)/xml ;
+COMPONENT_POST_INSTALL_ACTION += \
+	$(USRBINDIR)/xmlcatalog --noout --create $(PROTO_DIR)$(XMLCATALOG) ;
+
+# Now put the common DocBook entries in it
+COMPONENT_POST_INSTALL_ACTION += \
+	$(USRBINDIR)/xmlcatalog --noout --add "delegatePublic" \
+		"-//OASIS//ENTITIES DocBook XML" \
+		"file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \
+	$(USRBINDIR)/xmlcatalog --noout --add "delegatePublic" \
+		"-//OASIS//DTD DocBook XML" \
+		"file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \
+	$(USRBINDIR)/xmlcatalog --noout --add "delegatePublic" \
+		"ISO 8879:1986" \
+		"file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \
+	$(USRBINDIR)/xmlcatalog --noout --add "delegateSystem" \
+		"http://www.oasis-open.org/docbook/" \
+		"file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ; \
+	$(USRBINDIR)/xmlcatalog --noout --add "delegateURI" \
+		"http://www.oasis-open.org/docbook/" \
+		"file://$(SGMLXMLCATALOG)" $(PROTO_DIR)$(XMLCATALOG) ;
+
+# Also create the common DocBook catalog
+COMPONENT_POST_INSTALL_ACTION += \
+	$(USRBINDIR)/xmlcatalog --noout --create \
+		$(PROTO_DIR)$(SGMLXMLCATALOG) ;
+
+# library/libxml2 provides the xmlcatalog command run above
+REQUIRED_PACKAGES += library/libxml2
+REQUIRED_PACKAGES += shell/ksh93
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/files/html.dcl	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,88 @@
+<!SGML  "ISO 8879:1986"
+--
+	SGML Declaration for HyperText Markup Language (HTML).
+
+--
+
+CHARSET
+         BASESET  "ISO 646:1983//CHARSET
+                   International Reference Version
+                   (IRV)//ESC 2/5 4/0"
+         DESCSET  0   9   UNUSED
+                  9   2   9
+                  11  2   UNUSED
+                  13  1   13
+                  14  18  UNUSED
+                  32  95  32
+                  127 1   UNUSED
+     BASESET   "ISO Registration Number 100//CHARSET
+                ECMA-94 Right Part of
+                Latin Alphabet Nr. 1//ESC 2/13 4/1"
+
+         DESCSET  128  32   UNUSED
+                  160  96    32
+
+CAPACITY        SGMLREF
+                TOTALCAP        150000
+                GRPCAP          150000
+		ENTCAP		150000
+  
+SCOPE    DOCUMENT
+SYNTAX   
+         SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
+		 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 127
+         BASESET  "ISO 646:1983//CHARSET
+                   International Reference Version
+                   (IRV)//ESC 2/5 4/0"
+         DESCSET  0 128 0
+         FUNCTION
+		  RE          13
+                  RS          10
+                  SPACE       32
+                  TAB SEPCHAR  9
+	
+
+         NAMING   LCNMSTRT ""
+                  UCNMSTRT ""
+                  LCNMCHAR ".-"
+                  UCNMCHAR ".-"
+                  NAMECASE GENERAL YES
+                           ENTITY  NO
+         DELIM    GENERAL  SGMLREF
+                  SHORTREF SGMLREF
+         NAMES    SGMLREF
+         QUANTITY SGMLREF
+                  ATTSPLEN 2100
+                  LITLEN   1024
+                  NAMELEN  72    -- somewhat arbitrary; taken from
+                                internet line length conventions --
+                  PILEN    1024
+                  TAGLVL   100
+                  TAGLEN   2100
+                  GRPGTCNT 150
+                  GRPCNT   64                   
+
+FEATURES
+  MINIMIZE
+    DATATAG  NO
+    OMITTAG  YES
+    RANK     NO
+    SHORTTAG YES
+  LINK
+    SIMPLE   NO
+    IMPLICIT NO
+    EXPLICIT NO
+  OTHER
+    CONCUR   NO
+    SUBDOC   NO
+    FORMAL   YES
+  APPINFO    "SDA"  -- conforming SGML Document Access application
+		    --
+>
+<!-- 
+	$Id: html.dcl,v 1.1.1.1 1999/05/02 12:50:44 Avi Exp $
+
+	Author: Daniel W. Connolly <[email protected]>
+
+	See also: http://www.w3.org/hypertext/WWW/MarkUp/MarkUp.html
+ -->
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/files/html.soc	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,31 @@
+	-- catalog: SGML Open style entity catalog for HTML --
+	-- $Id: html.soc,v 1.1.1.2 1999/05/02 15:41:46 Avi Exp $ --
+	-- Hacked by jjc --
+
+	-- Ways to refer to Level 2: most general to most specific --
+PUBLIC	"-//IETF//DTD HTML//EN"			html.dtd
+PUBLIC	"-//IETF//DTD HTML 2.0//EN"		html.dtd
+PUBLIC	"-//IETF//DTD HTML Level 2//EN"		html.dtd
+PUBLIC	"-//IETF//DTD HTML 2.0 Level 2//EN"	html.dtd
+
+	-- Ways to refer to Level 1: most general to most specific --
+PUBLIC	"-//IETF//DTD HTML Level 1//EN"		html-1.dtd
+PUBLIC	"-//IETF//DTD HTML 2.0 Level 1//EN"	html-1.dtd
+
+	-- Ways to refer to
+		 Strict Level 2: most general to most specific --
+PUBLIC	"-//IETF//DTD HTML Strict//EN"			html-s.dtd
+PUBLIC	"-//IETF//DTD HTML 2.0 Strict//EN"		html-s.dtd
+PUBLIC	"-//IETF//DTD HTML Strict Level 2//EN"		html-s.dtd
+PUBLIC	"-//IETF//DTD HTML 2.0 Strict Level 2//EN"	html-s.dtd
+
+	-- Ways to refer to
+		 Strict Level 1: most general to most specific --
+PUBLIC	"-//IETF//DTD HTML Strict Level 1//EN"		html-1s.dtd
+PUBLIC	"-//IETF//DTD HTML 2.0 Strict Level 1//EN"	html-1s.dtd
+
+	-- ISO latin 1 entity set for HTML -- 
+PUBLIC	"ISO 8879-1986//ENTITIES Added Latin 1//EN//HTML"	ISOlat1.sgm
+
+SGMLDECL html.dcl
+DOCTYPE html html.dtd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/files/xml.dcl	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,179 @@
+<!SGML -- SGML Declaration for valid XML documents --
+     "ISO 8879:1986 (WWW)"
+
+     CHARSET
+         BASESET
+             "ISO Registration Number 176//CHARSET
+             ISO/IEC 10646-1:1993 UCS-4 with implementation 
+             level 3//ESC 2/5 2/15 4/6"
+         DESCSET
+                0       9       UNUSED
+                9       2       9
+                11      2       UNUSED
+                13      1       13
+                14      18      UNUSED
+                32      95      32
+                127     1       UNUSED
+                128     32      UNUSED
+             -- use this instead of the official declaration because SP only
+                supports 16-bit characters --
+                160     65374   160
+                65534   2       UNUSED 
+             -- 55296   2048    UNUSED
+                57344   8190    57344
+                65534   2       UNUSED
+                65536   1048576 65536 --
+     CAPACITY NONE
+
+     SCOPE DOCUMENT
+
+     SYNTAX
+         SHUNCHAR NONE
+         BASESET "ISO Registration Number 176//CHARSET
+                 ISO/IEC 10646-1:1993 UCS-4 with implementation 
+                 level 3//ESC 2/5 2/15 4/6"
+         DESCSET
+             0 1114112 0
+         FUNCTION
+             RE    13
+             RS    10
+             SPACE 32
+             TAB   SEPCHAR 9
+
+         NAMING
+             LCNMSTRT ""
+             UCNMSTRT ""
+             NAMESTRT
+                 58 95 192-214 216-246 248-305 308-318 321-328
+                 330-382 384-451 461-496 500-501 506-535 592-680
+                 699-705 902 904-906 908 910-929 931-974 976-982
+                 986 988 990 992 994-1011 1025-1036 1038-1103
+                 1105-1116 1118-1153 1168-1220 1223-1224
+                 1227-1228 1232-1259 1262-1269 1272-1273
+                 1329-1366 1369 1377-1414 1488-1514 1520-1522
+                 1569-1594 1601-1610 1649-1719 1722-1726
+                 1728-1742 1744-1747 1749 1765-1766 2309-2361
+                 2365 2392-2401 2437-2444 2447-2448 2451-2472
+                 2474-2480 2482 2486-2489 2524-2525 2527-2529
+                 2544-2545 2565-2570 2575-2576 2579-2600
+                 2602-2608 2610-2611 2613-2614 2616-2617
+                 2649-2652 2654 2674-2676 2693-2699 2701
+                 2703-2705 2707-2728 2730-2736 2738-2739
+                 2741-2745 2749 2784 2821-2828 2831-2832
+                 2835-2856 2858-2864 2866-2867 2870-2873 2877
+                 2908-2909 2911-2913 2949-2954 2958-2960
+                 2962-2965 2969-2970 2972 2974-2975 2979-2980
+                 2984-2986 2990-2997 2999-3001 3077-3084
+                 3086-3088 3090-3112 3114-3123 3125-3129
+                 3168-3169 3205-3212 3214-3216 3218-3240
+                 3242-3251 3253-3257 3294 3296-3297 3333-3340
+                 3342-3344 3346-3368 3370-3385 3424-3425
+                 3585-3630 3632 3634-3635 3648-3653 3713-3714
+                 3716 3719-3720 3722 3725 3732-3735 3737-3743
+                 3745-3747 3749 3751 3754-3755 3757-3758 3760
+                 3762-3763 3773 3776-3780 3904-3911 3913-3945
+                 4256-4293 4304-4342 4352 4354-4355 4357-4359
+                 4361 4363-4364 4366-4370 4412 4414 4416 4428
+                 4430 4432 4436-4437 4441 4447-4449 4451 4453
+                 4455 4457 4461-4462 4466-4467 4469 4510 4520
+                 4523 4526-4527 4535-4536 4538 4540-4546 4587
+                 4592 4601 7680-7835 7840-7929 7936-7957
+                 7960-7965 7968-8005 8008-8013 8016-8023 8025
+                 8027 8029 8031-8061 8064-8116 8118-8124 8126
+                 8130-8132 8134-8140 8144-8147 8150-8155
+                 8160-8172 8178-8180 8182-8188 8486 8490-8491
+                 8494 8576-8578 12295 12321-12329 12353-12436
+                 12449-12538 12549-12588 19968-40869 44032-55203
+
+             LCNMCHAR ""
+             UCNMCHAR ""
+             NAMECHAR
+                 45-46 183 720-721 768-837 864-865 903 1155-1158
+                 1425-1441 1443-1465 1467-1469 1471 1473-1474
+                 1476 1600 1611-1618 1632-1641 1648 1750-1764
+                 1767-1768 1770-1773 1776-1785 2305-2307 2364
+                 2366-2381 2385-2388 2402-2403 2406-2415
+                 2433-2435 2492 2494-2500 2503-2504 2507-2509
+                 2519 2530-2531 2534-2543 2562 2620 2622-2626
+                 2631-2632 2635-2637 2662-2673 2689-2691 2748
+                 2750-2757 2759-2761 2763-2765 2790-2799
+                 2817-2819 2876 2878-2883 2887-2888 2891-2893
+                 2902-2903 2918-2927 2946-2947 3006-3010
+                 3014-3016 3018-3021 3031 3047-3055 3073-3075
+                 3134-3140 3142-3144 3146-3149 3157-3158
+                 3174-3183 3202-3203 3262-3268 3270-3272
+                 3274-3277 3285-3286 3302-3311 3330-3331
+                 3390-3395 3398-3400 3402-3405 3415 3430-3439
+                 3633 3636-3642 3654-3662 3664-3673 3761
+                 3764-3769 3771-3772 3782 3784-3789 3792-3801
+                 3864-3865 3872-3881 3893 3895 3897 3902-3903
+                 3953-3972 3974-3979 3984-3989 3991 3993-4013
+                 4017-4023 4025 8400-8412 8417 12293 12330-12335
+                 12337-12341 12441-12442 12445-12446 12540-12542
+
+             NAMECASE
+                 GENERAL NO
+                 ENTITY  NO
+
+         DELIM
+             GENERAL SGMLREF
+             HCRO "&#38;#x" -- 38 is the number for ampersand --
+             NESTC "/"
+             NET ">"
+             PIC "?>"
+             SHORTREF NONE
+
+         NAMES
+             SGMLREF
+
+         QUANTITY NONE
+
+         ENTITIES
+             "amp" 38
+             "lt" 60
+             "gt" 62
+             "quot" 34
+             "apos" 39
+
+     FEATURES
+         MINIMIZE
+             DATATAG NO
+             OMITTAG NO
+             RANK NO
+             SHORTTAG
+                 STARTTAG
+                     EMPTY NO
+                     UNCLOSED NO 
+                     NETENABL IMMEDNET
+                 ENDTAG
+                     EMPTY NO 
+                     UNCLOSED NO
+                 ATTRIB
+                     DEFAULT YES
+                     OMITNAME NO
+                     VALUE NO
+             EMPTYNRM YES
+             IMPLYDEF
+                 ATTLIST NO
+                 DOCTYPE NO
+                 ELEMENT NO
+                 ENTITY NO
+                 NOTATION NO
+         LINK
+             SIMPLE NO
+             IMPLICIT NO
+             EXPLICIT NO
+         OTHER
+             CONCUR NO
+             SUBDOC NO
+             FORMAL NO
+             URN NO
+             KEEPRSRE YES
+             VALIDITY TYPE
+             ENTITIES
+                 REF ANY
+                 INTEGRAL YES
+     APPINFO NONE
+     SEEALSO "ISO 8879:1986//NOTATION
+             Extensible Markup Language (XML) 1.0//EN"
+>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/files/xml.soc	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,1 @@
+SGMLDECL "xml.dcl"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/patches/sgml-common-01-umask.patch	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,15 @@
+# Existing set of patches from the desktop gate
+# Can be potentially sent upstream 
+
+--- sgml-common-0.6.3/bin/install-catalog.in.umask	2001-01-12 10:35:39.000000000 -0500
++++ sgml-common-0.6.3/bin/install-catalog.in	2007-02-15 22:21:36.325644000 -0500
+@@ -13,6 +13,9 @@
+ \040 -h, --help: \t\t\t\t Print this help message and exit\n\
+ \040 -v, --version: \t\t\t Print the version number and exit\n"
+ 
++# We need the files we create to be world readable
++umask 022
++
+ # Set version message
+ SGML_VERSION_MESSAGE="sgml-common version @VERSION@ (install-catalog version 1.0)"
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/patches/sgml-common-02-xmldir.patch	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,11 @@
+# Existing set of patches from the desktop gate
+# Can be potentially sent upstream 
+
+--- sgml-common-0.6.3/xml-iso-entities/Makefile.am.xmldir	Fri Oct  5 16:37:43 2001
++++ sgml-common-0.6.3/xml-iso-entities/Makefile.am	Fri Oct  5 16:37:57 2001
+@@ -1,4 +1,4 @@
+-isoentdir = $(prefix)/share/sgml/xml-iso-entities-8879.1986
++isoentdir = $(prefix)/share/xml/xml-iso-entities-8879.1986
+ isoent_DATA = ISOamsa.ent ISOamsb.ent ISOamsc.ent ISOamsn.ent ISOamso.ent ISOamsr.ent \
+               ISObox.ent ISOcyr1.ent ISOcyr2.ent ISOdia.ent ISOgrk1.ent ISOgrk2.ent \
+               ISOgrk3.ent ISOgrk4.ent ISOlat1.ent ISOlat2.ent ISOnum.ent ISOpub.ent \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/patches/sgml-common-03-quotes.patch	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,97 @@
+# Existing set of patches from the desktop gate
+# Not suitable for upstream 
+
+--- sgml-common-0.6.3/bin/install-catalog.in.quotes	Mon Nov  5 11:19:23 2001
++++ sgml-common-0.6.3/bin/install-catalog.in	Mon Nov  5 11:20:12 2001
+@@ -39,8 +39,8 @@
+ # Process actions
+ case $1 in
+    -a|--add)    SGML_ACTION="addition"
+-		SGML_CENTRALIZED=$2
+-		SGML_ORDINARY=$3
++		SGML_CENTRALIZED="$2"
++		SGML_ORDINARY="$3"
+ 		;;
+    -r|--remove)	if [ -z "$3" -o "$3" = "--version" ]
+ 		then
+@@ -48,8 +48,8 @@
+ 		  exit 0
+ 		fi
+    		SGML_ACTION="removal"
+-		SGML_CENTRALIZED=$2
+-		SGML_ORDINARY=$3
++		SGML_CENTRALIZED="$2"
++		SGML_ORDINARY="$3"
+ 		;;
+    -h|--help)	echo -e $SGML_HELP_MESSAGE
+ 		exit 0
+@@ -96,14 +96,14 @@
+ fi
+ case $SGML_ACTION in
+    addition)
+-	if [ -e $SGML_CENTRALIZED -a ! -w $SGML_CENTRALIZED ]
++	if [ -e "$SGML_CENTRALIZED" -a ! -w "$SGML_CENTRALIZED" ]
+ 	then
+ 	  echo "`basename $0`: can not modify \"$SGML_CENTRALIZED\"." >&2
+ 	  exit 2
+ 	fi
+ 	;;
+    removal)
+-	if [ ! -w $SGML_CENTRALIZED ]
++	if [ ! -w "$SGML_CENTRALIZED" ]
+ 	then
+ 	  echo "`basename $0`: can not modify \"$SGML_CENTRALIZED\"." >&2
+ 	  exit 2
+@@ -119,7 +119,7 @@
+ fi
+ case $SGML_ACTION in
+    addition)
+-	if [ ! -s $SGML_ORDINARY ]
++	if [ ! -s "$SGML_ORDINARY" ]
+ 	then
+ 	  echo "`basename $0`: \"$SGML_ORDINARY\" does not exist or is empty." >&2
+ 	  exit 2
+@@ -131,33 +131,33 @@
+ case $SGML_ACTION in
+     addition)
+ 	echo "`basename $0`: addition of $SGML_ORDINARY in $SGML_CENTRALIZED"
+-	if grep -q $SGML_ORDINARY $SGML_CENTRALIZED 2>/dev/null
++	if grep -q "$SGML_ORDINARY" "$SGML_CENTRALIZED" 2>/dev/null
+ 	then
+ 	  echo "Warning: $SGML_ORDINARY is already installed in the centralized catalog $SGML_CENTRALIZED" >&2
+ 	else
+-	  echo "$SGML_POINTER $SGML_ORDINARY" >> $SGML_CENTRALIZED
++	  echo "$SGML_POINTER \"$SGML_ORDINARY\"" >> "$SGML_CENTRALIZED"
+ 	fi
+-	grep -q $SGML_CENTRALIZED /etc/sgml/catalog 2>/dev/null
++	grep -q "$SGML_CENTRALIZED" /etc/sgml/catalog 2>/dev/null
+ 	if [ $? -ne 0 ]
+ 	then
+ 	  echo "`basename $0`: addition of $SGML_CENTRALIZED in /etc/sgml/catalog"
+-	  echo "$SGML_POINTER $SGML_CENTRALIZED" >> /etc/sgml/catalog
++	  echo "$SGML_POINTER \"$SGML_CENTRALIZED\"" >> /etc/sgml/catalog
+ 	fi
+ 	;;
+    removal)
+ 	echo "`basename $0`: removal of $SGML_ORDINARY from $SGML_CENTRALIZED"
+-	if grep -q $SGML_ORDINARY $SGML_CENTRALIZED 2>/dev/null
++	if grep -q "$SGML_ORDINARY" "$SGML_CENTRALIZED" 2>/dev/null
+ 	then
+-          sed -e "\:$SGML_POINTER $SGML_ORDINARY:d" < $SGML_CENTRALIZED > ${SGML_CENTRALIZED}.new
+-          mv ${SGML_CENTRALIZED}.new $SGML_CENTRALIZED
++          sed -e "\:$SGML_POINTER \"\\?$SGML_ORDINARY\"\\?:d" < "$SGML_CENTRALIZED" > "${SGML_CENTRALIZED}.new"
++          mv "${SGML_CENTRALIZED}.new" "$SGML_CENTRALIZED"
+ 	else
+ 	  echo "Warning: $SGML_ORDINARY was not found in the centralized catalog $SGML_CENTRALIZED" >&2
+ 	fi
+-	if [ ! -s $SGML_CENTRALIZED ]
++	if [ ! -s "$SGML_CENTRALIZED" ]
+ 	then
+-	  rm $SGML_CENTRALIZED
++	  rm "$SGML_CENTRALIZED"
+ 	  echo "`basename $0`: removal of $SGML_CENTRALIZED from /etc/sgml/catalog"
+-          sed -e "\:$SGML_POINTER $SGML_CENTRALIZED:d" < /etc/sgml/catalog > /etc/sgml/catalog.new
++          sed -e "\:$SGML_POINTER \"\\?$SGML_CENTRALIZED\"\\?:d" < /etc/sgml/catalog > /etc/sgml/catalog.new
+           mv /etc/sgml/catalog.new /etc/sgml/catalog
+ 	fi
+ 	;;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/patches/sgml-common-04-automake.patch	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,9 @@
+# Existing set of patches from the desktop gate
+# Not suitable for upstream 
+
+--- sgml-common-0.6.3/doc/man/Makefile.am.automake	Wed Apr 24 11:58:17 2002
++++ sgml-common-0.6.3/doc/man/Makefile.am	Wed Apr 24 11:59:02 2002
+@@ -1,2 +1,2 @@
+ man8dir	  = $(mandir)/man8
+-man8_DATA = *.8
++man8_MANS = install-catalog.8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/patches/sgml-common-05-docdir.patch	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,14 @@
+# Existing set of patches from the desktop gate
+# Can be potentially sent upstream 
+
+--- sgml-common-0.6.3/configure.in.docdir	2002-10-23 12:07:31.000000000 +0100
++++ sgml-common-0.6.3/configure.in	2002-10-23 12:08:10.000000000 +0100
+@@ -4,6 +4,8 @@
+ AM_INIT_AUTOMAKE(sgml-common, 0.6.3)
+ 
+ docdir='$(prefix)/doc'
++AC_ARG_WITH(docdir, [  -with-docdir=DOCDIR    documentation directory],
++  docdir=$withval)
+ AC_SUBST(docdir)
+ 
+ dnl Checks for programs.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/sgml-common.license	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,340 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/sgml-common.p5m	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,82 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+<transform file path=usr.*/man/.+ -> \
+    default mangler.man.stability "pass-through volatile">
+# XML/SGML catalog update.
+<transform file path=usr/share/(sgml|xml)/.*$ -> \
+    default restart_fmri svc:/application/desktop-cache/docbook-dtds-update:default>
+set name=pkg.fmri \
+    value=pkg:/data/sgml-common@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="Common SGML catalog and DTD files"
+set name=pkg.description \
+    value="The sgml-common package contains a collection of entities and DTDs that are useful for processing SGML, but that don't need to be included in multiple packages. Sgml-common also includes an up-to-date Open Catalog file."
+set name=com.oracle.info.description value="Common SGML catalog and DTD files"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value="org.opensolaris.category.2008:Desktop (GNOME)/Documentation"
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=LSARC/2005/734
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=etc/sgml/catalog preserve=renamenew
+file path=etc/sgml/sgml.conf preserve=renamenew
+file path=usr/bin/install-catalog
+file path=usr/bin/sgmlwhich
+file usr/share/doc/sgml-common-$(COMPONENT_VERSION)/html/fdl.html \
+    path=usr/share/doc/sgml-common/__dist_doc/html/fdl.html
+file usr/share/doc/sgml-common-$(COMPONENT_VERSION)/html/index.html \
+    path=usr/share/doc/sgml-common/__dist_doc/html/index.html
+file usr/share/doc/sgml-common-$(COMPONENT_VERSION)/html/install-catalog.html \
+    path=usr/share/doc/sgml-common/__dist_doc/html/install-catalog.html
+file usr/share/doc/sgml-common-$(COMPONENT_VERSION)/html/introduction.html \
+    path=usr/share/doc/sgml-common/__dist_doc/html/introduction.html
+file path=usr/share/man/man8/install-catalog.8
+file files/html.dcl path=usr/share/sgml/html.dcl
+file files/html.soc path=usr/share/sgml/html.soc
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsa.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsb.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsc.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsn.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOamso.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsr.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISObox.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOcyr1.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOcyr2.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOdia.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOgrk1.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOgrk2.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOgrk3.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOgrk4.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOlat1.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOlat2.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOnum.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOpub.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/ISOtech.ent
+file path=usr/share/sgml/sgml-iso-entities-8879.1986/catalog
+file files/xml.dcl path=usr/share/sgml/xml.dcl
+file files/xml.soc path=usr/share/sgml/xml.soc
+license sgml-common.license license=GPLv2
+depend type=require fmri=data/docbook/docbook-dtds
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/docbook/sgml-common/xml-common.p5m	Mon Oct 03 13:19:13 2016 -0700
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+set name=pkg.fmri \
+    value=pkg:/data/xml-common@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="Common XML catalog and DTD files"
+set name=pkg.description \
+    value="The xml-common package is a subpackage of sgml-common which contains a collection XML catalogs that are useful for processing XML, but that don't need to be included in main package."
+set name=com.oracle.info.description value="Common SGML catalog and DTD files"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+    value="org.opensolaris.category.2008:Desktop (GNOME)/Documentation"
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=LSARC/2005/734
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=etc/sgml/docbook/xmlcatalog mode=0644 preserve=renamenew \
+    refresh_fmri=svc:/application/desktop-cache/docbook-dtds-update:default
+file path=etc/xml/catalog mode=0644 preserve=renamenew \
+    refresh_fmri=svc:/application/desktop-cache/docbook-style-xsl-update:default
+link path=usr/share/sgml/docbook/xmlcatalog \
+    target=../../../../etc/sgml/docbook/xmlcatalog
+license sgml-common.license license=GPLv2
+depend type=require fmri=data/docbook/docbook-dtds
+