Hello community, here is the log from the commit of package booth for openSUSE:Factory checked in at 2015-08-05 06:51:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/booth (Old) and /work/SRC/openSUSE:Factory/.booth.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "booth" Changes: -------- --- /work/SRC/openSUSE:Factory/booth/booth.changes 2015-08-02 22:45:59.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.booth.new/booth.changes 2015-08-05 06:51:53.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Aug 3 15:40:24 UTC 2015 - [email protected] + +- Update to version v0.2.0_97_gda68360: + + add booth-keygen (fate#319318) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ booth.spec ++++++ --- /var/tmp/diff_new_pack.1z4nvJ/_old 2015-08-05 06:51:54.000000000 +0200 +++ /var/tmp/diff_new_pack.1z4nvJ/_new 2015-08-05 06:51:54.000000000 +0200 @@ -135,8 +135,10 @@ %defattr(-,root,root,-) %{_sbindir}/booth %{_sbindir}/boothd +%{_sbindir}/booth-keygen %{_mandir}/man8/booth.8.gz %{_mandir}/man8/boothd.8.gz +%{_mandir}/man8/booth-keygen.8.gz %dir /usr/lib/ocf %dir /usr/lib/ocf/resource.d %dir /usr/lib/ocf/resource.d/pacemaker ++++++ booth.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/booth/.git_info new/booth/.git_info --- old/booth/.git_info 2015-07-31 13:59:36.000000000 +0200 +++ new/booth/.git_info 2015-08-03 17:38:16.000000000 +0200 @@ -1 +1 @@ -v0.2.0-96-g9dae592 +v0.2.0-97-gda68360 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/booth/Makefile.am new/booth/Makefile.am --- old/booth/Makefile.am 2015-07-31 13:56:22.000000000 +0200 +++ new/booth/Makefile.am 2015-08-03 17:01:03.000000000 +0200 @@ -45,7 +45,7 @@ dist_doc_DATA = AUTHORS README COPYING README.upgrade-from-v0.1 -notrans_dist_man8_MANS = docs/boothd.8 +notrans_dist_man8_MANS = docs/boothd.8 docs/booth-keygen.8 boothconfdir = ${BOOTHSYSCONFDIR} @@ -65,6 +65,8 @@ boothnoarch_SCRIPTS = script/service-runnable +sbin_SCRIPTS = script/booth-keygen + TESTS = test/runtests.py SUBDIRS = src docs diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/booth/README new/booth/README --- old/booth/README 2015-07-31 13:56:22.000000000 +0200 +++ new/booth/README 2015-08-03 17:01:03.000000000 +0200 @@ -188,8 +188,4 @@ recent than the previous one from the same peer are accepted. The time skew can be configured in the booth configuration file. -There is no way to configure booth to use a hash different from -SHA1. That should not be a problem in practice as SHA1 provides -sufficient security (the lesser MD5 would too). - # vim: set ft=asciidoc : diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/booth/booth.spec new/booth/booth.spec --- old/booth/booth.spec 2015-07-31 13:56:22.000000000 +0200 +++ new/booth/booth.spec 2015-08-03 17:01:03.000000000 +0200 @@ -124,8 +124,10 @@ %defattr(-,root,root,-) %{_sbindir}/booth %{_sbindir}/boothd +%{_sbindir}/booth-keygen %{_mandir}/man8/booth.8.gz %{_mandir}/man8/boothd.8.gz +%{_mandir}/man8/booth-keygen.8.gz %dir /usr/lib/ocf %dir /usr/lib/ocf/resource.d %dir /usr/lib/ocf/resource.d/pacemaker diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/booth/docs/Makefile.am new/booth/docs/Makefile.am --- old/booth/docs/Makefile.am 2015-07-31 13:56:22.000000000 +0200 +++ new/booth/docs/Makefile.am 2015-08-03 17:01:03.000000000 +0200 @@ -19,7 +19,7 @@ # MAINTAINERCLEANFILES = Makefile.in -asciiman = boothd.8.txt +asciiman = boothd.8.txt booth-keygen.8.txt doc_DATA = $(generated_docs) generated_docs = diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/booth/docs/booth-keygen.8.txt new/booth/docs/booth-keygen.8.txt --- old/booth/docs/booth-keygen.8.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/booth/docs/booth-keygen.8.txt 2015-08-03 17:01:03.000000000 +0200 @@ -0,0 +1,52 @@ +BOOTH-KEYGEN(8) +=============== +:doctype: manpage + + +NAME +---- +booth-keygen - generate authentication key + + +SYNOPSIS +-------- +*booth-keygen* ['-h'] ['auth-file'] + + +DESCRIPTION +----------- +This program generates an authentication key suitable for 'booth' +using '/dev/urandom' as source. + + +PARAMETERS +---------- + +*'auth-file'*:: + The file to contain the generated key. Defaults to + '/etc/booth/authkey'. Use absolute paths. + + +OPTIONS +------- +*-h*, *--help*:: + Print usage. + + +EXIT STATUS +----------- +*0*:: + Success. + +*!= 0*:: + File already exists or some other error. + + +COPYING +------- + +Copyright (C) 2015 Dejan Muhamedagic <[email protected]> + +Free use of this software is granted under the terms of the GNU +General Public License (GPL). + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/booth/script/booth-keygen new/booth/script/booth-keygen --- old/booth/script/booth-keygen 1970-01-01 01:00:00.000000000 +0100 +++ new/booth/script/booth-keygen 2015-08-03 17:01:03.000000000 +0200 @@ -0,0 +1,63 @@ +#!/bin/sh +# +# Generate authentication key for booth +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of version 2 of the GNU General Public License as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# Further, this software is distributed without any warranty that it is +# free of the rightful claim of any third person regarding infringement +# or the like. Any license provided herein, whether implied or +# otherwise, applies only to this software file. Patent licenses, if +# any, provided herein do not apply to combinations of this program with +# other software, or any other product whatsoever. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write the Free Software Foundation, +# Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +# + +DFLT_AUTHFILE=/etc/booth/authkey +KEYSIZE=64 +# /dev/urandom should be good enough +RND_SRC=/dev/urandom + +usage() { + cat<<EOF +usage: $0 [-h] [auth-file] +EOF + exit +} +error() { + echo "ERROR: $*" >&2 +} +fatal() { + error $* + exit 1 +} + +case "$1" in +"-h"|"--help"|"-?") usage;; +/*|"") : ;; +*) fatal "please use absolute path for the key file" ;; +esac + +keyf=${1:-$DFLT_AUTHFILE} + +if test -f $keyf; then + fatal "file $keyf already exists" +fi + +umask 077 +dd if=$RND_SRC of=$keyf bs=$KEYSIZE count=1 status=none +rc=$? +if [ $rc -ne 0 ]; then + exit $rc +fi + +chown root:root $keyf
