diff options
author | Max Romanov <max.romanov@nginx.com> | 2019-12-24 17:59:44 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2019-12-24 17:59:44 +0300 |
commit | 3d712a7078e6cd85dc7f2961628bea46cfea5236 (patch) | |
tree | 10ffa05fdcab63d05e3b1b7ba1c8cb6ddcafea7a /pkg/deb/Makefile.go | |
parent | 823f658c771af8b6ff07a3581a2c63efc6a15ad2 (diff) | |
download | unit-3d712a7078e6cd85dc7f2961628bea46cfea5236.tar.gz unit-3d712a7078e6cd85dc7f2961628bea46cfea5236.tar.bz2 |
Packages: making unit-go architecture independent.
To support Go modules, the unit-go module should be platform independent.
All platform-dependent logic is moved to libunit, so the unit-dev package
should be installed before building unit-go.
Diffstat (limited to 'pkg/deb/Makefile.go')
-rw-r--r-- | pkg/deb/Makefile.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/deb/Makefile.go b/pkg/deb/Makefile.go index 3399f5ca..cdccb5ed 100644 --- a/pkg/deb/Makefile.go +++ b/pkg/deb/Makefile.go @@ -8,7 +8,7 @@ MODULE_RELEASE_go= 1 MODULE_CONFARGS_go= go --go-path=/usr/share/gocode MODULE_MAKEARGS_go= go -MODULE_INSTARGS_go= go-install +MODULE_INSTARGS_go= go-install-src MODULE_SOURCES_go= unit.example-go-app \ unit.example-go-config @@ -17,7 +17,9 @@ BUILD_DEPENDS_go= golang BUILD_DEPENDS+= $(BUILD_DEPENDS_go) MODULE_BUILD_DEPENDS_go=,golang -MODULE_DEPENDS_go=,golang +MODULE_DEPENDS_go=,golang,unit-dev (= $(VERSION)-$(RELEASE)~$(CODENAME)) + +MODULE_NOARCH_go= true define MODULE_PREINSTALL_go mkdir -p debian/unit-go/usr/share/doc/unit-go/examples/go-app |