7027078 move psutils to userland
authorVladimir Marek <Vladimir.Marek@oracle.com>
Sat, 12 Mar 2011 16:08:04 -0800
changeset 153 b6b8b3648e20
parent 152 f0ba422362c2
child 154 55225e51a9cb
7027078 move psutils to userland
components/meta-packages/history/SUNWpsutils.p5m
components/psutils/Makefile
components/psutils/psutils.license
components/psutils/psutils.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/meta-packages/history/SUNWpsutils.p5m	Sat Mar 12 16:08:04 2011 -0800
@@ -0,0 +1,27 @@
+#
+# 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) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+set name=pkg.fmri value=pkg:/[email protected],5.11-0.133
+set name=pkg.renamed value=true
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+depend fmri=print/[email protected] type=require
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/psutils/Makefile	Sat Mar 12 16:08:04 2011 -0800
@@ -0,0 +1,79 @@
+#
+# 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) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+include ../../make-rules/shared-macros.mk
+include ../../make-rules/shared-targets.mk
+
+COMPONENT_NAME=		psutils
+COMPONENT_VERSION=	p17
+COMPONENT_SRC=		$(COMPONENT_NAME)
+COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
+COMPONENT_ARCHIVE_HASH=	sha1:6f1ecb5846cffb644826a02bd9153fe5d6387a9b
+COMPONENT_ARCHIVE_URL= http://gd.tuwien.ac.at/publishing/tex/tex-utils/psutils/$(COMPONENT_ARCHIVE)
+#COMPONENT_ARCHIVE_URL= ftp://ftp.knackered.org/pub/psutils/psutils.tar.gz
+# Official ftp sources are currently unavailable, so I'm using mirror I found.
+# I made sure that the tarball is equal to the one present in SFW
+
+include ../../make-rules/prep.mk
+include ../../make-rules/justmake.mk
+include ../../make-rules/ips.mk
+
+# Can't use 'p17' since that is not accepted by pkg. And homepage
+# http://knackered.knackered.org/angus/psutils/ states that development version
+# is pre-2.0
+IPS_COMPONENT_VERSION=1.17
+
+# to stay compatible with nevada settings, letter is default paper size
+CFLAGS += -DPAPER=\\\"letter\\\" -DUNIX
+
+COMPONENT_BUILD_ENV += CC=$(CC)
+COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
+COMPONENT_BUILD_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
+COMPONENT_BUILD_ENV += PERL=$(PERL)
+
+# slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
+# make
+COMPONENT_BUILD_TARGETS = -e -f Makefile.unix
+
+COMPONENT_INSTALL_ENV += BINDIR=$(PROTO_DIR)/usr/bin
+COMPONENT_INSTALL_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
+COMPONENT_INSTALL_ENV += MANDIR=$(PROTO_DIR)/usr/share/man/man1
+COMPONENT_INSTALL_ENV += PERL=/usr/perl5/bin/perl
+COMPONENT_INSTALL_ENV += INSTALL="$(INSTALL) -m 0555"
+COMPONENT_INSTALL_ENV += INSTALLMAN="$(INSTALL) -m 0444"
+
+# slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
+# make
+COMPONENT_INSTALL_TARGETS = -e -f Makefile.unix install
+
+build:		$(BUILD_32)
+
+$(INSTALL_32): $(PROTOUSRSHAREMAN1DIR) $(PROTOSFWBIN)
+
+install:	$(INSTALL_32)
+
+test: build
+	@echo no tests for psutils
+
+BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
+
+include ../../make-rules/depend.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/psutils/psutils.license	Sat Mar 12 16:08:04 2011 -0800
@@ -0,0 +1,47 @@
+
+                        PS Utilities Package
+
+The constituent files of this package listed below are copyright (C) 1991-1995
+Angus J. C. Duggan.
+
+LICENSE          Makefile.msc     Makefile.nt      Makefile.os2
+Makefile.unix    README           config.h         descrip.mms
+epsffit.c        epsffit.man      extractres.man   extractres.pl
+fixdlsrps.man    fixdlsrps.pl     fixfmps.man      fixfmps.pl
+fixmacps.man     fixmacps.pl      fixpsditps.man   fixpsditps.pl
+fixpspps.man     fixpspps.pl      fixscribeps.man  fixscribeps.pl
+fixtpps.man      fixtpps.pl       fixwfwps.man     fixwfwps.pl
+fixwpps.man      fixwpps.pl       fixwwps.man      fixwwps.pl
+getafm           getafm.man       includeres.man   includeres.pl
+maketext         patchlev.h	  psbook.c         psbook.man
+pserror.c        pserror.h        psmerge.man      psmerge.pl
+psnup.c          psnup.man	  psresize.c       psresize.man
+psselect.c       psselect.man	  psspec.c         psspec.h
+pstops.c         pstops.man       psutil.c         psutil.h
+showchar
+
+They may be copied and used for any purpose (including distribution as part of
+a for-profit product), provided:
+
+1) The original attribution of the programs is clearly displayed in the product
+   and/or documentation, even if the programs are modified and/or renamed as
+   part of the product.
+
+2) The original source code of the programs is provided free of charge (except
+   for reasonable distribution costs). For a definition of reasonable
+   distribution costs, see the Gnu General Public License or Larry Wall's
+   Artistic License (provided with the Perl 4 kit). The GPL and Artistic
+   License in NO WAY affect this license; they are merely used as examples of
+   the spirit in which it is intended.
+
+3) These programs are provided "as-is". No warranty or guarantee of their
+   fitness for any particular task is provided. Use of these programs is
+   completely at your own risk.
+
+Basically, I don't mind how you use the programs so long as you acknowledge
+the author, and give people the originals if they want them.
+
+The included files, md68_0.ps and md71_0.ps (and their uuencoded forms) are
+(to the best of my knowledge) copyright Apple Computer, Inc.
+
+                                                                AJCD 4/4/95
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/psutils/psutils.p5m	Sat Mar 12 16:08:04 2011 -0800
@@ -0,0 +1,108 @@
+#
+# 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) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+set name=pkg.fmri \
+    value=pkg:/print/psutils@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.description \
+    value="Collection of utilities for manipulating PostScript documents"
+set name=pkg.summary value="PostScript utilities"
+set name=info.classification \
+    value=org.opensolaris.category.2008:System/Printing
+set name=info.source_url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream_url value=http://knackered.knackered.org/angus/psutils
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+dir path=usr
+dir path=usr/bin
+dir path=usr/sfw
+dir path=usr/sfw/bin
+dir path=usr/share
+dir path=usr/share/man
+dir path=usr/share/man/man1
+dir path=usr/share/psutils
+file path=usr/bin/epsffit
+file path=usr/bin/extractres
+file path=usr/bin/fixdlsrps
+file path=usr/bin/fixfmps
+file path=usr/bin/fixmacps
+file path=usr/bin/fixpsditps
+file path=usr/bin/fixpspps
+file path=usr/bin/fixscribeps
+file path=usr/bin/fixtpps
+file path=usr/bin/fixwfwps
+file path=usr/bin/fixwpps
+file path=usr/bin/fixwwps
+file path=usr/bin/getafm
+file path=usr/bin/includeres
+file path=usr/bin/psbook
+file path=usr/bin/psmerge
+file path=usr/bin/psnup
+file path=usr/bin/psresize
+file path=usr/bin/psselect
+file path=usr/bin/pstops
+file path=usr/bin/showchar
+file path=usr/share/man/man1/epsffit.1
+file path=usr/share/man/man1/extractres.1
+file path=usr/share/man/man1/fixdlsrps.1
+file path=usr/share/man/man1/fixfmps.1
+file path=usr/share/man/man1/fixmacps.1
+file path=usr/share/man/man1/fixpsditps.1
+file path=usr/share/man/man1/fixpspps.1
+file path=usr/share/man/man1/fixscribeps.1
+file path=usr/share/man/man1/fixtpps.1
+file path=usr/share/man/man1/fixwfwps.1
+file path=usr/share/man/man1/fixwpps.1
+file path=usr/share/man/man1/fixwwps.1
+file path=usr/share/man/man1/getafm.1
+file path=usr/share/man/man1/includeres.1
+file path=usr/share/man/man1/psbook.1
+file path=usr/share/man/man1/psmerge.1
+file path=usr/share/man/man1/psnup.1
+file path=usr/share/man/man1/psresize.1
+file path=usr/share/man/man1/psselect.1
+file path=usr/share/man/man1/pstops.1
+file path=usr/share/psutils/md68_0.ps
+file path=usr/share/psutils/md71_0.ps
+legacy pkg=SUNWpsutils \
+    desc="psutils - PostScript utilities 1.17" \
+    name="psutils - PostScript utilities"
+license psutils.license license="psutils license"
+link path=usr/sfw/bin/epsffit target=../../bin/epsffit
+link path=usr/sfw/bin/extractres target=../../bin/extractres
+link path=usr/sfw/bin/fixdlsrps target=../../bin/fixdlsrps
+link path=usr/sfw/bin/fixfmps target=../../bin/fixfmps
+link path=usr/sfw/bin/fixmacps target=../../bin/fixmacps
+link path=usr/sfw/bin/fixpsditps target=../../bin/fixpsditps
+link path=usr/sfw/bin/fixpspps target=../../bin/fixpspps
+link path=usr/sfw/bin/fixscribeps target=../../bin/fixscribeps
+link path=usr/sfw/bin/fixtpps target=../../bin/fixtpps
+link path=usr/sfw/bin/fixwfwps target=../../bin/fixwfwps
+link path=usr/sfw/bin/fixwpps target=../../bin/fixwpps
+link path=usr/sfw/bin/fixwwps target=../../bin/fixwwps
+link path=usr/sfw/bin/getafm target=../../bin/getafm
+link path=usr/sfw/bin/includeres target=../../bin/includeres
+link path=usr/sfw/bin/psbook target=../../bin/psbook
+link path=usr/sfw/bin/psmerge target=../../bin/psmerge
+link path=usr/sfw/bin/psnup target=../../bin/psnup
+link path=usr/sfw/bin/psresize target=../../bin/psresize
+link path=usr/sfw/bin/psselect target=../../bin/psselect
+link path=usr/sfw/bin/pstops target=../../bin/pstops
+link path=usr/sfw/bin/showchar target=../../bin/showchar