From beca9ece1b3a9f47d81b98f06fc4b0180704cabe Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 22 Jun 2016 15:34:57 -0400 Subject: First cut at release engineering for software that goes with the Alpha board. This may well end up merging with the firmware super-repository, but, having started down the road of making them separate, let's keep it that way while we get the initial stuff out of the way, then merge them if it still seems like a good idea when the basics are working. --- sw/Makefile | 17 +++++++++++++++++ sw/debian/compat | 1 + sw/debian/control | 14 ++++++++++++++ sw/debian/copyright | 27 +++++++++++++++++++++++++++ sw/debian/rules | 4 ++++ sw/debian/source/format | 1 + sw/libhal | 1 + sw/pkcs11 | 1 + sw/thirdparty/libtfm | 1 + sw/thirdparty/sqlite3 | 1 + 10 files changed, 68 insertions(+) create mode 100644 sw/Makefile create mode 100644 sw/debian/compat create mode 100644 sw/debian/control create mode 100644 sw/debian/copyright create mode 100755 sw/debian/rules create mode 100644 sw/debian/source/format create mode 160000 sw/libhal create mode 160000 sw/pkcs11 create mode 160000 sw/thirdparty/libtfm create mode 160000 sw/thirdparty/sqlite3 (limited to 'sw') diff --git a/sw/Makefile b/sw/Makefile new file mode 100644 index 0000000..4b494a6 --- /dev/null +++ b/sw/Makefile @@ -0,0 +1,17 @@ +# Makefile to build Debian package for Cryptech Alpha board software + +all: + cd thirdparty/sqlite3; ${MAKE} + cd thirdparty/libtfm; ${MAKE} + cd libhal; ${MAKE} daemon + cd pkcs11; ${MAKE} + +clean distclean: + for d in thirdparty/libtfm libhal thirdparty/sqlite3 pkcs11; do (cd $$d && ${MAKE} $@); done + +install: all + install -m 644 -D pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so + install -D pkcs11/p11util ${DESTDIR}/usr/sbin/p11util + install -D libhal/cryptech_rpcd ${DESTDIR}/usr/sbin/cryptech_rpcd + +# Might also want to install the firmware tarball, scripts to use it, .... diff --git a/sw/debian/compat b/sw/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/sw/debian/compat @@ -0,0 +1 @@ +9 diff --git a/sw/debian/control b/sw/debian/control new file mode 100644 index 0000000..d7440f8 --- /dev/null +++ b/sw/debian/control @@ -0,0 +1,14 @@ +Source: cryptech-alpha +Maintainer: APT Builder Robot +Section: misc +Priority: optional +Standards-Version: 3.9.6 +Build-Depends: debhelper (>= 9) +Homepage: http://trac.cryptech.is/wiki + +Package: cryptech-alpha +Architecture: any +Depends: libc6 (>= 2.13), ${misc:Depends} +Description: Cryptech open-source crypto software + "cryptech-alpha" contains software for use with the Cryptech Project + "Alpha" development board. diff --git a/sw/debian/copyright b/sw/debian/copyright new file mode 100644 index 0000000..ec25460 --- /dev/null +++ b/sw/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/sw/debian/rules b/sw/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/sw/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/sw/debian/source/format b/sw/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/sw/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/sw/libhal b/sw/libhal new file mode 160000 index 0000000..52f1eb5 --- /dev/null +++ b/sw/libhal @@ -0,0 +1 @@ +Subproject commit 52f1eb5c3dccd47d2434e0c7a302c23363790e1d diff --git a/sw/pkcs11 b/sw/pkcs11 new file mode 160000 index 0000000..6e7aabc --- /dev/null +++ b/sw/pkcs11 @@ -0,0 +1 @@ +Subproject commit 6e7aabc780ff9f70bf05d41b97cc973451e0b2ee diff --git a/sw/thirdparty/libtfm b/sw/thirdparty/libtfm new file mode 160000 index 0000000..357ca59 --- /dev/null +++ b/sw/thirdparty/libtfm @@ -0,0 +1 @@ +Subproject commit 357ca59060848fb72367b67ccae137d66de6fe34 diff --git a/sw/thirdparty/sqlite3 b/sw/thirdparty/sqlite3 new file mode 160000 index 0000000..be705c3 --- /dev/null +++ b/sw/thirdparty/sqlite3 @@ -0,0 +1 @@ +Subproject commit be705c3aecaf201b7f9c649cfed01e38e73c8f68 -- cgit v1.2.3