Group :: Monitoramento
RPM: prescanic
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: prescanic-0.8-alt-makefile.patch
Download
Download
diff --git a/Makefile b/Makefile
index d1730fe..179680e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,8 @@
CC = gcc
CFLAGS = -O2 -g -ggdb
-LIBS = -L/usr/lib -L/usr/local/lib -lpcap -L/usr/include/mysql -L/usr/lib/mysql -lmysqlclient
+LIBS = -L/usr/lib -L/usr/local/lib -lpcap -Lmysql -Lmysql -lmysqlclient
OBJS = main.o prescan.o db.o init.o protocol.o osdetect.o output.o tcp.o pcap.o net.o tool.o victim.o rpc.o sniff.o hnet.o dns.o
TARGET = prescanic
-DIR = /usr/local/bin/
all: $(OBJS)
$(CC) -o $(TARGET) $(CFLAGS) $(OBJS) $(LIBS)
@@ -12,7 +11,7 @@ clean:
rm -f *.o *~ core $(TARGET)
install:
- install -g root -o root -m 775 $(TARGET) $(DIR)$(TARGET)
+ install -m 775 $(TARGET) $(DESTDIR)/$(TARGET)
uninstall:
- rm $(DIR)$(TARGET)
+ rm $(DESTDIR)/$(TARGET)