]> andersk Git - nss_nonlocal.git/commitdiff
Merge commit '1.10' into debian
authorAnders Kaseorg <andersk@mit.edu>
Fri, 23 Oct 2009 17:48:57 +0000 (13:48 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Fri, 23 Oct 2009 17:48:57 +0000 (13:48 -0400)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control.in [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/lib32nss-nonlocal.install [new file with mode: 0644]
debian/lib64nss-nonlocal.install [new file with mode: 0644]
debian/libnss-nonlocal.install [new file with mode: 0644]
debian/libnss-nonlocal.postrm [new file with mode: 0644]
debian/libnss-nonlocal.preinst [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..4860c27
--- /dev/null
@@ -0,0 +1,115 @@
+libnss-nonlocal (1.9-0debathena2) unstable; urgency=low
+
+  * Also build a biarch lib32nss-nonlocal or lib64nss-nonlocal package.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Fri, 19 Jun 2009 23:54:38 -0400
+
+libnss-nonlocal (1.9-0debathena1) unstable; urgency=low
+
+  * New upstream version.
+    - Corrects an out-of-memory error in the presence of very large local
+      groups.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Sun, 24 May 2009 17:30:08 -0400
+
+libnss-nonlocal (1.8-0debathena4) unstable; urgency=low
+
+  * Only exclude glibc-private for new enough libc6, because old
+    dpkg-shlibdeps does not support -x.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Thu, 05 Feb 2009 01:59:08 -0500
+
+libnss-nonlocal (1.8-0debathena3) unstable; urgency=low
+
+  * Force exclusion of glibc-private dependency.  This is necessary for
+    libnss-nonlocal to build and install with libc6 2.9 in Ubuntu Jaunty
+    and Debian experimental, which now generates an invalid dependency on
+    glibc-private for uses of private glibc symbols.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Sun, 01 Feb 2009 00:26:31 -0500
+
+libnss-nonlocal (1.8-0debathena2) unstable; urgency=low
+
+  * Change "Debian-Athena Project" to "Debathena Project".
+  * Remove debian/control from version control.
+  * Clean up debian/copyright.
+
+ -- Tim Abbott <tabbott@mit.edu>  Sat, 24 Jan 2009 18:03:22 -0500
+
+libnss-nonlocal (1.8-0debathena1) unstable; urgency=low
+
+  * Correct the buffer size passed to realloc.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Sat, 09 Aug 2008 22:41:57 -0400
+
+libnss-nonlocal (1.7-0debathena1) unstable; urgency=low
+
+  * Replace the magic buflen hack with explicit iteration over the nss
+    chain, so that getpwent/getgrent works with nscd enabled.
+  * Fix some memory leaks.
+  * Autotoolfiscate.
+  * Code cleanup.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Tue, 29 Jul 2008 06:57:53 -0400
+
+libnss-nonlocal (1.6-0debathena1) unstable; urgency=low
+
+  * Use a version script to hide internal symbols.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Sat, 15 Mar 2008 06:42:02 -0400
+
+libnss-nonlocal (1.5-0debathena1) unstable; urgency=low
+
+  * Add support for NSS_NONLOCAL_IGNORE environment variable, which
+    causes nss_nonlocal to pretend there are no nonlocal users.  This
+    allows us to support letting adduser add users and groups with the
+    same name as a nonlocal user/group.
+
+ -- Tim Abbott <tabbott@mit.edu>  Mon, 25 Feb 2008 19:12:30 -0500
+
+libnss-nonlocal (1.4-0debathena1) unstable; urgency=low
+
+  * Bug fixes and cleanups.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Fri, 15 Feb 2008 21:39:50 -0500
+
+libnss-nonlocal (1.3-0debathena2) unstable; urgency=low
+
+  * Set maintainer to debathena@mit.edu.
+
+ -- Tim Abbott <tabbott@mit.edu>  Tue, 29 Jan 2008 22:18:25 -0500
+
+libnss-nonlocal (1.3-0debathena1) unstable; urgency=low
+
+  * Have initgroups() only add nonlocal groups to nonlocal users.
+  * If a group called nss-local-users exists, add local users to it.
+  * If a group called nss-nonlocal-users exists, add nonlocal users to it.
+  * Create nss-local-users and nss-nonlocal-users at installation.
+
+ -- Tim Abbott <tabbott@mit.edu>  Tue, 29 Jan 2008 22:11:37 -0500
+
+libnss-nonlocal (1.2) unstable; urgency=low
+
+  * Use a magic buflen instead of thread-local variables, to avoid
+    strange problems on sarge.
+  * Don't link with pthread.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Tue, 07 Aug 2007 22:00:28 -0400
+
+libnss-nonlocal (1.1) unstable; urgency=low
+
+  * Link with pthread to be safe.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Fri, 03 Aug 2007 21:24:17 -0400
+
+libnss-nonlocal (1.0-0debathena2) unstable; urgency=low
+
+  * Section: debathena/libs.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Mon, 23 Jul 2007 14:14:46 -0400
+
+libnss-nonlocal (1.0-0debathena1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Anders Kaseorg <andersk@mit.edu>  Thu, 19 Jul 2007 21:07:50 -0400
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/debian/control.in b/debian/control.in
new file mode 100644 (file)
index 0000000..f303c61
--- /dev/null
@@ -0,0 +1,36 @@
+Source: libnss-nonlocal
+Section: debathena/libs
+Priority: optional
+Maintainer: Debathena Project <debathena@mit.edu>
+Standards-Version: 3.7.2
+Build-Depends: @cdbs@, gcc-multilib [amd64 i386] | gcc-4.1 (<< 4.1.2) [amd64 i386], libc6-dev-i386 [amd64], libc6-dev-amd64 [i386], lsb-release
+
+Package: libnss-nonlocal
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: nsswitch proxy module to prevent local account spoofing
+ This nsswitch module acts as a proxy for other nsswitch modules like 
+ hesiod, but prevents non-local users from potentially gaining local 
+ privileges by spoofing local UIDs and GIDs.
+
+Package: lib32nss-nonlocal
+Architecture: amd64
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: nsswitch proxy module to prevent local account spoofing (32-bit library)
+ This nsswitch module acts as a proxy for other nsswitch modules like 
+ hesiod, but prevents non-local users from potentially gaining local 
+ privileges by spoofing local UIDs and GIDs.
+ .
+ This package contains a 32-bit version of the library for compatibility 
+ on 64-bit architectures.
+
+Package: lib64nss-nonlocal
+Architecture: i386
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: nsswitch proxy module to prevent local account spoofing (64-bit library)
+ This nsswitch module acts as a proxy for other nsswitch modules like 
+ hesiod, but prevents non-local users from potentially gaining local 
+ privileges by spoofing local UIDs and GIDs.
+ .
+ This package contains a 64-bit version of the library for compatibility 
+ on 32-bit architectures.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..e6fac0b
--- /dev/null
@@ -0,0 +1,32 @@
+This package was created as part of the Debathena Project
+<http://debathena.mit.edu/> of the MIT Student Information Processing
+Board.
+
+The source code was obtained from the Athena SVN repository at
+<svn://debathena.mit.edu/athena/trunk/config>, and is licensed as
+follows:
+
+  Copyright © 2007-2008 Tim Abbott and Anders Kaseorg
+
+  Permission is hereby granted, free of charge, to any person
+  obtaining a copy of this software and associated documentation files
+  (the "Software"), to deal in the Software without restriction,
+  including without limitation the rights to use, copy, modify, merge,
+  publish, distribute, sublicense, and/or sell copies of the Software,
+  and to permit persons to whom the Software is furnished to do so,
+  subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be
+  included in all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+  SOFTWARE.
+
+The Debian packaging is Copyright © 2007-2008 Tim Abbott and Anders
+Kaseorg, and has the same license as the original software.
diff --git a/debian/lib32nss-nonlocal.install b/debian/lib32nss-nonlocal.install
new file mode 100644 (file)
index 0000000..752ce56
--- /dev/null
@@ -0,0 +1,2 @@
+lib32/*
+emul/ia32-linux/lib/*
diff --git a/debian/lib64nss-nonlocal.install b/debian/lib64nss-nonlocal.install
new file mode 100644 (file)
index 0000000..9017449
--- /dev/null
@@ -0,0 +1 @@
+lib64/*
diff --git a/debian/libnss-nonlocal.install b/debian/libnss-nonlocal.install
new file mode 100644 (file)
index 0000000..cdecab1
--- /dev/null
@@ -0,0 +1 @@
+lib/*
diff --git a/debian/libnss-nonlocal.postrm b/debian/libnss-nonlocal.postrm
new file mode 100644 (file)
index 0000000..72967e1
--- /dev/null
@@ -0,0 +1,48 @@
+#!/bin/sh
+# postrm script for libnss-nonlocal
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge)
+       if getent group nss-local-users >/dev/null; then
+           delgroup --system nss-local-users || :
+       fi
+       if getent group nss-nonlocal-users >/dev/null; then
+           delgroup --system nss-nonlocal-users || :
+       fi
+       ;;
+
+    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+       ;;
+
+    *)
+        echo "postrm 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 --git a/debian/libnss-nonlocal.preinst b/debian/libnss-nonlocal.preinst
new file mode 100644 (file)
index 0000000..4cb5733
--- /dev/null
@@ -0,0 +1,45 @@
+#!/bin/sh
+# preinst script for libnss-nonlocal
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+       if ! getent group nss-local-users >/dev/null; then
+           addgroup --system nss-local-users
+       fi
+       if ! getent group nss-nonlocal-users >/dev/null; then
+           addgroup --system nss-nonlocal-users
+       fi
+       ;;
+
+    abort-upgrade)
+       ;;
+
+    *)
+        echo "preinst 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 --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..53bd2c1
--- /dev/null
@@ -0,0 +1,62 @@
+#!/usr/bin/make -f
+
+DEB_AUTO_UPDATE_AUTOCONF = 2.50
+DEB_AUTO_UPDATE_AUTOHEADER = 2.50
+DEB_AUTO_UPDATE_AUTOMAKE = 1.9
+DEB_AUTO_UPDATE_ACLOCAL = 1.9
+DEB_AUTO_UPDATE_LIBTOOL = pre
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+
+DEB_DESTDIR = $(CURDIR)/debian/tmp/
+DEB_DH_INSTALL_SOURCEDIR = $(DEB_DESTDIR)
+DEB_CONFIGURE_PREFIX = /
+
+LIBC6_VERSION := $(shell dpkg-query --showformat='$${Version}' --show libc6)
+ifeq ($(shell dpkg --compare-versions '$(LIBC6_VERSION)' '>=' '2.8+20080809' && echo y),y)
+    DEB_DH_SHLIBDEPS_ARGS = -- -xglibc-private
+endif
+
+debian/stamp-autotools-files: DEB_AUTO_UPDATE_AUTOMAKE += --foreign --add-missing
+
+debian/stamp-autotools-files: aclocal.m4
+aclocal.m4:
+       touch $@
+
+DEB_BUILDDIR = $(or $(DEB_BUILDDIR_$(cdbs_curpkg)),debian/build)
+
+REAL_DEB_HOST_GNU_TYPE := $(DEB_HOST_GNU_TYPE)
+
+DEB_BUILDDIR_lib32nss-nonlocal = debian/build_32
+configure/lib32nss-nonlocal:: CC += -m32
+cleanbuilddir/lib32nss-nonlocal:: clean/lib32nss-nonlocal
+ifeq ($(shell lsb_release -is), Ubuntu)
+configure/lib32nss-nonlocal:: DEB_BUILD_GNU_TYPE = i686-linux
+configure/lib32nss-nonlocal:: DEB_CONFIGURE_EXTRA_FLAGS += --libdir="\$${prefix}/lib32"
+else
+configure/lib32nss-nonlocal:: DEB_BUILD_GNU_TYPE = i486-linux
+configure/lib32nss-nonlocal:: DEB_CONFIGURE_PREFIX = /emul/ia32-linux
+endif
+
+DEB_BUILDDIR_lib64nss-nonlocal = debian/build_64
+configure/lib64nss-nonlocal:: DEB_BUILD_GNU_TYPE = x86_64-linux
+configure/lib64nss-nonlocal:: CC += -m64 -D__x86_64__
+cleanbuilddir/lib64nss-nonlocal:: clean/lib64nss-nonlocal
+configure/lib64nss-nonlocal:: DEB_CONFIGURE_EXTRA_FLAGS += --libdir="\$${prefix}/lib64"
+
+configure/lib32nss-nonlocal configure/lib64nss-nonlocal::
+       $(DEB_CONFIGURE_INVOKE) $(cdbs_configure_flags) $(DEB_CONFIGURE_EXTRA_FLAGS) $(DEB_CONFIGURE_USER_FLAGS)
+
+build/lib32nss-nonlocal build/lib64nss-nonlocal::
+       +$(DEB_MAKE_INVOKE) $(DEB_MAKE_BUILD_TARGET)
+
+install/lib32nss-nonlocal install/lib64nss-nonlocal::
+       +$(DEB_MAKE_INVOKE) $(DEB_MAKE_INSTALL_TARGET)
+
+clean/lib32nss-nonlocal clean/lib64nss-nonlocal::
+       +-$(DEB_MAKE_INVOKE) -k $(DEB_MAKE_CLEAN_TARGET)
+
+clean::
+       rm -f aclocal.m4 config.guess config.sub install-sh ltmain.sh \
+           configure config.h.in missing depcomp Makefile.in
This page took 0.401746 seconds and 5 git commands to generate.