From 7c98cc805cea47064442ef71b51847a0c32ebecb Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Sun, 25 Mar 2012 18:45:29 -0400 Subject: [PATCH] Initial nsswitch config repository --- debian/README | 6 ++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 20 ++++++++++++++++++++ debian/control.in | 17 +++++++++++++++++ debian/docs | 0 debian/rules | 23 +++++++++++++++++++++++ debian/source/format | 1 + debian/transform_nsswitch.conf.hcoop | 6 ++++++ 9 files changed, 79 insertions(+) create mode 100644 debian/README create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/control.in create mode 100644 debian/docs create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100755 debian/transform_nsswitch.conf.hcoop diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..a9efe13 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package hcoop-nsswitch-config +---------------------------- + +Comments regarding the Package + + -- Clinton Ebadi Sun, 25 Mar 2012 05:40:35 -0400 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..001edfe --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +hcoop-nsswitch-config (0) stable; urgency=low + + * Initial Release. + + -- Clinton Ebadi Sun, 25 Mar 2012 05:40:35 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1e9d765 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: hcoop-nsswitch-config +Section: hcoop-config/base +Priority: extra +Maintainer: Clinton Ebadi +Build-Depends: cdbs (>= 0.4.85~), + debhelper (>= 8~), + dh-buildinfo, + config-package-dev (>= 4.5~) +Standards-Version: 3.9.2 +Homepage: +#Vcs-Git: git://git.debian.org/collab-maint/hcoop-nsswitch-config.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/hcoop-nsswitch-config.git;a=summary + +Package: hcoop-nsswitch-config +Architecture: all +Depends: cdbs, libnss-afs, ${misc:Depends} +Provides: ${diverted-files} +Conflicts: ${diverted-files} +Description: HCoop nsswitch config + Use afs for passwd database \ No newline at end of file diff --git a/debian/control.in b/debian/control.in new file mode 100644 index 0000000..1cd229b --- /dev/null +++ b/debian/control.in @@ -0,0 +1,17 @@ +Source: hcoop-nsswitch-config +Section: hcoop-config/base +Priority: extra +Maintainer: Clinton Ebadi +Build-Depends: @cdbs@ +Standards-Version: 3.9.2 +Homepage: +#Vcs-Git: git://git.debian.org/collab-maint/hcoop-nsswitch-config.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/hcoop-nsswitch-config.git;a=summary + +Package: hcoop-nsswitch-config +Architecture: all +Depends: cdbs, libnss-afs, ${misc:Depends} +Provides: ${diverted-files} +Conflicts: ${diverted-files} +Description: HCoop nsswitch config + Use afs for passwd database \ No newline at end of file diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e69de29 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..98ae059 --- /dev/null +++ b/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DEB_DIVERT_EXTENSION =.hcoop +DEB_TRANSFORM_FILES_hcoop-nsswitch-config += \ + /etc/nsswitch.conf.hcoop + +# nsswitch.conf doesn't have an md5sum or something +ifneq ($(wildcard /usr/share/base-files/nsswitch.conf),) + DEB_CHECK_FILES_SOURCE_/etc/nsswitch.conf.hcoop = \ + /usr/share/base-files/nsswitch.conf +endif + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/config-package.mk diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/debian/transform_nsswitch.conf.hcoop b/debian/transform_nsswitch.conf.hcoop new file mode 100755 index 0000000..8684c42 --- /dev/null +++ b/debian/transform_nsswitch.conf.hcoop @@ -0,0 +1,6 @@ +#!/usr/bin/perl -0p + +# consult afs before all other sources +s/^passwd: (.*)$/passwd: afs $1/m or die; +s/^group: (.*)$/group: afs $1/m or die; + -- 2.20.1