diff --git a/crda.spec b/crda.spec index d4dc2e6..d9622a2 100644 --- a/crda.spec +++ b/crda.spec @@ -21,6 +21,8 @@ Requires: udev Source0: http://wireless.kernel.org/download/crda/crda-%{crda_version}.tar.bz2 Source1: http://wireless.kernel.org/download/wireless-regdb/wireless-regdb-%{regdb_version}.tar.bz2 +Patch0: wireless-regdb-2009-01-15-non-root-install-fix.patch + %description CRDA acts as the udev helper for communication between the kernel and userspace for regulatory compliance. It relies on nl80211 @@ -31,6 +33,8 @@ communication from the kernel. %setup -q -c %setup -q -T -D -a 1 +%patch0 -p0 + rm crda-%{crda_version}/pubkeys/* @@ -79,6 +83,7 @@ rm -rf $RPM_BUILD_ROOT * Tue Jan 27 2008 John W. Linville 1.0.1_2009_01_15-3 - Update for CRDA verion 1.0.1 - Account for lack of "v" in upstream release tarball naming +- Add patch to let wireless-regdb install w/o being root * Thu Jan 22 2008 John W. Linville v0.9.5_2009_01_15-2 - Revamp based on package review comments diff --git a/wireless-regdb-2009-01-15-non-root-install-fix.patch b/wireless-regdb-2009-01-15-non-root-install-fix.patch new file mode 100644 index 0000000..a1f6ab1 --- /dev/null +++ b/wireless-regdb-2009-01-15-non-root-install-fix.patch @@ -0,0 +1,11 @@ +diff -up wireless-regdb-2009-01-15/Makefile.orig wireless-regdb-2009-01-15/Makefile +--- wireless-regdb-2009-01-15/Makefile.orig 2009-01-20 15:32:18.000000000 -0500 ++++ wireless-regdb-2009-01-15/Makefile 2009-01-20 15:32:27.000000000 -0500 +@@ -24,5 +24,5 @@ key.priv.pem: + openssl genrsa -out key.priv.pem 2048 + + install: +- install -o 0 -g 0 -m 755 -d $(CDRA_PATH) +- install -o 0 -g 0 -m 644 regulatory.bin $(CDRA_PATH)/regulatory.bin ++ install -m 755 -d $(CDRA_PATH) ++ install -m 644 regulatory.bin $(CDRA_PATH)/regulatory.bin