-
Notifications
You must be signed in to change notification settings - Fork 13
/
mix.exs
78 lines (65 loc) · 1.6 KB
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
defmodule ExPcap.Mixfile do
use Mix.Project
def project do
[app: :expcap,
version: "0.1.2",
elixir: "~> 1.7",
name: "expcap",
source_url: "https://github.com/cobenian/expcap",
description: description(),
package: package(),
deps: deps(),
docs: docs(),
escript: escript()]
end
def escript do
[main_module: ExPcap.CLI]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:logger]]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type `mix help deps` for more examples and options
defp deps do
[
{:earmark, "~> 1.0", only: :dev},
{:ex_doc, "~> 0.6", only: :dev }
]
end
defp docs do
[{:main, "ExPcap"}]
end
defp description do
"""
A PCAP library written in Elixir. This does not wrap a C or Erlang PCAP library.
This library parses pcap files, however it does not yet support most protocols
that can be contained within a pcap file. The only supported protocols at the
moment are:
* Ethernet
* IPv4
* UDP
* DNS
"""
end
defp package do
[# These are the default files included in the package
files: ["lib", "mix.exs", "README*"],
contributors: ["Bryan Weber"],
licenses: ["Apache 2.0"],
links: %{
"GitHub" => "https://github.com/cobenian/expcap",
# "Docs" => "http://cobenian.github.io/expcap/"
}
]
end
end