From 2a9738cefaf8a9496ff0683e18357b3548da0b28 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Sat, 10 Dec 2011 06:49:33 -0500 Subject: contrib: add a set of sample /etc/request-key.d files Add a contrib directory, a set of sample /etc/request-key.d files and a README that explains what they're for. This version sets the path to the upcall programs based on the configure options. Signed-off-by: Jeff Layton --- contrib/request-key.d/Makefile.am | 9 +++++++++ contrib/request-key.d/README | 7 +++++++ contrib/request-key.d/cifs.idmap.conf.in | 1 + contrib/request-key.d/cifs.spnego.conf.in | 1 + 4 files changed, 18 insertions(+) create mode 100644 contrib/request-key.d/Makefile.am create mode 100644 contrib/request-key.d/README create mode 100644 contrib/request-key.d/cifs.idmap.conf.in create mode 100644 contrib/request-key.d/cifs.spnego.conf.in (limited to 'contrib/request-key.d') diff --git a/contrib/request-key.d/Makefile.am b/contrib/request-key.d/Makefile.am new file mode 100644 index 0000000..5bda10d --- /dev/null +++ b/contrib/request-key.d/Makefile.am @@ -0,0 +1,9 @@ +noinst_DATA = cifs.idmap.conf cifs.spnego.conf +cifs.idmap.conf: cifs.idmap.conf.in + $(SED) 's,[@]sbindir@,$(sbindir),' $(srcdir)/$@.in > $@-t && mv $@-t $@ + +cifs.spnego.conf: cifs.spnego.conf.in + $(SED) 's,[@]sbindir@,$(sbindir),' $(srcdir)/$@.in > $@-t && mv $@-t $@ + +clean-local: + rm -f cifs.idmap.conf cifs.spnego.conf diff --git a/contrib/request-key.d/README b/contrib/request-key.d/README new file mode 100644 index 0000000..821f9ba --- /dev/null +++ b/contrib/request-key.d/README @@ -0,0 +1,7 @@ +As of version 1.5.5, prior to opening /etc/request-key.conf, the +request-key utility will look first in /etc/request-key.d for a file of +the key type name plus ".conf". These files are example config files +that distro packagers can use to have request-key autoconfigured to +use the cifs utilities that are installed. Typically, distro packagers +will want to drop the resulting .conf files into /etc/request-key.d. + diff --git a/contrib/request-key.d/cifs.idmap.conf.in b/contrib/request-key.d/cifs.idmap.conf.in new file mode 100644 index 0000000..a0e25f1 --- /dev/null +++ b/contrib/request-key.d/cifs.idmap.conf.in @@ -0,0 +1 @@ +create cifs.idmap * * @sbindir@/cifs.idmap %k diff --git a/contrib/request-key.d/cifs.spnego.conf.in b/contrib/request-key.d/cifs.spnego.conf.in new file mode 100644 index 0000000..4ca47b0 --- /dev/null +++ b/contrib/request-key.d/cifs.spnego.conf.in @@ -0,0 +1 @@ +create cifs.spnego * * @sbindir@/cifs.upcall %k -- cgit v1.2.3