Skip to content
Browse files

Now rebarified!

  • Loading branch information...
1 parent fcb3fca commit 1643b599c221f453f50d05984f1e3bd4a02d3496 @msantos committed
Showing with 30 additions and 20 deletions.
  1. +0 −6 Emakefile
  2. +7 −10 Makefile
  3. +0 −4 README
  4. +18 −0 ebin/spood.app
  5. BIN rebar
  6. +5 −0 rebar.config
View
6 Emakefile
@@ -1,6 +0,0 @@
-{["src/*"],
- [{i, "deps/epcap/include"},
- {outdir, "ebin"},
- debug_info]
-}.
-
View
17 Makefile
@@ -1,16 +1,13 @@
-ERL=erl
-APP=spood
+REBAR=$(shell which rebar || echo ./rebar)
-all: dir erl
+all: deps compile
-dir:
- -@mkdir -p ebin deps
-
-erl:
- @$(ERL) -noinput +B \
- -eval 'case make:all() of up_to_date -> halt(0); error -> halt(1) end.'
+compile:
+ @$(REBAR) compile
clean:
- @rm -fv ebin/*.beam
+ @$(REBAR) clean
+deps:
+ @$(REBAR) get-deps
View
4 README
@@ -21,10 +21,6 @@ SETUP
1. Build it and run:
-mkdir deps
-cd deps
-ln -s /path/to/procket .
-ln -s /path/to/epcap .
make
./start.sh
View
18 ebin/spood.app
@@ -0,0 +1,18 @@
+{application, spood,
+ [
+ {description, "Spoofing DNS Proxy"},
+ {vsn, "0.01"},
+ {modules, [
+ spood,
+ spoof,
+ snuff,
+ dns
+ ]},
+ {registered, []},
+ {applications, [
+ kernel,
+ stdlib
+ ]},
+ {env, []}
+ ]}.
+
View
BIN rebar
Binary file not shown.
View
5 rebar.config
@@ -0,0 +1,5 @@
+{deps, [
+ {procket, ".*", {git, "git://github.com/msantos/procket.git", "master"}},
+ {epcap, ".*", {git, "git://github.com/msantos/epcap.git", "master"}}
+ ]}.
+{erl_opts, [{i, "deps/epcap/include"}]}.

0 comments on commit 1643b59

Please sign in to comment.
Something went wrong with that request. Please try again.