diff --git a/packages/filesystem/flashmap/.gitignore b/packages/filesystem/flashmap/.gitignore new file mode 100644 index 0000000..cce6d9c --- /dev/null +++ b/packages/filesystem/flashmap/.gitignore @@ -0,0 +1,29 @@ +#since we have not changed upstream, and this is packaged don't keep the source files +src/* +!src/debian + +#only include specific /debian files +src/debian/* +!src/debian/compat +!src/debian/changelog +!src/debian/control +!src/debian/rules +!src/debian/copyright +!src/debian/docs +!src/debian/watch +!src/debian/source +!src/debian/source/format + +#generic packaging artifacts +debhelper-build-stamp +.debhelper +*.deb +*.dsc +*.build +*.buildinfo +*.changes +*.log +*.substvars +*.diff.gz +*.upload +*.debian.tar.xz \ No newline at end of file diff --git a/packages/filesystem/flashmap/flashmap_0.3.orig.tar.gz b/packages/filesystem/flashmap/flashmap_0.3.orig.tar.gz new file mode 100644 index 0000000..fedb33e Binary files /dev/null and b/packages/filesystem/flashmap/flashmap_0.3.orig.tar.gz differ diff --git a/packages/filesystem/flashmap/makefile b/packages/filesystem/flashmap/makefile new file mode 100644 index 0000000..c1cd4ba --- /dev/null +++ b/packages/filesystem/flashmap/makefile @@ -0,0 +1,34 @@ +#import all shared make vars +PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel) +include $(PRAWNOS_ROOT)/scripts/common.mk + + +VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version) + +flashmap_$(VERSION)_armhf.deb: + @echo Building $@ + cd src/; pdebuild --configfile $(PBUILDER_RC) \ + --buildresult .. \ + -- \ + --basetgz $(PBUILDER_CHROOT) \ + +.PHONY: clean +clean: + rm -rf *.upload + rm -rf *.deb + rm -rf *.changes + rm -rf *.dsc + rm -rf *.build + rm -rf *.diff.gz + rm -rf *.debian.tar.xz + rm -rf *.buildinfo + +.PHONY: upload +upload: + dput deb.prawnos.com *.changes + +install: +ifndef INSTALL_TARGET + $(error INSTALL_TARGET is not set) +endif + cp flashmap_$(VERSION)_armhf.deb $(INSTALL_TARGET) diff --git a/packages/filesystem/flashmap/src/debian/changelog b/packages/filesystem/flashmap/src/debian/changelog new file mode 100644 index 0000000..8af2de6 --- /dev/null +++ b/packages/filesystem/flashmap/src/debian/changelog @@ -0,0 +1,5 @@ +flashmap (0.3) stable; urgency=medium + + * Initial release. + + -- Hal Emmerich Sun, 14 Jun 2020 15:12:07 -0500 diff --git a/packages/filesystem/flashmap/src/debian/compat b/packages/filesystem/flashmap/src/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/packages/filesystem/flashmap/src/debian/compat @@ -0,0 +1 @@ +10 diff --git a/packages/filesystem/flashmap/src/debian/control b/packages/filesystem/flashmap/src/debian/control new file mode 100644 index 0000000..1752435 --- /dev/null +++ b/packages/filesystem/flashmap/src/debian/control @@ -0,0 +1,22 @@ +Source: flashmap +Priority: optional +Maintainer: Hal Emmerich +Uploaders: Hal Emmerich +Build-Depends: debhelper (>= 10), + clang, + uuid-dev, + meson, + pkg-config, + cmake, + libcmocka-dev, + cargo, + lcov +Standards-Version: 4.3.0 +Homepage: https://github.com/dhendrix/flashmap +Vcs-Browser: https://github.com/dhendrix/flashmap +Vcs-Git: https://github.com/dhendrix/flashmap + +Package: flashmap +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: flashmap library for use with cros utils diff --git a/packages/filesystem/flashmap/src/debian/copyright b/packages/filesystem/flashmap/src/debian/copyright new file mode 100644 index 0000000..9cb76ba --- /dev/null +++ b/packages/filesystem/flashmap/src/debian/copyright @@ -0,0 +1,24 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: xsecurelock +Source: https://github.com/google/xsecurelock + +Files: * +Copyright: 2014-2019 Google Inc. All rights reserved. +License: GPL-2+ + +Files: debian/* +Copyright: 2020 Hal Emmerich +License: GPL-2+ + +License: GPL-2+ +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 +as published by the Free Software Foundation. +. +This program 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 General Public License for more details. +. +You should have received a copy of the GNU General Public License +along with this package. If not, see . diff --git a/packages/filesystem/flashmap/src/debian/rules b/packages/filesystem/flashmap/src/debian/rules new file mode 100755 index 0000000..78d1d78 --- /dev/null +++ b/packages/filesystem/flashmap/src/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Use already defined upstream version as DEB_VERSION_UPSTREAM. +include /usr/share/dpkg/pkg-info.mk + +export DH_VERBOSE=1 + +%: + dh $@ + +override_dh_auto_build: + dh_auto_build -- all