engine
libengine-gost-openssl1.1*
+gostsum_*
+gostsum-dbg*
# $(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
-libengine-gost-openssl1.1 (20170802-1) unstable; urgency=low
+libengine-gost-openssl1.1 (20170802-0.1) unstable; urgency=low
* Initial release
Section: libs
Priority: extra
Maintainer: Victor Wagner <vitus@fafnir.l.postgrespro.ru>
-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
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
+
+
--- /dev/null
+/usr/bin/gostsum
+/usr/bin/gost12sum
# 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 $@
#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