Skip to content

Instantly share code, notes, and snippets.

@wakwanza
Last active August 29, 2015 14:16
Show Gist options
  • Save wakwanza/87e1417804acde4b1fab to your computer and use it in GitHub Desktop.
Save wakwanza/87e1417804acde4b1fab to your computer and use it in GitHub Desktop.
rpm spec to build the nfd for named data networking
%global logdir /var/log/%name
Name: nfd
Version: 0.3.1
Release: 1
Summary: Named Data Networking Forwarding Daemon
Group: System Environment/Network Daemons
License: GPL 3.0
URL: http://named-data.net/doc/NFD/current/
Source0: %{_sourcedir}/%{name}-%{version}.tar.bz2
BuildRequires: libpcap-devel, ndn-cxx
Requires: boost >= 1.48 ,libpcap
Requires: ndn-cxx = %{version}-%{release}
Provides: nfd = %{version}-%{release}
%description
NFD is a network forwarder that implements and evolves together with the Named Data Networking (NDN) protocol.
%prep
%setup -q
%build
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
./waf configure --sysconfdir=/etc
./waf
%install
./waf install
mkdir -p $RPM_BUILD_ROOT%logdir
%files
%dir %logdir
%post
/bin/mv /etc/ndn/nfd.conf.sample /etc/ndn/nfd.conf
%changelog
* Sun Mar 8 2015 Abdulrahim Umar <harsh001 (at) gmail.com> 0.3.1-1
- Initial RPM release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment