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

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