File opennhrp.spec of Package opennhrp

#
# spec file for package opennhrp
#
# Copyright (c) 2015, 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:           opennhrp
Version:        0.14.1
Release:        0
License:        MIT
Summary:        An NHRP implementation for Linux
Url:            http://sourceforge.net/projects/opennhrp/
Group:          Productivity/Networking/Security
Source:		http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:  pkgconfig(libcares)
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
OpenNHRP implements NBMA Next Hop Resolution Protocol (as defined in RFC 2332).
It makes it possible to create dynamic multipoint VPN Linux router using
NHRP, GRE and IPsec. It aims to be Cisco DMVPN compatible.

%prep
%setup -q

%build
make %{?_smp_mflags}

%install
make install DESTDIR="%{buildroot}"
# 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

%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*.gz

%changelog

openSUSE Build Service is sponsored by