]> www.wagner.pp.ru Git - openssl-gost/debpkg.git/blob - debian/rules
Added manual pages to gostsum 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 -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.