--- checkpolicy-2.0.22.orig/debian/local.mk
+++ checkpolicy-2.0.22/debian/local.mk
@@ -0,0 +1,75 @@
+############################ -*- Mode: Makefile -*- ###########################
+## local.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 10:42:10 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Wed Sep  6 12:35:37 2006
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 11
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: b07b1015-30ba-4b46-915f-78c776a808f4
+## 
+###############################################################################
+
+testdir:
+	$(testdir)
+
+
+debian/stamp/BUILD/checkpolicy: debian/stamp/build/checkpolicy
+debian/stamp/INST/checkpolicy:  debian/stamp/install/checkpolicy
+debian/stamp/BIN/checkpolicy:   debian/stamp/binary/checkpolicy
+
+CLN-common::
+	$(REASON)
+	-test ! -f Makefile || $(MAKE) clean
+	$(MAKE) -C test clean
+
+CLEAN/checkpolicy::
+	-rm -rf $(TMPTOP)
+
+debian/stamp/build/checkpolicy:
+	$(checkdir)
+	$(REASON)
+	@test -d debian/stamp/build || mkdir -p debian/stamp/build
+	$(MAKE) YACC="bison -y" CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+	$(MAKE) -C test YACC="bison -y" CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+	$(check-libraries)
+	@echo done > $@
+
+debian/stamp/install/checkpolicy:
+	$(checkdir)
+	$(REASON)
+	$(TESTROOT)
+	rm -rf               $(TMPTOP)
+	$(make_directory)    $(TMPTOP)
+	$(make_directory)    $(BINDIR)
+	$(make_directory)    $(MAN8DIR)
+	$(make_directory)    $(DOCDIR)
+	$(MAKE)              DESTDIR=$(TMPTOP) install
+	$(install_file)      debian/changelog       $(DOCDIR)/changelog.Debian
+	$(install_file)      ChangeLog              $(DOCDIR)/changelog
+	gzip -9frq           $(DOCDIR)/
+# Make sure the copyright file is not compressed
+	$(install_file)      debian/copyright       $(DOCDIR)/copyright
+	gzip -9fqr           $(MANDIR)/
+	$(strip-exec)
+	@test -d debian/stamp/install || mkdir -p debian/stamp/install
+	@echo done > $@
+
+debian/stamp/binary/checkpolicy:
+	$(checkdir)
+	$(REASON)
+	$(TESTROOT)
+	$(make_directory)    $(TMPTOP)/DEBIAN
+	dpkg-shlibdeps       $(BINDIR)/checkpolicy
+	dpkg-gencontrol      -p$(package) -isp      -P$(TMPTOP)
+	$(create_md5sum)     $(TMPTOP)
+	chown -R root:root   $(TMPTOP)
+	chmod -R u+w,go=rX   $(TMPTOP)
+	dpkg --build         $(TMPTOP) ..
+	@test -d debian/stamp/binary || mkdir -p debian/stamp/binary
+	@echo done > $@
--- checkpolicy-2.0.22.orig/debian/local-vars.mk
+++ checkpolicy-2.0.22/debian/local-vars.mk
@@ -0,0 +1,48 @@
+############################ -*- Mode: Makefile -*- ###########################
+## local-vars.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 10:43:00 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Fri Nov  5 00:45:07 2004
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 11
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: 1a76a87e-7af5-424a-a30d-61660c8f243e
+## 
+###############################################################################
+
+FILES_TO_CLEAN  = debian/substvars debian/files 
+STAMPS_TO_CLEAN = 
+DIRS_TO_CLEAN   = debian/stamp
+
+# Location of the source dir
+SRCTOP    := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
+TMPTOP     = $(SRCTOP)/debian/$(package)
+LINTIANDIR = $(TMPTOP)/usr/share/lintian/overrides
+DOCBASEDIR = $(TMPTOP)/usr/share/doc-base
+
+BINDIR  = $(TMPTOP)$(PREFIX)/bin
+LIBDIR  = $(TMPTOP)$(PREFIX)/lib
+
+MANDIR  = $(TMPTOP)/usr/share/man
+MAN1DIR = $(MANDIR)/man1
+MAN3DIR = $(MANDIR)/man3
+MAN5DIR = $(MANDIR)/man5
+MAN7DIR = $(MANDIR)/man7
+MAN8DIR = $(MANDIR)/man8
+INFODIR = $(TMPTOP)/usr/share/info
+DOCTOP  = $(TMPTOP)/usr/share/doc
+DOCDIR  = $(DOCTOP)/$(package)
+
+define checkdir
+	@test -f debian/rules -a -f checkpolicy.8 || \
+          (echo Not in correct source directory; exit 1)
+endef
+
+define checkroot
+	@test $$(id -u) = 0 || (echo need root priviledges; exit 1)
+endef
--- checkpolicy-2.0.22.orig/debian/rules
+++ checkpolicy-2.0.22/debian/rules
@@ -0,0 +1,67 @@
+#! /usr/bin/make -f
+############################ -*- Mode: Makefile; coding: utf-8 -*- ###########################
+## rules --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Fri Nov 14 12:33:34 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Tue Nov 18 17:46:22 2003
+## Last Machine Used: glaurung.green-gryphon.com
+## Update Count     : 70
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: 9a5063f4-1e20-4fff-b22a-de94c1e3d954
+## 
+## 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+##
+###############################################################################
+
+# Include dpkg-architecture generated variables
+include debian/common/archvars.mk
+
+ifneq ($(DEB_HOST_ARCH_OS),linux)
+$(error This is a linux only package. Aborting build.)
+endif
+
+# Set variables with information extracted from control and changelog files
+include debian/common/pkgvars.mk
+
+# variables useful for perl packages
+include debian/common/perlvars.mk
+
+# Install commands
+include debian/common/install_cmds.mk
+
+include debian/local-vars.mk
+
+include debian/common/copt.mk
+
+include debian/common/automake.mk
+
+
+
+all:
+	@echo nothing to be done
+
+include debian/common/targets.mk
+
+include debian/local.mk
+
+
+#Local variables:
+#mode: makefile
+#End:
--- checkpolicy-2.0.22.orig/debian/changelog
+++ checkpolicy-2.0.22/debian/changelog
@@ -0,0 +1,429 @@
+checkpolicy (2.0.22-1) unstable; urgency=low
+
+  * New upstream release. Update checkmodule man page and usage by Daniel
+    Walsh and Steve Lawrence 
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 21 Jul 2010 00:28:52 -0700
+
+checkpolicy (2.0.21-1) unstable; urgency=low
+
+  * New upstream release
+    + Add long options to checkpolicy and checkmodule by Guido
+    Trentalancia <guido@trentalancia.com> 
+
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 28 Mar 2010 09:59:27 -0700
+
+checkpolicy (2.0.20-1) unstable; urgency=low
+
+  * New upstream point release. Add support for building Xen policies from
+    Paul Nuzzi. 
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 15 Oct 2009 23:10:12 -0500
+
+checkpolicy (2.0.19-1) unstable; urgency=low
+
+  * New upstream release
+    * Fix alias field in module format, caused by boundary format change
+      from Caleb Case.
+    * Properly escape regex symbols in the lexer from Stephen Smalley.
+    * Add bounds support from KaiGai Kohei.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 15 Jun 2009 14:12:44 -0500
+
+checkpolicy (2.0.16-4) unstable; urgency=low
+
+  * Updated the location of the sources in the watch file.
+  * Fixed a race condition in the debian rules file, and allow an override
+    for parallel builds.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 16 Apr 2009 12:55:26 -0500
+
+checkpolicy (2.0.16-3) unstable; urgency=low
+
+  * [cb135a2] Removed obsolete dependencies  (Closes: #505737)
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 20 Nov 2008 02:52:53 -0600
+
+checkpolicy (2.0.16-2) unstable; urgency=low
+
+  * Move to the new, make -j friendly, streamlined targets in the build
+    system. This should make building this more robust, and faster.
+  * Record the new VCS repository location for the package.
+  * NMU ack.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 30 Aug 2008 02:09:26 -0500
+
+checkpolicy (2.0.16-1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * New upstream version needed for latest policy.
+
+ -- Russell Coker <russell@coker.com.au>  Sat, 12 Jul 2008 00:16:59 +1000
+
+checkpolicy (2.0.12-1) unstable; urgency=low
+
+  * New upstream release
+    * Initialize struct policy_file before using it, from Todd C. Miller.
+    * Remove unused define, move variable out of .y file, simplify
+      COND_ERR, from Todd C. Miller. 
+    * Use yyerror2() where appropriate from Todd C. Miller.
+    * Update dispol for libsepol avtab changes from Stephen Smalley.
+    * Deprecate role dominance in parser.
+    * Added support for policy capabilities from Todd Miller.
+    * Initialize the source file name from the command line argument so
+      that checkpolicy/checkmodule report something more useful than
+      "unknown source". 
+    * Merged remove use of REJECT and trailing context in lex rules; make
+      ipv4 address parsing like ipv6 from James Carter. 
+
+ -- Manoj Srivastava <srivasta@debian.org>  Tue, 18 Mar 2008 01:34:42 -0500
+
+checkpolicy (2.0.4-1) unstable; urgency=low
+
+  * New upstream release
+    * Merged handle unknown policydb flag support from Eric Paris.
+      Adds new command line options -U {allow, reject, deny} for selecting
+      the flag when a base module or kernel policy is built.
+    * Merged fix for segfault on duplicate require of sensitivity from
+      Caleb Case. 
+    * Merged fix for dead URLs in checkpolicy man pages from Dan Walsh.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 06 Feb 2008 14:25:41 -0600
+
+checkpolicy (2.0.2-1) unstable; urgency=low
+
+  * New upstream SVN HEAD.
+    + Merged checkmodule man page fix from Dan Walsh.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun,  6 May 2007 17:48:06 -0500
+
+checkpolicy (2.0.1-1) unstable; urgency=low
+
+  * New upstream trunk release
+    * Merged patch to use new libsepol error codes by Karl MacMillan.
+  
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 19 Apr 2007 18:51:02 -0500
+
+checkpolicy (1.34.1-1) unstable; urgency=low
+
+  * New upstream release
+    * Merged patch to allow dots in class identifiers from Caleb Case.
+    * Updated version for stable branch.
+    * Collapse user identifiers and identifiers together.
+  * Added XS-VCS-Arch and XS-VCS-Browse to debian/control, and up0dated
+    the build depends
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 19 Apr 2007 00:46:26 -0500
+
+checkpolicy (1.32-1) unstable; urgency=low
+
+  * New upstream release
+    * Merged user and range_transition support for modules from Darrel
+      Goeddel 
+    * Updated version for release.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 20 Oct 2006 17:51:00 -0500
+
+checkpolicy (1.30.11-2) unstable; urgency=low
+
+  * Bug fix: "checkpolicy: Checkpolicy fails with old version of
+    libsepol1", thanks to Simon Richard Grint (Closes: #387029).
+  * Relink to the new version of libsepol, since that has the proper
+    shlibs bump.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 11 Sep 2006 16:06:19 -0500
+
+checkpolicy (1.30.11-1) unstable; urgency=low
+
+  * New upstream point release
+    * merged range_transition enhancements and user module format changes
+      from Darrel Goeddel 
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu,  7 Sep 2006 10:18:48 -0500
+
+checkpolicy (1.30.10-2) unstable; urgency=low
+
+  * checkpolicy_1.30.10-1(ia64/unstable): FTBFS: missing build-depends?
+    Actually, no.  the package asks for bison -- but it is not around, so
+    Make just picks yacc as default (which is also missing). So I think
+    this is a buildd bug -- but there is no harm in being a little more
+    robust, and being able to prove it is not a package bug is bonus.
+                                                           (Closes: #382646)
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 13 Aug 2006 00:11:08 -0500
+
+checkpolicy (1.30.10-1) unstable; urgency=low
+
+  * New upstream point release
+    *  Merged symtab datum patch from Karl MacMillan.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 12 Aug 2006 04:24:44 -0500
+
+checkpolicy (1.30.9-1) unstable; urgency=low
+
+  * New upstream point release
+    * Lindent.
+    * Merged patch to remove TE rule conflict checking from the parser
+      from Joshua Brindle.  This can only be done properly by the 
+      expander.
+    * Merged patch to make checkpolicy/checkmodule handling of
+      duplicate/conflicting TE rules the same as the expander 
+      from Joshua Brindle.
+    * Merged optionals in base take 2 patch set from Joshua Brindle.
+    * Merged compiler cleanup patch from Karl MacMillan.
+    * Merged fix warnings patch from Karl MacMillan.        
+    * Changed require_class to reject permissions that have not been
+      declared if building a base module.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 19 Jul 2006 18:01:32 -0500
+
+checkpolicy (1.30.3-1) unstable; urgency=low
+
+  * Synchronize with latest CVS; needed for reference policy.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon,  8 May 2006 14:02:46 -0500
+
+checkpolicy (1.30-1) unstable; urgency=low
+
+  * New upstream release
+      * Updated version for release.
+      * Fixed bug in role dominance (define_role_dom).
+      * Added a check for failure to declare each sensitivity in
+        a level definition.
+      * Changed to clone level data for aliased sensitivities to
+        avoid double free upon sens_destroy.  Bug reported by Kevin
+        Carr of Tresys Technology.
+      * Merged optionals in base patch from Joshua Brindle.
+      * Merged sepol_av_to_string patch from Joshua Brindle.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 10 Apr 2006 16:18:24 -0500
+
+checkpolicy (1.28-1) unstable; urgency=low
+
+  * New upstream release
+    * Updated version for release.
+    * Merged checkmodule man page from Dan Walsh, and edited it.
+    * Added error checking of all ebitmap_set_bit calls for out of
+      memory conditions.
+    * Merged removal of compatibility handling of netlink classes
+      (requirement that policies with newer versions include the
+       netlink class definitions, remapping of fine-grained netlink
+       classes in newer source policies to single netlink class when
+       generating older policies) from George Coker.
+    * Merged dismod fix from Joshua Brindle.
+    * Removed obsolete cond_check_type_rules() function and call and 
+      cond_optimize_lists() call from checkpolicy.c; these are handled
+      during parsing and expansion now.
+    * Updated calls to expand_module for interface change.
+    * Changed checkmodule to verify that expand_module succeeds 
+      when building base modules.
+    * Merged module compiler fixes from Joshua Brindle.
+    * Removed direct calls to hierarchy_check_constraints() and 
+      check_assertions() from checkpolicy since they are now called 
+      internally by expand_module().
+    * Updated for changes to sepol policydb_index_others interface.
+    * Updated for changes to sepol expand_module and link_modules interfaces.
+    * Merged support for require blocks inside conditionals from
+      Joshua Brindle (Tresys).
+    * Updated for changes to libsepol.
+    * Merged several bug fixes from Joshua Brindle (Tresys).
+    * Merged MLS in modules patch from Joshua Brindle (Tresys).
+    * Merged error handling improvement in checkmodule from Karl MacMillan (Tresys).
+    * Merged bugfix for dup role transition error messages from
+      Karl MacMillan (Tresys).
+    * Merged policyver/modulever patches from Joshua Brindle (Tresys).
+    * Fixed parse_categories handling of undefined category.
+    * Merged bug fix for role dominance handling from Darrel Goeddel (TCS). 
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu, 29 Dec 2005 23:57:12 -0600
+
+checkpolicy (1.27.4-1) unstable; urgency=low
+
+  * New upstream CVS point release, required for the latest SELinux policy
+    package. Various bug fixes, and retooled for  the new avtab format.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Fri, 30 Sep 2005 14:41:04 -0500
+
+checkpolicy (1.26-1) unstable; urgency=low
+
+  * New upstream release
+     * Updated version for release.
+     * Fixed handling of validatetrans constraint expressions.
+       Bug reported by Dan Walsh for checkpolicy -M.
+     * Merged use-after-free fix from Serge Hallyn (IBM).  
+       Bug found by Coverity.
+     * Fixed further memory leaks found by valgrind.
+     * Changed checkpolicy to destroy the policydbs prior to exit
+       to allow leak detection.
+     * Fixed several memory leaks found by valgrind.
+     * Updated checkpolicy and dispol for the new avtab format.
+       Converted users of ebitmaps to new inline operators.
+       Note:  The binary policy format version has been incremented to 
+       version 20 as a result of these changes.  To build a policy
+       for a kernel that does not yet include these changes, use
+       the -c 19 option to checkpolicy.
+     * Merged patch to prohibit use of "self" as a type name from Jason Tang (Tresys).
+     * Merged patch to fix dismod compilation from Joshua Brindle (Tresys).
+     * Fixed call to hierarchy checking code to pass the right policydb.
+     * Merged patch to update dismod for the relocation of the
+       module read/write code from libsemanage to libsepol, and
+       to enable build of test subdirectory from Jason Tang (Tresys).
+     * Merged hierarchy check fix from Joshua Brindle (Tresys).
+     * Merged loadable module support from Tresys Technology.
+     * Merged patch to prohibit the use of * and ~ in type sets 
+       (other than in neverallow statements) and in role sets
+       from Joshua Brindle (Tresys).
+  
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 14 Sep 2005 23:59:18 -0500
+
+checkpolicy (1.24-2) unstable; urgency=low
+
+  * Bug fix: "FTBFS: build-depends not strict enough", thanks to Christian
+    T. Steigies                                              (Closes: #316439).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu,  7 Jul 2005 13:18:14 -0500
+
+checkpolicy (1.24-1) unstable; urgency=low
+
+  * New upstream release
+        * Updated version for release.
+        * Merged cleanup patch from Dan Walsh.
+        * Added sepol_ prefix to Flask types to avoid namespace
+          collision with libselinux.
+        * Merged identifier fix from Joshua Brindle (Tresys).
+        * Merged hierarchical type/role patch from Tresys Technology.
+        * Merged MLS fixes from Darrel Goeddel of TCS.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Mon, 27 Jun 2005 14:42:10 -0500
+
+checkpolicy (1.22-2) unstable; urgency=low
+
+  * Bug fix: "checkpolicy: FTBFS due to undeclared functions", thanks to
+    Christian T. Steigies. The build dependency needed to be versioned.
+                                                       (Closes: #299337).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sun, 13 Mar 2005 13:06:42 -0600
+
+checkpolicy (1.22-1) unstable; urgency=low
+
+  * New upstream release
+       * Merged typeattribute statement patch from Darrel Goeddel of TCS.
+       * Changed genpolusers to handle multiple user config files.
+       * Merged nodecon ordering patch from Chad Hanson of TCS.
+       * Merged enhanced MLS support from Darrel Goeddel (TCS).
+       * Changed relabel Makefile target to use restorecon.
+       * Merged define_user() cleanup patch from Darrel Goeddel (TCS).
+       * Merged range_transition support from Darrel Goeddel (TCS).
+       * Moved genpolusers utility to libsepol.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Sat, 12 Mar 2005 16:10:54 -0600
+
+checkpolicy (1.20-1) unstable; urgency=low
+
+  * New upstream release
+    * Merged typeattribute statement patch from Darrel Goeddel of TCS.
+    * Changed genpolusers to handle multiple user config files.
+    * Merged nodecon ordering patch from Chad Hanson of TCS.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 12 Jan 2005 16:46:34 -0600
+
+checkpolicy (1.18-2) unstable; urgency=low
+
+  * Update download location and copyright file, since the locations we
+    were pointing to are now forbidden (return a code 403).
+
+ -- Manoj Srivastava <srivasta@debian.org>  Wed, 24 Nov 2004 14:01:41 -0600
+
+checkpolicy (1.18-1) unstable; urgency=low
+
+  * New upstream release.
+      * MLS build fix.
+      * Fixed Makefile dependencies (Chris PeBenito).
+      * Merged fix for role dominance ordering issue from Chad Hanson of TCS.
+      * Preserve portcon ordering and apply more checking.
+
+ -- Manoj Srivastava <srivasta@debian.org>  Thu,  4 Nov 2004 20:43:52 -0600
+
+checkpolicy (1.16-1) unstable; urgency=low
+
+  * New upstream version, plus patches to 1.17 CVS.
+
+ -- Russell Coker <russell@coker.com.au>  Tue, 26 Oct 2004 22:47:00 +1000
+
+checkpolicy (1.14-2) unstable; urgency=low
+
+  * Patch from Tresys to fix a bug in conditional code compilation.
+
+ -- Russell Coker <russell@coker.com.au>  Sun,  8 Aug 2004 22:26:00 +1000
+
+checkpolicy (1.14-1) unstable; urgency=low
+
+  * New upstream version that adds fine-grained netlink support and fixes
+    some minur bugs.
+
+ -- Russell Coker <russell@coker.com.au>  Wed, 30 Jun 2004 15:03:00 +1000
+
+checkpolicy (1.10-1) unstable; urgency=low
+
+  * New ustream version, includes support for policy V17 and changes to the
+    -c option for backward compatability.
+
+  * Taking the package over from Colin.
+
+ -- Russell Coker <russell@coker.com.au>  Thu, 20 May 2004 04:32:00 +1000
+
+checkpolicy (1.6-0.1) unstable; urgency=low
+
+  * NMU with latest release (same as CVS).
+
+ -- Russell Coker <russell@coker.com.au>  Thu, 26 Feb 2004 21:19:00 +1100
+
+checkpolicy (1.4-2.1) unstable; urgency=low
+
+  * NMU to update to latest CVS, needed by new policy.
+
+  * Merged conditional policy extensions from Tresys Technology.
+  * Added typealias declaration support per Russell Coker's request.
+  * Added support for excluding types from type sets based on
+    a patch by David Caplan, but reimplemented as a change to the
+    policy grammar.
+  * Merged patch from Colin Walters to report source file name and line
+    number for errors when available.
+  * Un-deprecated role transitions.
+
+ -- Russell Coker <russell@coker.com.au>  Mon, 23 Feb 2004 21:09:00 +1100
+
+checkpolicy (1.4-2) unstable; urgency=low
+
+  * debian/control:
+    - Apply patch from ddtp to fix typo in description (Closes: #218528)
+
+ -- Colin Walters <walters@debian.org>  Fri,  9 Jan 2004 06:00:52 +0000
+
+checkpolicy (1.4-1) unstable; urgency=low
+
+  * New upstream release.
+  * debian/patches/lineno.patch:
+    - Add patch from CVS to display source line numbers on error.
+
+ -- Colin Walters <walters@debian.org>  Fri,  9 Jan 2004 05:30:22 +0000
+
+checkpolicy (1.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Colin Walters <walters@debian.org>  Thu, 21 Aug 2003 23:55:39 -0400
+
+checkpolicy (1.0-2) unstable; urgency=low
+
+  * debian/control:
+    - Add Build-Depends on bison, flex (Closes: #205831)
+
+ -- Colin Walters <walters@debian.org>  Tue,  5 Aug 2003 18:37:17 -0400
+
+checkpolicy (1.0-1) unstable; urgency=low
+
+  * Initial version.
+  
+ -- Colin Walters <walters@debian.org>  Tue,  5 Aug 2003 01:35:18 -0400
--- checkpolicy-2.0.22.orig/debian/control
+++ checkpolicy-2.0.22/debian/control
@@ -0,0 +1,28 @@
+Source: checkpolicy
+VCS-Git: git://git.debian.org/~srivasta/debian/checkpolicy.git
+VCS-Browser: http://git.debian.org/?p=users/srivasta/debian/checkpolicy.git
+Priority: optional
+Section: utils
+Maintainer: Manoj Srivastava <srivasta@debian.org>
+Standards-Version: 3.8.4.0
+Build-Depends: bison, flex, libsepol1-dev (>= 2.0.39), libselinux1-dev (>= 2.0.94)
+
+Package: checkpolicy
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: SELinux policy compiler
+ Security-enhanced Linux is a patch of the Linux® kernel and a number
+ of utilities with enhanced security functionality designed to add
+ mandatory access controls to Linux.  The Security-enhanced Linux
+ kernel contains new architectural components originally developed to
+ improve the security of the Flask operating system. These
+ architectural components provide general support for the enforcement
+ of many kinds of mandatory access control policies, including those
+ based on the concepts of Type Enforcement®, Role-based Access
+ Control, and Multi-level Security.
+ .
+ This package contains checkpolicy, the SELinux policy compiler.  
+ Only required for building policies.  It uses libsepol to generate
+ the binary policy.  checkpolicy uses the static libsepol since it
+ deals with low level details of the policy that have not been
+ encapsulated/abstracted by a proper shared library interface.
--- checkpolicy-2.0.22.orig/debian/copyright
+++ checkpolicy-2.0.22/debian/copyright
@@ -0,0 +1,40 @@
+This is the Debian packe for checkpolicy, and it is built from sources
+obtained from: http://www.nsa.gov/selinux/code/download5.cfm.
+
+This package was debianized by Colin Walters <walters@debian.org> on
+Thu,  3 Jul 2003 17:10:57 -0400.
+
+checkpolicy is
+ Copyright © 2002, 2003, 2004 Stephen Smalley <sds@epoch.ncsc.mil>
+ Copyright © 2003-2008 Tresys Technology, LLC
+ Copyright © 2003,2007 Red Hat, Inc.
+ Copyright © 2003-2005 James Morris <jmorris@redhat.com>
+ Copyright © 2004-2005 Trusted Computer Solutions, Inc
+
+   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; version 2 dated June, 1991.
+
+   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.
+
+
+This package is maintained by Manoj Srivastava <srivasta@debian.org>.
+
+The Debian specific changes are © 2005-2009, Manoj Srivastava
+<srivasta@debian.org>, and distributed under the terms of the GNU
+General Public License, version 2.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'. 
+
+    A copy of the GNU General Public License is also available at
+    <URL:http://www.gnu.org/copyleft/gpl.html>.  You may also obtain
+    it by writing to the Free Software Foundation, Inc., 51 Franklin
+    St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+Manoj Srivastava <srivasta@debian.org>
+arch-tag: d4250e44-a0e0-4ee0-adb9-2bd74f6eeb27
+
--- checkpolicy-2.0.22.orig/debian/watch
+++ checkpolicy-2.0.22/debian/watch
@@ -0,0 +1,9 @@
+# format version number, currently 2; this line is compulsory!
+version=2
+
+
+http://userspace.selinuxproject.org/trac/wiki/Releases \
+ http://userspace.selinuxproject.org/releases/.*/devel/checkpolicy-(.*).tar.gz
+
+#http://userspace.selinuxproject.org/releases/current/devel/checkpolicy-(.*).tar.gz
+#http://www.nsa.gov/selinux/code/download-trunk.cfm ../archives/checkpolicy-(.*)\.tgz
--- checkpolicy-2.0.22.orig/debian/common/targets.mk
+++ checkpolicy-2.0.22/debian/common/targets.mk
@@ -0,0 +1,532 @@
+############################ -*- Mode: Makefile -*- ###########################
+## targets.mk ---
+## Author	    : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com )
+## Created On	    : Sat Nov 15 01:10:05 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Sat Apr 26 22:33:09 2008
+## Last Machine Used: anzu.internal.golden-gryphon.com
+## Update Count	    : 131
+## Status	    : Unknown, Use with caution!
+## HISTORY	    :
+## Description	    : The top level targets mandated by policy, as well as
+##		      their dependencies.
+##
+## arch-tag: a81086a7-00f7-4355-ac56-8f38396935f4
+##
+## 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307	 USA
+##
+###############################################################################
+
+#######################################################################
+#######################################################################
+###############		    Miscellaneous		###############
+#######################################################################
+#######################################################################
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+define TESTROOT
+	@test $$(id -u) = 0 || (echo need root priviledges; exit 1)
+endef
+
+testroot:
+	$(TESTROOT)
+
+checkpo:
+	$(CHECKPO)
+
+# arch-buildpackage likes to call this
+prebuild:
+
+ifneq (,$(shell if [ -f $(DEBIANDIR)/watch ]; then echo yes; fi))
+.PHONY: get-orig-source
+get-orig-source:
+	cd $(DEBIANDIR)/.. &&                                        \
+	  uscan --verbose --rename --destdir $(DEBIANDIR)../.. || true
+endif
+
+# OK. We have two sets of rules here, one for arch dependent packages,
+# and one for arch independent packages. We have already calculated a
+# list of each of these packages.
+
+# In each set, we may need to do things in five steps: configure,
+# build, install, package, and clean. Now, there can be a common
+# actions to be taken for all the packages, all arch dependent
+# packages, all all independent packages, and each package
+# individually at each stage.
+
+###########################################################################
+# The current code does a number of things: It ensures that the highest	  #
+# dependency at any stage (usually the -Common target) depends on the	  #
+# stamp-STAGE of the previous stage; so no work on a succeeding stage can #
+# start before the previous stage is all done.				  #
+###########################################################################
+
+###########################################################################
+# In the following, the do_* targets make sure all the real non-generic   #
+# work is done, but are not in the direct line of dependencies. This      #
+# makes sure that previous step in the order is all up to date before any #
+# of the per package target dependencies are run.		 	  #
+###########################################################################
+
+
+#######################################################################
+#######################################################################
+###############		    Configuration		###############
+#######################################################################
+#######################################################################
+# Just a dummy target to make sure that the stamp directory exists
+debian/stamp/dummy-config-common:
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Configuration tasks common to arch and arch indep packages go here
+debian/stamp/pre-config-common: debian/stamp/dummy-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+# Do not add dependencies to this rule
+debian/stamp/do-pre-config-common: debian/stamp/dummy-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/pre-config-common
+	@echo done > $@
+
+# Arch specific and arch independent tasks go here
+debian/stamp/pre-config-arch:	debian/stamp/do-pre-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+# Do not add dependencies to this rule
+debian/stamp/do-pre-config-arch:	debian/stamp/do-pre-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/pre-config-arch
+	@echo done > $@
+
+
+debian/stamp/pre-config-indep: debian/stamp/do-pre-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+# Do not add dependencies to this rule
+debian/stamp/do-pre-config-indep: debian/stamp/do-pre-config-common
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/pre-config-indep
+	@echo done > $@
+
+# Per package work happens as an added dependency of this rule.
+$(patsubst %,debian/stamp/CONFIG/%,$(DEB_ARCH_PACKAGES))  : debian/stamp/CONFIG/% : debian/stamp/do-pre-config-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG
+	@echo done > $@
+$(patsubst %,debian/stamp/CONFIG/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/CONFIG/% : debian/stamp/do-pre-config-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG
+	@echo done > $@
+
+# Do not add dependencies to this rule
+debian/stamp/dep-configure-arch: debian/stamp/do-pre-config-arch $(patsubst %,debian/stamp/CONFIG/%,$(DEB_ARCH_PACKAGES)) 
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Do not add dependencies to this rule
+debian/stamp/dep-configure-indep: debian/stamp/do-pre-config-indep $(patsubst %,debian/stamp/CONFIG/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/do-configure-arch: debian/stamp/do-pre-config-arch
+	$(REASON)
+	@test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG
+	$(MAKE) -f debian/rules debian/stamp/dep-configure-arch
+	@echo done > $@
+debian/stamp/do-configure-indep: debian/stamp/do-pre-config-indep
+	$(REASON)
+	@test -d debian/stamp/CONFIG || mkdir -p debian/stamp/CONFIG
+	$(MAKE) -f debian/rules debian/stamp/dep-configure-indep
+	@echo done > $@
+
+# These three targets are required by policy
+configure-arch:	 debian/stamp/do-configure-arch
+	$(REASON)
+configure-indep: debian/stamp/do-configure-indep
+	$(REASON)
+configure: debian/stamp/do-configure-arch debian/stamp/do-configure-indep
+	$(REASON)
+
+#######################################################################
+#######################################################################
+###############			Build			###############
+#######################################################################
+#######################################################################
+# tasks common to arch and arch indep packages go here
+debian/stamp/pre-build-common:
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Arch specific and arch independent tasks go here
+debian/stamp/pre-build-arch:  debian/stamp/do-configure-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-build-arch:  debian/stamp/do-configure-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/pre-build-common || $(MAKE) -f debian/rules debian/stamp/pre-build-common
+	$(MAKE) -f debian/rules debian/stamp/pre-build-arch
+	@echo done > $@
+
+debian/stamp/pre-build-indep: debian/stamp/do-configure-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-build-indep: debian/stamp/do-configure-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/pre-build-common || $(MAKE) -f debian/rules debian/stamp/pre-build-common
+	$(MAKE) -f debian/rules debian/stamp/pre-build-indep
+	@echo done > $@
+
+# Per package work happens  as an added dependency of this rule.
+$(patsubst %,debian/stamp/BUILD/%,$(DEB_ARCH_PACKAGES))	 : debian/stamp/BUILD/% : debian/stamp/do-pre-build-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/BUILD || mkdir -p debian/stamp/BUILD
+	@echo done > $@
+
+$(patsubst %,debian/stamp/BUILD/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/BUILD/% : debian/stamp/do-pre-build-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/BUILD || mkdir -p debian/stamp/BUILD
+	@echo done > $@
+
+# These do targeta make sure all the per package configuration is
+# done, but is not in the direct line of dependencies. This makes sure
+# that pre-config targets are all up to date before any of the per
+# package target dependencies are run.
+debian/stamp/dep-build-arch: debian/stamp/do-pre-build-arch $(patsubst %,debian/stamp/BUILD/%,$(DEB_ARCH_PACKAGES)) 
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/dep-build-indep: debian/stamp/do-pre-build-indep $(patsubst %,debian/stamp/BUILD/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/do-build-arch: debian/stamp/do-pre-build-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-build-arch
+	@echo done > $@
+debian/stamp/do-build-indep: debian/stamp/do-pre-build-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-build-indep
+	@echo done > $@
+
+# required
+build-arch: debian/stamp/do-build-arch
+	$(REASON)
+build-indep: debian/stamp/do-build-indep
+	$(REASON)
+build: debian/stamp/do-build-arch debian/stamp/do-build-indep
+	$(REASON)
+
+# Work here
+debian/stamp/post-build-arch: debian/stamp/do-build-arch
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-post-build-arch: debian/stamp/do-build-arch
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/post-build-arch
+	@echo done > $@
+
+debian/stamp/post-build-indep: debian/stamp/do-build-indep
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-post-build-indep: debian/stamp/do-build-indep
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/post-build-indep
+	@echo done > $@
+
+#######################################################################
+#######################################################################
+###############		       Install			###############
+#######################################################################
+#######################################################################
+# tasks common to arch and arch indep packages go here
+debian/stamp/pre-inst-common:
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Arch specific and arch independent tasks go here
+debian/stamp/pre-inst-arch:  debian/stamp/do-post-build-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-inst-arch:  debian/stamp/do-post-build-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/INST-common || $(MAKE) -f debian/rules debian/stamp/pre-inst-common
+	$(MAKE) -f debian/rules debian/stamp/pre-inst-arch
+	@echo done > $@
+
+debian/stamp/pre-inst-indep: debian/stamp/do-post-build-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-inst-indep: debian/stamp/do-post-build-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/INST-common || $(MAKE) -f debian/rules debian/stamp/pre-inst-common
+	$(MAKE) -f debian/rules debian/stamp/pre-inst-indep
+	@echo done > $@
+
+
+# Per package work happens as an added dependency of this rule
+$(patsubst %,debian/stamp/INST/%,$(DEB_ARCH_PACKAGES))	: debian/stamp/INST/% : debian/stamp/do-pre-inst-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/INST || mkdir -p debian/stamp/INST
+	@echo done > $@
+$(patsubst %,debian/stamp/INST/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/INST/% : debian/stamp/do-pre-inst-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/INST || mkdir -p debian/stamp/INST
+	@echo done > $@
+
+# These do targeta make sure all the per package configuration is
+# done, but is not in the direct line of dependencies. This makes sure
+# that pre-config targets are all up to date before any of the per
+# package target dependencies are run.
+debian/stamp/dep-install-arch: debian/stamp/do-pre-inst-arch $(patsubst %,debian/stamp/INST/%,$(DEB_ARCH_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/dep-install-indep: debian/stamp/do-pre-inst-indep $(patsubst %,debian/stamp/INST/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+
+debian/stamp/do-install-arch: debian/stamp/do-pre-inst-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-install-arch
+	@echo done > $@
+debian/stamp/do-install-indep:  debian/stamp/do-pre-inst-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-install-indep
+	@echo done > $@
+
+#required
+install-arch:  debian/stamp/do-install-arch
+	$(REASON)
+	$(TESTROOT)
+install-indep: debian/stamp/do-install-indep
+	$(REASON)
+	$(TESTROOT)
+install: debian/stamp/do-install-arch debian/stamp/do-install-indep
+	$(REASON)
+	$(TESTROOT)
+
+#######################################################################
+#######################################################################
+###############		       Package			###############
+#######################################################################
+#######################################################################
+# tasks common to arch and arch indep packages go here
+debian/stamp/pre-bin-common:
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+# Arch specific and arch independent tasks go here
+debian/stamp/pre-bin-arch:  debian/stamp/do-install-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-bin-arch:  debian/stamp/do-install-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/BIN-common || $(MAKE) -f debian/rules debian/stamp/pre-bin-common
+	$(MAKE) -f debian/rules debian/stamp/pre-bin-arch
+	@echo done > $@
+
+debian/stamp/pre-bin-indep: debian/stamp/do-install-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+debian/stamp/do-pre-bin-indep: debian/stamp/do-install-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@test -e debian/stamp/BIN-common || $(MAKE) -f debian/rules debian/stamp/pre-bin-common
+	$(MAKE) -f debian/rules debian/stamp/pre-bin-indep
+	@echo done > $@
+
+# Per package work happens as an added dependency of this rule
+$(patsubst %,debian/stamp/BIN/%,$(DEB_ARCH_PACKAGES))  : debian/stamp/BIN/% : debian/stamp/do-pre-bin-arch
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/BIN || mkdir -p debian/stamp/BIN
+	@echo done > $@
+
+$(patsubst %,debian/stamp/BIN/%,$(DEB_INDEP_PACKAGES)) : debian/stamp/BIN/% : debian/stamp/do-pre-bin-indep
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp/BIN || mkdir -p debian/stamp/BIN
+	@echo done > $@
+
+# These do targeta make sure all the per package work is done, but is
+# not in the direct line of dependencies. This makes sure that
+# pre-config targets are all up to date before any of the per package
+# target dependencies are run.
+debian/stamp/dep-binary-arch: debian/stamp/pre-bin-arch $(patsubst %,debian/stamp/BIN/%,$(DEB_ARCH_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/dep-binary-indep: debian/stamp/pre-bin-indep $(patsubst %,debian/stamp/BIN/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	@echo done > $@
+
+debian/stamp/do-binary-arch:  debian/stamp/do-pre-bin-arch 
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-binary-arch
+	@echo done > $@
+debian/stamp/do-binary-indep: debian/stamp/do-pre-bin-indep 
+	$(REASON)
+	$(checkdir)
+	@test -d debian/stamp || mkdir -p debian/stamp
+	$(MAKE) -f debian/rules debian/stamp/dep-binary-indep
+	@echo done > $@
+# required
+binary-arch:  debian/stamp/do-binary-arch
+	$(REASON)
+	$(TESTROOT)
+binary-indep: debian/stamp/do-binary-indep
+	$(REASON)
+	$(TESTROOT)
+binary: debian/stamp/do-binary-arch debian/stamp/do-binary-indep
+	$(REASON)
+	$(TESTROOT)
+	@echo arch package   = $(DEB_ARCH_PACKAGES)
+	@echo indep packages = $(DEB_INDEP_PACKAGES)
+
+#######################################################################
+#######################################################################
+###############			Clean			###############
+#######################################################################
+#######################################################################
+# Work here
+CLN-common:: 
+	$(REASON)
+	$(checkdir)
+
+# sync Work here
+CLN-arch::  CLN-common
+	$(REASON)
+	$(checkdir)
+CLN-indep:: CLN-common
+	$(REASON)
+	$(checkdir)
+# Work here
+$(patsubst %,CLEAN/%,$(DEB_ARCH_PACKAGES))  :: CLEAN/% : CLN-arch
+	$(REASON)
+	$(checkdir)
+$(patsubst %,CLEAN/%,$(DEB_INDEP_PACKAGES)) :: CLEAN/% : CLN-indep
+	$(REASON)
+	$(checkdir)
+
+clean-arch: CLN-arch $(patsubst %,CLEAN/%,$(DEB_ARCH_PACKAGES))
+	$(REASON)
+clean-indep: CLN-indep $(patsubst %,CLEAN/%,$(DEB_INDEP_PACKAGES))
+	$(REASON)
+clean: clean-indep clean-arch
+	$(REASON)
+	-test -f Makefile && $(MAKE) distclean
+	-rm -f	$(FILES_TO_CLEAN) $(STAMPS_TO_CLEAN)
+	-rm -rf $(DIRS_TO_CLEAN) debian/stamp
+	-rm -f core TAGS						     \
+	       `find . ! -regex '.*/\.git/.*' ! -regex '.*/\{arch\}/.*'	     \
+		       ! -regex '.*/CVS/.*'   ! -regex '.*/\.arch-ids/.*'    \
+		       ! -regex '.*/\.svn/.*'				     \
+		   \( -name '*.orig' -o -name '*.rej' -o -name '*~'	  -o \
+		      -name '*.bak'  -o -name '#*#'   -o -name '.*.orig'  -o \
+		      -name '.*.rej' -o -name '.SUMS' \)		     \
+		-print`
+
+
+#######################################################################
+#######################################################################
+###############						###############
+#######################################################################
+#######################################################################
+.PHONY: configure-arch	configure-indep	 configure     \
+	build-arch	build-indep	 build	       \
+	install-arch	install-indep	 install       \
+	binary-arch	binary-indep	 binary	       \
+	CLN-common     CLN-indep     CLN-arch	  clean-arch	  clean-indep	   clean	 \
+	$(patsubst %,CLEAN/%, $(DEB_INDEP_PACKAGES)) $(patsubst %,CLEAN/%, $(DEB_ARCH_PACKAGES)) \
+	implode explode prebuild checkpo
+
+
+#Local variables:
+#mode: makefile
+#End:
--- checkpolicy-2.0.22.orig/debian/common/install_cmds.mk
+++ checkpolicy-2.0.22/debian/common/install_cmds.mk
@@ -0,0 +1,58 @@
+######################### -*- Mode: Makefile-Gmake -*- ########################
+## install_cmds.mk ---
+## Author           : Manoj Srivastava ( srivasta@golden-gryphon.com )
+## Created On       : Fri Jun 16 14:40:20 2006
+## Created On Node  : glaurung.internal.golden-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Wed Sep  6 11:43:05 2006
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 9
+## Status           : Unknown, Use with caution!
+## HISTORY          :
+## Description      :
+##
+## arch-tag: a38b6a93-2539-4034-9060-ae94d5c8a071
+##
+## 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 St, Fifth Floor, Boston, MA  02110-1301  USA
+##
+###############################################################################
+
+# install commands
+INSTALL = install
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+    INSTALL_PROGRAM += -s
+endif
+install_file    = $(INSTALL) -p    -o root -g root  -m  644
+install_program = $(INSTALL) -p    -o root -g root  -m  755
+install_script  = $(INSTALL) -p    -o root -g root  -m  755
+make_directory  = $(INSTALL) -p -d -o root -g root  -m  755
+
+define create_md5sum
+    create_md5sums_fn () {                                         \
+        cd $$1 ;                                                   \
+       find . -type f                                              \
+              ! -regex './DEBIAN/.*'                               \
+              ! -regex './var/.*'     $(EXTRA_MD5SUM_EXCLUDE)      \
+              -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums ; \
+       if [ -z "DEBIAN/md5sums" ] ; then                           \
+           rm -f "DEBIAN/md5sums" ;                                \
+       fi ;                                                        \
+    } ;                                                            \
+    create_md5sums_fn
+endef
+
+#Local variables:
+#mode: makefile
+#End:
--- checkpolicy-2.0.22.orig/debian/common/copt.mk
+++ checkpolicy-2.0.22/debian/common/copt.mk
@@ -0,0 +1,44 @@
+############################ -*- Mode: Makefile -*- ###########################
+## copt.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 02:48:40 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Sat Nov 15 02:49:07 2003
+## Last Machine Used: glaurung.green-gryphon.com
+## Update Count     : 1
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: a0045c20-f1b3-4852-9a4b-1a33ebd7c1b8
+## 
+###############################################################################
+
+PREFIX    := /usr
+# set CC to $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is detected
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+  CC=$(DEB_HOST_GNU_TYPE)-gcc
+else
+  CC = cc
+endif
+
+# Policy 10.1 says to make this the default
+CFLAGS = -Wall -g
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
+endif
+
+## ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+## endif
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+  STRIP   += -s
+  LDFLAGS += -s
+  INT_INSTALL_TARGET = install 
+else
+  INT_INSTALL_TARGET = install
+endif
--- checkpolicy-2.0.22.orig/debian/common/checklibs
+++ checkpolicy-2.0.22/debian/common/checklibs
@@ -0,0 +1,78 @@
+#! /bin/sh 
+#                               -*- Mode: Sh -*- 
+# checklibs.sh --- 
+# Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) 
+# Created On       : Fri Sep 29 15:36:22 2006
+# Created On Node  : glaurung.internal.golden-gryphon.com
+# Last Modified By : Manoj Srivastava
+# Last Modified On : Wed Sep  2 01:16:46 2009
+# Last Machine Used: anzu.internal.golden-gryphon.com
+# Update Count     : 47
+# Status           : Unknown, Use with caution!
+# HISTORY          : 
+# Description      : 
+# 
+# arch-tag: 8ba11489-77fa-45a0-92c4-9c5b162ee119
+# 
+# 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+# 
+
+# Make sure we abort on error
+set -e
+progname="$(basename \"$0\")"
+
+trap 'rm -f search_patterns.txt;' ALRM HUP INT PIPE TERM ABRT FPE BUS QUIT SEGV ILL EXIT
+
+# Find all undefined symbols in all ELF objects in this tree
+readelf -s -D -W $(find . -type f -print0 | xargs -0r  file | grep " ELF" | \
+ awk '{print $1}' | sed -e 's/:$//') | grep UND | grep -v LOCAL |
+  perl -ple 's/.*\s(\S+)\s*$/\^$1\$/g' | sort -u > search_patterns.txt;
+
+LOCAL_LIBS=$(find . -type f -print0  | xargs -0r file | egrep "ELF.*shared object" | \
+    awk '{print $1}' | sed -e 's/:$//' -e 's,/[^/]*$,,')
+
+# Find all the libraries needed in this tree 
+objdump -T --private-headers $(find . -type f -print0  | \
+  xargs -0r file | egrep "ELF.*(shared object|executable)" | \
+  awk '{print $1}' | sed -e 's/:$//') | grep NEEDED | sort -u | awk '{print $2}' | 
+    while read lib; do
+        # For each library, see where it lives on the file system
+        LIB=
+        for library_dir in "/lib" "/usr/lib" $LOCAL_LIBS $EXTRA_LIBRARY_PATHS; do
+            if [ -e "$library_dir/$lib" ]; then
+                 LIB="$library_dir/$lib";
+                 break
+            fi
+        done
+        if [ -z "$LIB" ]; then
+            echo >&2 "Can't find $lib"
+            continue
+        fi
+        # If we fond the library, find what symbols it defines, and if these symbols
+        # are some that we need
+        if readelf -s -D -W $LIB | grep -v UND | perl -ple 's/.*\s(\S+)\s*$/$1/g' | \
+            sort -u | grep -q -f search_patterns.txt ; then
+            # Library provides at least some symbols we need
+            if [ -n "$DEBUG" ]; then echo "Found $LIB"; fi
+        else
+            # Library does not provide any symbols we need
+            echo "$LIB" ;
+        fi
+done
+
+# Get rid of the intermediate file
+rm -f search_patterns.txt;
+exit 0
+
--- checkpolicy-2.0.22.orig/debian/common/README
+++ checkpolicy-2.0.22/debian/common/README
@@ -0,0 +1,78 @@
+# This file provides a quick overview of this build system. The idea is
+# to convert ./debian/rules into a framework, which abstracts most of
+# the work required to create a Debian package into this common set of
+# make snippets.
+
+# The rules file would look like this:
+
+## Include dpkg-architecture generated variables
+#  This make snippet uses dpkg-architecture to set the various
+#  DEB_BUILD* and DEB_HOST* variables. It also adds a couple of DEBUG
+#  macros for use in the rules file.
+include debian/common/archvars.mk
+
+## variables useful for perl packages
+#  This sets things like the installed location of the private lib,
+#  arch dependent lib, and vendor library directories.
+include debian/common/perlvars.mk
+
+## Install commands
+#  This sets the convenience macros install_{file,script,program} and
+#  a make directory macro, all run as root, for the install and binary
+#  targets. It also includes a macro to create the md5sum for
+#  installed files.
+include debian/common/install_cmds.mk
+
+## Per package variable settings. 
+#  This file sets the Make variables on a per package basis. Things
+#  like include files, C, C++, and LD flags are set here, as well as
+#  installation paths or, really, anything else that would be needed
+#  during packaging operations
+include debian/local-vars.mk
+
+## Setting C compiler flags.
+#  This file takes care of setting C compiler flags, setting the
+#  compiler if a cross compilation effort is detected, and either
+#  arranges for binaries to be stripped or not based on
+#  DEB_BUILD_OPTIONS. 
+include debian/common/copt.mk
+
+## Set automake configuration flags
+#  This file sets confflags variable with the proper --host and
+#  --build options if it detects a cross compilation effort underway. 
+include debian/common/automake.mk
+
+# Set up the default target.
+all:
+        @echo nothing to be done
+
+## Include the common targets
+#  This file sets up the flow of control during a Debian package build
+#  process, taking into account policy requirements (mandatory
+#  targets, ordering targets). It sets up rules for each package found
+#  in ./debian/control file in the package, and arranges package build
+#  to follow the order of configuration, building, installation, and
+#  binary package creation (and of course, clean).
+
+# The details of the targets can be seen visually by running dot on
+# the accompanying targets.dot file. In the figure, the legend is:
+# Nodes attributes:
+#    filled  == Work target (most work is done in dependencies added
+#               to these targets). These are the targets referred to
+#               in the local.mk file
+#    Octagon == Phony target
+#    Oval    == Real target based on a time stamp
+# Double lines denote a mandatory target
+#
+# Edge attributes: A Red line indicates the target is called using
+# $(MAKE) -f ./debian/rules <target>. So the targets connected by the
+# red lines are run after all the dependencies have been updated, but
+# before anything else is done.
+
+include debian/common/targets.mk
+
+## The bulk of packaging
+#  This file adds dependencies to the double-colon rules set up in
+#  targets.mk above, and perform the bulk of the packaging. 
+include debian/local.mk
+
--- checkpolicy-2.0.22.orig/debian/common/debconf.mk
+++ checkpolicy-2.0.22/debian/common/debconf.mk
@@ -0,0 +1,42 @@
+############################ -*- Mode: Makefile -*- ###########################
+## debconf.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.internal.golden-gryphon.com ) 
+## Created On       : Fri Mar 12 11:11:31 2004
+## Created On Node  : glaurung.internal.golden-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Mon Apr 11 13:19:10 2005
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 20
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : helps with using debconf
+## 
+## arch-tag: 32b933a9-05ad-4c03-97a8-8644745b832a
+##
+###############################################################################
+
+# The idea behind this scheme is that the maintainer (or whoever's
+# building the package for upload to unstable) has to build on a
+# machine with po-debconf installed, but nobody else does.
+
+# Also, make sure that debian/control has ${debconf-depends} in the
+# appropriate Depends: line., and use the following in the binary
+# target:
+#  dpkg-gencontrol -V'debconf-depends=debconf (>= $(MINDEBCONFVER))'
+#
+
+# WARNING!! You need to create the debian/templates file before this
+# all works.
+
+# Run debconf-updatepo whenever the template file changes.
+# the tool podebconf-report-po is also a great friend to have in such
+# circumstances 
+define CHECKPO
+	@for i in debian/po/*.po; do                         \
+	  if [ -f $$i ]; then                        \
+	    echo \"Checking: $$i\";                  \
+	    msgmerge -U $$i debian/po/templates.pot;        \
+	    msgfmt -o /dev/null -c --statistics $$i; \
+	  fi;                                        \
+	done
+endef
--- checkpolicy-2.0.22.orig/debian/common/automake.mk
+++ checkpolicy-2.0.22/debian/common/automake.mk
@@ -0,0 +1,37 @@
+############################ -*- Mode: Makefile -*- ###########################
+## automake.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 02:47:23 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Sat Nov 15 02:47:53 2003
+## Last Machine Used: glaurung.green-gryphon.com
+## Update Count     : 1
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: 1fabe69b-7cc8-4ecc-9411-bc5906b19857
+## 
+###############################################################################
+
+AUTOCONF_VERSION:=$(shell if [ -e configure ]; then                       \
+                       grep "Generated automatically using autoconf"      \
+                       configure | sed -e 's/^.*autoconf version //g';    \
+                      fi)
+HAVE_NEW_AUTOMAKE:=$(shell if [ "X$(AUTOCONF_VERSION)" != "X2.13" ]; then \
+                             echo 'YES' ; fi)
+
+ifneq ($(strip $(HAVE_NEW_AUTOMAKE)),)
+  ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+       confflags += --build $(DEB_BUILD_GNU_TYPE) 
+  else
+       confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+  endif
+else
+  ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
+       confflags += $(DEB_HOST_GNU_TYPE)
+  else
+       confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+  endif
+endif
--- checkpolicy-2.0.22.orig/debian/common/ChangeLog
+++ checkpolicy-2.0.22/debian/common/ChangeLog
@@ -0,0 +1,59 @@
+2008-02-06  Manoj Srivastava  <srivasta@debian.org>
+
+	* copt.mk:
+		  srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--patch-4
+		  The cross building support in Debian has been rewritten
+		  to stop overriding the CC  variable to $(MAKE) in order
+		  to correctly support those packages that build internal
+		  tools with the native compiler during the build. This
+		  means that other packages that assume that CC will be
+		  overridden by the cross-compiling build scripts now fail
+		  to build. The patch is simply to set CC to
+		  $(DEB_HOST_GNU_TYPE)-gcc only if a cross-build is
+		  detected.
+
+2007-10-09  Manoj Srivastava  <srivasta@debian.org>
+
+	* targets.mk:
+		  srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--patch-1
+		  fix dependency tree for targets, allow  parralel
+		  compilatoin.  Many changes, thanks to dot.
+
+2007-09-20  Manoj Srivastava  <srivasta@debian.org>
+
+	* targets.mk (stamp-clean):
+		  srivasta@debian.org--lenny/skeleton-make-rules--main--0.1--base-0
+		  make clean not remove zero sized files. removed the part
+		  that cleaned out zero sized files; since there are uses
+		  for zero sized files (like, to nuke out files in
+		  upstream sources and not inflate the diff. Any zero
+		  sized files can still be nuked in the local.mk file.
+
+2006-10-02  Manoj Srivastava  <srivasta@debian.org>
+
+	* checklibs:
+		  srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-15
+		  New file, to detect if there are unneeded library
+		  dependencies
+
+2006-10-01  Manoj Srivastava  <srivasta@debian.org>
+
+	* archvars.mk (doit):
+		  srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-14
+		  Add a macro to execute $(shell ...) macos verbosely to
+		  help debugging.
+
+2006-09-15  Manoj Srivastava  <srivasta@debian.org>
+
+	* targets.mk (stamp-clean):
+		  srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-13
+		  Exclude version control directories from the generic
+		  clean command.
+
+
+2006-08-23  Manoj Srivastava  <srivasta@debian.org>
+
+	* pkgvars.mk (DEB_DISTRIBUTION):
+		  srivasta@debian.org--etch/skeleton-make-rules--main--0.1--patch-6
+		  Add variable that contains the distribution information 
+
--- checkpolicy-2.0.22.orig/debian/common/targets.dot
+++ checkpolicy-2.0.22/debian/common/targets.dot
@@ -0,0 +1,293 @@
+strict digraph Targets {
+  //ranksep=0.750;
+  //nodesep=0.500;
+
+ // Nodes attributes: filled  == Double-colon targt (most work is done here)
+ //                   Oval    == Target based on a time stamp
+ //                   Octagon == Phony target
+ // Double lines denote a mandatory target (periperies=2)
+
+ // Edge attributes: Dotted line indicates the target is called using $(MAKE)
+
+ "debian/stamp/dummy-config-common"  [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-config-common"    [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-config-common" [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-config-arch"      [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-config-arch"   [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-config-indep"     [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-config-indep"  [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/CONFIG/foo-arch"      [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/CONFIG/bar-indep"     [ style="filled", color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-configure-arch"   [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-configure-indep"  [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-configure-arch"    [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-configure-indep"   [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10]
+ "configure-arch"                    [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "configure-indep"                   [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "configure"                         [ style="bold",   color="#DEE3FF", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+
+ "debian/stamp/pre-build-common"    [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-build-arch"      [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-build-arch"   [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-build-indep"     [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-build-indep"  [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/BUILD/foo-arch"      [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/BUILD/bar-indep"     [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-build-arch"      [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-build-indep"     [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-build-arch"       [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-build-indep"      [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "build-arch"                       [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "build-indep"                      [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "build"                            [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "debian/stamp/post-build-arch"     [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/post-build-indep"    [ style="filled", color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-post-build-arch"  [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-post-build-indep" [ style="bold",   color="#74A5ED", fontcolor="NavyBlue", fontsize=10]
+
+ "debian/stamp/pre-inst-common"    [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-inst-arch"      [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-inst-arch"   [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-inst-indep"     [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-inst-indep"  [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/INST/foo-arch"      [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/INST/bar-indep"     [ style="filled", color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-install-arch"   [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-install-indep"  [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-install-arch"    [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-install-indep"   [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10]
+ "install-arch"                    [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "install-indep"                   [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "install"                         [ style="bold",   color="#F8DFDB", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+
+ "debian/stamp/pre-bin-common"    [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-bin-arch"      [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-bin-arch"   [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/pre-bin-indep"     [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-pre-bin-indep"  [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/BIN/foo-arch"      [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/BIN/bar-indep"     [ style="filled", color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-binary-arch"   [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/dep-binary-indep"  [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-binary-arch"    [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "debian/stamp/do-binary-indep"   [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10]
+ "binary-arch"                    [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "binary-indep"                   [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+ "binary"                         [ style="bold",   color="#CEFFC0", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+
+
+ "CLN-common"             [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "CLN-arch"               [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "CLN-indep"              [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "CLEAN/foo-arch"         [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "CLEAN/bar-indep"        [ style="filled" , color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "clean-arch"             [ style="bold",    color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "clean-indep"            [ style="bold",    color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon"]
+ "clean"                  [ style="bold",    color="#E2E8C3", fontcolor="NavyBlue", fontsize=10, shape="octagon", peripheries=2]
+
+
+ "CLN-common" ->       "CLN-arch"        [dir=back]
+ "CLN-common" ->       "CLN-indep"       [dir=back]
+ "CLN-arch" ->         "CLEAN/foo-arch"  [dir=back]
+ "CLN-indep" ->        "CLEAN/bar-indep" [dir=back]
+ "CLN-arch" ->         "clean-arch"      [dir=back]
+ "CLEAN/foo-arch" ->   "clean-arch"      [dir=back]
+ "CLN-indep" ->        "clean-indep"     [dir=back]
+ "CLEAN/bar-indep" ->  "clean-indep"     [dir=back]
+ "clean-indep" ->      "clean"     [dir=back]
+ "clean-arch" ->       "clean"     [dir=back]
+
+// "debian/stamp/dummy-config-common"  -> "debian/stamp/pre-config-common"     [dir=back]
+ "debian/stamp/dummy-config-common"    -> "debian/stamp/do-pre-config-common"  [dir=back]
+ "debian/stamp/pre-config-common"      -> "debian/stamp/do-pre-config-common"  [dir=back color="Red"]
+// "CUSTOM-1"                             [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-1"                          -> "debian/stamp/pre-config-common"     [dir=back]
+// "debian/stamp/do-pre-config-common" -> "debian/stamp/pre-config-arch"       [dir=back]
+ "debian/stamp/do-pre-config-common"   -> "debian/stamp/do-pre-config-arch"    [dir=back]
+ "debian/stamp/pre-config-arch"        -> "debian/stamp/do-pre-config-arch"    [dir=back color="Red"]
+// "CUSTOM-2"                              [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-2"                          -> "debian/stamp/pre-config-arch"       [dir=back]
+// "debian/stamp/do-pre-config-common" -> "debian/stamp/pre-config-indep"      [dir=back]
+ "debian/stamp/do-pre-config-common"   -> "debian/stamp/do-pre-config-indep"   [dir=back]
+ "debian/stamp/pre-config-indep"       -> "debian/stamp/do-pre-config-indep"   [dir=back color="Red"]
+// "CUSTOM-3"                              [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-3"                          -> "debian/stamp/pre-config-indep"      [dir=back]
+// "debian/stamp/do-pre-config-arch"   -> "debian/stamp/CONFIG/foo-arch"       [dir=back]
+// "debian/stamp/do-pre-config-indep"  -> "debian/stamp/CONFIG/bar-indep"      [dir=back]
+// "debian/stamp/do-pre-config-arch"   -> "debian/stamp/dep-configure-arch"    [dir=back]
+ "debian/stamp/CONFIG/foo-arch"        -> "debian/stamp/dep-configure-arch"    [dir=back]
+// "debian/stamp/do-pre-config-indep"  -> "debian/stamp/dep-configure-indep"   [dir=back]
+ "debian/stamp/CONFIG/bar-indep"       -> "debian/stamp/dep-configure-indep"   [dir=back]
+
+ "debian/stamp/do-pre-config-arch"     -> "debian/stamp/do-configure-arch"     [dir=back]
+ "debian/stamp/dep-configure-arch"     -> "debian/stamp/do-configure-arch"     [dir=back color="Red"]
+// "CUSTOM-4"                              [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-4"                          -> "debian/stamp/CONFIG/foo-arch"       [dir=back]
+ "debian/stamp/do-pre-config-indep"    -> "debian/stamp/do-configure-indep"    [dir=back]
+ "debian/stamp/dep-configure-indep"    -> "debian/stamp/do-configure-indep"    [dir=back color="Red"]
+// "CUSTOM-5"                              [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-5"                          -> "debian/stamp/CONFIG/bar-indep"      [dir=back]
+ "debian/stamp/do-configure-arch"      -> "configure-arch"                     [dir=back]
+ "debian/stamp/do-configure-indep"     -> "configure-indep"                    [dir=back]
+ "debian/stamp/do-configure-arch"      -> "configure"                          [dir=back]
+ "debian/stamp/do-configure-indep"     -> "configure"                          [dir=back]
+
+// "debian/stamp/do-configure-arch"    -> "debian/stamp/pre-build-arch"        [dir=back]
+ "debian/stamp/do-configure-arch"      -> "debian/stamp/do-pre-build-arch"     [dir=back]
+ "debian/stamp/pre-build-common"       -> "debian/stamp/do-pre-build-arch"     [dir=back color="Red"]
+// "CUSTOM-6"                             [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-6"                          -> "debian/stamp/pre-build-common"      [dir=back]
+ "debian/stamp/pre-build-arch"         -> "debian/stamp/do-pre-build-arch"     [dir=back color="Red"]
+// "CUSTOM-7"                             [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-7"                          -> "debian/stamp/pre-build-arch"        [dir=back]
+ "debian/stamp/pre-build-common"       -> "debian/stamp/do-pre-build-indep"    [dir=back color="Red"]
+ "debian/stamp/do-configure-indep"     -> "debian/stamp/do-pre-build-indep"    [dir=back]
+// "debian/stamp/do-configure-indep"   -> "debian/stamp/pre-build-indep"       [dir=back]
+ "debian/stamp/pre-build-indep"        -> "debian/stamp/do-pre-build-indep"    [dir=back color="Red"]
+// "CUSTOM-8"                           [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-8"                          -> "debian/stamp/pre-build-indep"         [dir=back]
+// "debian/stamp/do-pre-build-arch"    -> "debian/stamp/BUILD/foo-arch"      [dir=back]
+// "debian/stamp/do-pre-build-indep"   -> "debian/stamp/BUILD/bar-indep"     [dir=back]
+// "debian/stamp/do-pre-build-arch"    -> "debian/stamp/dep-build-arch"      [dir=back]
+ "debian/stamp/BUILD/foo-arch"         -> "debian/stamp/dep-build-arch"      [dir=back]
+// "debian/stamp/do-pre-build-indep"   -> "debian/stamp/dep-build-indep"     [dir=back]
+ "debian/stamp/BUILD/bar-indep"        -> "debian/stamp/dep-build-indep"     [dir=back]
+ "debian/stamp/do-pre-build-arch"      -> "debian/stamp/do-build-arch"       [dir=back]
+ "debian/stamp/dep-build-arch"         -> "debian/stamp/do-build-arch"       [dir=back color="Red"]
+// "CUSTOM-9"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-9"                          -> "debian/stamp/BUILD/foo-arch"      [dir=back]
+ "debian/stamp/do-pre-build-indep"     -> "debian/stamp/do-build-indep"      [dir=back]
+ "debian/stamp/dep-build-indep"        -> "debian/stamp/do-build-indep"      [dir=back color="Red"]
+// "CUSTOM-10"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-10"                         -> "debian/stamp/BUILD/bar-indep"     [dir=back]
+ "debian/stamp/do-build-arch"          -> "build-arch"                       [dir=back]
+ "debian/stamp/do-build-indep"         -> "build-indep"                      [dir=back]
+ "debian/stamp/do-build-arch"          -> "build"                            [dir=back]
+ "debian/stamp/do-build-indep"         -> "build"                            [dir=back]
+// "debian/stamp/do-build-arch"        -> "debian/stamp/post-build-arch"     [dir=back]
+ "debian/stamp/do-build-arch"          -> "debian/stamp/do-post-build-arch"  [dir=back]
+ "debian/stamp/do-build-indep"         -> "debian/stamp/do-post-build-indep" [dir=back]
+ "debian/stamp/post-build-arch"        -> "debian/stamp/do-post-build-arch"  [dir=back color="Red"]
+// "CUSTOM-11"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-11"                         -> "debian/stamp/post-build-arch"     [dir=back]
+ "debian/stamp/post-build-indep"       -> "debian/stamp/do-post-build-indep" [dir=back color="Red"]
+// "CUSTOM-12"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-12"                         -> "debian/stamp/post-build-indep"    [dir=back]
+// "debian/stamp/do-post-build-arch"   -> "debian/stamp/pre-inst-arch"       [dir=back]
+ "debian/stamp/pre-inst-common"        -> "debian/stamp/do-pre-inst-arch"    [dir=back color="Red"]
+// "CUSTOM-13"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-13"                         -> "debian/stamp/pre-inst-common"     [dir=back]
+ "debian/stamp/do-post-build-arch"     -> "debian/stamp/do-pre-inst-arch"    [dir=back]
+ "debian/stamp/pre-inst-arch"          -> "debian/stamp/do-pre-inst-arch"    [dir=back color="Red"]
+// "CUSTOM-14"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-14"                         -> "debian/stamp/pre-inst-arch"       [dir=back]
+// "debian/stamp/do-post-build-indep"  -> "debian/stamp/pre-inst-indep"      [dir=back]
+ "debian/stamp/pre-inst-common"        -> "debian/stamp/do-pre-inst-indep"   [dir=back color="Red"]
+ "debian/stamp/do-post-build-indep"    -> "debian/stamp/do-pre-inst-indep"   [dir=back]
+ "debian/stamp/pre-inst-indep"         -> "debian/stamp/do-pre-inst-indep"   [dir=back color="Red"]
+// "CUSTOM-15"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-15"                         -> "debian/stamp/pre-inst-indep"      [dir=back]
+// "debian/stamp/do-pre-inst-arch"     -> "debian/stamp/INST/foo-arch"       [dir=back]
+// "debian/stamp/do-pre-inst-indep"    -> "debian/stamp/INST/bar-indep"      [dir=back]
+// "debian/stamp/do-pre-inst-arch"     -> "debian/stamp/dep-install-arch"    [dir=back]
+ "debian/stamp/INST/foo-arch"          -> "debian/stamp/dep-install-arch"    [dir=back]
+// "debian/stamp/do-pre-inst-indep"    -> "debian/stamp/dep-install-indep"   [dir=back]
+ "debian/stamp/INST/bar-indep"         -> "debian/stamp/dep-install-indep"   [dir=back]
+ "debian/stamp/do-pre-inst-arch"       -> "debian/stamp/do-install-arch"     [dir=back]
+ "debian/stamp/dep-install-arch"       -> "debian/stamp/do-install-arch"     [dir=back color="Red"]
+// "CUSTOM-16"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-16"                         -> "debian/stamp/INST/foo-arch"       [dir=back]
+ "debian/stamp/do-pre-inst-indep"      -> "debian/stamp/do-install-indep"    [dir=back]
+ "debian/stamp/dep-install-indep"      -> "debian/stamp/do-install-indep"    [dir=back color="Red"]
+// "CUSTOM-17"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-17"                         -> "debian/stamp/INST/bar-indep"      [dir=back]
+ "debian/stamp/do-install-arch"        -> "install-arch"                     [dir=back]
+ "debian/stamp/do-install-indep"       -> "install-indep"                    [dir=back]
+ "debian/stamp/do-install-arch"        -> "install"                          [dir=back]
+ "debian/stamp/do-install-indep"       -> "install"                          [dir=back]
+// "debian/stamp/do-install-arch"      -> "debian/stamp/pre-bin-arch"        [dir=back]
+ "debian/stamp/do-install-arch"        -> "debian/stamp/do-pre-bin-arch"     [dir=back]
+ "debian/stamp/pre-bin-common"         -> "debian/stamp/do-pre-bin-arch"     [dir=back color="Red"]
+// "CUSTOM-18"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-18"                         -> "debian/stamp/pre-bin-common"      [dir=back]
+ "debian/stamp/pre-bin-arch"           -> "debian/stamp/do-pre-bin-arch"     [dir=back color="Red"]
+// "CUSTOM-19"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-19"                         -> "debian/stamp/pre-bin-arch"        [dir=back]
+// "debian/stamp/do-install-indep"     -> "debian/stamp/pre-bin-indep"       [dir=back]
+ "debian/stamp/pre-bin-common"         -> "debian/stamp/do-pre-bin-indep"    [dir=back color="Red"]
+ "debian/stamp/do-install-indep"       -> "debian/stamp/do-pre-bin-indep"    [dir=back]
+ "debian/stamp/pre-bin-indep"          -> "debian/stamp/do-pre-bin-indep"    [dir=back color="Red"]
+// "CUSTOM-20"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-20"                         -> "debian/stamp/pre-bin-indep"       [dir=back]
+// "debian/stamp/do-pre-bin-arch"      -> "debian/stamp/BIN/foo-arch"        [dir=back]
+// "debian/stamp/do-pre-bin-indep"     -> "debian/stamp/BIN/bar-indep"       [dir=back]
+// "debian/stamp/pre-bin-arch"         -> "debian/stamp/dep-binary-arch"     [dir=back]
+ "debian/stamp/BIN/foo-arch"           -> "debian/stamp/dep-binary-arch"     [dir=back]
+// "debian/stamp/do-pre-bin-indep"     -> "debian/stamp/dep-binary-indep"    [dir=back]
+ "debian/stamp/BIN/bar-indep"          -> "debian/stamp/dep-binary-indep"    [dir=back]
+ "debian/stamp/do-pre-bin-arch"        -> "debian/stamp/do-binary-arch"      [dir=back]
+ "debian/stamp/dep-binary-arch"        -> "debian/stamp/do-binary-arch"      [dir=back color="Red"]
+// "CUSTOM-21"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-21"                         -> "debian/stamp/BIN/foo-arch"        [dir=back]
+ "debian/stamp/do-pre-bin-indep"       -> "debian/stamp/do-binary-indep"     [dir=back]
+ "debian/stamp/dep-binary-indep"       -> "debian/stamp/do-binary-indep"     [dir=back color="Red"]
+// "CUSTOM-22"                            [ style="filled",    color="#FFE4B5", fontcolor="NavyBlue", fontsize=10, shape="diamond"]
+// "CUSTOM-22"                         -> "debian/stamp/BIN/bar-indep"       [dir=back]
+ "debian/stamp/do-binary-arch"         -> "binary-arch"                      [dir=back]
+ "debian/stamp/do-binary-indep"        -> "binary-indep"                     [dir=back]
+ "debian/stamp/do-binary-arch"         -> "binary"                           [dir=back]
+ "debian/stamp/do-binary-indep"        -> "binary"                           [dir=back]
+
+
+ "debian/stamp/dummy-config-common" -> "debian/stamp/pre-config-common"  [style="invis"]
+ "debian/stamp/do-pre-config-common"   -> "debian/stamp/pre-config-arch"  [style="invis"]
+ "debian/stamp/do-pre-config-common"   -> "debian/stamp/pre-config-indep"  [style="invis"]
+ "debian/stamp/do-pre-config-arch" -> "debian/stamp/CONFIG/foo-arch"  [style="invis"]
+ "debian/stamp/do-pre-config-indep" -> "debian/stamp/CONFIG/bar-indep"  [style="invis"]
+
+ "debian/stamp/dep-configure-arch"  -> "configure" [style="invis"]
+ "debian/stamp/dep-configure-indep"  -> "configure" [style="invis"]
+ "debian/stamp/dep-configure-arch"  -> "configure-arch" [style="invis"]
+ "debian/stamp/dep-configure-indep"  -> "configure-arch" [style="invis"]
+ "debian/stamp/dep-configure-arch"  -> "configure-indep" [style="invis"]
+ "debian/stamp/dep-configure-indep"  -> "configure-indep" [style="invis"]
+ "configure-arch"  -> "configure" [style="invis"]
+ "configure-indep"  -> "configure" [style="invis"]
+ "configure" ->  "debian/stamp/pre-build-common"  [style="invis"]
+
+
+ "debian/stamp/pre-build-common"   -> "debian/stamp/pre-build-indep"         [style="invis"]
+ "debian/stamp/pre-build-common"    -> "debian/stamp/pre-build-arch"         [style="invis"]
+
+ "debian/stamp/do-pre-build-arch"    -> "debian/stamp/BUILD/foo-arch"         [style="invis"]
+ "debian/stamp/do-pre-build-indep"    -> "debian/stamp/BUILD/bar-indep"         [style="invis"]
+ "debian/stamp/do-build-arch"    -> "debian/stamp/post-build-arch"         [style="invis"]
+ "debian/stamp/do-build-indep"    -> "debian/stamp/post-build-indep"         [style="invis"]
+ "debian/stamp/do-post-build-arch"    -> "build-arch"         [style="invis"]
+ "debian/stamp/do-post-build-arch"    -> "build"         [style="invis"]
+ "debian/stamp/do-post-build-indep"    -> "build-indep"         [style="invis"]
+ "debian/stamp/do-post-build-indep"    -> "build"         [style="invis"]
+ "build-arch"                               -> "build"  [style="invis"]
+ "build-indep"                               -> "build"  [style="invis"]
+
+ "build"                               -> "debian/stamp/pre-inst-common"  [style="invis"]
+
+ "debian/stamp/pre-inst-common"   -> "debian/stamp/pre-inst-indep"         [style="invis"]
+ "debian/stamp/pre-inst-common"    -> "debian/stamp/pre-inst-arch"         [style="invis"]
+ "debian/stamp/do-pre-inst-arch"    -> "debian/stamp/INST/foo-arch"         [style="invis"]
+ "debian/stamp/do-pre-inst-indep"    -> "debian/stamp/INST/bar-indep"         [style="invis"]
+
+ "install-arch"                               -> "install"  [style="invis"]
+ "install-indep"                               -> "install"  [style="invis"]
+
+ "debian/stamp/pre-bin-common"         -> "debian/stamp/pre-bin-indep"         [style="invis"]
+ "debian/stamp/pre-bin-common"         -> "debian/stamp/pre-bin-arch"         [style="invis"]
+
+  "install"                               -> "debian/stamp/pre-bin-common"  [style="invis"]
+ "debian/stamp/do-pre-bin-arch"    -> "debian/stamp/BIN/foo-arch"         [style="invis"]
+ "debian/stamp/do-pre-bin-indep"    -> "debian/stamp/BIN/bar-indep"         [style="invis"]
+
+ "binary-arch"                               -> "binary"  [style="invis"]
+ "binary-indep"                               -> "binary"  [style="invis"]
+
+}
--- checkpolicy-2.0.22.orig/debian/common/archvars.mk
+++ checkpolicy-2.0.22/debian/common/archvars.mk
@@ -0,0 +1,118 @@
+############################ -*- Mode: Makefile -*- ###########################
+## archvars.mk --- 
+## Author           : Manoj Srivastava ( srivasta@golden-gryphon.com ) 
+## Created On       : Sat Nov 15 02:40:56 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Tue Nov 16 23:36:15 2004
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 5
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : calls dpkg-architecture and sets up various arch
+##                    related variables
+## 
+## arch-tag: e16dd848-0fd6-4c0e-ae66-bef20d1f7c63
+## 
+## 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 St, Fifth Floor, Boston, MA  02110-1301  USA
+##
+###############################################################################
+
+
+DPKG_ARCH := dpkg-architecture
+
+ifeq ($(strip $(KPKG_ARCH)),um)
+  MAKING_VIRTUAL_IMAGE:=YES
+endif
+ifeq ($(strip $(KPKG_ARCH)),xen)
+  MAKING_VIRTUAL_IMAGE:=YES
+endif
+
+ifneq ($(strip $(CONFIG_UM)),)
+  MAKING_VIRTUAL_IMAGE:=YES
+  KPKG_ARCH=um
+endif
+
+ifneq ($(strip $(CONFIG_XEN)),)
+  MAKING_VIRTUAL_IMAGE:=YES
+  ifneq ($(strip $(CONFIG_X86_XEN)$(CONFIG_X86_64_XEN)),)
+    KPKG_SUBARCH=xen
+  else
+    KPKG_ARCH=xen
+    ifeq ($(strip $(CONFIG_XEN_PRIVILEGED_GUEST)),)
+      KPKG_SUBARCH=xenu
+    else
+      KPKG_SUBARCH=xen0
+    endif
+  endif
+endif
+
+ifdef KPKG_ARCH
+  ifeq ($(strip $(MAKING_VIRTUAL_IMAGE)),)
+    ifneq ($(CROSS_COMPILE),-)
+      ha:=-a$(KPKG_ARCH)
+    endif
+  endif
+endif
+
+# set the dpkg-architecture vars
+export DEB_BUILD_ARCH      := $(shell $(DPKG_ARCH)       -qDEB_BUILD_ARCH)
+export DEB_BUILD_GNU_CPU   := $(shell $(DPKG_ARCH)       -qDEB_BUILD_GNU_CPU)
+export DEB_BUILD_GNU_SYSTEM:= $(shell $(DPKG_ARCH)       -qDEB_BUILD_GNU_SYSTEM)
+export DEB_BUILD_GNU_TYPE  := $(shell $(DPKG_ARCH)       -qDEB_BUILD_GNU_TYPE)
+export DEB_HOST_ARCH       := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH)
+export DEB_HOST_ARCH_OS    := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_OS      \
+                                2>/dev/null|| true)
+export DEB_HOST_ARCH_CPU   := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_ARCH_CPU     \
+                                2>/dev/null|| true)
+export DEB_HOST_GNU_CPU    := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_CPU)
+export DEB_HOST_GNU_SYSTEM := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_SYSTEM)
+export DEB_HOST_GNU_TYPE   := $(shell $(DPKG_ARCH) $(ha) -qDEB_HOST_GNU_TYPE)
+
+# arrgh. future proofing
+ifeq ($(DEB_HOST_GNU_SYSTEM), linux)
+  DEB_HOST_GNU_SYSTEM=linux-gnu
+endif
+ifeq ($(DEB_HOST_ARCH_OS),)
+  ifeq ($(DEB_HOST_GNU_SYSTEM), linux-gnu)
+    DEB_HOST_ARCH_OS := linux
+  endif
+  ifeq ($(DEB_HOST_GNU_SYSTEM), kfreebsd-gnu)
+    DEB_HOST_ARCH_OS := kfreebsd
+  endif
+endif
+
+REASON = @if [ -f $@ ]; then \
+ echo "====== making $(notdir $@) because of $(notdir $?) ======";\
+ else \
+   echo "====== making target $@ [new prereqs: $(notdir $?)]======"; \
+ fi
+
+OLDREASON = @if [ -f $@ ]; then \
+ echo "====== making $(notdir $@) because of $(notdir $?) ======";\
+ else \
+   echo "====== making (creating) $(notdir $@) ======"; \
+ fi
+
+LIBREASON = @echo "====== making $(notdir $@)($(notdir $%))because of $(notdir $?)======"
+
+
+# macro outputing $(1) if DEBUG_DEBIAN_RULES is set, and resolving it
+# in all cases usage $(call doit,some shell command)
+doit = $(if $(DEBUG_DEBIAN_RULES),$(warning DEBUG: $(1)))$(shell $(1))
+
+#Local variables:
+#mode: makefile
+#End:
--- checkpolicy-2.0.22.orig/debian/common/perlvars.mk
+++ checkpolicy-2.0.22/debian/common/perlvars.mk
@@ -0,0 +1,27 @@
+############################ -*- Mode: Makefile -*- ###########################
+## perlvars.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 02:55:47 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Sat Dec 13 13:50:58 2003
+## Last Machine Used: glaurung.green-gryphon.com
+## Update Count     : 3
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : 
+## 
+## arch-tag: a97a01ba-d08d-404d-aa81-572717c03e6c
+## 
+###############################################################################
+
+# Perl variables
+PERL = /usr/bin/perl
+
+INSTALLPRIVLIB  = $(TMPTOP)/$(shell \
+                 perl -e 'use Config; print "$$Config{'installprivlib'}\n";')
+INSTALLARCHLIB  = $(TMPTOP)/$(shell \
+                 perl -e 'use Config; print "$$Config{'installarchlib'}\n";')
+INSTALLVENDORLIB =$(TMPTOP)/$(shell \
+                 perl -e 'use Config; print "$$Config{'vendorlibexp'}\n";')
+CONFIG           = INSTALLDIRS=vendor 
--- checkpolicy-2.0.22.orig/debian/common/pkgvars.mk
+++ checkpolicy-2.0.22/debian/common/pkgvars.mk
@@ -0,0 +1,168 @@
+############################ -*- Mode: Makefile -*- ###########################
+## pkgvars.mk --- 
+## Author           : Manoj Srivastava ( srivasta@glaurung.green-gryphon.com ) 
+## Created On       : Sat Nov 15 02:56:30 2003
+## Created On Node  : glaurung.green-gryphon.com
+## Last Modified By : Manoj Srivastava
+## Last Modified On : Thu Jun 15 12:05:46 2006
+## Last Machine Used: glaurung.internal.golden-gryphon.com
+## Update Count     : 11
+## Status           : Unknown, Use with caution!
+## HISTORY          : 
+## Description      : This is what allows us toseparate out the top level
+##                    targets, by determining which packages needto be built.
+## 
+## arch-tag: 75fcc720-7389-4eaa-a7ac-c556d3eac331
+## 
+## 
+## 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 St, Fifth Floor, Boston, MA  02110-1301  USA
+##
+###############################################################################
+
+# The maintainer information.
+maintainer := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Maintainer: | \
+                sed 's/^Maintainer: *//')
+email := srivasta@debian.org
+
+# Priority of this version (or urgency, as dchanges would call it)
+urgency := $(shell LC_ALL=C dpkg-parsechangelog | grep ^Urgency: | \
+             sed 's/^Urgency: *//')
+
+# Common useful variables
+DEB_SOURCE_PACKAGE := $(strip $(shell egrep '^Source: ' debian/control      |       \
+                                      cut -f 2 -d ':'))
+DEB_VERSION        := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |       \
+                                      egrep '^Version:' | cut -f 2 -d ' '))
+DEB_ISNATIVE       := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |       \
+                       perl -ne 'print if (m/^Version:/g && ! m/^Version:.*\-/);'))
+DEB_DISTRIBUTION  := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |        \
+                                      egrep '^Distribution:' | cut -f 2 -d ' '))
+
+DEB_PACKAGES := $(shell perl -e '                                                    \
+                  $$/="";                                                            \
+                  while(<>){                                                         \
+                     $$p=$$1 if m/^Package:\s*(\S+)/;                                \
+                     die "duplicate package $$p" if $$seen{$$p};                     \
+                     $$seen{$$p}++; print "$$p " if $$p;                             \
+                  }' debian/control )
+
+DEB_INDEP_PACKAGES := $(shell perl -e '                                              \
+                         $$/="";                                                     \
+                         while(<>){                                                  \
+                            $$p=$$1 if m/^Package:\s*(\S+)/;                         \
+                            die "duplicate package $$p" if $$seen{$$p};              \
+                            $$seen{$$p}++;                                           \
+                            $$a=$$1 if m/^Architecture:\s*(\S+)/m;                   \
+                            next unless ($$a eq "all");                              \
+                            print "$$p " if $$p;                                     \
+                         }' debian/control )
+
+DEB_ARCH_PACKAGES := $(shell perl -e '                                               \
+                         $$/="";                                                     \
+                         while(<>){                                                  \
+                            $$p=$$1 if m/^Package:\s*(\S+)/;                         \
+                            die "duplicate package $$p" if $$seen{$$p};              \
+                            $$seen{$$p}++;                                           \
+                            $$c="";                                                  \
+	                    if (/^Architecture:\s*(.*?)\s*$$/sm) {                   \
+                              @a = split /\s+/, $$1 };                               \
+	                      for my $$b (@a) {                                      \
+                                next unless ($$b eq "$(DEB_HOST_ARCH)" ||            \
+                                             $$b eq "any");                          \
+                                $$c="$$p";                                           \
+                            }                                                        \
+                            print "$$c " if $$c;                                     \
+                         }' debian/control )
+
+# This package is what we get after removing the psuedo dirs we use in rules
+package   = $(notdir $@)
+DEBIANDIR = $(dir $(firstword $(MAKEFILE_LIST)))
+
+ifeq  (,$(filter parallel=%,$(FAILS_PARALLEL_BUILD)))
+  ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+    NUMJOBS = $(patsubst parallel=%,-j%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+  endif
+endif
+
+# Define canned sequences used to strip executables and libraries,
+# keeping in mind the directives in DEB_BUILD_OPTIONS
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+define strip-exec
+find $(TMPTOP) -type f | while read i; do                                    \
+   if file -b $$i | egrep -q "^ELF.*executable"; then                        \
+     strip --strip-all --remove-section=.comment --remove-section=.note $$i; \
+   fi;                                                                       \
+ done
+endef
+
+define strip-lib
+find $(TMPTOP) -type f | while read i; do                                         \
+   if file -b $$i | egrep -q "^ELF.*shared object"; then                          \
+     strip --strip-unneeded --remove-section=.comment --remove-section=.note $$i; \
+   fi;                                                                            \
+done
+endef
+else
+define strip-exec
+@echo Not strippping executables as asked
+endef
+
+define strip-lib
+@echo Not strippping libraries as asked
+endef
+
+endif
+
+# this canned command specifies how to run dpkg-shlibs to add things
+# to debian/substvars by scanning executables and libraries; this
+# should suffice for the common case. Some rules files might need some
+# changes to the command sequence, though
+define get-shlib-deps
+k=`find $(TMPTOP) -type f | ( while read i; do          \
+    if file -b $$i |                                    \
+      egrep -q "^ELF.*(executable.*dynamically linked|shared object)"; then   \
+        j="$$j $$i";                                     \
+    fi;                                                  \
+done; echo $$j; )`; if [ -n "$$k" ]; then dpkg-shlibdeps $$k; fi
+endef
+
+# This canned sequence checks to see if all the libraries we link to
+# actually provide some symbols needed by some executable ot library
+# in the package itself.
+ifeq (,$(strip $(filter nocheck,$(DEB_BUILD_OPTIONS))))
+  ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+define check-libraries
+echo Checking libs
+xtra=$$($(SHELL) debian/common/checklibs); \
+if [ -n "$$extra" ]; then                  \
+  echo "Extra libraries: $$extra";         \
+  exit 1;                                  \
+fi
+endef
+  else
+define check-libraries
+echo Not checking libs
+endef
+  endif
+else
+define check-libraries
+echo Not checking libs
+endef
+endif
+
+
+#Local variables:
+#mode: makefile
+#End:
--- checkpolicy-2.0.22.orig/debian/common/get_shlib_ver
+++ checkpolicy-2.0.22/debian/common/get_shlib_ver
@@ -0,0 +1,40 @@
+#! /bin/sh 
+#                               -*- Mode: Sh -*- 
+# get_shlib_ver --- 
+# Author           : Manoj Srivastava ( srivasta@golden-gryphon.com ) 
+# Created On       : Tue Sep  1 15:27:07 2009
+# Created On Node  : anzu.internal.golden-gryphon.com
+# Last Modified By : Manoj Srivastava
+# Status           : Unknown, Use with caution!
+# HISTORY          : 
+# Description      : 
+# If there is a symbols file preent, get the most recent version a
+# symbol was added in.
+# 
+
+
+# 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+# 
+
+# Make sure we abort on error
+set -e
+progname="$(basename \"$0\")"
+
+test ! -d debian || \
+  find debian -wholename 'debian/*\.symbols' | while read lib; do
+    echo -n "Shlib info for" ${lib%%.symbols} ": ";
+    sort -n -k 2,2b $lib  | grep '^ ' | tail -n 1 | awk '{print $2;}';
+done
+
