[svn-inject] Applying Debian modifications to trunk
authorDon Armstrong <don@donarmstrong.com>
Wed, 28 Jan 2009 01:09:49 +0000 (01:09 +0000)
committerDon Armstrong <don@donarmstrong.com>
Wed, 28 Jan 2009 01:09:49 +0000 (01:09 +0000)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [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..32e6ec0
--- /dev/null
@@ -0,0 +1,6 @@
+unscd (0.36-1) unstable; urgency=low
+
+  * Initial packaging for Debian
+
+ -- Don Armstrong <don@debian.org>  Tue, 27 Jan 2009 16:53:56 -0800
+
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 b/debian/control
new file mode 100644 (file)
index 0000000..2042d9f
--- /dev/null
@@ -0,0 +1,28 @@
+Source: unscd
+Section: admin
+Priority: extra
+Standards-Version: 3.8.0
+Build-Depends: debhelper (>= 4), groff-base
+Maintainer: Don Armstrong <don@debian.org>
+
+Package: unscd
+Section: admin
+Priority: extra
+Architecture: any
+Depends: ${shlibs:Depends}
+Conflicts: nscd
+Homepage: http://busybox.net/~vda/unscd/
+Description: Micro Name Service Caching Daemon
+ A daemon which handles passwd, group and host lookups for running
+ programs and caches the results for the next query. You only need
+ this package if you are using slow Name Services like LDAP, NIS or
+ NIS+.
+ .
+ This particular NSCD is a complete rewrite of the GNU glibc nscd
+ which is a single threaded server process which offloads all NSS
+ lookups to worker children; cache hits are handled by pthe parent,
+ and only cache misses start worker children, making the parent immune
+ to resource leaks, hangs, and crashes in NSS libraries.
+ .
+ It should mostly be a drop-in replacement for existing installs using
+ nscd.
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..a7615c7
--- /dev/null
@@ -0,0 +1,8 @@
+Authors: Denys Vlasenko <vda.linux@googlemail.com>
+Webpage: http://busybox.net/~vda/unscd/
+Download: http://busybox.net/~vda/unscd/
+Debianized: Don Armstrong <don@debian.org> Tuesday, January 27, 2009 16:58:55 PST
+
+Copyright: Copyright (C) 2007 Denys Vlasenko. Licensed under the GPL version 2. 
+
+License: GPL version 2, available at /usr/share/common-licenses/GPL-2
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..05ae363
--- /dev/null
@@ -0,0 +1,66 @@
+#!/usr/bin/make -f
+
+#DH_VERBOSE = 1
+
+
+PREFIX=$(shell pwd)/debian/nscd/usr
+
+CFLAGS = -Wall -g
+
+INSTALL=install
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+    CFLAGS += -O0
+else
+    CFLAGS += -O2
+endif
+
+
+build: build-stamp
+build-stamp:
+       dh_testdir
+
+       gcc $(CFLAGS) -o nscd nscd-*.c
+
+       touch $@
+
+clean:
+       dh_testdir
+       dh_testroot
+
+       rm -f build-stamp
+
+       rm -f nscd
+
+       dh_clean
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+
+       $(INSTALL) -d $(PREFIX)/sbin/
+       $(INSTALL) -t $(PREFIX)/sbin/ nscd
+
+binary-indep:
+
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs 
+       dh_installdocs README
+       dh_installman
+       dh_installinit
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-arch
+.PHONY: build clean binary-arch binary-indep binary install