From aef240bc54c5a8b07c72dadf10b7d3fd69656b9b Mon Sep 17 00:00:00 2001 From: Victor Wagner Date: Wed, 2 Aug 2017 11:56:18 +0300 Subject: [PATCH] First successful build of debian package --- .gitignore | 2 ++ Makefile | 2 +- debian/changelog | 2 +- debian/control | 11 ++++++++++- debian/gostsum.dirs | 0 debian/gostsum.install | 2 ++ debian/rules | 11 +++++++++-- 7 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 debian/gostsum.dirs create mode 100644 debian/gostsum.install diff --git a/.gitignore b/.gitignore index 88354cd..96c0494 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ engine libengine-gost-openssl1.1* +gostsum_* +gostsum-dbg* diff --git a/Makefile b/Makefile index 781e42e..a22f1b3 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ $(PKGNAME)_$(VERSION)-1_$(ARCH).deb: $(PKGNAME)-$(VERSION)/debian/changelog # $(PKGNAME)-$(VERSION) if you want you changes survive invocation of # this rule # -$(PKGNAME)_$(VERSION)/debian/changelog: $(PKGNAME)_$(VERSION).orig.tar.bz2 $(wildcard debian/*) +$(PKGNAME)-$(VERSION)/debian/changelog: $(PKGNAME)_$(VERSION).orig.tar.bz2 $(wildcard debian/*) rm -f $(PKGNAME)-$(VERSION) tar xf $(PKGNAME)_$(VERSION).orig.tar.bz2 cp -r debian $(PKGNAME)-$(VERSION)/debian diff --git a/debian/changelog b/debian/changelog index 4628d72..d3ab388 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -libengine-gost-openssl1.1 (20170802-1) unstable; urgency=low +libengine-gost-openssl1.1 (20170802-0.1) unstable; urgency=low * Initial release diff --git a/debian/control b/debian/control index 1bdae01..d563ef3 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: libengine-gost-openssl1.1 Section: libs Priority: extra Maintainer: Victor Wagner -Build-Depends: debhelper (>= 9), cmake, libssl-dev +Build-Depends: debhelper (>= 9), cmake, libssl-dev, openssl Standards-Version: 3.9.5 Homepage: https://github.com/gost-engine/engine Vcs-Git: https://github.com/gost-engine/engine.git @@ -15,3 +15,12 @@ Description: Loadable module for openssl implementing GOST algorithms implements (in software) Russian national standard (GOST) cryptograpy algorithms. +Package: gostsum +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Utility to compute GOST hashes + This package contain utilities to compute GOST hashsums + gostsum - computes GOST R 34.11-94 hash + gost12sum - computes GOST R 34.11-2012 hash + + diff --git a/debian/gostsum.dirs b/debian/gostsum.dirs new file mode 100644 index 0000000..e69de29 diff --git a/debian/gostsum.install b/debian/gostsum.install new file mode 100644 index 0000000..bc2625e --- /dev/null +++ b/debian/gostsum.install @@ -0,0 +1,2 @@ +/usr/bin/gostsum +/usr/bin/gost12sum diff --git a/debian/rules b/debian/rules index 27a1f57..9382c16 100755 --- a/debian/rules +++ b/debian/rules @@ -16,7 +16,7 @@ include /usr/share/dpkg/default.mk # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed - +OPENSSL_ENGINE_DIR=$(shell openssl version -e |sed -e 's/^[^.]*"//' -e 's/".*$$//') # main packaging script based on dh7 syntax %: dh $@ @@ -26,7 +26,14 @@ include /usr/share/dpkg/default.mk #override_dh_auto_configure: # dh_auto_configure -- \ # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) -override_dh_install +override_dh_install: + install -d -m 755 $(CURDIR)/debian/libengine-gost-openssl1.1/$(OPENSSL_ENGINE_DIR) + install -d -m 755 $(CURDIR)/debian/gostsum/usr/bin + install -m 755 bin/gost.so $(CURDIR)/debian/libengine-gost-openssl1.1/$(OPENSSL_ENGINE_DIR) + install -m 755 bin/gostsum $(CURDIR)/debian/gostsum/usr/bin + install -m 755 bin/gost12sum $(CURDIR)/debian/gostsum/usr/bin +#verride_dh_clean: +# rm -rf bin debian/debhelper-build-stamp -- 2.39.2