On Thu, Jun 18, 2020 at 02:08:20AM +0200, Klemens Nanni wrote:
> Fix the following, I can still split and combine secrets with it (as is
> expected):
> 
>       ===>  Building for ssss-0.5p1
>       cc -W -Wall -O2 -pipe -I/usr/local/include -L/usr/local/lib -lgmp -o 
> ssss-split ssss.c
>       ssss.c:174:33: warning: 'size' argument to memset is '0'; did you mean 
> to transpose the last two arguments? [-Wmemset-transposed-args]
>           memset(buf, degree / 8 + 1, 0);
>                                       ^
>       ssss.c:174:33: note: parenthesize the third argument to silence
> 
> Comment patch while here.
> OK?
Diff ontop to build and ship manuals since usages alone are not helpful:

        $ ssss-combine 
        Combine shares using Shamir's Secret Sharing Scheme.

        ssss-combine -t threshold [-x] [-q] [-Q] [-D] [-v]
        $ ssss-split   
        Split secrets using Shamir's Secret Sharing Scheme.

        ssss-split -t threshold -n shares [-w token] [-s level] [-x] [-q] [-Q] 
[-D] [-v]

OK?


Index: Makefile
===================================================================
RCS file: /cvs/ports/security/ssss/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile    12 Jul 2019 20:49:37 -0000      1.3
+++ Makefile    18 Jun 2020 00:27:24 -0000
@@ -3,7 +3,7 @@
 COMMENT=       split secrets using Shamir's Secret Sharing Scheme
 
 DISTNAME=      ssss-0.5
-REVISION=      1
+REVISION=      2
 
 CATEGORIES=    security
 
@@ -18,15 +18,25 @@ WANTLIB +=  c gmp
 
 MASTER_SITES=  http://point-at-infinity.org/ssss/
 
+BUILD_DEPENDS= converters/xmltoman
+
 LIB_DEPENDS=   devel/gmp
 
 MAKE_FLAGS=    CC="${CC}"
 CFLAGS+=       -I${LOCALBASE}/include -L${LOCALBASE}/lib
 
-ALL_TARGET=    ssss-split ssss-combine
+TOOLS=         ssss-split ssss-combine
+MANPAGE=       ssss.1
+ALL_TARGET=    ${TOOLS}
+
+post-build:
+       xmltoman ${WRKSRC}/ssss.manpage.xml >${WRKBUILD}/${MANPAGE}
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/ssss-split ${PREFIX}/bin
-       ${INSTALL_PROGRAM} ${WRKSRC}/ssss-combine ${PREFIX}/bin
+       ${INSTALL_MAN} ${WRKBUILD}/${MANPAGE} ${PREFIX}/man/man1/
+.for t in ${TOOLS}
+       ${INSTALL_PROGRAM} ${WRKBUILD}/${t} ${PREFIX}/bin/
+       ln ${PREFIX}/man/man1/${MANPAGE} ${PREFIX}/man/man1/${t}.1
+.endfor
 
 .include <bsd.port.mk>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/security/ssss/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST   1 Oct 2018 11:39:44 -0000       1.1.1.1
+++ pkg/PLIST   18 Jun 2020 00:27:34 -0000
@@ -1,3 +1,6 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2018/10/01 11:39:44 denis Exp $
 @bin bin/ssss-combine
 @bin bin/ssss-split
+@man man/man1/ssss-combine.1
+@man man/man1/ssss-split.1
+@man man/man1/ssss.1

Reply via email to