Package: libapache2-mod-auth-pam
Followup-For: Bug #636890
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu precise ubuntu-patch

Hello maintainer,

Please find attached a patch which replaces yada with debhelper and
uses source format 3.0 (quilt) to patch the upstream source. With this
patch, the package is clean of lintian errors and warnings.

Thanks,
 - Evan

-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric-updates
  APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 
'oneiric'), (100, 'oneiric-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-13-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/compat libapache2-mod-auth-pam-1.1.1/debian/compat
--- libapache2-mod-auth-pam-1.1.1/debian/compat	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/compat	2011-12-05 23:00:25.000000000 -0800
@@ -0,0 +1 @@
+8
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/conf/apache2 libapache2-mod-auth-pam-1.1.1/debian/conf/apache2
--- libapache2-mod-auth-pam-1.1.1/debian/conf/apache2	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/conf/apache2	2011-11-29 20:48:42.000000000 -0800
@@ -0,0 +1,2 @@
+@include common-auth
+@include common-account
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/conf/apache2.pam.conf libapache2-mod-auth-pam-1.1.1/debian/conf/apache2.pam.conf
--- libapache2-mod-auth-pam-1.1.1/debian/conf/apache2.pam.conf	2011-12-05 23:01:35.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/conf/apache2.pam.conf	1969-12-31 16:00:00.000000000 -0800
@@ -1,2 +0,0 @@
-@include common-auth
-@include common-account
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/control libapache2-mod-auth-pam-1.1.1/debian/control
--- libapache2-mod-auth-pam-1.1.1/debian/control	2011-12-05 23:01:35.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/control	2011-12-05 23:00:47.000000000 -0800
@@ -2,12 +2,12 @@
 Maintainer: LENART Janos <o...@debian.org>
 Section: web
 Priority: extra
-Standards-Version: 3.8.1
-Build-Depends: apache2-threaded-dev (>= 2.0.50-9), libpam0g-dev, yada (>= 0.54)
+Standards-Version: 3.9.2
+Build-Depends: debhelper (>= 8.1.3~), apache2-threaded-dev (>= 2.0.50-9), libpam0g-dev
 
 Package: libapache2-mod-auth-pam
 Architecture: any
-Depends: apache2.2-common (>= 2.2.11-2), ${libapache2-mod-auth-pam:Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}, apache2.2-common (>= 2.2.11-2)
 Description: module for Apache2 which authenticate using PAM
  mod_auth_pam implements authentication routines using PAM (Plugable
  Authentication Modules) for apache's authentication protocol.
@@ -16,7 +16,7 @@
 
 Package: libapache2-mod-auth-sys-group
 Architecture: any
-Depends: apache2.2-common (>= 2.2.11-2), ${libapache2-mod-auth-sys-group:Depends}
+Depends: ${misc:Depends}, ${shlibs:Depends}, apache2.2-common (>= 2.2.11-2)
 Description: Module for Apache2 which checks user against system group
  mod_auth_pam implements 'require group' functionality against system group
  database.
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/copyright libapache2-mod-auth-pam-1.1.1/debian/copyright
--- libapache2-mod-auth-pam-1.1.1/debian/copyright	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/copyright	2011-11-29 21:07:11.000000000 -0800
@@ -0,0 +1,26 @@
+Copyright (c) 2000 Ingo Luetkebohle, All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in
+   the documentation and/or other materials provided with the
+   distribution.
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR OTHER CODE CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
+OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/doc/README.Debian libapache2-mod-auth-pam-1.1.1/debian/doc/README.Debian
--- libapache2-mod-auth-pam-1.1.1/debian/doc/README.Debian	2011-12-05 23:01:35.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/doc/README.Debian	1969-12-31 16:00:00.000000000 -0800
@@ -1,26 +0,0 @@
-libapache2-mod-auth-pam for Debian
-----------------------------------
-
-
-USAGE
-
-  An example .htaccess file:
-
-  -----BEGIN-----
-  AuthPAM_Enabled on
-  AuthType Basic
-  AuthName "PAM"
-  require valid-user
-  -----END-----
-
-
-SECURITY
-
-  To use with standard Debian configuration you have to add "www-data" user to
-  "shadow" group. Be careful! It means it can be readable by anyone who can run
-  its own CGI script!
-
-  The passwords are sent by net as clear text. You should use SSL to protect
-  them.
-
- -- Piotr Roszatycki <dex...@debian.org>  Wed, 30 Jul 2003 11:23:06 +0200
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/doc/README.Debian.libapache2-mod-auth-sys-group libapache2-mod-auth-pam-1.1.1/debian/doc/README.Debian.libapache2-mod-auth-sys-group
--- libapache2-mod-auth-pam-1.1.1/debian/doc/README.Debian.libapache2-mod-auth-sys-group	2011-12-05 23:01:35.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/doc/README.Debian.libapache2-mod-auth-sys-group	1969-12-31 16:00:00.000000000 -0800
@@ -1,15 +0,0 @@
-libapache2-mod-auth-sys-group for Debian
-----------------------------------------
-
-
-USAGE
-
-  An example .htaccess file:
-
-  -----BEGIN-----
-  AuthGROUP_Enabled on
-  require group users
-  -----END-----
-
-
- -- Piotr Roszatycki <dex...@debian.org>  Wed, 30 Jul 2003 11:23:06 +0200
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.docs libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.docs
--- libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.docs	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.docs	2011-11-29 20:58:53.000000000 -0800
@@ -0,0 +1,2 @@
+doc/faq.html
+doc/configure.html
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.install libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.install
--- libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.install	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.install	2011-11-29 22:25:22.000000000 -0800
@@ -0,0 +1,3 @@
+usr/lib/apache2/modules/mod_auth_pam.so usr/lib/apache2/modules
+debian/conf/auth_pam.load etc/apache2/mods-available
+debian/conf/apache2 etc/pam.d
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.postinst libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.postinst
--- libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.postinst	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.postinst	2011-11-29 21:05:27.000000000 -0800
@@ -0,0 +1,56 @@
+#!/bin/sh
+# postinst script for libapache2-mod-auth-pam
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+reload_apache()
+{
+    if apache2ctl configtest 2>/dev/null; then
+        invoke-rc.d apache2 force-reload || true
+    else
+        echo "Your apache2 configuration is broken, so we're not restarting it for you."
+    fi
+}
+
+case "$1" in
+    configure)
+        if [ -n "$2" ]; then
+            # we're upgrading. test if we're enabled, and if so, restart to reload the module.
+            if [ -e /etc/apache2/mods-enabled/auth_pam.load ]; then
+                reload_apache
+            fi
+        elif [ -e /etc/apache2/apache2.conf ]; then
+            a2enmod auth_pam >/dev/null || true
+            reload_apache
+        fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.prerm libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.prerm
--- libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.prerm	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-pam.prerm	2011-11-29 21:02:38.000000000 -0800
@@ -0,0 +1,41 @@
+#!/bin/sh
+# prerm script for libapache2-mod-auth-pam
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|deconfigure)
+        if [ -e /etc/apache2/apache2.conf ]; then
+            a2dismod auth_pam || true
+        fi
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.install libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.install
--- libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.install	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.install	2011-11-29 22:02:13.000000000 -0800
@@ -0,0 +1,2 @@
+usr/lib/apache2/modules/mod_auth_sys_group.so usr/lib/apache2/modules
+debian/conf/auth_sys_group.load etc/apache2/mods-available
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.postinst libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.postinst
--- libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.postinst	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.postinst	2011-11-29 21:04:26.000000000 -0800
@@ -0,0 +1,56 @@
+#!/bin/sh
+# postinst script for libapache2-mod-auth-sys-group
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+reload_apache()
+{
+    if apache2ctl configtest 2>/dev/null; then
+        invoke-rc.d apache2 force-reload || true
+    else
+        echo "Your apache2 configuration is broken, so we're not restarting it for you."
+    fi
+}
+
+case "$1" in
+    configure)
+        if [ -n "$2" ]; then
+            # we're upgrading. test if we're enabled, and if so, restart to reload the module.
+            if [ -e /etc/apache2/mods-enabled/auth_sys_group.load ]; then
+                reload_apache
+            fi
+        elif [ -e /etc/apache2/apache2.conf ]; then
+            a2enmod auth_sys_group >/dev/null || true
+            reload_apache
+        fi
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.prerm libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.prerm
--- libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.prerm	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.prerm	2011-11-29 21:04:46.000000000 -0800
@@ -0,0 +1,41 @@
+#!/bin/sh
+# prerm script for libapache2-mod-auth-sys-group
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|deconfigure)
+        if [ -e /etc/apache2/apache2.conf ]; then
+            a2dismod auth_sys_group || true
+        fi
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.README.Debian libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.README.Debian
--- libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.README.Debian	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/libapache2-mod-auth-sys-group.README.Debian	2011-11-29 20:48:42.000000000 -0800
@@ -0,0 +1,15 @@
+libapache2-mod-auth-sys-group for Debian
+----------------------------------------
+
+
+USAGE
+
+  An example .htaccess file:
+
+  -----BEGIN-----
+  AuthGROUP_Enabled on
+  require group users
+  -----END-----
+
+
+ -- Piotr Roszatycki <dex...@debian.org>  Wed, 30 Jul 2003 11:23:06 +0200
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/patches/series libapache2-mod-auth-pam-1.1.1/debian/patches/series
--- libapache2-mod-auth-pam-1.1.1/debian/patches/series	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/patches/series	2011-11-29 22:13:02.000000000 -0800
@@ -0,0 +1,2 @@
+libapache2-mod-auth-pam.001.debian_pam_service_name.diff
+libapache2-mod-auth-pam.002.pam_rhosts_user_variables.diff
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/README.Debian libapache2-mod-auth-pam-1.1.1/debian/README.Debian
--- libapache2-mod-auth-pam-1.1.1/debian/README.Debian	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/README.Debian	2011-11-29 20:48:42.000000000 -0800
@@ -0,0 +1,26 @@
+libapache2-mod-auth-pam for Debian
+----------------------------------
+
+
+USAGE
+
+  An example .htaccess file:
+
+  -----BEGIN-----
+  AuthPAM_Enabled on
+  AuthType Basic
+  AuthName "PAM"
+  require valid-user
+  -----END-----
+
+
+SECURITY
+
+  To use with standard Debian configuration you have to add "www-data" user to
+  "shadow" group. Be careful! It means it can be readable by anyone who can run
+  its own CGI script!
+
+  The passwords are sent by net as clear text. You should use SSL to protect
+  them.
+
+ -- Piotr Roszatycki <dex...@debian.org>  Wed, 30 Jul 2003 11:23:06 +0200
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/rules libapache2-mod-auth-pam-1.1.1/debian/rules
--- libapache2-mod-auth-pam-1.1.1/debian/rules	2011-12-05 23:01:35.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/rules	2011-12-05 23:00:34.000000000 -0800
@@ -1,315 +1,12 @@
 #!/usr/bin/make -f
-# Generated automatically from debian/packages
-# by yada v0.54, of Sun, 28 Oct 2007
 
-DEB_HOST_ARCH        := $(shell dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null)
-DEB_HOST_ARCH_OS     := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
-DEB_HOST_ARCH_CPU    := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null)
-DEB_HOST_GNU_CPU     := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU 2>/dev/null)
-DEB_HOST_GNU_TYPE    := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE 2>/dev/null)
-DEB_HOST_GNU_SYSTEM  := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM 2>/dev/null)
+%:
+	dh $@
 
-DEB_BUILD_ARCH       := $(shell dpkg-architecture -qDEB_BUILD_ARCH 2>/dev/null)
-DEB_BUILD_ARCH_OS    := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS 2>/dev/null)
-DEB_BUILD_ARCH_CPU   := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU 2>/dev/null)
-DEB_BUILD_GNU_CPU    := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU 2>/dev/null)
-DEB_BUILD_GNU_TYPE   := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE 2>/dev/null)
-DEB_BUILD_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM 2>/dev/null)
+override_dh_auto_build:
+	dh_auto_build -- APXS=apxs2
 
-# Take account of old dpkg-architecture output.
-ifeq ($(DEB_HOST_ARCH_CPU),)
-  DEB_HOST_ARCH_CPU := $(DEB_HOST_GNU_CPU))
-  ifeq ($(DEB_HOST_ARCH_CPU),i486)
-    DEB_HOST_ARCH_OS := i386
-  else
-  ifeq ($(DEB_HOST_ARCH_CPU),x86_64)
-    DEB_HOST_ARCH_OS := amd64
-  endif
-  endif
-endif
-ifeq ($(DEB_HOST_ARCH_OS),)
-  DEB_HOST_ARCH_OS := $(subst -gnu,,$(DEB_HOST_GNU_SYSTEM))
-  ifeq ($(DEB_HOST_ARCH_OS),gnu)
-    DEB_HOST_ARCH_OS := hurd
-  endif
-endif
-ifeq ($(DEB_BUILD_ARCH_CPU),)
-  DEB_BUILD_ARCH_CPU := $(DEB_BUILD_GNU_CPU))
-  ifeq ($(DEB_BUILD_ARCH_CPU),i486)
-    DEB_BUILD_ARCH_OS := i386
-  else
-  ifeq ($(DEB_BUILD_ARCH_CPU),x86_64)
-    DEB_BUILD_ARCH_OS := amd64
-  endif
-  endif
-endif
-ifeq ($(DEB_BUILD_ARCH_OS),)
-  DEB_BUILD_ARCH_OS := $(subst -gnu,,$(DEB_BUILD_GNU_SYSTEM))
-  ifeq ($(DEB_BUILD_ARCH_OS),gnu)
-    DEB_BUILD_ARCH_OS := hurd
-  endif
-endif
-
-LEFT_PARENTHESIS:=(
-VERSION:=$(shell head -n1 debian/changelog | sed -e "s/^[0-9a-zA-Z.-]* $(LEFT_PARENTHESIS)//" -e "s/[^0-9a-zA-Z.:+~-].*//")
-
-SHELL=/bin/bash
-
-.PHONY: default
-default:
-	@echo "Specify a target:"; \
-	echo " build              compile the package"; \
-	echo " build-arch         compile the architecture-dependent package"; \
-	echo " build-indep        compile the architecture-independent package"; \
-	echo " binary             make all binary packages"; \
-	echo " binary-arch        make all architecture-dependent binary packages"; \
-	echo " binary-indep       make all architecture-independent binary packages"; \
-	echo " clean              clean up the source package"; \
-	echo; \
-	echo " clean-install-tree clean up only under debian/"; \
-	echo
-
-# Build the package and prepare the install tree
-
-.PHONY: build-only build
-build-only: debian/build-stamp
-build: build-only
-
-.PHONY: build-arch-only build-arch
-build-arch-only: debian/build-arch-stamp
-build-arch: build-arch-only
-
-.PHONY: build-indep-only build-indep
-build-indep-only: debian/build-indep-stamp
-build-indep: build-indep-only
-
-# Make sure these rules and the control file are up-to-date
-
-.PHONY: rules control templates
-rules: debian/rules
-debian/rules: $(shell which yada) debian/packages-tmp
-	yada rebuild rules
-
-control: debian/control
-debian/control: $(shell which yada) debian/packages-tmp
-	yada rebuild control
-
-templates: debian/templates debian/po/POTFILES.in
-debian/templates: $(shell which yada) debian/packages-tmp
-	yada rebuild templates
-debian/po/POTFILES.in: $(shell which yada) debian/packages-tmp
-	yada rebuild templates
-
-debian/build-stamp: debian/build-arch-stamp debian/build-indep-stamp
-	@[ -f $(shell which yada) -a -f debian/rules ]
-	yada patch "debian/patches/*.diff"
-	@umask 022 \
-	  && export pwd="$$(pwd)" \
-	  && export TMPROOT="$$(pwd)/debian/tmp" \
-	  && export SOURCE="libapache2-mod-auth-pam" \
-	  && export VERSION="$(VERSION)" \
-	  && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
-	  && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
-	  && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
-	  && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
-	  && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
-	  && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
-	echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
-	echo -E 'CC=$${CC:-gcc}';\
-	echo -E 'CFLAGS=$${CFLAGS:--g -Wall}';\
-	echo -E 'APXS2=$${APXS2:-apxs2}';\
-	echo -E 'if [ "$${DEB_BUILD_OPTIONS#*noopt}" != "$$DEB_BUILD_OPTIONS" ]; then';\
-	echo -E '     CFLAGS="$$CFLAGS -O0"';\
-	echo -E 'else';\
-	echo -E '     CFLAGS="$$CFLAGS -O2"';\
-	echo -E 'fi';\
-	echo -E 'make mod_auth_pam.la CC="$$CC" CFLAGS="$$CFLAGS" APXS="$$APXS2" LIBS="-lpam"';\
-	echo -E 'make mod_auth_sys_group.la CC="$$CC" CFLAGS="$$CFLAGS" APXS="$$APXS2" LIBS=""') | /bin/sh
-	touch debian/build-stamp
-
-debian/build-arch-stamp:
-	@[ -f $(shell which yada) -a -f debian/rules ]
-	yada patch "debian/patches/*.diff"
-	touch debian/build-arch-stamp
-
-debian/build-indep-stamp: debian/build-arch-stamp
-	@[ -f $(shell which yada) -a -f debian/rules ]
-	yada patch "debian/patches/*.diff"
-	touch debian/build-indep-stamp
-
-.PHONY: install-tree
-install-tree: install-tree-any
-install-tree-any: \
-	debian/tmp-libapache2-mod-auth-pam/DEBIAN/control \
-	debian/tmp-libapache2-mod-auth-sys-group/DEBIAN/control
-
-debian/tmp-libapache2-mod-auth-pam/DEBIAN/control: debian/build-stamp debian/control
-	rm -rf debian/tmp-libapache2-mod-auth-pam
-	umask 022 && install -d debian/tmp-libapache2-mod-auth-pam/DEBIAN
-	install -d debian/tmp-libapache2-mod-auth-pam/usr/share/doc/libapache2-mod-auth-pam
-	umask 022; yada generate copyright libapache2-mod-auth-pam \
-	  > debian/tmp-libapache2-mod-auth-pam/usr/share/doc/libapache2-mod-auth-pam/copyright
-	install -m 644 -p debian/changelog \
-	  debian/tmp-libapache2-mod-auth-pam/usr/share/doc/libapache2-mod-auth-pam/changelog.Debian
-	@umask 022 \
-	  && export pwd="$$(pwd)" \
-	  && export ROOT="$$(pwd)/debian/tmp-libapache2-mod-auth-pam" \
-	  && export TMPROOT="$$(pwd)/debian/tmp" \
-	  && export CONTROL="$$(pwd)/debian/tmp-libapache2-mod-auth-pam/DEBIAN" \
-	  && export PACKAGE="libapache2-mod-auth-pam" \
-	  && export SOURCE="libapache2-mod-auth-pam" \
-	  && export VERSION="$(VERSION)" \
-	  && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
-	  && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
-	  && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
-	  && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
-	  && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
-	  && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
-	echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
-	echo -E 'yada install -lib -into /usr/lib/apache2/modules .libs/mod_auth_pam.so';\
-	echo -E 'yada install -conf -into /etc/apache2/mods-available debian/conf/auth_pam.load';\
-	echo -E 'yada install -conf -into /etc/pam.d -as apache2 debian/conf/apache2.pam.conf';\
-	echo -E 'yada install -doc doc/faq.html doc/configure.html';\
-	echo -E 'yada install -doc debian/doc/README.Debian') | /bin/sh
-	@umask 022 \
-	  && export pwd="$$(pwd)" \
-	  && export ROOT="$$(pwd)/debian/tmp-libapache2-mod-auth-pam" \
-	  && export TMPROOT="$$(pwd)/debian/tmp" \
-	  && export CONTROL="$$(pwd)/debian/tmp-libapache2-mod-auth-pam/DEBIAN" \
-	  && export PACKAGE="libapache2-mod-auth-pam" \
-	  && export SOURCE="libapache2-mod-auth-pam" \
-	  && export VERSION="$(VERSION)" && (\
-	echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
-	echo -E 'yada perl';\
-	echo -E 'yada python';\
-	echo -E 'yada strip';\
-	echo -E 'yada shlibdeps') | /bin/sh
-	yada compress libapache2-mod-auth-pam
-	yada generate maintscripts libapache2-mod-auth-pam
-	find debian/tmp-libapache2-mod-auth-pam -type f -print \
-	  | sed -n 's/^debian\/tmp-libapache2-mod-auth-pam\(\/etc\/.*\)$$/\1/p' \
-	  > debian/tmp-libapache2-mod-auth-pam/DEBIAN/conffiles
-	test -s debian/tmp-libapache2-mod-auth-pam/DEBIAN/conffiles || rm -f debian/tmp-libapache2-mod-auth-pam/DEBIAN/conffiles
-	yada rebuild control
-	yada generate substvars libapache2-mod-auth-pam
-	umask 022 && dpkg-gencontrol -isp -plibapache2-mod-auth-pam -Pdebian/tmp-libapache2-mod-auth-pam
-
-debian/tmp-libapache2-mod-auth-sys-group/DEBIAN/control: debian/build-stamp debian/control
-	rm -rf debian/tmp-libapache2-mod-auth-sys-group
-	umask 022 && install -d debian/tmp-libapache2-mod-auth-sys-group/DEBIAN
-	install -d debian/tmp-libapache2-mod-auth-sys-group/usr/share/doc/libapache2-mod-auth-sys-group
-	umask 022; yada generate copyright libapache2-mod-auth-sys-group \
-	  > debian/tmp-libapache2-mod-auth-sys-group/usr/share/doc/libapache2-mod-auth-sys-group/copyright
-	install -m 644 -p debian/changelog \
-	  debian/tmp-libapache2-mod-auth-sys-group/usr/share/doc/libapache2-mod-auth-sys-group/changelog.Debian
-	@umask 022 \
-	  && export pwd="$$(pwd)" \
-	  && export ROOT="$$(pwd)/debian/tmp-libapache2-mod-auth-sys-group" \
-	  && export TMPROOT="$$(pwd)/debian/tmp" \
-	  && export CONTROL="$$(pwd)/debian/tmp-libapache2-mod-auth-sys-group/DEBIAN" \
-	  && export PACKAGE="libapache2-mod-auth-sys-group" \
-	  && export SOURCE="libapache2-mod-auth-pam" \
-	  && export VERSION="$(VERSION)" \
-	  && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
-	  && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
-	  && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
-	  && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
-	  && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
-	  && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
-	echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
-	echo -E 'yada install -lib -into /usr/lib/apache2/modules .libs/mod_auth_sys_group.so';\
-	echo -E 'yada install -conf -into /etc/apache2/mods-available debian/conf/auth_sys_group.load';\
-	echo -E 'yada install -doc debian/doc/README.Debian.libapache2-mod-auth-sys-group') | /bin/sh
-	@umask 022 \
-	  && export pwd="$$(pwd)" \
-	  && export ROOT="$$(pwd)/debian/tmp-libapache2-mod-auth-sys-group" \
-	  && export TMPROOT="$$(pwd)/debian/tmp" \
-	  && export CONTROL="$$(pwd)/debian/tmp-libapache2-mod-auth-sys-group/DEBIAN" \
-	  && export PACKAGE="libapache2-mod-auth-sys-group" \
-	  && export SOURCE="libapache2-mod-auth-pam" \
-	  && export VERSION="$(VERSION)" && (\
-	echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
-	echo -E 'yada perl';\
-	echo -E 'yada python';\
-	echo -E 'yada strip';\
-	echo -E 'yada shlibdeps') | /bin/sh
-	yada compress libapache2-mod-auth-sys-group
-	yada generate maintscripts libapache2-mod-auth-sys-group
-	find debian/tmp-libapache2-mod-auth-sys-group -type f -print \
-	  | sed -n 's/^debian\/tmp-libapache2-mod-auth-sys-group\(\/etc\/.*\)$$/\1/p' \
-	  > debian/tmp-libapache2-mod-auth-sys-group/DEBIAN/conffiles
-	test -s debian/tmp-libapache2-mod-auth-sys-group/DEBIAN/conffiles || rm -f debian/tmp-libapache2-mod-auth-sys-group/DEBIAN/conffiles
-	yada rebuild control
-	yada generate substvars libapache2-mod-auth-sys-group
-	umask 022 && dpkg-gencontrol -isp -plibapache2-mod-auth-sys-group -Pdebian/tmp-libapache2-mod-auth-sys-group
-
-# Build package files
-
-.PHONY: binary binary-arch binary-indep
-binary: binary-arch binary-indep
-binary-arch: binary-arch-any
-
-.PHONY: binary-arch-any
-binary-arch-any: \
-	binary-package-libapache2-mod-auth-pam \
-	binary-package-libapache2-mod-auth-sys-group
-binary-indep:
-
-.PHONY: binary-package-libapache2-mod-auth-pam
-binary-package-libapache2-mod-auth-pam: check-root debian/tmp-libapache2-mod-auth-pam/DEBIAN/control
-	@[ -f $(shell which yada) -a -f debian/rules ]
-	chown -R 0.0 debian/tmp-libapache2-mod-auth-pam
-	chmod -R u=rwX,go=rX debian/tmp-libapache2-mod-auth-pam
-	@if [ -d debian/tmp-libapache2-mod-auth-pam/usr/doc/libapache2-mod-auth-pam ]; then \
-	  echo "*** Yada warning: /usr/doc/libapache2-mod-auth-pam should be /usr/share/doc/libapache2-mod-auth-pam";\
-	fi
-	dpkg-deb --build debian/tmp-libapache2-mod-auth-pam ..
-
-.PHONY: binary-package-libapache2-mod-auth-sys-group
-binary-package-libapache2-mod-auth-sys-group: check-root debian/tmp-libapache2-mod-auth-sys-group/DEBIAN/control
-	@[ -f $(shell which yada) -a -f debian/rules ]
-	chown -R 0.0 debian/tmp-libapache2-mod-auth-sys-group
-	chmod -R u=rwX,go=rX debian/tmp-libapache2-mod-auth-sys-group
-	@if [ -d debian/tmp-libapache2-mod-auth-sys-group/usr/doc/libapache2-mod-auth-sys-group ]; then \
-	  echo "*** Yada warning: /usr/doc/libapache2-mod-auth-sys-group should be /usr/share/doc/libapache2-mod-auth-sys-group";\
-	fi
-	dpkg-deb --build debian/tmp-libapache2-mod-auth-sys-group ..
-
-.PHONY: check-root
-check-root:
-	@[ `id -u` = 0 ] || (echo "You must be root to do this!"; false)
-
-debian/packages-tmp: debian/packages 
-	yada rebuild packages
-
-## Clean up afterwards
-
-.PHONY: clean clean-install-tree clean-build
-
-clean: clean-install-tree clean-build debian/control debian/rules
-	rm -f debian/packages-tmp debian/packages-tmp-new debian/packages-tmp-include
-
-clean-build:
-	@[ -f $(shell which yada) -a -f debian/rules ]
-	rm -f debian/build-stamp debian/build-arch-stamp debian/build-indep-stamp
-	@umask 022 \
-	  && export pwd="$$(pwd)" \
-	  && export TMPROOT="$$(pwd)/debian/tmp" \
-	  && export SOURCE="libapache2-mod-auth-pam" \
-	  && export VERSION="$(VERSION)" \
-	  && export DEB_HOST_GNU_CPU="$(DEB_HOST_GNU_CPU)" \
-	  && export DEB_HOST_GNU_TYPE="$(DEB_HOST_GNU_TYPE)" \
-	  && export DEB_HOST_GNU_SYSTEM="$(DEB_HOST_GNU_SYSTEM)" \
-	  && export DEB_BUILD_GNU_CPU="$(DEB_BUILD_GNU_CPU)" \
-	  && export DEB_BUILD_GNU_TYPE="$(DEB_BUILD_GNU_TYPE)" \
-	  && export DEB_BUILD_GNU_SYSTEM="$(DEB_BUILD_GNU_SYSTEM)" && (\
-	echo -E 'eval "yada () { perl $$(which yada) \"\$$@\"; }"; set -e; set -v';\
-	echo -E 'make clean || true';\
-	echo -E 'rm -rf .libs/') | /bin/sh
-	yada unpatch
-	rm -rf debian/tmp
-
-clean-install-tree: debian/rules
-	@[ -f $(shell which yada) -a -f debian/rules ]
-	rm -f debian/install-tree-stamp
-	rm -rf debian/tmp-* debian/files* debian/substvars debian/shlibs.local debian/ucf
+override_dh_auto_install: LIBEXECDIR=$(CURDIR)/debian/tmp/$(shell apxs2 -q LIBEXECDIR)
+override_dh_auto_install:
+	mkdir -p $(LIBEXECDIR)
+	apxs2 -S LIBEXECDIR=$(LIBEXECDIR) -i mod_auth_pam.la mod_auth_sys_group.la
diff -Nru libapache2-mod-auth-pam-1.1.1/debian/source/format libapache2-mod-auth-pam-1.1.1/debian/source/format
--- libapache2-mod-auth-pam-1.1.1/debian/source/format	1969-12-31 16:00:00.000000000 -0800
+++ libapache2-mod-auth-pam-1.1.1/debian/source/format	2011-11-29 20:52:51.000000000 -0800
@@ -0,0 +1 @@
+3.0 (quilt)

Reply via email to