Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > tainted-release-src > by-pkgid > b1d57529decac67de51f325376a69f3e > files > 3

rtlsdr-airband-2.3.0-2.mga6.tainted.src.rpm

diff -ur RTLSDR-Airband-2.3.0_o/makefile RTLSDR-Airband-2.3.0/makefile
--- RTLSDR-Airband-2.3.0_o/makefile	2017-01-21 21:31:00.055717995 +0000
+++ RTLSDR-Airband-2.3.0/makefile	2017-01-21 21:42:37.019824908 +0000
@@ -1,10 +1,10 @@
 # Install prefix
-PREFIX = /usr/local
+PREFIX = $(DESTDIR)
 
 SYSCONFDIR = $(PREFIX)/etc
 DEFCONFIG = config/basic_multichannel.conf
 CFG = rtl_airband.conf
-BINDIR = $(PREFIX)/bin
+BINDIR = $(PREFIX)/usr/bin
 export DEBUG ?= 0
 export CC = g++
 export CFLAGS = -O3 -g -Wall -DSYSCONFDIR=\"$(SYSCONFDIR)\" -DDEBUG=$(DEBUG)
@@ -87,10 +87,10 @@
 	rm -f *.o rtl_airband
 
 install: $(BIN)
-	install -d -o root -g root $(BINDIR)
-	install -o root -g root -m 755 $(BIN) $(BINDIR)
-	install -d -o root -g root $(SYSCONFDIR)
-	test -f $(SYSCONFDIR)/$(CFG) || install -o root -g root -m 600 $(DEFCONFIG) $(SYSCONFDIR)/$(CFG)
+	install -d $(BINDIR)
+	install  $(BIN) $(BINDIR)
+	install -d $(SYSCONFDIR)
+	test -f $(SYSCONFDIR)/$(CFG) || install $(DEFCONFIG) $(SYSCONFDIR)/$(CFG)
 	@printf "\n *** Done. If this is a new install, edit $(SYSCONFDIR)/$(CFG) to suit your needs.\n\n"
 
 $(CLEANDIRS):