From: don Date: Wed, 28 Jan 2009 01:09:49 +0000 (+0000) Subject: [svn-inject] Applying Debian modifications to trunk X-Git-Tag: debian/0.51-1~46 X-Git-Url: https://git.donarmstrong.com/unscd.git?a=commitdiff_plain;h=d568901ab3633792dfc3e1a8056739a8fe72203b;p=unscd.git [svn-inject] Applying Debian modifications to trunk --- diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..32e6ec0 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +unscd (0.36-1) unstable; urgency=low + + * Initial packaging for Debian + + -- Don Armstrong Tue, 27 Jan 2009 16:53:56 -0800 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2042d9f --- /dev/null +++ b/debian/control @@ -0,0 +1,28 @@ +Source: unscd +Section: admin +Priority: extra +Standards-Version: 3.8.0 +Build-Depends: debhelper (>= 4), groff-base +Maintainer: Don Armstrong + +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 index 0000000..a7615c7 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,8 @@ +Authors: Denys Vlasenko +Webpage: http://busybox.net/~vda/unscd/ +Download: http://busybox.net/~vda/unscd/ +Debianized: Don Armstrong 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 index 0000000..05ae363 --- /dev/null +++ b/debian/rules @@ -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