Support for RPM in easy-rsa, nice. Feature-vise it's an ACK. Afaics autotools stuff is ok, but I'm no expert. Somebody else have a look please :).
-- Samuli Seppänen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock PS. We need Debian rules files too... that's probably something for me to look into. > Signed-off-by: Alon Bar-Lev <alon.bar...@gmail.com> > --- > Makefile.am | 2 + > configure.ac | 3 ++ > distro/Makefile.am | 15 +++++++++ > distro/rpm/Makefile.am | 15 +++++++++ > distro/rpm/easy-rsa.spec.in | 68 > +++++++++++++++++++++++++++++++++++++++++++ > 5 files changed, 103 insertions(+), 0 deletions(-) > create mode 100644 distro/Makefile.am > create mode 100644 distro/rpm/Makefile.am > create mode 100644 distro/rpm/easy-rsa.spec.in > > diff --git a/Makefile.am b/Makefile.am > index 743da35..156a3c0 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -35,6 +35,8 @@ MAINTAINERCLEANFILES = \ > > EXTRA_DIST = doc easy-rsa > > +SUBDIRS = distro > + > dist_doc_DATA = \ > COPYRIGHT.GPL \ > COPYING > diff --git a/configure.ac b/configure.ac > index 1e52ece..61703a2 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -48,5 +48,8 @@ AC_SUBST([easyrsadir]) > AC_CONFIG_FILES([ > Makefile > doc/Makefile > + distro/Makefile > + distro/rpm/Makefile > + distro/rpm/easy-rsa.spec > ]) > AC_OUTPUT > diff --git a/distro/Makefile.am b/distro/Makefile.am > new file mode 100644 > index 0000000..f26dc5a > --- /dev/null > +++ b/distro/Makefile.am > @@ -0,0 +1,15 @@ > +# > +# Easy-RSA -- This is a small RSA key management package, based on the > openssl > +# command line tool, that can be found in the easy-rsa > subdirectory > +# of the OpenVPN distribution. While this tool is primary > concerned > +# with key management for the SSL VPN application space, it can > also > +# be used for building web certificates. > +# > +# Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sa...@openvpn.net> > +# Copyright (C) 2006-2012 Alon Bar-Lev <alon.bar...@gmail.com> > +# > + > +MAINTAINERCLEANFILES = \ > + $(srcdir)/Makefile.in > + > +SUBDIRS = rpm > diff --git a/distro/rpm/Makefile.am b/distro/rpm/Makefile.am > new file mode 100644 > index 0000000..49fe48c > --- /dev/null > +++ b/distro/rpm/Makefile.am > @@ -0,0 +1,15 @@ > +# > +# Easy-RSA -- This is a small RSA key management package, based on the > openssl > +# command line tool, that can be found in the easy-rsa > subdirectory > +# of the OpenVPN distribution. While this tool is primary > concerned > +# with key management for the SSL VPN application space, it can > also > +# be used for building web certificates. > +# > +# Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sa...@openvpn.net> > +# Copyright (C) 2006-2012 Alon Bar-Lev <alon.bar...@gmail.com> > +# > + > +MAINTAINERCLEANFILES = \ > + $(srcdir)/Makefile.in > + > +dist_noinst_DATA = easy-rsa.spec > diff --git a/distro/rpm/easy-rsa.spec.in b/distro/rpm/easy-rsa.spec.in > new file mode 100644 > index 0000000..f0d9bfa > --- /dev/null > +++ b/distro/rpm/easy-rsa.spec.in > @@ -0,0 +1,68 @@ > +# > +# Easy-RSA -- This is a small RSA key management package, based on the > openssl > +# command line tool, that can be found in the easy-rsa > subdirectory > +# of the OpenVPN distribution. While this tool is primary > concerned > +# with key management for the SSL VPN application space, it can > also > +# be used for building web certificates. > +# > +# Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sa...@openvpn.net> > +# Copyright (C) 2006-2012 Alon Bar-Lev <alon.bar...@gmail.com> > +# > +# This program is free software; you can redistribute it and/or modify > +# it under the terms of the GNU General Public License version 2 > +# as published by the Free Software Foundation. > +# > +# This program is distributed in the hope that it will be useful, > +# but WITHOUT ANY WARRANTY; without even the implied warranty of > +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > +# GNU General Public License for more details. > +# > +# You should have received a copy of the GNU General Public License > +# along with this program (see the file COPYING included with this > +# distribution); if not, write to the Free Software Foundation, Inc., > +# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > +# > + > +Summary: Easy-RSA > +Name: easy-rsa > +Version: @PACKAGE_VERSION@ > +Release: 1 > +License: GPL-2 > +Group: Security/Cryptography > +Source: %{name}-%{version}.tar.gz > +Packager: OpenVPN Technologies, Inc. <sa...@openvpn.net> > +Vendor: OpenVPN Technologies, Inc. > +URL: http://openvpn.net > +BuildRoot: %{_tmppath}/%{name}-buildroot > +BuildArch: noarch > +Requires: openssl > +%description > +This is a small RSA key management package, based on the openssl > +command line tool, that can be found in the easy-rsa subdirectory > +of the OpenVPN distribution. While this tool is primary concerned > +with key management for the SSL VPN application space, it can also > +be used for building web certificates. > + > +%prep > +%setup -q > + > +%build > +%configure -q -docdir="%{_docdir}/%{name}-%{version}" > +%{__make} > + > +%install > +rm -rf "${RPM_BUILD_ROOT}" > +%{__make} install DESTDIR="${RPM_BUILD_ROOT}" > + > +%clean > +rm -rf "${RPM_BUILD_ROOT}" > + > +%files > + > +%defattr(-,root,root) > +%{_datadir}/easy-rsa > +%{_docdir} > + > +%changelog > +* Fri Feb 24 2012 Alon Bar-Lev <alon.bar...@gmail.com> > +- Created initial spec file