Sisyphus repository
Last update: 26 november 2020 | SRPMs: 17744 | Visits: 19694074
en ru br
ALT Linux repos
S:0.9.6-alt4
5.0: 0.9.6-alt1
4.1: 0.9.6-alt1

Group :: System/Servers
RPM: pks

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Summary: OpenPGP Public Key Server
Name: pks
Version: 0.9.6
Release: alt4
License: BSD-4-Clause
Url: http://pks.sourceforge.net/
Group: System/Servers

# http://dl.sf.net/sourceforge/pks/%name-%version.tar.bz2

Source: %name-%version.tar
Source1: %name.init
Patch1: mkpksdconf.in.patch
Patch2: pks-alt-no-static-libs.patch

Requires: %name-db = %EVR

%description
This is a OpenPGP Public Key Server. It allows users to store and lookup
OpenPGP public keys from the server's database. Additionally, it can
synchronize with other servers to make a distributed, replicated
database of public keys.

This package provides only the server side. The client side is usually
an OpenPGP application (like PGP or GPG), although a simple HTML form
is provided to allow queries from a web page.

%package utils
Summary: OpenPGP Public Key Server Utilities
Group: System/Configuration/Other
Requires: %name = %EVR

%description utils
This package contains optional utilities for use with the
OpenPGP Public Key Server.

%package db
Summary: OpenPGP Public Key Server Database Engine
Group: Databases
Requires: %name = %EVR

%description db
This package contains the database utilities for use with the
OpenPGP Public Key Server.

%package db-devel
Summary: OpenPGP Public Key Server Database Libraries
Group: Development/Databases
Requires: %name = %EVR

%description db-devel
This package contains the database headers and libraries for use with the
OpenPGP Public Key Server.

%prep
%setup
%patch1 -p0
%patch2 -p2

%build
%configure  \
--datadir=%_datadir/%name \
--sharedstatedir=%_localstatedir/%name \
--localstatedir=%_localstatedir/%name

%make
%make all-utils

%install
%make DESTDIR="%buildroot" install
%make DESTDIR="%buildroot" install-utils

install -pm 0755 -D %SOURCE1 %buildroot%_initdir/%name
cp db2-sleepycat/LICENSE db2-sleepycat-LICENSE
cp db2-sleepycat/README db2-sleepycat-README
mkdir -p  %buildroot%_runtimedir/%name %buildroot%_localstatedir/%name/incoming %buildroot%_localstatedir/%name/db

%pre
%_sbindir/groupadd -f -r _pks >/dev/null 2>&1 || :
%_sbindir/useradd -r -g _pks -d %_localstatedir/%name -s /dev/null \
   -c "PKS user" -M -n _pks >/dev/null 2>&1 || :

%files
%doc README NEWS LICENSE db2-sleepycat-LICENSE db2-sleepycat-README
%doc mail_intro
%doc pks_help.de pks_help.dk pks_help.en pks_help.es pks_help.fi pks_help.fr pks_help.no
%doc MRHKP

%verify(not md5 size mtime) %config %_sysconfdir/pksd.conf
%_initdir/pks
%_datadir/pks
%_bindir/pksclient
%_sbindir/pksd
%_bindir/pksdctl
%_bindir/pgpsplit
%_bindir/pks-mail.sh
%_bindir/pks-queue-run.sh
%_man5dir/*.5*
%_man8dir/*.8*
%_localstatedir/%name/index.html
%attr(2770,root,_pks) %dir %_runtimedir/%name
%attr(2770,root,_pks) %dir %_localstatedir/%name
%attr(2770,root,_pks) %dir %_localstatedir/%name/incoming

%files utils
%_bindir/pksmailreq
%_bindir/wwwtest
%_bindir/pgpdump
%_bindir/kvcv
%_bindir/kxa
%_bindir/pkscheck
%_bindir/pksdump

%files db
%_bindir/db_archive
%_bindir/db_checkpoint
%_bindir/db_deadlock
%_bindir/db_dump
%_bindir/db_load
%_bindir/db_printlog
%_bindir/db_recover
%_bindir/db_stat
%attr(2770,root,_pks) %dir %_localstatedir/%name/db

%files db-devel
%_includedir/db2/db.h
%_includedir/db2/db_185.h
%_includedir/db2/db_cxx.h

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin