File dmevpn.spec of Package dmevpn

#
# spec file for package dmevpn
#
# Copyright (c) 2017, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
#


Name:           dmevpn
Version:        0.0.0.git1483641849.55bd8c4
Release:        0
Summary:        Dynamic Multipoint E-VPN
License:        MIT
Group:          Productivity/Networking/Routing
Url:            https://github.com/saumoh/dmevpn
Source:         %{name}-%{version}.tar.xz
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libcares)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Dynamic Multipoint E-VPN. Using NHRP to build cross DC VxLAN Tunnels.
This work is based off opennhrp source code.
Like DMVPN which enables interconnection of layer-3 networks across
non-broadcast networks DMEVPN enables interconnecting layer-2 networks
across a non-broadcast networks (like Internet). Specifically, if you
have a requirement to extend Vxlan islands across a non-broadcast
network then you can use DMEVPN. DMEVPN can be an alternative to existing,
propiterary, offerings like EVPN.

%prep
%setup -q

%build
make %{?_smp_mflags}

%install
%make_install
## remove unessessary file
rm %{buildroot}/%{_datadir}/doc/opennhrp/README
## FIXME - should be handled properly
rm %{buildroot}/%{_sysconfdir}/opennhrp/opennhrp-script
rm %{buildroot}/%{_sysconfdir}/opennhrp/racoon-ph1dead.sh
rm %{buildroot}/%{_sysconfdir}/opennhrp/racoon-ph1down.sh
## FIXME: fix manpage permissions
chmod -x %{buildroot}/%{_mandir}/man?/opennhrp*


%files
%defattr(-,root,root)
%doc AUTHORS MIT-LICENSE.txt NEWS README TODO
%dir %{_sysconfdir}/opennhrp/
%config %{_sysconfdir}/opennhrp/opennhrp.conf
%{_sbindir}/opennhrp
%{_sbindir}/opennhrpctl
%{_mandir}/man?/opennhrp*%{ext_man}

%changelog
openSUSE Build Service is sponsored by