diff options
author | Jeff Layton <jlayton@samba.org> | 2011-12-10 06:49:33 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2011-12-10 06:49:33 -0500 |
commit | 2a9738cefaf8a9496ff0683e18357b3548da0b28 (patch) | |
tree | 8df55b6787099bb63177e1149334d320c0201d97 | |
parent | c3fff275e873fd9b9639124e993dd4ad737614db (diff) | |
download | cifs-utils-2a9738cefaf8a9496ff0683e18357b3548da0b28.tar.gz cifs-utils-2a9738cefaf8a9496ff0683e18357b3548da0b28.tar.bz2 cifs-utils-2a9738cefaf8a9496ff0683e18357b3548da0b28.zip |
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 <jlayton@samba.org>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | contrib/Makefile.am | 1 | ||||
-rw-r--r-- | contrib/README | 0 | ||||
-rw-r--r-- | contrib/request-key.d/Makefile.am | 9 | ||||
-rw-r--r-- | contrib/request-key.d/README | 7 | ||||
-rw-r--r-- | contrib/request-key.d/cifs.idmap.conf.in | 1 | ||||
-rw-r--r-- | contrib/request-key.d/cifs.spnego.conf.in | 1 |
8 files changed, 22 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 934ea6f..cb20442 100644 --- a/Makefile.am +++ b/Makefile.am @@ -69,3 +69,5 @@ clean-local-aclprogs: if CONFIG_CIFSACL rm -f getcifsacl.8 getcifsacl.8-t setcifsacl.8 setcifsacl.8-t endif + +SUBDIRS = contrib diff --git a/configure.ac b/configure.ac index 474b3f4..8476f94 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ AC_INIT([cifs-utils], [5.2.1], [cifs-utils@samba.org], [cifs-utils], [http://linux-cifs.samba.org/cifs-utils/]) AC_CONFIG_SRCDIR([replace.h]) AC_CONFIG_HEADERS([config.h]) -AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([Makefile contrib/Makefile contrib/request-key.d/Makefile]) AC_CONFIG_MACRO_DIR(aclocal) AM_INIT_AUTOMAKE diff --git a/contrib/Makefile.am b/contrib/Makefile.am new file mode 100644 index 0000000..4d4916a --- /dev/null +++ b/contrib/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = request-key.d diff --git a/contrib/README b/contrib/README new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/contrib/README 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 |