packaging: rpm: initial add

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
Alon Bar-Lev 2012-02-24 12:39:34 +02:00 committed by Eric F Crist
parent 4886d517e5
commit 5499b10925
5 changed files with 102 additions and 1 deletions

View File

@ -35,7 +35,7 @@ MAINTAINERCLEANFILES = \
EXTRA_DIST = easy-rsa
SUBDIRS = doc
SUBDIRS = doc distro
dist_doc_DATA = \
COPYRIGHT.GPL \

View File

@ -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

15
distro/Makefile.am Normal file
View File

@ -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. <sales@openvpn.net>
# Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com>
#
MAINTAINERCLEANFILES = \
$(srcdir)/Makefile.in
SUBDIRS = rpm

15
distro/rpm/Makefile.am Normal file
View File

@ -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. <sales@openvpn.net>
# Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@gmail.com>
#
MAINTAINERCLEANFILES = \
$(srcdir)/Makefile.in
dist_noinst_DATA = easy-rsa.spec

View File

@ -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. <sales@openvpn.net>
# Copyright (C) 2006-2012 Alon Bar-Lev <alon.barlev@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. <sales@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.barlev@gmail.com>
- Created initial spec file