aboutsummaryrefslogtreecommitdiff
path: root/software/source
diff options
context:
space:
mode:
Diffstat (limited to 'software/source')
-rw-r--r--software/source/Makefile19
-rw-r--r--software/source/debian/compat1
-rw-r--r--software/source/debian/control14
-rw-r--r--software/source/debian/copyright27
-rwxr-xr-xsoftware/source/debian/rules4
-rw-r--r--software/source/debian/source/format1
m---------software/source/sw/libhal0
m---------software/source/sw/pkcs110
m---------software/source/sw/thirdparty/libtfm0
9 files changed, 66 insertions, 0 deletions
diff --git a/software/source/Makefile b/software/source/Makefile
new file mode 100644
index 0000000..e2fdb1b
--- /dev/null
+++ b/software/source/Makefile
@@ -0,0 +1,19 @@
+# Makefile to build Debian package for Cryptech Alpha board software
+
+all:
+ cd sw/thirdparty/libtfm; ${MAKE}
+ cd sw/libhal; ${MAKE} daemon
+ cd sw/pkcs11; ${MAKE}
+
+clean distclean:
+ cd sw/thirdparty/libtfm; ${MAKE} $@
+ cd sw/libhal; ${MAKE} $@
+ cd sw/pkcs11; ${MAKE} $@
+
+install: all
+ install -m 644 -D sw/pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so
+ install -D sw/pkcs11/p11util ${DESTDIR}/usr/sbin/p11util
+ install -D sw/libhal/cryptech_rpcd ${DESTDIR}/usr/sbin/cryptech_rpcd
+ ln -s libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so.0
+
+# Might also want to install the firmware tarball, scripts to use it, ....
diff --git a/software/source/debian/compat b/software/source/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/software/source/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/software/source/debian/control b/software/source/debian/control
new file mode 100644
index 0000000..8ae25b9
--- /dev/null
+++ b/software/source/debian/control
@@ -0,0 +1,14 @@
+Source: cryptech-alpha
+Maintainer: APT Builder Robot <aptbot@cryptech.is>
+Section: misc
+Priority: optional
+Standards-Version: 3.9.6
+Build-Depends: debhelper (>= 9), libsqlite3-0, libsqlite3-dev, python (>= 2.7), python-yaml
+Homepage: http://trac.cryptech.is/wiki
+
+Package: cryptech-alpha
+Architecture: any
+Depends: libc6 (>= 2.13), ${misc:Depends}, libsqlite3-0
+Description: Cryptech open-source crypto software
+ "cryptech-alpha" contains software for use with the Cryptech Project
+ "Alpha" development board.
diff --git a/software/source/debian/copyright b/software/source/debian/copyright
new file mode 100644
index 0000000..ec25460
--- /dev/null
+++ b/software/source/debian/copyright
@@ -0,0 +1,27 @@
+Copyright (c) 2015-2016, NORDUnet A/S All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+- Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+- Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+- Neither the name of the NORDUnet nor the names of its contributors may
+ be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/software/source/debian/rules b/software/source/debian/rules
new file mode 100755
index 0000000..2d33f6a
--- /dev/null
+++ b/software/source/debian/rules
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@
diff --git a/software/source/debian/source/format b/software/source/debian/source/format
new file mode 100644
index 0000000..89ae9db
--- /dev/null
+++ b/software/source/debian/source/format
@@ -0,0 +1 @@
+3.0 (native)
diff --git a/software/source/sw/libhal b/software/source/sw/libhal
new file mode 160000
+Subproject 709a71c0030225ba08cddf5227a1c67c2dbb417
diff --git a/software/source/sw/pkcs11 b/software/source/sw/pkcs11
new file mode 160000
+Subproject 3118c1384c46140269033ea63faa6ebca9a3af5
diff --git a/software/source/sw/thirdparty/libtfm b/software/source/sw/thirdparty/libtfm
new file mode 160000
+Subproject 269fc4e58f616a2cf1c318f494ec18a52991da8