Accepting request 680234 from home:mnhauke

Initial package for fwknop

OBS-URL: https://build.opensuse.org/request/show/680234
OBS-URL: https://build.opensuse.org/package/show/network/fwknop?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2019-03-01 08:53:21 +00:00
committed by Git OBS Bridge
commit 176b60bc8c
8 changed files with 232 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
fwknop-2.6.10.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f6c09bec97ed8e474a98ae14f9f53e1bcdda33393f20667b6af3fb6bb894ca77
size 1787914

View File

@@ -0,0 +1,6 @@
-----BEGIN PGP SIGNATURE-----
iF0EABECAB0WIQRNZkSp2gNpBL2iy5DmyeM1DT50EAUCW2jrrQAKCRDmyeM1DT50
EHGMAJ4s18ZMA6tut1o6sw8ZMHRKpuuCYACePh2dDiUqCllN3emXAb0w3qIVGLM=
=GQEE
-----END PGP SIGNATURE-----

8
fwknop.changes Normal file
View File

@@ -0,0 +1,8 @@
-------------------------------------------------------------------
Mon Feb 25 10:40:32 UTC 2019 - Martin Hauke <mardnh@gmx.de>
- Initial package, version 2.6.10
based on home:dj9pz:network:utilities/fwknop
- Run spec-cleaner
- Add source verification
- Update to version 2.6.10

40
fwknop.keyring Normal file
View File

@@ -0,0 +1,40 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGiBEiuHkYRBAC1nayUoxwEKldSRsl5GP72b3qGqen3fcpDiwgGgOPer4iC29MF
ZLYSYHzL1vKd+gJE/iDWY/olNlpkX1eRopeaeHOtDvugwQ/vIG3DNLduWQlzpPt5
K9wHtXQJ/yNEbWEm4a/W2jBD2U95PESKA32a6wJ73FCTFFfY6nttIlQ8TwCg7/ig
sUyw8XYOORRDK7ZIXf0dwokD/2tgVg1qSH+ZSb+0p/i27OtcW9fc1/S7BF1zZJaB
2zwhbcQrr6tedF0XioKWk2FAo97bbyDdgHJtzGLMKuSN+eavdOcxGhefGSWQ2lmh
TIM08LK4rmTDvAgBYQoudTgF2TPhpZa+olzghehWYq2pRZmGQx1gTXG+zwSrfH/U
goCEA/9NY7LhzwJBHKReS1QLz4XO5JM1P0iKyC1dXSHZgJBIhxwd293PVE85v2p/
97rDV99UmQ6Oa6RgST3Dw6nYep+CyoHgJoFj47kTcUQWHbMi3DiQrRLoxMR5ocBX
r7QSQC8KQRXSeByoQDgkKezxeAefnE+5V2Dje0MLSKuTR9KBuLRLTWljaGFlbCBS
YXNoIChTaWduaW5nIGtleSBmb3IgY2lwaGVyZHluZS5vcmcgcHJvamVjdHMpIDxt
YnJAY2lwaGVyZHluZS5vcmc+iGAEExECACAFAkiuHkYCGwMGCwkIBwMCBBUCCAME
FgIDAQIeAQIXgAAKCRDmyeM1DT50EP2EAKCxe5a5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Z4
xyPwxMku+LF7cDGmKRnqP0VTDHvTVUnoS+mohmhvhyEaHQ+kxMeh0HlOvDJl4isD
A7qNySLLx7D82X0USahJJEgPm/wH6oQOEOr3shTqJJUr46uC9QbYRjZney+xCmd3
HtwUY0qJBdOam6+lKZXyn7M3sFP4sGTbPf4y2GKkgYR5LTLsxyIl6SiEFhTus5wM
BqQD91A9G0UEOLGjfqbKL+qptGf9siEbr3RAcUeDUn9CW4j14N6Jj9LCZFh1iyi0
s0Gjl6LKRZ3X90SWfUmx1Jzo52qxxcgKqchxukGEuhbb8KRtpu7YpE5+ncYF+ygH
t5sA8spC7h1l2S5gBjaJgC2KbPphIjAJnMbaqQ9uz7NDSfohD8IrCrG6E5J5n3u9
EaMu9YhJBBgRAgAJBQJIrh6NAhsMAAoJEObJ4zUNPnQQjgoAoNCiE0NL9wGfL7Oi
LlG8nmByEYvYAKDf/tbFAI5QPX1OVSZcy6xz43Gs5Q==
=5wG2
-----END PGP PUBLIC KEY BLOCK-----

138
fwknop.spec Normal file
View File

@@ -0,0 +1,138 @@
#
# spec file for package fwknop
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define soname 3
%if ! %{defined _fillupdir}
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
Name: fwknop
Version: 2.6.10
Release: 0
Summary: The fwknop Client
License: GPL-2.0-or-later
Group: Productivity/Networking/Security
URL: https://www.cipherdyne.org/fwknop/
Source: https://www.cipherdyne.org/fwknop/download/%{name}-%{version}.tar.bz2
Source1: https://www.cipherdyne.org/fwknop/download/%{name}-%{version}.tar.bz2.asc#/%{name}-%{version}.tar.bz2.sig
# https://www.cipherdyne.org/signing_key
Source2: %{name}.keyring
Source3: %{name}d.service
BuildRequires: gdbm-devel
BuildRequires: gpg2
BuildRequires: iptables
BuildRequires: libgpgme-devel
BuildRequires: libpcap-devel
BuildRequires: systemd-rpm-macros
%description
fwknop stands for the "FireWall KNock OPerator", and implements an authorization
scheme called Single Packet Authorization (SPA).
%package -n libfko%{soname}
Summary: The Firewall Knock Operator Library
Group: System/Libraries
%description -n libfko%{soname}
The Firewall Knock Operator library, libfko, provides the Single Packet
Authorization implementation and API for the other fwknop components.
%package -n libfko-devel
Summary: The Development Files for the Firewall Knock Operator Library
Group: Development/Libraries/C and C++
Requires: libfko%{soname} = %{version}
Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq}
%description -n libfko-devel
The Firewall Knock Operator library, libfko, provides the Single Packet
Authorization implementation and API for the other fwknop components.
This subpackage contains libraries and header files for developing
applications that want to make use of libfko.
%package -n fwknopd
Summary: The fwknop Server
Group: Productivity/Networking/Security
%{?systemd_requires}
%description -n fwknopd
fwknop stands for the "FireWall KNock OPerator", and implements an authorization
scheme called Single Packet Authorization (SPA).
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%check
make %{?_smp_mflags} check
%install
%make_install
install -D -m 644 %{SOURCE3} %{buildroot}/%{_unitdir}/%{name}d.service
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}d
find %{buildroot} -type f -name "*.la" -delete -print
%pre -n fwknopd
%service_add_pre %{name}d.service
%post -n fwknopd
%service_add_post %{name}d.service
%preun -n fwknopd
%service_del_preun %{name}d.service
%postun -n fwknopd
%service_del_postun %{name}d.service
%post -n libfko%{soname} -p /sbin/ldconfig
%post -n libfko-devel
%install_info --info-dir=%{_infodir} %{_infodir}/libfko.info.gz
%postun -n libfko%{soname} -p /sbin/ldconfig
%postun -n libfko-devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libfko.info.gz
%files
%license COPYING
%doc AUTHORS CREDITS NEWS README
%{_bindir}/fwknop
%{_mandir}/man8/fwknop.8%{?ext_man}
%files -n fwknopd
%{_unitdir}/%{name}d.service
%{_sbindir}/rc%{name}d
%{_sysconfdir}/fwknop
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/fwknop/access.conf
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/fwknop/fwknopd.conf
%{_sbindir}/fwknopd
%{_mandir}/man8/fwknopd.8%{?ext_man}
%files -n libfko%{soname}
%{_libdir}/libfko.so.%{soname}*
%files -n libfko-devel
%{_includedir}/fko.h
%{_libdir}/libfko.so
%{_infodir}/libfko.info%{?ext_info}
%changelog

13
fwknopd.service Normal file
View File

@@ -0,0 +1,13 @@
[Unit]
Description=Firewall Knock Operator Daemon
After=network.target
[Service]
Type=forking
PIDFile=/var/run/fwknopd.pid
ExecStart=/usr/sbin/fwknopd
ExecReload=/usr/sbin/fwknopd -R
ExecStop=/usr/sbin/fwknopd -K
[Install]
WantedBy=multi-user.target