Blame SOURCES/wireless-regdb-install_db.patch

97180a
Index: wireless-regdb-2020.04.29/Makefile
97180a
===================================================================
97180a
--- wireless-regdb-2020.04.29.orig/Makefile
97180a
+++ wireless-regdb-2020.04.29/Makefile
fc58cd
@@ -41,7 +41,8 @@ REGDB_CHANGED = $(shell $(SHA1SUM) -c --
fc58cd
                 echo maintainer-clean $(REGDB_PUBKEY) $(REGDB_PUBCERT); \
fc58cd
         fi)
fc58cd
 
fc58cd
-.PHONY: all clean mrproper install maintainer-clean install-distro-key
fc58cd
+.PHONY: all clean mrproper install maintainer-clean install-distro-key \
fc58cd
+	install_db install_bin
fc58cd
 
fc58cd
 all: $(REGDB_CHANGED) regulatory.bin sha1sum.txt regulatory.db.p7s
fc58cd
 
fc58cd
@@ -115,15 +116,21 @@ install-distro-key: maintainer-clean $(D
fc58cd
 #	make maintainer-clean
fc58cd
 #	make
fc58cd
 #	sudo make install
fc58cd
-install: regulatory.bin.5.gz regulatory.db.5.gz
fc58cd
+install_bin: regulatory.bin.5.gz
fc58cd
 	install -m 755 -d $(DESTDIR)/$(CRDA_PATH)
fc58cd
 	install -m 755 -d $(DESTDIR)/$(CRDA_KEY_PATH)
fc58cd
-	install -m 755 -d $(DESTDIR)/$(FIRMWARE_PATH)
fc58cd
 	if [ -f .custom ]; then \
fc58cd
 		install -m 644 -t $(DESTDIR)/$(CRDA_KEY_PATH)/ $(shell cat .custom); \
fc58cd
 	fi
fc58cd
 	install -m 644 -t $(DESTDIR)/$(CRDA_KEY_PATH)/ $(REGDB_UPSTREAM_PUBKEY)
fc58cd
 	install -m 644 -t $(DESTDIR)/$(CRDA_PATH)/ regulatory.bin
fc58cd
+	install -m 755 -d $(DESTDIR)/$(MANDIR)/man5/
fc58cd
+	install -m 644 -t $(DESTDIR)/$(MANDIR)/man5/ regulatory.bin.5.gz
fc58cd
+
fc58cd
+install_db: regulatory.db.5.gz
fc58cd
+	install -m 755 -d $(DESTDIR)/$(FIRMWARE_PATH)
fc58cd
 	install -m 644 -t $(DESTDIR)/$(FIRMWARE_PATH) regulatory.db regulatory.db.p7s
fc58cd
 	install -m 755 -d $(DESTDIR)/$(MANDIR)/man5/
fc58cd
-	install -m 644 -t $(DESTDIR)/$(MANDIR)/man5/ regulatory.bin.5.gz regulatory.db.5.gz
fc58cd
+	install -m 644 -t $(DESTDIR)/$(MANDIR)/man5/ regulatory.db.5.gz
fc58cd
+
fc58cd
+install: install_bin install_db