freebsd-ports/security/snoopy/files/patch-Makefile
Martin Wilke 097671613e snoopy is merely a shared library that is used as a wrapper
to the execve() function provided by libc as to log every call
to syslog (authpriv).  system administrators may find snoopy
useful in tasks such as light/heavy system monitoring, tracking other
administrator's actions as well as getting a good 'feel' of
what's going on in the system (for example apache running cgi
scripts).

WWW: http://sourceforge.net/projects/snoopylogger/

PR:		ports/108691
Submitted by:	Philippe Audeoud <jadawin at tuxaco.net>
2007-02-06 23:36:12 +00:00

20 lines
554 B
Text

--- Makefile.orig Thu Dec 21 07:53:15 2000
+++ Makefile Tue Feb 6 22:35:12 2007
@@ -1,15 +1,12 @@
# Makefile for snoopy
# $Id: Makefile,v 1.3 2000/12/10 08:50:49 marius Exp $
-CC = gcc
-LIBS = -ldl
-
all: snoopy.so detect
snoopy.so: snoopy.c snoopy.h
- $(CC) -shared -O3 -fomit-frame-pointer snoopy.c -osnoopy.so $(LIBS)
+ $(CC) -shared $(CFLAGS) snoopy.c -osnoopy.so
detect: detect.c
- $(CC) detect.c -odetect $(LIBS)
+ $(CC) $(CFLAGS) detect.c -odetect
install: all
install -m 755 snoopy.so /lib/snoopy.so; \
./install.sh