Blame SOURCES/mt-st-1.1-redhat.patch

ee2432
--- mt-st-1.1/Makefile.redhat	2008-03-01 11:50:12.000000000 +0100
ee2432
+++ mt-st-1.1/Makefile	2008-08-04 08:20:01.000000000 +0200
ee2432
@@ -1,8 +1,9 @@
ee2432
-CFLAGS=  -Wall -O2
ee2432
-SBINDIR= /sbin
ee2432
-BINDIR=  /bin
ee2432
-USRBINDIR= /usr/bin
ee2432
-MANDIR= /usr/share/man
ee2432
+CFLAGS=  $(RPM_OPT_FLAGS)
ee2432
+SBINDIR= $(RPM_BUILD_ROOT)/usr/sbin
ee2432
+BINDIR=  $(RPM_BUILD_ROOT)/usr/bin
ee2432
+USRBINDIR=  $(RPM_BUILD_ROOT)/usr/bin
ee2432
+MANDIR= $(RPM_BUILD_ROOT)/usr/share/man
ee2432
+CC=gcc
ee2432
 
ee2432
 MTDIR=$(BINDIR)
ee2432
 
ee2432
@@ -15,11 +16,12 @@
ee2432
 	$(CC) $(CFLAGS) -o stinit stinit.c
ee2432
 
ee2432
 install: mt stinit
ee2432
-	install -s mt $(MTDIR)
ee2432
+	mkdir -p $(BINDIR) $(SBINDIR) $(MANDIR)/man1 $(MANDIR)/man8
ee2432
+	install -m 755 mt $(BINDIR)
ee2432
 	install -c -m 444 mt.1 $(MANDIR)/man1
ee2432
 	(if [ -f $(MANDIR)/man1/mt.1.gz ] ; then \
ee2432
 	  rm -f $(MANDIR)/man1/mt.1.gz; gzip $(MANDIR)/man1/mt.1; fi)
ee2432
-	install -s stinit $(SBINDIR)
ee2432
+	install -m 755 stinit $(SBINDIR)
ee2432
 	install -c -m 444 stinit.8 $(MANDIR)/man8
ee2432
 	(if [ -f $(MANDIR)/man8/stinit.8.gz ] ; then \
ee2432
 	  rm -f $(MANDIR)/man8/stinit.8.gz; gzip $(MANDIR)/man8/stinit.8; fi)