--- debathena-quota-10.0.1.orig/Makefile.in
+++ debathena-quota-10.0.1/Makefile.in
@@ -1,5 +1,3 @@
- $Id: Makefile.in,v 1.5 2005-03-12 17:30:22 ghudson Exp $
-
 SHELL=/bin/sh
 INSTALL=@INSTALL@
 INSTALL_PROGRAM=@INSTALL_PROGRAM@
--- debathena-quota-10.0.1.orig/debian/control
+++ debathena-quota-10.0.1/debian/control
@@ -0,0 +1,21 @@
+Source: debathena-quota
+Section: debathena/utils
+Priority: extra
+Maintainer: Debathena Project <debathena@mit.edu>
+Build-Depends: cdbs (>= 0.4.23-1.1), autotools-dev, debhelper (>= 4.2.0), autoconf, comerr-dev, libopenafs-dev, libkrb5-dev, libhesiod-dev, libzephyr-dev, debathena-liblocker-dev
+Standards-Version: 3.7.2
+
+Package: debathena-quota
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libzephyr4-krb5 | libzephyr3-krb, debathena-liblocker (>= 9.4)
+Suggests: debathena-quota-config
+Description: Print disk usage and quota limits
+ Quota displays a user's disk usage and limits on local and NFS mounted 
+ file systems, as well as AFS lockers that have been attached. If a user 
+ is specified (by name or by id), quota will return information on disk 
+ usage and limits for that user. Normal users can only check their own 
+ quotas. The super-user may check any quota on local filesystems.
+ .
+ This package installs quota as /usr/bin/quota.debathena.  If you want
+ /usr/bin/quota to point there, install the debathena-quota-config
+ package.
--- debathena-quota-10.0.1.orig/debian/compat
+++ debathena-quota-10.0.1/debian/compat
@@ -0,0 +1 @@
+4
--- debathena-quota-10.0.1.orig/debian/debathena-quota.postinst
+++ debathena-quota-10.0.1/debian/debathena-quota.postinst
@@ -0,0 +1,46 @@
+#!/bin/sh
+# postinst script for debathena-quota
+#
+# 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
+
+
+case "$1" in
+    configure)
+	# Setup quota binary for setgid-attach.
+	if ! dpkg-statoverride --list /usr/bin/quota.debathena >/dev/null; then
+	    chgrp attach /usr/bin/quota.debathena
+	    chmod a=rx,u+w,g+s /usr/bin/quota.debathena
+	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
+
+
--- debathena-quota-10.0.1.orig/debian/control.in
+++ debathena-quota-10.0.1/debian/control.in
@@ -0,0 +1,21 @@
+Source: debathena-quota
+Section: debathena/utils
+Priority: extra
+Maintainer: Debathena Project <debathena@mit.edu>
+Build-Depends: @cdbs@, comerr-dev, libopenafs-dev, libkrb5-dev, libhesiod-dev, libzephyr-dev, debathena-liblocker-dev
+Standards-Version: 3.7.2
+
+Package: debathena-quota
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libzephyr4-krb5 | libzephyr3-krb, debathena-liblocker (>= 9.4)
+Suggests: debathena-quota-config
+Description: Print disk usage and quota limits
+ Quota displays a user's disk usage and limits on local and NFS mounted 
+ file systems, as well as AFS lockers that have been attached. If a user 
+ is specified (by name or by id), quota will return information on disk 
+ usage and limits for that user. Normal users can only check their own 
+ quotas. The super-user may check any quota on local filesystems.
+ .
+ This package installs quota as /usr/bin/quota.debathena.  If you want
+ /usr/bin/quota to point there, install the debathena-quota-config
+ package.
--- debathena-quota-10.0.1.orig/debian/changelog
+++ debathena-quota-10.0.1/debian/changelog
@@ -0,0 +1,46 @@
+debathena-quota (10.0.1-0debathena1) unstable; urgency=low
+
+  * Add a configure-time option to tear the NFS (and therefore the krb4)
+    out of quota.
+  * On Debathena, build without NFS support.
+
+ -- Evan Broder <broder@mit.edu>  Mon, 12 Oct 2009 14:57:23 -0400
+
+debathena-quota (10.0.0-0debathena1) unstable; urgency=low
+
+  * Remove DEB_AUTO_UPDATE_DEBIAN_CONTROL.
+  * Change DEB_AUTO_UPDATE_AUTOCONF to 2.50, not 1.
+  * Clean up debian/copyright.
+  * Fix typo in postinst script.
+  * Change "Debian-Athena Project" to "Debathena Project".
+  * Remove debian/control from version control.
+
+ -- Tim Abbott <tabbott@mit.edu>  Sat, 24 Jan 2009 15:36:45 -0500
+
+debathena-quota (9.4.0-0debathena4) unstable; urgency=low
+
+  * Link against libcom_err from openafs so that the package builds on
+    lenny.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Tue, 01 Jan 2008 18:57:17 -0500
+
+debathena-quota (9.4.0-0debathena3) unstable; urgency=low
+
+  * Depend debathena-liblocker.
+  * Install quota setgid attach.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Wed, 18 Jul 2007 03:35:14 -0400
+
+debathena-quota (9.4.0-0debathena2) unstable; urgency=low
+
+  * Move quota to quota.debathena to avoid conflicting with BSD quota, 
+    and suggest debathena-quota-config.
+  * Section: debathena/utils.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Mon, 16 Jul 2007 20:33:29 -0400
+
+debathena-quota (9.4.0-0debathena1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Tue, 30 Jan 2007 03:36:59 -0500
--- debathena-quota-10.0.1.orig/debian/copyright
+++ debathena-quota-10.0.1/debian/copyright
@@ -0,0 +1,23 @@
+This package was debianized as part of the Debathena Project
+<http://debathena.mit.edu/> of the MIT Student Information Processing
+Board.
+
+The Athena source code was obtained from the Athena SVN repository at
+<svn://debathena.mit.edu/athena/trunk>, and is licensed as follows:
+
+  Copyright © 1996 by the Massachusetts Institute of Technology.
+
+  Permission to use, copy, modify, and distribute this
+  software and its documentation for any purpose and without
+  fee is hereby granted, provided that the above copyright
+  notice appear in all copies and that both that copyright
+  notice and this permission notice appear in supporting
+  documentation, and that the name of M.I.T. not be used in
+  advertising or publicity pertaining to distribution of the
+  software without specific, written prior permission.
+  M.I.T. makes no representations about the suitability of
+  this software for any purpose.  It is provided "as is"
+  without express or implied warranty.
+
+The Debian packaging is Copyright © 2007-2008 Tim Abbott and Anders
+Kaseorg, and has the same license as the original software.
--- debathena-quota-10.0.1.orig/debian/rules
+++ debathena-quota-10.0.1/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+DEB_AUTO_UPDATE_AUTOCONF = 2.50
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+
+DEB_CONFIGURE_EXTRA_FLAGS += --with-afs=/usr --disable-nfs --with-hesiod --with-zephyr LIBS=/usr/lib/afs/libcom_err.a
+CPPFLAGS += -D_LINUX_QUOTA_VERSION=1
+
+common-install-impl::
+	mv $(DEB_DESTDIR)/usr/bin/quota $(DEB_DESTDIR)/usr/bin/quota.debathena
+	mv $(DEB_DESTDIR)/usr/share/man/man1/quota.1 \
+	    $(DEB_DESTDIR)/usr/share/man/man1/quota.debathena.1
+
+clean::
+	rm -f configure
