Skip to content

Commit

Permalink
Add deferred plugin support
Browse files Browse the repository at this point in the history
  • Loading branch information
gdestuynder committed Apr 11, 2014
1 parent 703bb05 commit 3f7f926
Show file tree
Hide file tree
Showing 5 changed files with 927 additions and 600 deletions.
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CC := gcc
CFLAGS :=
LDFLAGS := -fPIC -shared
INSTALL := install
DESTDIR := /
PREFIX := /usr/

all: plugin

plugin: netfilter_openvpn.c
$(CC) $(CFLAGS) $(LDFLAGS) -I. -c netfilter_openvpn.c
$(CC) $(CFLAGS) $(LDFLAGS) -Wl,-soname,netfilter_openvpn.so -o netfilter_openvpn.so netfilter_openvpn.o

install: plugin
mkdir -p $(DESTDIR)$(PREFIX)/lib/openvpn/plugins/
$(INSTALL) -m755 netfilter_openvpn.so $(DESTDIR)$(PREFIX)/lib/openvpn/plugins/
$(INSTALL) -m755 netfilter.py $(DESTDIR)$(PREFIX)/lib/openvpn/plugins/
$(INSTALL) -m600 duo_openvpn.conf.inc $(DESTDIR)/etc/duo_openvpn.conf

clean:
rm -f *.o
rm -f *.so
rm -f *.pyc
rm -rf __pycache__
152 changes: 0 additions & 152 deletions mozdef.py

This file was deleted.

Loading

0 comments on commit 3f7f926

Please sign in to comment.