File bondctl.spec of Package bondctl
# vim: set sw=4 ts=4 et nu:
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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: bondctl
Version: 1.8
Release: 0
Summary: Network Interface Bonding Control Script
Source: http://www.digitalmages.com/projects/bondctl/files/bondctl-%{version}.tar.gz
Patch1: bondctl-fix_install.patch
Patch2: bondctl-rename_ifenslave.patch
URL: http://www.digitalmages.com/projects/bondctl/
Group: Productivity/Networking/System
License: GPL-2.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: perl sed make
BuildArch: noarch
Requires: iproute2
BuildRequires: iproute2
BuildRequires: module-init-tools
%description
bondctl is a utility that allows you create, configure, and destroy bonding
interfaces on Linux. It duplicates all the functionality of ifenslave with
additional capabilities, including the ability to configure parameters on a
per-master basis. It's a simple script that works off of sysfs and is
compatible with the busybox implementation of ash, making it suitable for
initramfs environments.
%prep
%setup -q
%patch1
%patch2
%build
%install
%__make \
DESTDIR="%{buildroot}" \
SBINDIR="/sbin" \
MANDIR="%{_mandir}" \
IPROUTE="/sbin/ip" \
all
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc LICENSE README CHANGELOG
/sbin/bondctl
/sbin/bondctl-ifenslave
%doc %{_mandir}/man8/bondctl.8%{ext_man}