--- cipux-rbac-3.4.0~svn2868.orig/debian/control.in
+++ cipux-rbac-3.4.0~svn2868/debian/control.in
@@ -0,0 +1,48 @@
+Source: cipux-rbac
+Section: perl
+Priority: optional
+Maintainer: CipUX team <cipux-devel@lists.alioth.debian.org>
+Uploaders: Jonas Smedegaard <dr@jones.dk>, Christian Kuelker <christian.kuelker@cipworx.org>, Xavier Oswald <x.oswald@free.fr>
+XS-Comment: Build-dependencies are semi-auto-resolved from hints in debian/rules
+Build-Depends: @cdbs@
+Standards-Version: 3.7.3
+Vcs-Git: git://git.debian.org/git/collab-maint/cipux-rbac.git
+Vcs-Browser: http://git.debian.org/?p=collab-maint/cipux-rbac.git;a=summary
+Homepage: http://cipux.alioth.debian.org/
+
+Package: libcipux-rbac-perl
+Architecture: all
+Depends: ${perl:Depends}, ${misc:Depends}, ${cdbs:Depends}
+Recommends: libcipux-task-perl, libreadonly-xs-perl
+Suggests: cipux-rbac-tools
+Description: role-based access control functions for CipUX
+ CipUX is a modular framework for information abstraction and
+ administration, primarily aimed at administration of users, groups and
+ organisational resources stored in a central LDAP database.
+ .
+ CAT is CipUX Administration Tools.  Two CATs are provided officially
+ with CipUX:
+  - cipux-cat: generic web-based CAT
+  - cipux-cat-moodle: CipUX plugin for Moodle
+ These can be extended or replaced with custom tools.
+ .
+ This package contains CipUX::RBAC, providing role-based access control
+ functions for CipUX XML-RPC server and CipUX CAT.
+
+Package: cipux-rbac-tools
+Architecture: all
+Depends: ${perl:Depends}, ${misc:Depends}, ${cdbs:Depends}
+Recommends: libreadonly-xs-perl
+Description: role-based access control tools for CipUX
+ CipUX is a modular framework for information abstraction and
+ administration, primarily aimed at administration of users, groups and
+ organisational resources stored in a central LDAP database.
+ .
+ CAT is CipUX Administration Tools.  Two CATs are provided officially
+ with CipUX:
+  - cipux-cat: generic web-based CAT
+  - cipux-cat-moodle: CipUX plugin for Moodle
+ These can be extended or replaced with custom tools.
+ .
+ This package contains commandline tools to interact with the 
+ role-based access control of CipUX.
--- cipux-rbac-3.4.0~svn2868.orig/debian/rules
+++ cipux-rbac-3.4.0~svn2868/debian/rules
@@ -0,0 +1,37 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2008 Jonas Smedegaard <dr@jones.dk>
+
+# See debian/README.cdbs-tweaks for info on local overrides
+ifneq (,$(DEB_MAINTAINER_MODE))
+  # Enable stuff not policy compliant (eg. unsuitable for build daemons)
+  DEB_COPYRIGHT_CHECK_STRICT = yes
+  DEB_AUTO_UPDATE_DEBIAN_CONTROL = yes
+endif
+include debian/cdbs/1/rules/copyright-check.mk
+include debian/cdbs/1/rules/buildinfo.mk
+include debian/cdbs/1/class/perl-build.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+
+pkg_lib = libcipux-rbac-perl
+
+# Install through debhelper.mk (not directly with perl-build.mk)
+DEB_PERL_DESTDIR = $(cdbs_curpkgdestdir)
+DEB_DH_INSTALL_SOURCEDIR = $(DEB_PERL_DESTDIR)
+
+# Needed both by upstream build (or test) process and at runtime
+# TODO: Drop libversion-perl after Lenny+1
+CDBS_DEPENDS_$(pkg_lib) := libclass-std-perl (>= 0.0.9), libcipux-perl, libgraph-perl, libgraph-readwrite-perl, libfrontier-rpc-perl, libreadonly-perl, libversion-perl
+CDBS_DEPENDS_cipux-rbac-tools := liblist-moreutils-perl
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), $(CDBS_DEPENDS_$(pkg_lib)), $(CDBS_DEPENDS_cipux-rbac-tools)
+
+# Needed by upstream build process
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), libmodule-build-cipux-perl
+
+# Needed by upstream tests
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), libtest-simple-perl, libtest-perl-critic-perl, libtest-pod-perl (>= 1.14), libtest-pod-coverage-perl (>= 1.04)
+
+CDBS_DEPENDS_cipux-rbac-tools := $(pkg_lib), libcipux-perl, libreadonly-perl
+
+# Resolve, cleanup and apply CDBS-declared dependencies
+include debian/cdbs/1/rules/package-relations.mk
--- cipux-rbac-3.4.0~svn2868.orig/debian/copyright
+++ cipux-rbac-3.4.0~svn2868/debian/copyright
@@ -0,0 +1,38 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=179
+Upstream-Name: CipUX::RBAC
+Upstream-Maintainer: Christian Kuelker <christian.kuelker@cipworx.org>
+Upstream-Source: svn://svn.debian.org/svn/cipux/trunk/cipux-core/rbac/src
+
+Files: *
+Copyright: © 2008, Christian Kuelker
+License: GPL-2+
+
+Files: debian/*
+Copyright: © 2008, Jonas Smedegaard <dr@jones.dk>
+License: GPL-2+
+
+Files: debian/cdbs/*
+Copyright: 2003,2008, Jonas Smedegaard <dr@jones.dk>
+	2003, Colin Walters <walters@debian.org>
+License: GPL-2+
+
+Files: debian/cdbs/1/rules/buildinfo.mk
+Copyright: 2004-2007, Jonas Smedegaard <dr@jones.dk>
+License: GPL-2+
+
+Files: debian/cdbs/1/rules/upstream-tarball.mk
+Copyright: 2007-2008, Jonas Smedegaard <dr@jones.dk>
+License: GPL-2+
+
+Files: debian/cdbs/1/rules/package-relations.mk
+Copyright: 2008, Jonas Smedegaard <dr@jones.dk>
+License: GPL-2+
+
+Files: debian/cdbs/1/rules/copyright-check.mk
+Copyright: 2005-2008, Jonas Smedegaard <dr@jones.dk>
+License: GPL-2+
+
+License-Terms: GPL-2+
+ On Debian GNU/Linux systems, the complete text of the GNU GPL (General
+ Public License) version 2 can be found at
+ /usr/share/common-licenses/GPL-2.
--- cipux-rbac-3.4.0~svn2868.orig/debian/TODO
+++ cipux-rbac-3.4.0~svn2868/debian/TODO
@@ -0,0 +1 @@
+  * Drop dependencies on libversion-perl after Lenny+1 is released.
--- cipux-rbac-3.4.0~svn2868.orig/debian/copyright_hints
+++ cipux-rbac-3.4.0~svn2868/debian/copyright_hints
@@ -0,0 +1,70 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=XXX
+Upstream-Name: Untrusted draft - double-check copyrights yourself!
+
+Files: Build.PL
+	Changes
+	MANIFEST
+	MANIFEST.SKIP
+	META.yml
+	Makefile.PL
+	README
+	debian/README.cdbs-tweaks
+	debian/TODO
+	debian/cipux-rbac-tools.install
+	debian/compat
+	debian/control
+	debian/control.in
+	debian/libcipux-rbac-perl.install
+	lib/cipux-rbac.conf.pod
+	t/00.load.t
+	t/cipux-cat-rbac.xml
+	t/perlcritic.t
+	t/perlcritic_cpan.t
+	t/perlcriticrc
+	t/pod-coverage.t
+	t/pod.t
+	t/sample_graph.dot
+	t/sample_graph.xml
+	t_future/50.cat_modules_by_user.t
+	t_future/51.users_by_cat_module.t
+Copyright: *No copyright*
+License: UNKNOWN
+
+Files: debian/cdbs/1/class/perl-build-vars.mk
+	debian/cdbs/1/class/perl-build.mk
+	debian/cdbs/1/class/perl-vars.mk
+Copyright: 2003,2008, Jonas Smedegaard <dr@jones.dk>
+	2003, Colin Walters <walters@debian.org>
+License: GPL
+
+Files: lib/CipUX/RBAC.pm
+	lib/CipUX/RBAC/Client.pm
+	sbin/cipux_rbac_client
+Copyright: 2008, by Christian Kuelker. All rights reserved! ||
+License: UNKNOWN
+
+Files: etc/cipux/cipux-rbac.conf
+	t/cipux-rbac.conf
+Copyright: 2008, by Christian Kuelker ||
+License: UNKNOWN
+
+Files: debian/cdbs/1/rules/buildinfo.mk
+Copyright: 2004-2007, Jonas Smedegaard <dr@jones.dk>
+License: GPL
+
+Files: debian/cdbs/1/rules/upstream-tarball.mk
+Copyright: 2007-2008, Jonas Smedegaard <dr@jones.dk>
+License: GPL
+
+Files: debian/cdbs/1/rules/package-relations.mk
+Copyright: 2008, Jonas Smedegaard <dr@jones.dk>
+License: GPL
+
+Files: debian/cdbs/1/rules/copyright-check.mk
+Copyright: \s*(\S.*?)\s*\
+License: GPL
+
+Files: debian/rules
+Copyright: 2008, Jonas Smedegaard <dr@jones.dk>
+License: UNKNOWN
+
--- cipux-rbac-3.4.0~svn2868.orig/debian/cipux-rbac-tools.install
+++ cipux-rbac-3.4.0~svn2868/debian/cipux-rbac-tools.install
@@ -0,0 +1,2 @@
+usr/sbin/
+usr/share/man/man1/
--- cipux-rbac-3.4.0~svn2868.orig/debian/libcipux-rbac-perl.install
+++ cipux-rbac-3.4.0~svn2868/debian/libcipux-rbac-perl.install
@@ -0,0 +1,3 @@
+etc/
+usr/share/perl5/
+usr/share/man/man3/
--- cipux-rbac-3.4.0~svn2868.orig/debian/compat
+++ cipux-rbac-3.4.0~svn2868/debian/compat
@@ -0,0 +1 @@
+6
--- cipux-rbac-3.4.0~svn2868.orig/debian/control
+++ cipux-rbac-3.4.0~svn2868/debian/control
@@ -0,0 +1,48 @@
+Source: cipux-rbac
+Section: perl
+Priority: optional
+Maintainer: CipUX team <cipux-devel@lists.alioth.debian.org>
+Uploaders: Jonas Smedegaard <dr@jones.dk>, Christian Kuelker <christian.kuelker@cipworx.org>, Xavier Oswald <x.oswald@free.fr>
+XS-Comment: Build-dependencies are semi-auto-resolved from hints in debian/rules
+Build-Depends: cdbs (>= 0.4.23-1.1), devscripts (>= 2.10.7), dh-buildinfo, perl (>= 5.6.0-16), perl-modules (>= 5.10.0) | libmodule-build-perl (>= 0.2808), debhelper (>= 5.0.44), libclass-std-perl (>= 0.0.9), libcipux-perl, libgraph-perl, libgraph-readwrite-perl, libfrontier-rpc-perl, libreadonly-perl, libversion-perl, liblist-moreutils-perl, libmodule-build-cipux-perl, libtest-simple-perl, libtest-perl-critic-perl, libtest-pod-perl (>= 1.14), libtest-pod-coverage-perl (>= 1.04)
+Standards-Version: 3.7.3
+Vcs-Git: git://git.debian.org/git/collab-maint/cipux-rbac.git
+Vcs-Browser: http://git.debian.org/?p=collab-maint/cipux-rbac.git;a=summary
+Homepage: http://cipux.alioth.debian.org/
+
+Package: libcipux-rbac-perl
+Architecture: all
+Depends: ${perl:Depends}, ${misc:Depends}, ${cdbs:Depends}
+Recommends: libcipux-task-perl, libreadonly-xs-perl
+Suggests: cipux-rbac-tools
+Description: role-based access control functions for CipUX
+ CipUX is a modular framework for information abstraction and
+ administration, primarily aimed at administration of users, groups and
+ organisational resources stored in a central LDAP database.
+ .
+ CAT is CipUX Administration Tools.  Two CATs are provided officially
+ with CipUX:
+  - cipux-cat: generic web-based CAT
+  - cipux-cat-moodle: CipUX plugin for Moodle
+ These can be extended or replaced with custom tools.
+ .
+ This package contains CipUX::RBAC, providing role-based access control
+ functions for CipUX XML-RPC server and CipUX CAT.
+
+Package: cipux-rbac-tools
+Architecture: all
+Depends: ${perl:Depends}, ${misc:Depends}, ${cdbs:Depends}
+Recommends: libreadonly-xs-perl
+Description: role-based access control tools for CipUX
+ CipUX is a modular framework for information abstraction and
+ administration, primarily aimed at administration of users, groups and
+ organisational resources stored in a central LDAP database.
+ .
+ CAT is CipUX Administration Tools.  Two CATs are provided officially
+ with CipUX:
+  - cipux-cat: generic web-based CAT
+  - cipux-cat-moodle: CipUX plugin for Moodle
+ These can be extended or replaced with custom tools.
+ .
+ This package contains commandline tools to interact with the 
+ role-based access control of CipUX.
--- cipux-rbac-3.4.0~svn2868.orig/debian/README.cdbs-tweaks
+++ cipux-rbac-3.4.0~svn2868/debian/README.cdbs-tweaks
@@ -0,0 +1,128 @@
+CDBS tweak
+==========
+
+CDBS is great. In some corner cases, however, some parts of CDBS
+sometimes needs a few tweaks to work optimally.
+
+This is a collection of such tweaks. The goal is for these tweaks to be
+absorbed into upstream CDBS. We just haven't found time yet to discuss
+them at the CDBS developers' mailinglist. And possible we do not all
+agree that the tweaks are so great - therefore this "staging area".
+
+If you found this file below debian/ subdir in a source package, most
+probably only a subset of the below mentioned tweaks are relevant and
+have been shipped with the package. The repository of all these tweaks
+is here: svn://svn.debian.org/build-common/people/js/overlay/
+
+Web access: http://svn.debian.org/wsvn/build-common/people/js/overlay/
+
+
+
+New buildinfo rule
+------------------
+
+See package description for "buildinfo" for more info.
+
+
+
+Improved support for multiple compilations
+------------------------------------------
+
+Create and clean builddir _after_ resolving per-package DEB_BUILDDIR.
+
+Honour per-package DEB_BUILDDIR in makefile and autotools classes.
+
+Support multiple build flavors in makefile and autotools classes.
+
+
+
+Various improvements to python-distutils class
+----------------------------------------------
+
+Use full path to Python interpreter (Python Policy section 1.3.2).
+
+Add CDBS_BUILD_DEPENDS to old policy method.
+
+Fix CDBS_BUILD_DEPENDS in new policy methods to only depend on debhelper
+when actually used.
+
+Fix DEB_PYTHON_SIMPLE_PACKAGES sometimes installed twice (and only one
+of them honouring DEB_PYTHON_COMPILE_VERSION).
+
+Unify install path using new DEB_PYTHON_DESTDIR.
+
+Quote install path.
+
+
+
+New python-autotools class
+--------------------------
+
+Handle autotools-based Python packaging.
+
+
+
+New python-sugar class
+----------------------
+
+Handle packaging of Sugar activities.
+
+
+
+New perl-build class
+--------------------
+
+Handle Perl modules using Module::Build.
+
+
+
+New copyright-check rule
+------------------------
+
+Refuse to build if the source is found to contain different copyright
+info than earlier builds.
+
+
+
+New kernelpatches rule
+----------------------
+
+Small wrapper around dh-kpatches, taking care of build-dependencies too.
+
+
+
+New package-relations rule
+--------------------------
+
+Improved build-dependency handling (merging multiple dependencies on
+same packages), and add dependency handling for binary packages (to ease
+maintaining identical build-dependencies and dependencies for eg. Perl
+modules meeding runtime stuff for buildtime tests).
+
+
+
+New routines for handling upstream tarball
+------------------------------------------
+
+Rules and variables to help downloading, validating and repackaging
+upstream tarball.
+
+Implements the rules print-version and get-orig-source commonly used
+for group-maintained packages with Debian-specific patches maintained in
+SVN or some other VCS, and automated fetching virgin upstream tarball
+(possibly massaged after download e.g. to strip non-DFSG material).
+
+
+
+Support for custom BTS info
+---------------------------
+
+Include BTS control info found in debian/*.bts files, or alternatively
+redirect bug reports to the email address defined in DEB_BTS_EMAIL.
+
+
+
+New dict class
+--------------
+
+Rules for packaging ispell, aspell, myspell and wordlist dictionaries.
--- cipux-rbac-3.4.0~svn2868.orig/debian/changelog
+++ cipux-rbac-3.4.0~svn2868/debian/changelog
@@ -0,0 +1,5 @@
+cipux-rbac (3.4.0~svn2868-1) experimental; urgency=low
+
+  * Initial release (related to - but only partly closes - bug#357694).
+
+ -- Jonas Smedegaard <dr@jones.dk>  Mon, 15 Dec 2008 16:36:12 +0100
--- cipux-rbac-3.4.0~svn2868.orig/debian/cdbs/1/rules/package-relations.mk
+++ cipux-rbac-3.4.0~svn2868/debian/cdbs/1/rules/package-relations.mk
@@ -0,0 +1,50 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2008 Jonas Smedegaard <dr@jones.dk>
+# Description: Resolve, cleanup and apply package relationships
+#
+# 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, 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.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_rules_package-relations
+_cdbs_rules_package-relations = 1
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+# Merge build-dependencies on same packages
+# TODO: rewrite (in perl, probably) to be more generic
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.43)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\|0.4.27\|0.4.39\)) *,* */, /g')
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.39)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\|0.4.27\)) *,* */, /g')
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bcdbs (>= 0.4.27)/ s/ *,* *\bcdbs (>= \(0.4.23-1.1\)) *,* */, /g')
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 5.0.44)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\|5\|5.0.37.2\)) *,* */, /g')
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 5.0.37.2)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\|5\)) *,* */, /g')
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 5)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\|4.2.21\|4.2.28\)) *,* */, /g')
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 4.2.28)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\|4.2.21\)) *,* */, /g')
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 4.2.21)/ s/ *,* *\bdebhelper (>= \(4.1.60\|4.2.0\)) *,* */, /g')
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e '/\bdebhelper (>= 4.2.0)/ s/ *,* *\bdebhelper (>= \(4.1.60\)) *,* */, /g')
+
+# Cleanup superfluous commas
+CDBS_BUILD_DEPENDS := $(shell echo '$(CDBS_BUILD_DEPENDS)' | sed -e 's/ *,/,/g' -e 's/^ *, *//' -e 's/ *, *$$//')
+
+# Apply CDBS-declared dependencies to binary packages
+$(patsubst %,binary-predeb/%,$(DEB_PACKAGES)) :: binary-predeb/%:
+	echo 'cdbs:Depends=$(CDBS_DEPENDS_ALL), $(or $(CDBS_DEPENDS_$(cdbs_curpkg)),$(CDBS_DEPENDS))' \
+	  | sed -e 's/ *,/,/g' -e 's/^ *, *//' -e 's/ *, *$$//' \
+	  >> debian/$(cdbs_curpkg).substvars
+
+endif
--- cipux-rbac-3.4.0~svn2868.orig/debian/cdbs/1/rules/upstream-tarball.mk
+++ cipux-rbac-3.4.0~svn2868/debian/cdbs/1/rules/upstream-tarball.mk
@@ -0,0 +1,137 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2007-2008 Jonas Smedegaard <dr@jones.dk>
+# Description: Convenience rules for dealing with upstream tarballs
+#
+# 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, 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.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_rules_upstream-tarball
+_cdbs_rules_upstream-tarball := 1
+
+include $(_cdbs_rules_path)/buildvars.mk$(_cdbs_makefile_suffix)
+
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), cdbs (>= 0.4.39)
+
+# Prefix for upstream location of all upstream tarballs (mandatory!)
+#DEB_UPSTREAM_URL = 
+
+DEB_UPSTREAM_PACKAGE = $(DEB_SOURCE_PACKAGE)
+DEB_UPSTREAM_TARBALL_VERSION = $(if $(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE)),$(DEB_UPSTREAM_VERSION:$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG)=),$(DEB_UPSTREAM_VERSION))
+DEB_UPSTREAM_TARBALL_EXTENSION = tar.gz
+# Checksum to ensure integrity of downloadeds using get-orig-source (optional)
+#DEB_UPSTREAM_TARBALL_MD5 = 
+
+DEB_UPSTREAM_WORKDIR = ../tarballs
+
+# Base filename (without extension) as used in upstream URL
+DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_PACKAGE)-$(DEB_UPSTREAM_TARBALL_VERSION)
+
+# Perl regexp to change locally used string into that in upstream URL and srcdir
+#DEB_UPSTREAM_TARBALL_BASENAME_MANGLE =
+
+# Base directory within tarball
+DEB_UPSTREAM_TARBALL_SRCDIR = $(cdbs_upstream_tarball_basename)
+
+# Space-delimited list of directories and files to strip (optional)
+#DEB_UPSTREAM_REPACKAGE_EXCLUDE = CVS .cvsignore doc/rfc*.txt doc/draft*.txt
+DEB_UPSTREAM_REPACKAGE_TAG = dfsg
+DEB_UPSTREAM_REPACKAGE_DELIMITER = ~
+
+cdbs_upstream_tarball_basename = $(if $(strip $(DEB_UPSTREAM_TARBALL_BASENAME_MANGLE)),$(shell echo '$(DEB_UPSTREAM_TARBALL_BASENAME)' | perl -pe '$(DEB_UPSTREAM_TARBALL_BASENAME_MANGLE)'),$(DEB_UPSTREAM_TARBALL_BASENAME))
+cdbs_upstream_tarball = $(cdbs_upstream_tarball_basename).$(DEB_UPSTREAM_TARBALL_EXTENSION)
+cdbs_upstream_received_tarball = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION).orig.$(if $(findstring $(DEB_UPSTREAM_TARBALL_EXTENSION),tgz),tar.gz,$(DEB_UPSTREAM_TARBALL_EXTENSION))
+cdbs_upstream_local_basename = $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_TARBALL_VERSION)$(if $(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE)),$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG))
+cdbs_upstream_local_srcdir = $(cdbs_upstream_tarball_basename)$(if $(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE)),$(DEB_UPSTREAM_REPACKAGE_DELIMITER)$(DEB_UPSTREAM_REPACKAGE_TAG))
+
+# # These variables are deprecated
+_cdbs_deprecated_vars += DEB_UPSTREAM_TARBALL DEB_UPSTREAM_LOCAL_TARBALL DEB_UPSTREAM_REPACKAGE_TARBALL DEB_UPSTREAM_TARBALL_VERSION_MANGLE
+_cdbs_deprecated_vars += DEB_UPSTREAM_REPACKAGE_EXCLUDES
+DEB_UPSTREAM_REPACKAGE_EXCLUDE += $(DEB_UPSTREAM_REPACKAGE_EXCLUDES)
+
+print-version:
+	@@echo "Debian version:          $(DEB_VERSION)"
+	@@echo "Upstream version:        $(DEB_UPSTREAM_TARBALL_VERSION)"
+
+get-orig-source:
+	@@dh_testdir
+	@@mkdir -p "$(DEB_UPSTREAM_WORKDIR)"
+
+	@if [ ! -s "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ] ; then \
+		if [ -f "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ] ; then \
+			rm "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ; \
+		fi ; \
+		echo "Downloading $(cdbs_upstream_received_tarball) from $(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball) ..." ; \
+		wget -nv -T10 -t3 -O "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" "$(DEB_UPSTREAM_URL)/$(cdbs_upstream_tarball)" ; \
+	else \
+		echo "Upstream source tarball have been already downloaded: $(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ; \
+	fi
+
+	@md5current=`md5sum "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" | sed -e 's/ .*//'`; \
+	if [ -n "$(DEB_UPSTREAM_TARBALL_MD5)" ] ; then \
+		if [ "$$md5current" != "$(DEB_UPSTREAM_TARBALL_MD5)" ] ; then \
+			echo "Expecting upstream tarball md5sum $(DEB_UPSTREAM_TARBALL_MD5), but $$md5current found" ; \
+			echo "Upstream tarball md5sum is NOT trusted! Possible upstream tarball forge!" ; \
+			echo "Purging downloaded file. Try new download." ; \
+			rm -f "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" ; \
+			false ; \
+		else \
+			echo "Upstream tarball is trusted!" ; \
+		fi; \
+	else \
+		echo "Upstream tarball NOT trusted (current md5sum is $$md5current)!" ; \
+	fi
+
+# TODO: Rewrite using make variables like cdbs_upstream_unpack_cmd and
+# DEB_UPSTREAM_SUPPORTED_COMPRESSIONS (recent dpkg supports bz2)
+# TODO: Add .orig suffix to top folder inside tarball when only
+# recompressing (when $uncompress set and ...REPACKAGE_EXCLUDE unset)
+	@untar="tar -x -C"; \
+	case "$(cdbs_upstream_received_tarball)" in \
+	    *.tar.gz)  unpack="gunzip -c";; \
+	    *.tar.bz2) unpack="bunzip2 -c";    uncompress="bunzip2";; \
+	    *.tar.Z)   unpack="uncompress -c"; uncompress="uncompress";; \
+	    *.zip)     unpack="unzip -q";      uncompress="false";       untar="-d"; nopipe="true";; \
+	    *.tar)     unpack="cat";           uncompress="true";; \
+	    *) echo "Unknown extension for upstream tarball $(cdbs_upstream_received_tarball)"; false;; \
+	esac && \
+	if [ -n "$(strip $(DEB_UPSTREAM_REPACKAGE_EXCLUDE))" ] || [ "$$uncompress" = "false" ]; then \
+		echo "Repackaging tarball ..." && \
+		mkdir -p "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" && \
+		if [ -n "$$nopipe" ]; then \
+			$$unpack "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" \
+				$$untar "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" $(patsubst %,--exclude='%',$(DEB_UPSTREAM_REPACKAGE_EXCLUDE)); \
+		else \
+			$$unpack "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)" \
+				| $$untar "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" $(patsubst %,--exclude='%',$(DEB_UPSTREAM_REPACKAGE_EXCLUDE)); \
+		fi && \
+		if [ "$(DEB_UPSTREAM_TARBALL_SRCDIR)" != "$(cdbs_upstream_local_srcdir)" ]; then \
+			mv -T "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)/$(DEB_UPSTREAM_TARBALL_SRCDIR)" "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)/$(cdbs_upstream_local_srcdir)"; \
+		fi && \
+		GZIP=-9 tar -b1 -czf "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_basename).orig.tar.gz" -C "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)" "$(cdbs_upstream_local_srcdir)" && \
+		echo "Cleaning up" && \
+		rm -rf "$(DEB_UPSTREAM_WORKDIR)/$(DEB_UPSTREAM_REPACKAGE_TAG)"; \
+	elif [ -n "$$uncompress" ]; then \
+		echo "Recompressing tarball ..." && \
+		$$uncompress "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_received_tarball)"; \
+		gzip -9 "$(DEB_UPSTREAM_WORKDIR)/$(cdbs_upstream_local_basename).orig.tar"; \
+	fi
+
+DEB_PHONY_RULES += print-version get-orig-source
+
+endif
--- cipux-rbac-3.4.0~svn2868.orig/debian/cdbs/1/rules/copyright-check.mk
+++ cipux-rbac-3.4.0~svn2868/debian/cdbs/1/rules/copyright-check.mk
@@ -0,0 +1,113 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2005-2008 Jonas Smedegaard <dr@jones.dk>
+# Description: Check for changes to copyright notices in source
+#
+# 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, 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.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_rules_copyright-check
+_cdbs_rules_copyright-check := 1
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), devscripts (>= 2.10.7)
+
+# Set to yes to fail on changed/new hints are found
+#DEB_COPYRIGHT_CHECK_STRICT := yes
+
+# Single regular expression for files to include or ignore
+DEB_COPYRIGHT_CHECK_REGEX = .*
+#DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(debian/.*|(.*/)?config\.(guess|sub|rpath)(\..*)?)$
+DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^debian/(changelog|copyright(|_hints|_newhints))$
+
+pre-build:: debian/stamp-copyright-check
+
+debian/stamp-copyright-check:
+	@echo 'Scanning upstream source for new/changed copyright notices...'
+	@echo licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' * \
+		"| some-output-filtering..."
+
+# Perl in shell in make requires extra care:
+#  * Single-quoting ('...') protects against shell expansion
+#  * Double-dollar ($$) expands to plain dollar ($) in make
+	@licensecheck -c '$(DEB_COPYRIGHT_CHECK_REGEX)' -r --copyright -i '$(DEB_COPYRIGHT_CHECK_IGNORE_REGEX)' * \
+		| LC_ALL=C perl -e \
+	'print "Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=XXX\n";'\
+	'print "Upstream-Name: Untrusted draft - double-check copyrights yourself!\n\n";'\
+	'$$n=0; while (<>) {'\
+	'	s/[^[:print:]]//g;'\
+	'	if (/^([^:\s][^:]+):[\s]+(\S.*?)\s*$$/) {'\
+	'		$$files[$$n]{name}=$$1;'\
+	'		$$files[$$n]{license}=$$2;'\
+	'	};'\
+	'	if (/^\s*\[Copyright:\s*(\S.*?)\s*\]/) {'\
+	'		$$files[$$n]{copyright}=$$1;'\
+	'	};'\
+	'	/^$$/ and $$n++;'\
+	'};'\
+	'foreach $$file (@files) {'\
+	'	$$file->{license} =~ s/\s*\(with incorrect FSF address\)//;'\
+	'	$$file->{license} =~ s/\s+\(v([^)]+) or later\)/-$$1+/;'\
+	'	$$file->{license} =~ s/\s+\(v([^)]+)\)/-$$1/;'\
+	'	$$file->{license} =~ s/\s*(\*No copyright\*)\s*// and $$file->{copyright} = $$1;'\
+	'	$$file->{license} =~ s/^\s*(GENERATED FILE)/UNKNOWN ($$1)/;'\
+	'	$$file->{license} =~ s/\s+(GENERATED FILE)/ ($$1)/;'\
+	'	$$file->{copyright} =~ s/(?<=(\b\d{4}))(?{$$y=$$^N})\s*[,-]\s*((??{$$y+1}))\b/-$$2/g;'\
+	'	$$file->{copyright} =~ s/(?<=\b\d{4})\s*-\s*\d{4}(?=\s*-\s*(\d{4})\b)//g;'\
+	'	$$file->{copyright} =~ s/\b(\d{4})\s+([\S^\d])/$$1, $$2/g;'\
+	'	$$file->{copyright} =~ s/^\W*\s+\/\s+//g;'\
+	'	$$file->{copyright} =~ s/\s+\/\s+\W*$$//;'\
+	'	$$file->{copyright} =~ s/\s+\/\s+/\n\t/g;'\
+	'	$$pattern = "$$file->{license} [$$file->{copyright}]";'\
+	'	push @{ $$patternfiles{"$$pattern"} }, $$file->{name};'\
+	'};'\
+	'foreach $$pattern ( sort {'\
+	'			@{$$patternfiles{$$b}} <=> @{$$patternfiles{$$a}}'\
+	'			||'\
+	'			$$a cmp $$b'\
+	'		} keys %patternfiles ) {'\
+	'	($$license, $$copyright) = $$pattern =~ /(.*) \[(.*)\]/s;'\
+	'	print "Files: ", join("\n\t", sort @{ $$patternfiles{$$pattern} }), "\n";'\
+	'	print "Copyright: $$copyright\n";'\
+	'	print "License: $$license\n\n";'\
+	'};'\
+		> debian/copyright_newhints
+	@patterncount="`cat debian/copyright_newhints | sed 's/^[^:]*://' | LANG=C sort -u | grep . -c -`"; \
+		echo "Found $$patterncount different copyright and licensing combinations."
+	@if [ ! -f debian/copyright_hints ]; then touch debian/copyright_hints; fi
+	@newstrings=`diff -u debian/copyright_hints debian/copyright_newhints | sed '1,2d' | egrep '^\+' - | sed 's/^\+//'`; \
+		if [ -n "$$newstrings" ]; then \
+			echo "$(if $(DEB_COPYRIGHT_CHECK_STRICT),ERROR,WARNING): The following new or changed copyright notices discovered:"; \
+			echo; \
+			echo "$$newstrings"; \
+			echo; \
+			echo "To fix the situation please do the following:"; \
+			echo "  1) Investigate the above changes and update debian/copyright as needed"; \
+			echo "  2) Replace debian/copyright_hints with debian/copyright_newhints"; \
+			$(if $(DEB_COPYRIGHT_CHECK_STRICT),exit 1,:); \
+		else \
+			echo 'No new copyright notices found - assuming no news is good news...'; \
+			rm -f debian/copyright_newhints; \
+		fi
+	touch $@
+
+clean::
+	rm -f debian/stamp-copyright-check
+
+endif
--- cipux-rbac-3.4.0~svn2868.orig/debian/cdbs/1/rules/buildinfo.mk
+++ cipux-rbac-3.4.0~svn2868/debian/cdbs/1/rules/buildinfo.mk
@@ -0,0 +1,40 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2004-2007 Jonas Smedegaard <dr@jones.dk>
+# Description: Generate and include build information
+#
+# 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, 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.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_rules_buildinfo
+_cdbs_rules_buildinfo = 1
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), dh-buildinfo
+
+common-install-arch common-install-indep:: debian/stamp-buildinfo
+
+debian/stamp-buildinfo:
+	dh_buildinfo
+	touch debian/stamp-buildinfo
+
+clean::
+	rm -f debian/stamp-buildinfo
+
+endif
--- cipux-rbac-3.4.0~svn2868.orig/debian/cdbs/1/class/perl-build-vars.mk
+++ cipux-rbac-3.4.0~svn2868/debian/cdbs/1/class/perl-build-vars.mk
@@ -0,0 +1,46 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2003 Colin Walters <walters@debian.org>
+# Copyright © 2003,2008 Jonas Smedegaard <dr@jones.dk>
+# Description: Defines useful variables for Perl Module::Build modules
+#
+# 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, 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.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_class_perl-build-vars
+_cdbs_class_perl-build-vars = 1
+
+#include $(_cdbs_class_path)/perl-vars.mk$(_cdbs_makefile_suffix)
+include debian/cdbs/1/class/perl-vars.mk
+
+DEB_PERL_CONFIGURE_TARGET =
+DEB_PERL_CONFIGURE_ARGS = --installdirs vendor --config ccflags="$(or $(CFLAGS_$(cdbs_curpkg)),$(CFLAGS))" --config cxxflags="$(or $(CXXFLAGS_$(cdbs_curpkg)),$(CXXFLAGS))" --config ldflags="$(or $(LDFLAGS_$(cdbs_curpkg)),$(LDFLAGS))"
+
+DEB_PERL_CONFIGURE_FLAGS = destdir=$(cdbs_perl_curpkgdestdir)
+
+DEB_PERL_BUILD_TARGET = build
+
+# Run tests by default, and loudly
+DEB_PERL_CHECK_TARGET = test
+DEB_PERL_CHECK_FLAGS = verbose=1
+
+DEB_PERL_INSTALL_TARGET = install
+
+DEB_PERL_CLEAN_TARGET = realclean
+
+endif
--- cipux-rbac-3.4.0~svn2868.orig/debian/cdbs/1/class/perl-build.mk
+++ cipux-rbac-3.4.0~svn2868/debian/cdbs/1/class/perl-build.mk
@@ -0,0 +1,89 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2003 Colin Walters <walters@debian.org>
+# Copyright © 2003,2008 Jonas Smedegaard <dr@jones.dk>
+# Description: Configures, builds, and cleans Perl Module::Build modules
+#
+# 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, 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.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_class_perl-build
+_cdbs_class_perl-build = 1
+
+# Initialize CDBS_BUILD_DEPENDS and shared DEB_PERL_*
+include $(_cdbs_rules_path)/buildvars.mk$(_cdbs_makefile_suffix)
+#include $(_cdbs_rules_path)/perl-build-vars.mk$(_cdbs_makefile_suffix)
+include debian/cdbs/1/class/perl-build-vars.mk$(_cdbs_makefile_suffix)
+
+# Dependency according to Perl policy 4.3
+# (contrary to common misunderstanding a tighter dependency on perl 5.8
+# was only temporarily needed when 5.8 was introduced into Debian sid.)
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), perl (>= 5.6.0-16)
+
+# Depend on Module::Build
+# (older releases choke on --ccflags and treat destdir differently)
+CDBS_BUILD_DEPENDS := $(CDBS_BUILD_DEPENDS), perl-modules (>= 5.10.0) | libmodule-build-perl (>= 0.2808)
+
+include $(_cdbs_rules_path)/buildcore.mk$(_cdbs_makefile_suffix)
+
+# TODO: Move these to buildcore.mk
+cdbs_curpkgbuilddir = $(or $(DEB_BUILDDIR_$(cdbs_curpkg)),$(DEB_BUILDDIR))
+cdbs_curpkgdestdir = $(or $(DEB_DESTDIR_$(cdbs_curpkg)),$(DEB_DESTDIR))
+
+# Sanity check: DEB_PERL_SRCDIR must be declared early
+cdbs_perl_srcdir_early := $(DEB_PERL_SRCDIR)
+cdbs_perl_srcdir_check = $(if $(call cdbs_streq,$(cdbs_perl_srcdir_early),$(DEB_PERL_SRCDIR)),,$(error DEB_PERL_SRCDIR must be set before including perl-build.mk, not after))
+
+# Sanity check: only DEB_PERL_SRCDIR == DEB_BUILDDIR is supported
+# TODO: figure out if Module::Build supports custom builddir
+cdbs_perl_builddir_check = $(if $(call cdbs_streq,$(DEB_PERL_SRCDIR),$(DEB_BUILDDIR)),,$(error DEB_PERL_SRCDIR and DEB_BUILDDIR must be the same for Perl Module::Build builds))
+
+cdbs_perl_curpkgbuilddir = $(cdbs_perl_builddir_check)$(cdbs_curpkgbuilddir)
+cdbs_perl_curpkgdestdir = $(cdbs_perl_builddir_check)$(or $(DEB_PERL_DESTDIR_$(cdbs_curpkg)),$(DEB_PERL_DESTDIR))
+
+common-configure-arch common-configure-indep:: $(DEB_PERL_SRCDIR)/Build
+$(DEB_PERL_SRCDIR)/Build:
+	$(cdbs_perl_srcdir_check)
+	cd $(cdbs_perl_curpkgbuilddir) && perl Build.PL $(DEB_PERL_BUILD_CONFIGURE_TARGET) $(DEB_PERL_CONFIGURE_ARGS) $(DEB_PERL_CONFIGURE_FLAGS)
+
+common-build-arch common-build-indep:: debian/stamp-perl-build
+debian/stamp-perl-build:
+	cd $(cdbs_perl_curpkgbuilddir) && ./Build $(DEB_PERL_BUILD_TARGET) $(DEB_PERL_BUILD_ARGS) $(DEB_PERL_BUILD_FLAGS)
+	touch $@
+
+common-build-arch common-build-indep:: debian/stamp-perl-check
+debian/stamp-perl-check: debian/stamp-perl-build
+	$(if $(findstring nocheck,$(DEB_BUILD_OPTIONS)),,$(if $(DEB_PERL_CHECK_TARGET),cd $(cdbs_perl_curpkgbuilddir) && ./Build $(DEB_PERL_CHECK_TARGET) $(DEB_PERL_CHECK_ARGS) $(DEB_PERL_CHECK_FLAGS)))
+	touch $@
+
+common-install-arch common-install-indep:: common-install-impl
+common-install-impl::
+	cd $(cdbs_perl_curpkgbuilddir) && ./Build $(DEB_PERL_INSTALL_TARGET) $(DEB_PERL_INSTALL_ARGS) $(DEB_PERL_INSTALL_FLAGS)
+
+# Respect Debian Perl Policy § 4.1
+$(patsubst %,binary-post-install/%,$(DEB_PERL_PACKAGES)) :: binary-post-install/%:
+	find debian/$(cdbs_curpkg)/usr/lib -type f -name .packlist | while read file; do \
+		rm -f "$$file"; \
+		rmdir --ignore-fail-on-non-empty -p "$$(dirname "$$file")"; \
+	done
+
+clean::
+	-cd $(cdbs_perl_curpkgbuilddir) && ./Build $(DEB_PERL_CLEAN_TARGET) $(DEB_PERL_CLEAN_ARGS) $(DEB_PERL_CLEAN_FLAGS)
+	-rm -f debian/stamp-perl-build debian/stamp-perl-check
+
+endif
--- cipux-rbac-3.4.0~svn2868.orig/debian/cdbs/1/class/perl-vars.mk
+++ cipux-rbac-3.4.0~svn2868/debian/cdbs/1/class/perl-vars.mk
@@ -0,0 +1,41 @@
+# -*- mode: makefile; coding: utf-8 -*-
+# Copyright © 2003 Colin Walters <walters@debian.org>
+# Copyright © 2003,2008 Jonas Smedegaard <dr@jones.dk>
+# Description: Defines useful variables for Perl modules
+#
+# 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, 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.
+
+_cdbs_scripts_path ?= /usr/lib/cdbs
+_cdbs_rules_path ?= /usr/share/cdbs/1/rules
+_cdbs_class_path ?= /usr/share/cdbs/1/class
+
+ifndef _cdbs_class_perl-vars
+_cdbs_class_perl-vars = 1
+
+DEB_PERL_PACKAGES = $(filter lib%-perl, $(DEB_PACKAGES))
+
+DEB_PERL_ARCH_PACKAGES = $(filter $(DEB_PERL_PACKAGES), $(DEB_ARCH_PACKAGES))
+DEB_PERL_INDEP_PACKAGES = $(filter $(DEB_PERL_PACKAGES), $(DEB_INDEP_PACKAGES))
+
+# Use DEB_SRCDIR by default
+DEB_PERL_SRCDIR ?= $(DEB_SRCDIR)
+
+# Install directly by default if there is only one perl library package
+# To get default CDBS behaviour (CDBS_DESTDIR_pkg or else CDBS_DESTDIR),
+# then set DEB_PERL_DESTDIR = $(cdbs_curpkgdestdir)
+DEB_PERL_DESTDIR = $(if $(filter 1,$(words $(DEB_PERL_PACKAGES))),$(CURDIR)/debian/$(DEB_PERL_PACKAGES),$(cdbs_curpkgdestdir))
+
+endif
