]> www.wagner.pp.ru Git - openssl-gost/debpkg.git/blob - debian/rules
First successful build of debian package
[openssl-gost/debpkg.git] / 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 -m 755 bin/gost.so $(CURDIR)/debian/libengine-gost-openssl1.1/$(OPENSSL_ENGINE_DIR)
33         install -m 755 bin/gostsum $(CURDIR)/debian/gostsum/usr/bin
34         install -m 755 bin/gost12sum $(CURDIR)/debian/gostsum/usr/bin
35 #verride_dh_clean:
36 #       rm -rf bin debian/debhelper-build-stamp
37
38
39