From 0a788718374c997441dc10421a45b8c0a67d3d9b Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 21:33:38 +0100 Subject: [PATCH] update to 3.13 [release 3.13-1mamba;Tue Feb 25 2014] --- README.md | 2 + crda-1.1.2-libnl-3.patch | 12 ++++++ crda.spec | 84 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 crda-1.1.2-libnl-3.patch create mode 100644 crda.spec diff --git a/README.md b/README.md index 96f6617..b8311af 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # crda +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. The user should never have to run it manually except if debugging udev issues. + diff --git a/crda-1.1.2-libnl-3.patch b/crda-1.1.2-libnl-3.patch new file mode 100644 index 0000000..a04138b --- /dev/null +++ b/crda-1.1.2-libnl-3.patch @@ -0,0 +1,12 @@ +diff -Nru crda-1.1.2.orig/Makefile crda-1.1.2/Makefile +--- crda-1.1.2.orig/Makefile 2012-07-25 13:15:38.210363385 +0200 ++++ crda-1.1.2/Makefile 2012-07-25 13:17:46.642047626 +0200 +@@ -51,7 +51,7 @@ + + ifeq ($(NL3FOUND),Y) + CFLAGS += -DCONFIG_LIBNL30 +-NLLIBS += -lnl-genl ++NLLIBS += -lnl-genl-3 + NLLIBNAME = libnl-3.0 + else + ifeq ($(NL2FOUND),Y) diff --git a/crda.spec b/crda.spec new file mode 100644 index 0000000..6ae8545 --- /dev/null +++ b/crda.spec @@ -0,0 +1,84 @@ +Name: crda +Version: 3.13 +Release: 1mamba +Summary: The udev helper for communication between the kernel and userspace for regulatory compliance +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://drvbp1.linux-foundation.org/~mcgrof/rel-html/crda/ +#URL: http://linuxwireless.org/en/developers/Regulatory/CRDA +Source: http://kernel.org/pub/software/network/crda/crda-%{version}.tar.xz +#Source: http://linuxwireless.org/download/crda/crda-%{version}.tar.bz2 +Patch0: %{name}-1.1.2-libnl-3.patch +License: ISC License +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcrypt-devel +BuildRequires: libnl-devel +BuildRequires: wireless-regdb +## AUTOBUILDREQ-END +BuildRequires: python-M2Crypto +BuildRequires: wireless-regdb +Requires: wireless-regdb +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +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. The user should never have to run it manually except if debugging udev issues. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%prep +%setup -q +sed -i "s|ldconfig|true|" Makefile + +%build +%make REG_BIN=%{_prefix}/lib/crda/regulatory.bin + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +make install \ + PREFIX=%{buildroot} \ + SBINDIR=%{buildroot}/sbin/ \ + LIBDIR=%{buildroot}/%{_lib}/ \ + INCLUDE_DIR=%{buildroot}%{_includedir}/reglib \ + MANDIR=%{buildroot}%{_mandir} \ + UDEV_RULE_DIR=%{buildroot}/lib/udev/rules.d/ + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +/lib/udev/rules.d/85-regulatory.rules +/%{_lib}/libreg.so +/sbin/crda +/sbin/regdbdump +%{_mandir}/man8/crda.8* +%{_mandir}/man8/regdbdump.8* +%doc LICENSE +# README + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/reglib +%{_includedir}/reglib/*.h + +%changelog +* Tue Feb 25 2014 Silvan Calarco 3.13-1mamba +- update to 3.13 + +* Mon Jan 21 2013 Automatic Build System 1.1.3-1mamba +- automatic version update by autodist + +* Wed Jul 25 2012 Silvan Calarco 1.1.2-2mamba +- rebuilt with libnl-3, added patch + +* Wed Sep 28 2011 Silvan Calarco 1.1.2-1mamba +- package created by autospec