├── .gitignore ├── Makefile ├── README.md └── debian ├── README.Debian ├── README.source ├── changelog ├── compat ├── control ├── copyright ├── docs ├── gostsum.dirs ├── gostsum.install ├── rules └── source └── format /.gitignore: -------------------------------------------------------------------------------- 1 | engine 2 | libengine-gost-openssl1.1* 3 | gostsum_* 4 | gostsum-dbg* 5 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Use make BRANCH=something to build specific branch 3 | # Upstrimv version is by default set to build date. 4 | # Use make VERSION= something to override 5 | # 6 | BRANCH=master 7 | VERSION := $(shell date +%Y%m%d) 8 | PKGNAME=libengine-gost-openssl1.1 9 | ARCH := $(shell dpkg --print-architecture) 10 | all: $(PKGNAME)_$(VERSION)-1_$(ARCH).deb 11 | 12 | tar: $(PKGNAME)_$(VERSION).orig.tar.bz2 13 | 14 | # 15 | # This rule updates GIT repository and creates tarball with 16 | # original (upstream, i.e. distribution-agnostic) sources of engine 17 | # 18 | $(PKGNAME)_$(VERSION).orig.tar.bz2: engine/README.md 19 | cd engine; git pull 20 | cd engine; git archive --format tar \ 21 | --prefix=$(PKGNAME)-$(VERSION)/ \ 22 | master |bzip2 > ../$(PKGNAME)_$(VERSION).orig.tar.bz2 23 | # 24 | # This rule does intital clone of engine git repository should it be 25 | # absent 26 | # 27 | engine/README.md: 28 | git clone https://github.com/gost-engine/engine.git 29 | 30 | # 31 | # This rule actually build source and binare package starting with 32 | # unpacked debian source directory 33 | # 34 | 35 | $(PKGNAME)_$(VERSION)-1_$(ARCH).deb: $(PKGNAME)-$(VERSION)/debian/changelog 36 | cd $(PKGNAME)-$(VERSION); debuild 37 | # 38 | # This rule creates unpacked Debian source by copiing debian 39 | # subdirectory from this git module into unpacked distribution-agnostic 40 | # source. 41 | # Note - change debian subdirectory here and not inside 42 | # $(PKGNAME)-$(VERSION) if you want you changes survive invocation of 43 | # this rule 44 | # 45 | $(PKGNAME)-$(VERSION)/debian/changelog: $(PKGNAME)_$(VERSION).orig.tar.bz2 $(wildcard debian/*) 46 | rm -rf $(PKGNAME)-$(VERSION) 47 | tar xf $(PKGNAME)_$(VERSION).orig.tar.bz2 48 | cp -r debian $(PKGNAME)-$(VERSION)/debian 49 | cd $(PKGNAME)-$(VERSION); dch -v $(VERSION)-1 "Build for $(ARCH)" 50 | 51 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Debian packaging files for gost-engine 2 | ====================================== 3 | 4 | This repository contains supplemental files 5 | and Makefile to build debian package for gost engine. 6 | 7 | This is intened for Debian 9 (stretch) and newer, which ships 8 | openssl 1.1.0 and above. 9 | 10 | I prefer keep packaging files separately from main source tree. 11 | 12 | Running make in this directory should fetch engine sources and build 13 | debian package (both source and binary for current architecture). 14 | 15 | You need git, build-essential and devscripts installed before running. 16 | All other are listed as Build-Depends prerequesites and should they be 17 | absent, they would be reported during installation. 18 | 19 | -------------------------------------------------------------------------------- /debian/README.Debian: -------------------------------------------------------------------------------- 1 | libengine-gost-openssl1.1 for Debian 2 | ------------------------------------ 3 | 4 | This package contain loadable module for OpenSSL 1.1.x, which implements 5 | Russian GOST cryptograpy algorithms. 6 | 7 | This module can be enabled by adding -engine gost switch to most openssl 8 | library command or by adding appropriate sections to the openssl.cnf 9 | See readme gost for details 10 | 11 | -- Victor Wagner Wed, 02 Aug 2017 11:06:25 +0300 12 | -------------------------------------------------------------------------------- /debian/README.source: -------------------------------------------------------------------------------- 1 | libengine-gost-openssl1.1 for Debian 2 | ------------------------------------ 3 | 4 | 6 | 7 | 8 | 9 | -- Victor Wagner Wed, 02 Aug 2017 11:06:25 +0300 10 | 11 | -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- 1 | libengine-gost-openssl1.1 (20170802-0.1) unstable; urgency=low 2 | 3 | * Initial release 4 | 5 | -- Victor Wagner Wed, 02 Aug 2017 11:06:25 +0300 6 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: libengine-gost-openssl1.1 2 | Section: libs 3 | Priority: extra 4 | Maintainer: Victor Wagner 5 | Build-Depends: debhelper (>= 9), cmake, libssl-dev, openssl 6 | Standards-Version: 3.9.5 7 | Homepage: https://github.com/gost-engine/engine 8 | Vcs-Git: https://github.com/gost-engine/engine.git 9 | 10 | Package: libengine-gost-openssl1.1 11 | Architecture: any 12 | Depends: ${shlibs:Depends}, ${misc:Depends} 13 | Description: Loadable module for openssl implementing GOST algorithms 14 | This package contains loadable module for openssl library, which 15 | implements (in software) Russian national standard (GOST) cryptograpy 16 | algorithms. 17 | 18 | Package: gostsum 19 | Architecture: any 20 | Depends: ${shlibs:Depends}, ${misc:Depends} 21 | Description: Utility to compute GOST hashes 22 | This package contain utilities to compute GOST hashsums 23 | gostsum - computes GOST R 34.11-94 hash 24 | gost12sum - computes GOST R 34.11-2012 hash 25 | 26 | 27 | -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- 1 | Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: gost-engine 3 | Source: https://github.com/gost-engine/engine 4 | 5 | Files: * 6 | Copyright: 2008-2017 Cryptocom Ltd 7 | License: OpenSSL License 8 | 9 | Files: debian/* 10 | Copyright: 2017 Victor Wagner 11 | License: GPL-2+ 12 | This package is free software; you can redistribute it and/or modify 13 | it under the terms of the GNU General Public License as published by 14 | the Free Software Foundation; either version 2 of the License, or 15 | (at your option) any later version. 16 | . 17 | This package is distributed in the hope that it will be useful, 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 | GNU General Public License for more details. 21 | . 22 | You should have received a copy of the GNU General Public License 23 | along with this program. If not, see 24 | . 25 | On Debian systems, the complete text of the GNU General 26 | Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". 27 | 28 | -------------------------------------------------------------------------------- /debian/docs: -------------------------------------------------------------------------------- 1 | README.gost 2 | README.md 3 | -------------------------------------------------------------------------------- /debian/gostsum.dirs: -------------------------------------------------------------------------------- 1 | /usr/bin 2 | /usr/share/man/man1 3 | -------------------------------------------------------------------------------- /debian/gostsum.install: -------------------------------------------------------------------------------- 1 | /usr/bin/gostsum 2 | /usr/bin/gost12sum 3 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # See debhelper(7) (uncomment to enable) 3 | # output every command that modifies files on the build system. 4 | #DH_VERBOSE = 1 5 | 6 | # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* 7 | DPKG_EXPORT_BUILDFLAGS = 1 8 | include /usr/share/dpkg/default.mk 9 | 10 | # see FEATURE AREAS in dpkg-buildflags(1) 11 | #export DEB_BUILD_MAINT_OPTIONS = hardening=+all 12 | 13 | # see ENVIRONMENT in dpkg-buildflags(1) 14 | # package maintainers to append CFLAGS 15 | #export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic 16 | # package maintainers to append LDFLAGS 17 | #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed 18 | 19 | OPENSSL_ENGINE_DIR=$(shell openssl version -e |sed -e 's/^[^.]*"//' -e 's/".*$$//') 20 | # main packaging script based on dh7 syntax 21 | %: 22 | dh $@ 23 | 24 | # debmake generated override targets 25 | # This is example for Cmake (See http://bugs.debian.org/641051 ) 26 | #override_dh_auto_configure: 27 | # dh_auto_configure -- \ 28 | # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) 29 | override_dh_install: 30 | install -d -m 755 $(CURDIR)/debian/libengine-gost-openssl1.1/$(OPENSSL_ENGINE_DIR) 31 | install -d -m 755 $(CURDIR)/debian/gostsum/usr/bin 32 | install -d -m 755 $(CURDIR)/debian/gostsum/usr/share/man/man1 33 | install -m 755 bin/gost.so $(CURDIR)/debian/libengine-gost-openssl1.1/$(OPENSSL_ENGINE_DIR) 34 | install -m 755 bin/gostsum $(CURDIR)/debian/gostsum/usr/bin 35 | install -m 755 bin/gost12sum $(CURDIR)/debian/gostsum/usr/bin 36 | install -m 644 gostsum.1 $(CURDIR)/debian/gostsum/usr/share/man/man1 37 | install -m 644 gost12sum.1 $(CURDIR)/debian/gostsum/usr/share/man/man1 38 | #verride_dh_clean: 39 | # rm -rf bin debian/debhelper-build-stamp 40 | 41 | 42 | 43 | # Please also look if there are files or directories which have a 44 | # different copyright/license attached and list them here. 45 | # Please avoid to pick license terms that are more restrictive than the 46 | # packaged work, as it may make Debian's contributions unacceptable upstream. 47 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | --------------------------------------------------------------------------------