summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-12-23 20:25:35 +0400
committerIgor Pashev <pashev.igor@gmail.com>2012-12-23 20:25:35 +0400
commite57f1783983a7754506432b6e6641b84d641db62 (patch)
treeb2c069e480278f006f52962e06720b837464027c
parentce46adeb9f3d859554a57ceb304f92838848da74 (diff)
downloadillumos-packaging-e57f1783983a7754506432b6e6641b84d641db62.tar.gz
SGS yacc
-rw-r--r--sgs-yacc/debian/README.source10
-rw-r--r--sgs-yacc/debian/changelog5
-rw-r--r--sgs-yacc/debian/compat1
-rw-r--r--sgs-yacc/debian/control27
-rw-r--r--sgs-yacc/debian/copyright27
-rw-r--r--sgs-yacc/debian/patches/series3
-rw-r--r--sgs-yacc/debian/patches/sgs-yacc-no-lib.patch12
-rw-r--r--sgs-yacc/debian/patches/sgs-yacc-rename.patch41
-rwxr-xr-xsgs-yacc/debian/rules72
-rw-r--r--sgs-yacc/debian/sgs-yacc.install2
-rw-r--r--sgs-yacc/debian/sgs-yacc.manpages1
-rw-r--r--sgs-yacc/debian/source/format1
12 files changed, 202 insertions, 0 deletions
diff --git a/sgs-yacc/debian/README.source b/sgs-yacc/debian/README.source
new file mode 100644
index 0000000..9988910
--- /dev/null
+++ b/sgs-yacc/debian/README.source
@@ -0,0 +1,10 @@
+Real sources are in the package illumos-source-X.Y,
+where X and Y are numbers. Exact values of X and Y
+are set in Build-Depends field of debian/control as
+well as in the version string in debian/changelog,
+in a form of X.Y-1.
+
+To add a patch you need first to unpack files from
+illumos-source-X.Y using ./debian/rules unpack
+and, desirably, ./debian/rules patch
+
diff --git a/sgs-yacc/debian/changelog b/sgs-yacc/debian/changelog
new file mode 100644
index 0000000..2be2c76
--- /dev/null
+++ b/sgs-yacc/debian/changelog
@@ -0,0 +1,5 @@
+sgs-yacc (2.10-1) UNRELEASED; urgency=low
+
+ * Initial release.
+
+ -- Igor Pashev <pashev.igor@gmail.com> Fri, 19 Oct 2012 10:33:49 +0400
diff --git a/sgs-yacc/debian/compat b/sgs-yacc/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/sgs-yacc/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/sgs-yacc/debian/control b/sgs-yacc/debian/control
new file mode 100644
index 0000000..aaee7c6
--- /dev/null
+++ b/sgs-yacc/debian/control
@@ -0,0 +1,27 @@
+Source: sgs-yacc
+Section: devel
+Priority: optional
+Maintainer: Igor Pashev <pashev.igor@gmail.com>
+Build-Depends:
+ debhelper,
+ illumos-source-2.10,
+ ksh,
+ onbld,
+Standards-Version: 3.9.3
+Homepage: http://illumos.org/
+
+Package: sgs-yacc
+Priority: optional
+Section: devel
+Architecture: illumos-any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: foreign
+Suggests: bison
+Description: yet another compiler compiler
+ This is a general-purpose parser generator that converts a
+ grammar description for an LALR(1) context-free grammar into a C
+ program to parse that grammar.
+ .
+ Modern free software used to work with GNU Bison, but some illumos sources
+ are hard to patch for Bison. So here is sgs-yacc.
+
diff --git a/sgs-yacc/debian/copyright b/sgs-yacc/debian/copyright
new file mode 100644
index 0000000..92d3a40
--- /dev/null
+++ b/sgs-yacc/debian/copyright
@@ -0,0 +1,27 @@
+Files: debian/*
+Copyright: 2012, Igor Pashev <pashev.igor@gmail.com>
+License: WTFPL-2
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+ .
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
+ .
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+ .
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+ .
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
+
+
+Files: *
+License: CDDL
+ Note that sources are not in this package but in the package
+ illumos-source-X.Y. Those sources are covered by Common Development
+ and Distribution License (CDDL).
+ .
+ On Dyson system, the full text of the CDDL license
+ can be found in the file `/usr/share/common-licenses/CDDL-1.0'.
+
diff --git a/sgs-yacc/debian/patches/series b/sgs-yacc/debian/patches/series
new file mode 100644
index 0000000..146517e
--- /dev/null
+++ b/sgs-yacc/debian/patches/series
@@ -0,0 +1,3 @@
+sgs-yacc-rename.patch
+sgs-yacc-man.patch
+sgs-yacc-no-lib.patch
diff --git a/sgs-yacc/debian/patches/sgs-yacc-no-lib.patch b/sgs-yacc/debian/patches/sgs-yacc-no-lib.patch
new file mode 100644
index 0000000..2fc88fd
--- /dev/null
+++ b/sgs-yacc/debian/patches/sgs-yacc-no-lib.patch
@@ -0,0 +1,12 @@
+Index: sgs-yacc/usr/src/cmd/sgs/yacc/Makefile.com
+===================================================================
+--- sgs-yacc.orig/usr/src/cmd/sgs/yacc/Makefile.com 2012-12-23 20:20:22.053248466 +0400
++++ sgs-yacc/usr/src/cmd/sgs/yacc/Makefile.com 2012-12-23 20:22:08.139641932 +0400
+@@ -35,7 +35,6 @@
+ VERS= .1
+ YACCPAR= yaccpar
+
+-include ../../../../lib/Makefile.lib
+
+ SRCDIR = ../common
+
diff --git a/sgs-yacc/debian/patches/sgs-yacc-rename.patch b/sgs-yacc/debian/patches/sgs-yacc-rename.patch
new file mode 100644
index 0000000..6ab7154
--- /dev/null
+++ b/sgs-yacc/debian/patches/sgs-yacc-rename.patch
@@ -0,0 +1,41 @@
+Index: sgs/usr/src/cmd/sgs/yacc/common/dextern.h
+===================================================================
+--- sgs.orig/usr/src/cmd/sgs/yacc/common/dextern.h 2012-10-08 04:25:33.000000000 +0400
++++ sgs/usr/src/cmd/sgs/yacc/common/dextern.h 2012-12-23 19:35:52.061500604 +0400
+@@ -324,7 +324,7 @@
+ #endif
+
+ #ifndef PARSER
+-#define PARSER "/usr/share/lib/ccs/yaccpar"
++#define PARSER "/usr/lib/sgs-yacc/yaccpar"
+ #endif
+
+ /*
+Index: sgs/usr/src/cmd/sgs/yacc/i386/Makefile
+===================================================================
+--- sgs.orig/usr/src/cmd/sgs/yacc/i386/Makefile 2012-10-08 04:25:33.000000000 +0400
++++ sgs/usr/src/cmd/sgs/yacc/i386/Makefile 2012-12-23 19:49:17.413813433 +0400
+@@ -37,9 +37,7 @@
+
+ all_lib: $(LIBS)
+
+-install: all $(ROOTPROG) $(ROOTYACCPAR) $(ROOTCCSBINLINK)
+- $(RM) $(ROOTCCSBIN)/yaccpar
+- $(SYMLINK) ../../share/lib/ccs/yaccpar $(ROOTCCSBIN)/yaccpar
++install: all $(ROOTPROG) $(ROOTYACCPAR)
+
+ install_lib: all_lib $(ROOTLIBS) $(ROOTLINKS) $(DYNLINKLIB) $(ROOTLINT)
+
+Index: sgs/usr/src/cmd/sgs/yacc/Makefile.com
+===================================================================
+--- sgs.orig/usr/src/cmd/sgs/yacc/Makefile.com 2012-10-08 04:25:33.000000000 +0400
++++ sgs/usr/src/cmd/sgs/yacc/Makefile.com 2012-12-23 19:35:52.064361953 +0400
+@@ -23,7 +23,7 @@
+ # Use is subject to license terms.
+ #
+
+-PROG= yacc
++PROG= sgs-yacc
+
+ COMOBJS= y1.o y2.o y3.o y4.o
+ POBJECTS= $(COMOBJS)
diff --git a/sgs-yacc/debian/rules b/sgs-yacc/debian/rules
new file mode 100755
index 0000000..925771b
--- /dev/null
+++ b/sgs-yacc/debian/rules
@@ -0,0 +1,72 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/architecture.mk
+export DH_VERBOSE = 1
+
+unpack: unpack-stamp
+unpack-stamp:
+ dh_testdir
+ dh_illumos_gate --build \
+ usr/src/cmd/sgs/yacc \
+ usr/src/cmd/sgs/include \
+ usr/src/man/man1/yacc.1
+
+ mv usr/src/man/man1/yacc.1 \
+ usr/src/man/man1/sgs-yacc.1 \
+
+ # Not used and buggy:
+ echo > usr/src/Makefile.msg.targ
+ touch $@
+
+patch: patch-stamp
+patch-stamp: unpack-stamp
+ dh_testdir
+ [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+ touch $@
+
+unpatch:
+ dh_testdir
+ [ ! -f debian/patches/series ] || QUILT_PATCHES=debian/patches quilt pop -a -f || test $$? = 2
+ rm -f patch-stamp
+
+dirs-stamp:
+ . usr/env.sh; mkdir -p \
+ debian/tmp/usr/bin \
+ debian/tmp/usr/share/lib/ccs
+ touch $@
+
+build build-arch build-indep: build-stamp
+build-stamp: patch-stamp dirs-stamp
+ dh_illumos_make --native usr/src/cmd/sgs/yacc/i386
+ touch $@
+
+install: install-stamp
+install-stamp: build-stamp
+ touch $@
+
+binary binary-arch binary-indep: binary-stamp
+binary-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_installdirs
+ dh_install
+ dh_installman
+ dh_installdocs
+ dh_installexamples
+ dh_installchangelogs
+ dh_link
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+ touch $@
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ dh_clean
+ rm -rf usr
+
diff --git a/sgs-yacc/debian/sgs-yacc.install b/sgs-yacc/debian/sgs-yacc.install
new file mode 100644
index 0000000..691a9fa
--- /dev/null
+++ b/sgs-yacc/debian/sgs-yacc.install
@@ -0,0 +1,2 @@
+usr/bin/sgs-yacc
+usr/share/lib/ccs/yaccpar usr/lib/sgs-yacc/
diff --git a/sgs-yacc/debian/sgs-yacc.manpages b/sgs-yacc/debian/sgs-yacc.manpages
new file mode 100644
index 0000000..29f4e66
--- /dev/null
+++ b/sgs-yacc/debian/sgs-yacc.manpages
@@ -0,0 +1 @@
+usr/src/man/man1/sgs-yacc.1
diff --git a/sgs-yacc/debian/source/format b/sgs-yacc/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/sgs-yacc/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)