recurse:
@for d in $(SUBDIRS); do if ! make -C $$d; then exit 1; fi; done
-ulogd: ulogd.c $(LIBIPULOG) include/ulogd/ulogd.h conffile/conffile.o $(LIBIPULOG)/libipulog.a
+ulogd: ulogd.c $(LIBIPULOG) include/ulogd/ulogd.h conffile/conffile.o $(LIBIPULOG)/libipulog.a ulogd.conf
$(CC) $(CFLAGS) -rdynamic $< conffile/conffile.o $(LIBIPULOG)/libipulog.a -o $@ $(LIBS)
+edit = sed -e 's,@libdir\@,$(ULOGD_LIB_PATH),g'
+
+ulogd.conf: ulogd.conf.in
+ $(edit) ulogd.conf.in > ulogd.conf
+
clean:
# rm -f ulogd *.o extensions/*.o extensions/*.so conffile/*.o
- rm -f ulogd ulogd.o
+ rm -f ulogd ulogd.o ulogd.conf
@for d in $(SUBDIRS); do if ! make -C $$d $@; then exit 1; fi; done
distclean: clean
# Example configuration for ulogd
-# $Id: ulogd.conf,v 1.7 2002/07/30 07:04:12 laforge Exp $
+# $Id: ulogd.conf,v 1.8 2002/07/30 07:15:54 laforge Exp $
#
######################################################################
#
# ulogd_BASE.so - interpreter plugin for basic IPv4 header fields
# you will always need this
-plugin /usr/local/lib/ulogd/ulogd_BASE.so
+plugin @libdir@/ulogd_BASE.so
#
# do we want to fflush() the file after each write?
syslogsync 1
# load the plugin
-plugin /usr/local/lib/ulogd/ulogd_LOGEMU.so
+plugin @libdir@/ulogd_LOGEMU.so
#
# where to write the log
dumpfile /var/log/ulogd.pktlog
# load the plugin (remove the '#'if you want to enable it
-#plugin /usr/local/lib/ulogd/ulogd_OPRINT.so
+#plugin @libdir@/ulogd_OPRINT.so
#
mysqldb ulogd
mysqlhost localhost
# load the plugin (remove the '#' if you want to enable it)
-#plugin /usr/local/lib/ulogd/ulogd_MYSQL.so
+#plugin @libdir@/ulogd_MYSQL.so
#
pgsqldb ulogd
pgsqlhost localhost
#load the plugin (remove the '#' if you want to enable it)
-#plugin /usr/local/lib/ulogd/ulogd_PGSQL.so
+#plugin @libdir@/ulogd_PGSQL.so
+
+pcapfile /var/log/ulogd.pcap
+pcapsync 1
+#plugin @libdir@/ulogd_PCAP.so