commit 1ec4d7a9ce7979f9b998f732c4542711caf60f8640250b187ad834d5315a7b2c Author: Marius Tomaschewski Date: Tue Nov 29 08:34:59 2016 +0000 Accepting request 411583 from home:stefjakobs Hi, I'm not sure if this is the right location for this package, but as easy-rsa is a sub project of openvpn it might fit in the vpn project. Thanks for considering to accept this package. Stefan OBS-URL: https://build.opensuse.org/request/show/411583 OBS-URL: https://build.opensuse.org/package/show/network:vpn/easy-rsa?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/easy-rsa-3.0.1.tar.gz b/easy-rsa-3.0.1.tar.gz new file mode 100644 index 0000000..fa28f63 --- /dev/null +++ b/easy-rsa-3.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1fff75a27ea7da3f37fbfed715633f55b9ca25f5b14cac38e525c5c995e68ae +size 44242 diff --git a/easy-rsa.changes b/easy-rsa.changes new file mode 100644 index 0000000..ee38181 --- /dev/null +++ b/easy-rsa.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +Sat Jan 2 21:13:06 UTC 2016 - projects@localside.net + +- update to version 3.0.1 + * cab4a07 Fix typo: Hellman + (ljani: Github) + + * 171834d Fix typo: Default + (allo-: Github) + + * 8b42eea Make aes256 default, replacing 3des + (keros: Github) + + * f2f4ac8 Make -utf8 default + (roubert: Github) + + +------------------------------------------------------------------- +Sun Apr 5 19:48:24 UTC 2015 - projects@localside.net + +- initial upload: 3.0.0-rc2 (2014/07/27) + diff --git a/easy-rsa.spec b/easy-rsa.spec new file mode 100644 index 0000000..54acd22 --- /dev/null +++ b/easy-rsa.spec @@ -0,0 +1,58 @@ +# +# spec file for package easy-rsa +# +# Copyright (c) 2015 Stefan Jakobs. +# +# 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. + +Name: easy-rsa +Version: 3.0.1 +Release: 1 +License: GPL-2.0 +Summary: CLI utility to build and manage a PKI CA +Url: https://github.com/OpenVPN/easy-rsa +Group: Productivity/Networking/Security +Source: %{name}-%{version}.tar.gz +Patch0: easyrsa.packaging.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%description +easy-rsa is a CLI utility to build and manage a PKI CA. In laymen's terms, +this means to create a root certificate authority, and request and sign +certificates, including sub-CAs and certificate revokation lists (CRL). + +%prep +%setup -q +%patch0 -p0 +sed -i 's;#\(set_var EASYRSA \)"$PWD";\1"/etc/easy-rsa";' easyrsa3/vars.example +mv README.quickstart.md README.quickstart +for f in doc/*.md; do + mv $f ${f%.md} +done + +%build + +%install +install -dm0700 %{buildroot}/%{_sysconfdir}/easy-rsa/ +install -dm0755 %{buildroot}/%{_sysconfdir}/easy-rsa/x509-types +install -Dm0644 easyrsa3/vars.example %{buildroot}/%{_sysconfdir}/easy-rsa/vars +install -Dm0644 easyrsa3/openssl-1.0.cnf %{buildroot}/%{_sysconfdir}/easy-rsa/openssl-1.0.cnf +install -Dm0644 easyrsa3/x509-types/* %{buildroot}/%{_sysconfdir}/easy-rsa/x509-types/ +install -Dm0755 easyrsa3/easyrsa %{buildroot}/%{_bindir}/easyrsa + + +%files +%defattr(-,root,root) +%doc KNOWN_ISSUES README README.quickstart COPYING +%doc doc/* +%{_bindir}/easyrsa +%config(noreplace) %{_sysconfdir}/easy-rsa + diff --git a/easyrsa.packaging.patch b/easyrsa.packaging.patch new file mode 100644 index 0000000..30ab1bf --- /dev/null +++ b/easyrsa.packaging.patch @@ -0,0 +1,12 @@ +--- easyrsa3/easyrsa.orig 2015-04-05 21:42:25.422949081 +0200 ++++ easyrsa3/easyrsa 2015-04-05 21:43:55.493395425 +0200 +@@ -972,6 +972,9 @@ + # command-line path: + if [ -f "$EASYRSA_VARS_FILE" ]; then + vars="$EASYRSA_VARS_FILE" ++ # packaging defaults ++ elif [ -f "/etc/easy-rsa/vars" ]; then ++ vars="/etc/easy-rsa/vars" + # EASYRSA_PKI, if defined: + elif [ -n "$EASYRSA_PKI" ] && [ -f "$EASYRSA_PKI/vars" ]; then + vars="$EASYRSA_PKI/vars"