]> wagner.pp.ru Git - openssl-gost/debpkg.git/commitdiff
First successful build of debian package
authorVictor Wagner <vitus@wagner.pp.ru>
Wed, 2 Aug 2017 08:56:18 +0000 (11:56 +0300)
committerVictor Wagner <vitus@wagner.pp.ru>
Wed, 2 Aug 2017 08:56:18 +0000 (11:56 +0300)
.gitignore
Makefile
debian/changelog
debian/control
debian/gostsum.dirs [new file with mode: 0644]
debian/gostsum.install [new file with mode: 0644]
debian/rules

index 88354cdcfe8cb997029d67adbe7353e6376c1bd8..96c04940d95b61b63621688e4b1aa9738a704e75 100644 (file)
@@ -1,2 +1,4 @@
 engine
 libengine-gost-openssl1.1*
+gostsum_*
+gostsum-dbg*
index 781e42e914d81044743408891e8e1803551ebc53..a22f1b345824ed36b4320b8a56145ebc71ec87b3 100644 (file)
--- 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
index 4628d72924983eb3a78fa14356d158d0656ad80a..d3ab3881f6388acd11c87bedf7024494360b8901 100644 (file)
@@ -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 
 
index 1bdae010facef45da062872cc6cdc3caf6a7c481..d563ef32c4cb9c4d8350d772c79c6afe14abd26c 100644 (file)
@@ -2,7 +2,7 @@ Source: libengine-gost-openssl1.1
 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
@@ -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 (file)
index 0000000..e69de29
diff --git a/debian/gostsum.install b/debian/gostsum.install
new file mode 100644 (file)
index 0000000..bc2625e
--- /dev/null
@@ -0,0 +1,2 @@
+/usr/bin/gostsum
+/usr/bin/gost12sum
index 27a1f57650e5f460cfa59305b52b13c7e9534819..9382c16f3c54bffc92e415cd9dc7189ceab59c61 100755 (executable)
@@ -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