Browse Source

Initial packaging

Christoph Biedl 6 years ago
parent
commit
7b30610bb4

+ 5 - 0
debian/changelog

@@ -0,0 +1,5 @@
+luksmeta (8-1) unstable; urgency=medium
+
+  * Initial release. Closes: #873940
+
+ -- Christoph Biedl <debian.axhn@manchmal.in-ulm.de>  Sat, 04 Nov 2017 15:51:03 +0100

+ 1 - 0
debian/compat

@@ -0,0 +1 @@
+10

+ 34 - 0
debian/control

@@ -0,0 +1,34 @@
+Source: luksmeta
+Maintainer: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Homepage: https://github.com/latchset/luksmeta
+Standards-Version: 4.1.1
+Build-Depends: debhelper (>= 10~),
+    cryptsetup,
+    libcryptsetup-dev,
+    pkg-config,
+Priority: optional
+Section: net
+
+Package: libluksmeta0
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends},
+Section: libs
+Multi-Arch: same
+Description: library to access metadata in the LUKSv1 header
+ LUKSMeta is a simple library for storing metadata in the LUKSv1 header.
+
+Package: libluksmeta-dev
+Architecture: any
+Depends: ${misc:Depends},
+Section: libdevel
+Description: library to access metadata in the LUKSv1 header - development files
+ LUKSMeta is a simple library for storing metadata in the LUKSv1 header.
+ .
+ This package provides the development files
+
+Package: luksmeta
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends},
+Description: Utility to access metadata in a LUKSv1 header
+ This package provides luksmeta program to access metadata in a LUKSv1
+ header using libluksmeta.

+ 27 - 0
debian/copyright

@@ -0,0 +1,27 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: luksmeta
+Source: https://github.com/latchset/luksmeta
+
+Files: *
+Copyright: 2016 Red Hat, Inc.
+License: LGPL-2.1+
+
+Files:
+ debian/*
+Copyright: 2017 Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+License: LGPL-2.1+
+
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

+ 4 - 0
debian/libluksmeta-dev.install

@@ -0,0 +1,4 @@
+
+usr/lib/*/*.so
+usr/include/luksmeta.h
+usr/lib/*/pkgconfig/luksmeta.pc

+ 2 - 0
debian/libluksmeta0.install

@@ -0,0 +1,2 @@
+
+usr/lib/*/*.so.*

+ 7 - 0
debian/libluksmeta0.symbols

@@ -0,0 +1,7 @@
+libluksmeta.so.0 libluksmeta0 #MINVER#
+ luksmeta_init@Base 8
+ luksmeta_load@Base 8
+ luksmeta_nuke@Base 8
+ luksmeta_save@Base 8
+ luksmeta_test@Base 8
+ luksmeta_wipe@Base 8

+ 3 - 0
debian/luksmeta.install

@@ -0,0 +1,3 @@
+
+usr/bin/luksmeta
+usr/share/man/man8/luksmeta.8

+ 18 - 0
debian/patches/cherry-pick.v8-1-g83cd0c3.fix-invalid-man-page-section-reference.patch

@@ -0,0 +1,18 @@
+Subject: Fix invalid man page section reference
+Origin: v8-1-g83cd0c3
+Upstream-Author: Nathaniel McCallum <npmccallum@redhat.com>
+Date: Tue Oct 31 12:49:12 2017 -0400
+
+    Fixes: #1
+
+--- a/luksmeta.8
++++ b/luksmeta.8
+@@ -1,7 +1,7 @@
+ .\" generated with Ronn/v0.7.3
+ .\" http://github.com/rtomayko/ronn/tree/0.7.3
+ .
+-.TH "LUKSMETA" "1" "June 2017" "" ""
++.TH "LUKSMETA" "8" "October 2017" "" ""
+ .
+ .SH "NAME"
+ \fBluksmeta\fR \- Utility for storing metadata in a LUKSv1 header

+ 27 - 0
debian/patches/cherry-pick.v8-2-g278d01d.fix-typos-in-the-man-page.patch

@@ -0,0 +1,27 @@
+Subject: Fix typos in the man page
+Origin: v8-2-g278d01d
+Upstream-Author: Nathaniel McCallum <npmccallum@redhat.com>
+Date: Tue Oct 31 12:52:47 2017 -0400
+
+    Fixes: #2
+
+--- a/luksmeta.8
++++ b/luksmeta.8
+@@ -130,7 +130,7 @@
+ \fBEX_NOPERM\fR : The user did not grant permission during confirmation\.
+ .
+ .IP "\(bu" 4
+-\fBEX_NOINPUT\fR : An error occured while reading from standard input\.
++\fBEX_NOINPUT\fR : An error occurred while reading from standard input\.
+ .
+ .IP "\(bu" 4
+ \fBEX_DATAERR\fR : The specified UUID does not match the slot UUID\.
+@@ -144,7 +144,7 @@
+ Additionally, \fBluksmeta save\fR will return \fBEX_UNAVAILABLE\fR when you attempt to save data into a slot that is already used\. Likewise, \fBluksmeta load\fR will return \fBEX_UNAVAILABLE\fR when you attempt to read from an empty slot\.
+ .
+ .SH "EXAMPLES"
+-Destroy all data (including LUKSMeta data) in the LUKSv1 header gap and initalize the gap for LUKSMeta storage:
++Destroy all data (including LUKSMeta data) in the LUKSv1 header gap and initialize the gap for LUKSMeta storage:
+ .
+ .IP "" 4
+ .

+ 5 - 0
debian/patches/series

@@ -0,0 +1,5 @@
+# cherry-picked from upstream
+cherry-pick.v8-1-g83cd0c3.fix-invalid-man-page-section-reference.patch
+cherry-pick.v8-2-g278d01d.fix-typos-in-the-man-page.patch
+
+test-luksmeta.patch

+ 16 - 0
debian/patches/test-luksmeta.patch

@@ -0,0 +1,16 @@
+Description: Make sure cryptsetup is in the tests
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Date: 2017-08-31
+Forwarded: not-needed
+
+--- a/test-luksmeta
++++ b/test-luksmeta
+@@ -11,7 +11,7 @@
+ trap 'onexit' EXIT
+ 
+ truncate -s 4M $tmp
+-echo -n foo | cryptsetup luksFormat $tmp -
++echo -n foo | /sbin/cryptsetup luksFormat $tmp -
+ 
+ ! ./luksmeta test -d $tmp
+ 

+ 25 - 0
debian/rules

@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+%:
+	dh $@
+
+# the test target must be called as "check"
+override_dh_auto_test:
+ifeq (, $(findstring nocheck, $(DEB_BUILD_OPTIONS)))
+	$(MAKE) check
+endif
+
+
+override_dh_missing:
+	dh_missing --fail-missing
+
+override_dh_auto_install:
+	dh_auto_install
+
+	# Remove useless files
+	rm -f debian/tmp/usr/lib/*/*.la
+

+ 1 - 0
debian/source/format

@@ -0,0 +1 @@
+3.0 (quilt)

+ 4 - 0
debian/watch

@@ -0,0 +1,4 @@
+
+version=3
+https://github.com/latchset/luksmeta/releases \
+    /latchset/luksmeta/releases/download/[^/]+/luksmeta-([0-9][.0-9]*)\.tar\.bz2