From 1d100ffb76d0b7c120f929746f36aa267ed0b50c Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 27 Jan 2016 21:41:02 -0800 Subject: [PATCH] Add Debian package, finish TODOs. --- TODO.rst | 10 +++++----- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 28 ++++++++++++++++++++++++++++ debian/copyright | 25 +++++++++++++++++++++++++ debian/docs | 3 +++ debian/libemsha-1.install | 2 ++ debian/libemsha-dev.dirs | 2 ++ debian/libemsha-dev.install | 3 +++ 9 files changed, 74 insertions(+), 5 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/libemsha-1.install create mode 100644 debian/libemsha-dev.dirs create mode 100644 debian/libemsha-dev.install diff --git a/TODO.rst b/TODO.rst index bb015f6..62c3c63 100644 --- a/TODO.rst +++ b/TODO.rst @@ -2,12 +2,12 @@ TODO ==== -[ ] Documentation for ``HMAC`` +[*] Documentation for ``HMAC`` -[ ] Documentation for miscellaneous functions +[*] Documentation for miscellaneous functions -[ ] Travis with static analysers +[*] Travis with static analysers - [ ] Coverity? - [ ] cppcheck + [*] Coverity? + [*] cppcheck diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..e3846e5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +libemsha (1.0.1-1) unstable; urgency=low + + * Initial release for packaging. + + -- Kyle Isom Wed, 27 Jan 2016 21:19:12 -0800 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..f182957 --- /dev/null +++ b/debian/control @@ -0,0 +1,28 @@ +Source: libemsha +Priority: optional +Maintainer: Kyle Isom +Build-Depends: debhelper (>= 9), autotools-dev +Standards-Version: 3.9.5 +Section: libs +Homepage: https://git.kyleisom.net/lib/libemsha +Vcs-Git: https://git.kyleisom.net/lib/libemsha +Vcs-Browser: https://git.kyleisom.net/lib/libemsha + +Package: libemsha-dev +Section: libdevel +Architecture: any +Depends: libemsha-1 (= ${binary:Version}), ${misc:Depends} +Description: HMAC-SHA-256 C++11 library - development files + An MIT-licensed HMAC-SHA-256 C++11 library designed for embedded + systems. It is built following the JPL Power of Ten rules. It was written + in response to a need for a standalone HMAC-SHA-256 package that could + run on several platforms. + +Package: libemsha-1 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: HMAC-SHA-256 C++11 library + An MIT-licensed HMAC-SHA-256 C++11 library designed for embedded + systems. It is built following the JPL Power of Ten rules. It was written + in response to a need for a standalone HMAC-SHA-256 package that could + run on several platforms. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d385587 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: libemsha +Source: + +Files: * +Copyright: + +License: 2015 K. Isom + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included + in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..98dbf2f --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +README.rst +TODO.rst +doc/libemsha.rst diff --git a/debian/libemsha-1.install b/debian/libemsha-1.install new file mode 100644 index 0000000..7cc96fa --- /dev/null +++ b/debian/libemsha-1.install @@ -0,0 +1,2 @@ +usr/lib/*/lib*.so.* +usr/lib/*/lib*.a diff --git a/debian/libemsha-dev.dirs b/debian/libemsha-dev.dirs new file mode 100644 index 0000000..4418816 --- /dev/null +++ b/debian/libemsha-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include diff --git a/debian/libemsha-dev.install b/debian/libemsha-dev.install new file mode 100644 index 0000000..a3c8f6c --- /dev/null +++ b/debian/libemsha-dev.install @@ -0,0 +1,3 @@ +usr/include/* +usr/lib/*/lib*.a +usr/lib/*/lib*.so