Sisyphus repositório
Última atualização: 22 fevereiro 2020 | SRPMs: 17500 | Visitas: 17474505
en ru br
ALT Linux repositórios

Group :: Rede/Outros
RPM: crda

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define crda_lib /lib/crda
%define sbindir /sbin
%define _db wireless-regdb
%define _db_date 2018.05.31

Summary: Regulatory compliance agent for 802.11 wireless networking
Name: crda
Version: 4.14
Release: alt3.%_db_date.qa1
License: copyleft-next 0.3.0
Group: Networking/Other


Requires: firmware-%_db = %EVR

Source: %name-%version.tar
Source1: %_db.tar
Source2: setregdomain
Source3: setregdomain.1

# Add udev rule to call setregdomain on wireless device add

Patch: crda-3.18-regulatory-rules-setregdomain.patch
# Do not call ldconfig in crda Makefile
Patch1: crda-remove-ldconfig.patch
Patch2: crda-ldflags.patch
Patch3: %_db-fw-dependency.patch
Patch4: %_db-pubcert-conf.patch

BuildRequires: libgcrypt-devel openssl chrpath
BuildRequires: python-devel python-module-future python-module-attrs python-module-m2crypto

BuildRequires: kernel-headers >= 2.6.27
BuildRequires: libnl-devel >= 1.1

CRDA acts as the udev helper for communication between the kernel
and userspace for regulatory compliance. It relies on nl80211
for communication. CRDA is intended to be run only through udev
communication from the kernel.

For more information see:

%package devel
Summary: Header files for use with libreg
Group: Development/Tools
BuildArch: noarch

%description devel
Header files to make use of libreg for accessing regulatory info.

%package -n firmware-%_db
Summary: Central Regulatory Database
Group: System/Kernel and hardware
BuildArch: noarch

%description -n firmware-%_db
This repository contains the regulatory database file for use with Central
Regulatory Database Agent daemon (CRDA).

%setup -c
%setup -T -D -a 1

cd %name-%version
%patch -p1 -b .setregdomain
%patch1 -p1 -b .ldconfig-remove
%patch2 -p2 -b .ldflags
cd ../%_db
%patch3 -p2 -b .fwsign
%patch4 -p2 -b .pubcert

%add_optflags %optflags_shared
export CFLAGS="%optflags -Wno-error=unused-const-variable"

# Use our own signing key to generate regulatory.bin

cd %_db
%make_build maintainer-clean
%make_build REGDB_PRIVKEY=key.priv.pem

# Build CRDA using the new key and regulatory.bin from above

cd ../%name-%version
cp ../%_db/ pubkeys

%make SBINDIR=%sbindir/ LIBDIR=%crda_lib \
REG_BIN=../%_db/regulatory.bin V=1

cd crda-%version
%makeinstall_std MANDIR=%_mandir SBINDIR=%sbindir/ LIBDIR=/%_lib

cd ../%_db
%makeinstall_std PREFIX='' MANDIR=%_mandir
install -D -pm 0755 %SOURCE2 %buildroot/sbin
install -D -pm 0644 %SOURCE3 %buildroot%_man1dir/setregdomain.1
install -d %buildroot%_sysconfdir/%_db/pubkeys

rm %buildroot%_man5dir/regulatory.db.5* ||:
rm -f %buildroot/lib/%name/pubkeys/
ln -s regulatory.bin.5 %buildroot%_man5dir/regulatory.db.5

%doc %name-%version/LICENSE %name-%version/README

# location of database is hardcoded to /lib/%%name
# distribution custom keys


%files -n firmware-%_db
%doc %_db/README %_db/LICENSE

%files devel


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009