Johann Felix Soden píše v Čt 15. 03. 2012 v 22:08 +0100: 
> This originally for Debian's opencryptoki package written patch adds
> a short manpage for pkcs_slot.1
> 
> Signed-off-by: Johann Felix Soden <[email protected]>
> ---
>  configure.in            |    1 +
>  man/man1/Makefile.am    |    2 +-
>  man/man1/pkcs_slot.1.in |   22 ++++++++++++++++++++++
>  3 files changed, 24 insertions(+), 1 deletions(-)
>  create mode 100644 man/man1/pkcs_slot.1.in
> 
> diff --git a/configure.in b/configure.in
> index 483a092..87953df 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -664,6 +664,7 @@ AC_CONFIG_FILES([Makefile usr/Makefile \
>         man/man1/Makefile \
>         man/man1/pkcsconf.1 \
>         man/man1/pkcs11_startup.1 \
> +       man/man1/pkcs_slot.1 \
>         man/man5/Makefile \
>         man/man5/pk_config_data.5 \
>         man/man7/Makefile \
> diff --git a/man/man1/Makefile.am b/man/man1/Makefile.am
> index 8f0e5ee..eb1f374 100644
> --- a/man/man1/Makefile.am
> +++ b/man/man1/Makefile.am
> @@ -1,2 +1,2 @@
> -man1_MANS=pkcs11_startup.1 pkcsconf.1
> +man1_MANS=pkcs11_startup.1 pkcsconf.1 pkcs_slot.1
>  EXTRA_DIST = $(man1_MANS)
> diff --git a/man/man1/pkcs_slot.1.in b/man/man1/pkcs_slot.1.in
> new file mode 100644
> index 0000000..c541b03
> --- /dev/null
> +++ b/man/man1/pkcs_slot.1.in
> @@ -0,0 +1,22 @@
> +.TH PKCS_SLOT 1 "February 2010"  "@PACKAGE_VERSION@" "openCryptoki"
> +.SH NAME
> +pkcs_slot \- configuration program for opencryptoki
> +.SH SYNOPSIS
> +.B pkcs_slot
> +\fIdevicenumber depth\fR
> +.SH DESCRIPTION
> +
> +This utility is used internal by pkcs11_startup.
> +It writes the configuration file to disk as /etc/pkcs11/config_data.

this file name is Debian specific, it could use
@localstatedir@/lib/opencryptoki/pk_config_data instead.

It works fine in Fedora package because we explicitly set
@Localstatedir@ to /var when calling configure, but in general case it
expands to ${prefix}/var


Dan

> +
> +.SH "SEE ALSO"
> +.PD 0
> +.TP
> +\fBpkcs11_startup\fP(1),
> +.TP
> +\fBopencryptoki\fP(7),
> +.TP
> +\fBpkcsslotd\fP(8),
> +.TP
> +\fBpk_config_data\fP(5).
> +.PD



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Opencryptoki-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opencryptoki-tech

Reply via email to