Skip to content
This repository was archived by the owner on Apr 17, 2021. It is now read-only.

Commit e5dd266

Browse files
author
Matt Vinall
committed
add Makefile for building on linux/mono system
Signed-off-by: Matt Vinall <[email protected]>
1 parent 060f53b commit e5dd266

File tree

5 files changed

+45
-16
lines changed

5 files changed

+45
-16
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
7+
[Makefile]
8+
indent_style = tab

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*.user
77
*.userosscache
88
*.sln.docstates
9+
.vscode
910

1011
# User-specific files (MonoDevelop/Xamarin Studio)
1112
*.userprefs
@@ -242,4 +243,4 @@ ModelManifest.xml
242243
.paket/paket.exe
243244

244245
# FAKE - F# Make
245-
.fake/
246+
.fake/

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
DTLS_VERSION:=1.0.19
2+
3+
.PHONY: all
4+
all: src/DTLS.Net/bin/Release/DTLS.Net.$(DTLS_VERSION).nupkg
5+
6+
src/DTLS.Net/bin/Release/DTLS.Net.$(DTLS_VERSION).nupkg:
7+
docker run -v $(PWD):/app --entrypoint /app/pack.sh creatordev/dotnet-mono-base Release src/DTLS.Net
8+
9+
.PHONY: clean
10+
clean:
11+
rm -rf src/DTLS.Net/bin src/DTLS.Net/obj src/DTLS.Net/project.lock.json

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
## DTLS.Net
66

7-
[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause)
7+
[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg?style=flat-square)](http://opensource.org/licenses/BSD-3-Clause)
88

9-
DTLS.Net was developed for use in an [implementation](https://github.com/Creatordev/DeviceServer) of the Open Mobile Alliance's (OMA) Lightweight Machine to Machine protocol (LWM2M). For this reason it only supports the following cipher suites:
9+
DTLS.Net was developed for use in an [implementation](https://github.com/Creatordev/DeviceServer) of the Open Mobile Alliance's (OMA) Lightweight Machine to Machine protocol (LWM2M). For this reason it only supports the following cipher suites:
1010

1111
* TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8
1212
* TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256
@@ -16,38 +16,38 @@ DTLS.Net was developed for use in an [implementation](https://github.com/Creator
1616

1717
### Limitations
1818

19-
Since the client is only required to serve for the above project it has several inherent limitations:
19+
Since the client is only required to serve for the above project it has several inherent limitations:
2020

21-
1. No automatic retransmition
22-
2. No support for fragmentation of handshake packets
23-
3. Does not verify Server Certificates (against CA)
21+
1. No automatic retransmission
22+
2. No support for fragmentation of handshake packets
23+
3. Does not verify Server Certificates (against CA)
2424

25-
The server currently also has the following limitations:
25+
The server currently also has the following limitations:
2626

27-
1. Does not verify client Certificates
28-
2. No support for fragmentation of handshake packets
27+
1. Does not verify client Certificates
28+
2. No support for fragmentation of handshake packets
2929

3030
Hopefully over time these will be implemented, in the meantime we hope this is still useful.
3131

3232
----
3333

3434
### Contributing
3535

36-
We welcome all contributions to this project and we give credit where it's due. Anything from enhancing functionality to improving documentation and bug reporting - it's all good.
36+
We welcome all contributions to this project and we give credit where it's due. Anything from enhancing functionality to improving documentation and bug reporting - it's all good.
3737

38-
Find out more in the [contributor guide](CONTRIBUTING.md).
38+
Find out more in the [contributor guide](CONTRIBUTING.md).
3939

4040
### Credits
41-
42-
We would like to thank all of our current [contributors](CONTRIBUTORS).
41+
42+
We would like to thank all of our current [contributors](CONTRIBUTORS).
4343

4444

4545
----
4646

4747
### License information
4848

49-
* All code and documentation developed by Imagination Technologies Limited is licensed under the [BSD 3-clause license](LICENSE).
50-
* Bouncy Castle by The Legion of the Bouncy Castle is licensed under an [adaptation of the MIT X11 License](https://bouncycastle.org/csharp/licence.html).
49+
* All code and documentation developed by Imagination Technologies Limited is licensed under the [BSD 3-clause license](LICENSE).
50+
* Bouncy Castle by The Legion of the Bouncy Castle is licensed under an [adaptation of the MIT X11 License](https://bouncycastle.org/csharp/licence.html).
5151

5252

5353
----

pack.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
CONFIGURATION=$1
3+
shift
4+
5+
for PACKAGE in $*; do
6+
cd /app/$PACKAGE
7+
dotnet restore
8+
dotnet pack --configuration=$CONFIGURATION
9+
done

0 commit comments

Comments
 (0)