Distribute a minimal opensc.conf

closes https://github.com/OpenSC/OpenSC/issues/1102
This commit is contained in:
Frank Morgner 2018-06-27 01:10:16 +02:00
parent e226ad265a
commit c003f3825e
4 changed files with 18 additions and 15 deletions

3
.gitignore vendored
View File

@ -82,8 +82,7 @@ doc/tools/opensc-asn1
doc/tools/opensc-notify
doc/files/opensc.conf.5.xml
etc/opensc.conf.win
etc/opensc.conf
etc/opensc.conf.example
src/common/compat_getopt_main
src/minidriver/opensc-minidriver.inf
src/tools/cardos-tool

View File

@ -1,20 +1,21 @@
CV_CERTS = DESRCACC100001
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
DISTCLEANFILES = opensc.conf
DISTCLEANFILES = opensc.conf.example
EXTRA_DIST = $(CV_CERTS) Makefile.mak
SUFFIXES = .in
dist_noinst_DATA = opensc.conf.in
nodist_noinst_DATA = opensc.conf
dist_noinst_DATA = opensc.conf.example.in
nodist_noinst_DATA = opensc.conf.example
dist_sysconf_DATA = opensc.conf
# Make sure we build this every time
# as there is no dependency for this.
# Can be removed if MSVC is not requried.
force:
opensc.conf: opensc.conf.in force
opensc.conf.example: opensc.conf.example.in force
.in:
@sed \
@ -30,16 +31,12 @@ opensc.conf: opensc.conf.in force
-e 's|@PROFILE_DIR_DEFAULT[@]|$(PROFILE_DIR_DEFAULT)|g' \
< $< > $@
install-exec-hook: opensc.conf
$(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \
$(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \
else \
$(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf"; \
fi
install-exec-hook: opensc.conf.example
$(MKDIR_P) "$(DESTDIR)$(docdir)"
$(INSTALL_DATA) opensc.conf.example "$(DESTDIR)$(docdir)/opensc.conf";
uninstall-hook: opensc.conf
rm -f "$(DESTDIR)$(sysconfdir)/opensc.conf.new" "$(DESTDIR)$(sysconfdir)/opensc.conf"
uninstall-hook: opensc.conf.example
rm -f "$(DESTDIR)$(docdir)/opensc.conf"
if ENABLE_OPENPACE
install-data-local:

7
etc/opensc.conf Normal file
View File

@ -0,0 +1,7 @@
app default {
# debug = 3;
# debug_file = opensc-debug.txt
framework pkcs15 {
# use_file_caching = true;
}
}