Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 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 | # main packaging script based on dh7 syntax |
| 20 | %: |
| 21 | dh $@ |
| 22 | |
| 23 | DOCS=LEGAL_TERMS README LICENSE_APACHE20 |
| 24 | |
| 25 | DEB_DH_INSTALL_SOURCEDIR = $(CURDIR)/debian/tmp |
| 26 | |
| 27 | override_dh_auto_install: |
| 28 | mkdir -p $(DEB_DH_INSTALL_SOURCEDIR)/tmp |
Girish Gowdra | 315344d | 2020-12-17 08:51:46 -0800 | [diff] [blame] | 29 | cp -a $(CURDIR)/debian/release_asfvolt16_V3.4.9.6.202012040101.tar.gz $(DEB_DH_INSTALL_SOURCEDIR)/tmp |
Girish Gowdra | 252f497 | 2020-09-07 21:24:01 -0700 | [diff] [blame] | 30 | cp -a $(CURDIR)/debian/libz.so.1 $(DEB_DH_INSTALL_SOURCEDIR)/tmp |
Thiyagarajan Subramani | 89fffc0 | 2019-05-13 21:33:20 +0000 | [diff] [blame] | 31 | cp -a $(CURDIR)/debian/libstdc++.so.6 $(DEB_DH_INSTALL_SOURCEDIR)/tmp |
| 32 | cp -a $(CURDIR)/debian/libbal_host_api.so $(DEB_DH_INSTALL_SOURCEDIR)/tmp |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 33 | cp -a $(CURDIR)/debian/openolt $(DEB_DH_INSTALL_SOURCEDIR)/tmp |
Shad Ansari | d0eaf75 | 2018-08-16 00:26:12 +0000 | [diff] [blame] | 34 | cp -a $(CURDIR)/debian/init.d $(DEB_DH_INSTALL_SOURCEDIR)/tmp |
Nicolas Palpacuer | 967438f | 2018-09-07 14:41:54 -0400 | [diff] [blame] | 35 | cp -a $(CURDIR)/debian/logrotate.d $(DEB_DH_INSTALL_SOURCEDIR)/tmp |
Girish Gowdra | 6e74552 | 2020-07-15 15:52:13 -0700 | [diff] [blame] | 36 | cp -a $(CURDIR)/debian/watchdog $(DEB_DH_INSTALL_SOURCEDIR)/tmp |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 37 | |
Shad Ansari | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 38 | #override_dh_shlibdeps: |
| 39 | # dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info -l$(ONLP_LIB_PATH):$(OFDPA_LIB_PATH) |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 40 | |
| 41 | # avoid auto strip for debug ofagentapp.dbg |
| 42 | # |
| 43 | #override_dh_strip: |
| 44 | # echo "No auto strip!" |
| 45 | |
| 46 | #override_dh_installdeb: |
| 47 | # dh_installdeb |
| 48 | # for pkg in $$(dh_listpackages); do \ |
| 49 | # sed -i -e 's!#DEB_SOURCE#!$(DEB_SOURCE)!' debian/$$pkg/DEBIAN/*; \ |
| 50 | # sed -i -e 's!#OPDPA_VER_SUFFIX#!-$(OPDPA_VER)!g' debian/$$pkg/DEBIAN/*; \ |
| 51 | # done |
| 52 | |
| 53 | test: |
| 54 | @echo DEB_SOURCE=$(DEB_SOURCE) |
| 55 | @echo DEB_VERSION=$(DEB_VERSION) |
| 56 | @echo DEB_VERSION_EPOCH_UPSTREAM=$(DEB_VERSION_EPOCH_UPSTREAM) |
| 57 | @echo DEB_VERSION_UPSTREAM_REVISION=$(DEB_VERSION_UPSTREAM_REVISION) |
| 58 | @echo DEB_VERSION_UPSTREAM=$(DEB_VERSION_UPSTREAM) |
| 59 | @echo DEB_DISTRIBUTION=$(DEB_DISTRIBUTION) |
| 60 | @echo DEB_HOST_ARCH=$(DEB_HOST_ARCH) |
| 61 | @echo DEB_HOST_ARCH_CPU=$(DEB_HOST_ARCH_CPU) |
| 62 | @echo DEB_HOST_ARCH_OS=$(DEB_HOST_ARCH_OS) |
| 63 | @echo DEB_HOST_GNU_TYPE=$(DEB_HOST_GNU_TYPE) |
| 64 | @echo DEB_HOST_GNU_CPU=$(DEB_HOST_GNU_CPU) |
| 65 | @echo DEB_HOST_GNU_SYSTEM=$(DEB_HOST_GNU_SYSTEM) |
| 66 | @echo DEB_BUILD_ARCH=$(DEB_BUILD_ARCH) |
| 67 | @echo DEB_BUILD_ARCH_CPU=$(DEB_BUILD_ARCH_CPU) |
| 68 | @echo DEB_BUILD_ARCH_OS=$(DEB_BUILD_ARCH_OS) |
| 69 | @echo DEB_BUILD_GNU_TYPE=$(DEB_BUILD_GNU_TYPE) |
| 70 | @echo DEB_BUILD_GNU_CPU=$(DEB_BUILD_GNU_CPU) |
| 71 | @echo DEB_BUILD_GNU_SYSTEM=$(DEB_BUILD_GNU_SYSTEM) |
| 72 | @echo ONLP_LIB_PATH=$(ONLP_LIB_PATH) |
| 73 | # @echo OFDPA_LIB_PATH=$(OFDPA_LIB_PATH) |
| 74 | # @echo OFDPA_BIN_PATH=$(OFDPA_BIN_PATH) |