diff options
Diffstat (limited to '')
-rw-r--r-- | pkg/deb/Makefile.go | 6 | ||||
-rw-r--r-- | pkg/deb/Makefile.go110 | 48 | ||||
-rw-r--r-- | pkg/deb/Makefile.go111 | 48 | ||||
-rw-r--r-- | pkg/deb/Makefile.go112 | 48 | ||||
-rw-r--r-- | pkg/deb/Makefile.go113 | 48 | ||||
-rw-r--r-- | pkg/deb/Makefile.go17 | 48 | ||||
-rw-r--r-- | pkg/deb/Makefile.go18 | 48 | ||||
-rw-r--r-- | pkg/deb/Makefile.go19 | 48 |
8 files changed, 4 insertions, 338 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 diff --git a/pkg/deb/Makefile.go110 b/pkg/deb/Makefile.go110 deleted file mode 100644 index 0e956d9f..00000000 --- a/pkg/deb/Makefile.go110 +++ /dev/null @@ -1,48 +0,0 @@ -MODULES+= go110 -MODULE_SUFFIX_go110= go1.10 - -MODULE_SUMMARY_go110= Go 1.10 module for NGINX Unit - -MODULE_VERSION_go110= $(VERSION) -MODULE_RELEASE_go110= 1 - -MODULE_CONFARGS_go110= go --go=/usr/lib/go-1.10/bin/go --go-path=/usr/share/gocode -MODULE_MAKEARGS_go110= /usr/lib/go-1.10/bin/go -MODULE_INSTARGS_go110= /usr/lib/go-1.10/bin/go-install - -MODULE_SOURCES_go110= unit.example-go-app \ - unit.example-go1.10-config - -BUILD_DEPENDS_go110= golang-1.10 -BUILD_DEPENDS+= $(BUILD_DEPENDS_go110) - -MODULE_BUILD_DEPENDS_go110=,golang-1.10 -MODULE_DEPENDS_go110=,golang-1.10 - -define MODULE_PREINSTALL_go110 - mkdir -p debian/unit-go1.10/usr/share/doc/unit-go1.10/examples/go-app - install -m 644 -p debian/unit.example-go-app debian/unit-go1.10/usr/share/doc/unit-go1.10/examples/go-app/let-my-people.go - install -m 644 -p debian/unit.example-go1.10-config debian/unit-go1.10/usr/share/doc/unit-go1.10/examples/unit.config -endef -export MODULE_PREINSTALL_go110 - -define MODULE_POST_go110 -cat <<BANNER ----------------------------------------------------------------------- - -The $(MODULE_SUMMARY_go110) has been installed. - -To check out the sample app, run these commands: - - GOPATH=/usr/share/gocode /usr/lib/go-1.10/bin/go build -o /tmp/go1.10-app /usr/share/doc/unit-$(MODULE_SUFFIX_go110)/examples/go-app/let-my-people.go - sudo service unit restart - cd /usr/share/doc/unit-$(MODULE_SUFFIX_go110)/examples - sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config - curl http://localhost:8500/ - -Online documentation is available at https://unit.nginx.org - ----------------------------------------------------------------------- -BANNER -endef -export MODULE_POST_go110 diff --git a/pkg/deb/Makefile.go111 b/pkg/deb/Makefile.go111 deleted file mode 100644 index f8ed5ae8..00000000 --- a/pkg/deb/Makefile.go111 +++ /dev/null @@ -1,48 +0,0 @@ -MODULES+= go111 -MODULE_SUFFIX_go111= go1.11 - -MODULE_SUMMARY_go111= Go 1.11 module for NGINX Unit - -MODULE_VERSION_go111= $(VERSION) -MODULE_RELEASE_go111= 1 - -MODULE_CONFARGS_go111= go --go=/usr/lib/go-1.11/bin/go --go-path=/usr/share/gocode -MODULE_MAKEARGS_go111= /usr/lib/go-1.11/bin/go -MODULE_INSTARGS_go111= /usr/lib/go-1.11/bin/go-install - -MODULE_SOURCES_go111= unit.example-go-app \ - unit.example-go1.11-config - -BUILD_DEPENDS_go111= golang-1.11 -BUILD_DEPENDS+= $(BUILD_DEPENDS_go111) - -MODULE_BUILD_DEPENDS_go111=,golang-1.11 -MODULE_DEPENDS_go111=,golang-1.11 - -define MODULE_PREINSTALL_go111 - mkdir -p debian/unit-go1.11/usr/share/doc/unit-go1.11/examples/go-app - install -m 644 -p debian/unit.example-go-app debian/unit-go1.11/usr/share/doc/unit-go1.11/examples/go-app/let-my-people.go - install -m 644 -p debian/unit.example-go1.11-config debian/unit-go1.11/usr/share/doc/unit-go1.11/examples/unit.config -endef -export MODULE_PREINSTALL_go111 - -define MODULE_POST_go111 -cat <<BANNER ----------------------------------------------------------------------- - -The $(MODULE_SUMMARY_go111) has been installed. - -To check out the sample app, run these commands: - - GOPATH=/usr/share/gocode /usr/lib/go-1.11/bin/go build -o /tmp/go1.11-app /usr/share/doc/unit-$(MODULE_SUFFIX_go111)/examples/go-app/let-my-people.go - sudo service unit restart - cd /usr/share/doc/unit-$(MODULE_SUFFIX_go111)/examples - sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config - curl http://localhost:8500/ - -Online documentation is available at https://unit.nginx.org - ----------------------------------------------------------------------- -BANNER -endef -export MODULE_POST_go111 diff --git a/pkg/deb/Makefile.go112 b/pkg/deb/Makefile.go112 deleted file mode 100644 index f64ab4c5..00000000 --- a/pkg/deb/Makefile.go112 +++ /dev/null @@ -1,48 +0,0 @@ -MODULES+= go112 -MODULE_SUFFIX_go112= go1.12 - -MODULE_SUMMARY_go112= Go 1.12 module for NGINX Unit - -MODULE_VERSION_go112= $(VERSION) -MODULE_RELEASE_go112= 1 - -MODULE_CONFARGS_go112= go --go=/usr/lib/go-1.12/bin/go --go-path=/usr/share/gocode -MODULE_MAKEARGS_go112= /usr/lib/go-1.12/bin/go -MODULE_INSTARGS_go112= /usr/lib/go-1.12/bin/go-install - -MODULE_SOURCES_go112= unit.example-go-app \ - unit.example-go1.12-config - -BUILD_DEPENDS_go112= golang-1.12 -BUILD_DEPENDS+= $(BUILD_DEPENDS_go112) - -MODULE_BUILD_DEPENDS_go112=,golang-1.12 -MODULE_DEPENDS_go112=,golang-1.12 - -define MODULE_PREINSTALL_go112 - mkdir -p debian/unit-go1.12/usr/share/doc/unit-go1.12/examples/go-app - install -m 644 -p debian/unit.example-go-app debian/unit-go1.12/usr/share/doc/unit-go1.12/examples/go-app/let-my-people.go - install -m 644 -p debian/unit.example-go1.12-config debian/unit-go1.12/usr/share/doc/unit-go1.12/examples/unit.config -endef -export MODULE_PREINSTALL_go112 - -define MODULE_POST_go112 -cat <<BANNER ----------------------------------------------------------------------- - -The $(MODULE_SUMMARY_go112) has been installed. - -To check out the sample app, run these commands: - - GOPATH=/usr/share/gocode /usr/lib/go-1.12/bin/go build -o /tmp/go1.12-app /usr/share/doc/unit-$(MODULE_SUFFIX_go112)/examples/go-app/let-my-people.go - sudo service unit restart - cd /usr/share/doc/unit-$(MODULE_SUFFIX_go112)/examples - sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config - curl http://localhost:8500/ - -Online documentation is available at https://unit.nginx.org - ----------------------------------------------------------------------- -BANNER -endef -export MODULE_POST_go112 diff --git a/pkg/deb/Makefile.go113 b/pkg/deb/Makefile.go113 deleted file mode 100644 index ded2e45a..00000000 --- a/pkg/deb/Makefile.go113 +++ /dev/null @@ -1,48 +0,0 @@ -MODULES+= go113 -MODULE_SUFFIX_go113= go1.13 - -MODULE_SUMMARY_go113= Go 1.13 module for NGINX Unit - -MODULE_VERSION_go113= $(VERSION) -MODULE_RELEASE_go113= 1 - -MODULE_CONFARGS_go113= go --go=/usr/lib/go-1.13/bin/go --go-path=/usr/share/gocode -MODULE_MAKEARGS_go113= /usr/lib/go-1.13/bin/go -MODULE_INSTARGS_go113= /usr/lib/go-1.13/bin/go-install - -MODULE_SOURCES_go113= unit.example-go-app \ - unit.example-go1.13-config - -BUILD_DEPENDS_go113= golang-1.13 -BUILD_DEPENDS+= $(BUILD_DEPENDS_go113) - -MODULE_BUILD_DEPENDS_go113=,golang-1.13 -MODULE_DEPENDS_go113=,golang-1.13 - -define MODULE_PREINSTALL_go113 - mkdir -p debian/unit-go1.13/usr/share/doc/unit-go1.13/examples/go-app - install -m 644 -p debian/unit.example-go-app debian/unit-go1.13/usr/share/doc/unit-go1.13/examples/go-app/let-my-people.go - install -m 644 -p debian/unit.example-go1.13-config debian/unit-go1.13/usr/share/doc/unit-go1.13/examples/unit.config -endef -export MODULE_PREINSTALL_go113 - -define MODULE_POST_go113 -cat <<BANNER ----------------------------------------------------------------------- - -The $(MODULE_SUMMARY_go113) has been installed. - -To check out the sample app, run these commands: - - GOPATH=/usr/share/gocode /usr/lib/go-1.13/bin/go build -o /tmp/go1.13-app /usr/share/doc/unit-$(MODULE_SUFFIX_go113)/examples/go-app/let-my-people.go - sudo service unit restart - cd /usr/share/doc/unit-$(MODULE_SUFFIX_go113)/examples - sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config - curl http://localhost:8500/ - -Online documentation is available at https://unit.nginx.org - ----------------------------------------------------------------------- -BANNER -endef -export MODULE_POST_go113 diff --git a/pkg/deb/Makefile.go17 b/pkg/deb/Makefile.go17 deleted file mode 100644 index d014edd1..00000000 --- a/pkg/deb/Makefile.go17 +++ /dev/null @@ -1,48 +0,0 @@ -MODULES+= go17 -MODULE_SUFFIX_go17= go1.7 - -MODULE_SUMMARY_go17= Go 1.7 module for NGINX Unit - -MODULE_VERSION_go17= $(VERSION) -MODULE_RELEASE_go17= 1 - -MODULE_CONFARGS_go17= go --go=/usr/lib/go-1.7/bin/go --go-path=/usr/share/gocode -MODULE_MAKEARGS_go17= /usr/lib/go-1.7/bin/go -MODULE_INSTARGS_go17= /usr/lib/go-1.7/bin/go-install - -MODULE_SOURCES_go17= unit.example-go-app \ - unit.example-go1.7-config - -BUILD_DEPENDS_go17= golang-1.7 -BUILD_DEPENDS+= $(BUILD_DEPENDS_go17) - -MODULE_BUILD_DEPENDS_go17=,golang-1.7 -MODULE_DEPENDS_go17=,golang-1.7 - -define MODULE_PREINSTALL_go17 - mkdir -p debian/unit-go1.7/usr/share/doc/unit-go1.7/examples/go-app - install -m 644 -p debian/unit.example-go-app debian/unit-go1.7/usr/share/doc/unit-go1.7/examples/go-app/let-my-people.go - install -m 644 -p debian/unit.example-go1.7-config debian/unit-go1.7/usr/share/doc/unit-go1.7/examples/unit.config -endef -export MODULE_PREINSTALL_go17 - -define MODULE_POST_go17 -cat <<BANNER ----------------------------------------------------------------------- - -The $(MODULE_SUMMARY_go17) has been installed. - -To check out the sample app, run these commands: - - GOPATH=/usr/share/gocode /usr/lib/go-1.7/bin/go build -o /tmp/go1.7-app /usr/share/doc/unit-$(MODULE_SUFFIX_go17)/examples/go-app/let-my-people.go - sudo service unit restart - cd /usr/share/doc/unit-$(MODULE_SUFFIX_go17)/examples - sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config - curl http://localhost:8500/ - -Online documentation is available at https://unit.nginx.org - ----------------------------------------------------------------------- -BANNER -endef -export MODULE_POST_go17 diff --git a/pkg/deb/Makefile.go18 b/pkg/deb/Makefile.go18 deleted file mode 100644 index 597f4804..00000000 --- a/pkg/deb/Makefile.go18 +++ /dev/null @@ -1,48 +0,0 @@ -MODULES+= go18 -MODULE_SUFFIX_go18= go1.8 - -MODULE_SUMMARY_go18= Go 1.8 module for NGINX Unit - -MODULE_VERSION_go18= $(VERSION) -MODULE_RELEASE_go18= 1 - -MODULE_CONFARGS_go18= go --go=/usr/lib/go-1.8/bin/go --go-path=/usr/share/gocode -MODULE_MAKEARGS_go18= /usr/lib/go-1.8/bin/go -MODULE_INSTARGS_go18= /usr/lib/go-1.8/bin/go-install - -MODULE_SOURCES_go18= unit.example-go-app \ - unit.example-go1.8-config - -BUILD_DEPENDS_go18= golang-1.8 -BUILD_DEPENDS+= $(BUILD_DEPENDS_go18) - -MODULE_BUILD_DEPENDS_go18=,golang-1.8 -MODULE_DEPENDS_go18=,golang-1.8 - -define MODULE_PREINSTALL_go18 - mkdir -p debian/unit-go1.8/usr/share/doc/unit-go1.8/examples/go-app - install -m 644 -p debian/unit.example-go-app debian/unit-go1.8/usr/share/doc/unit-go1.8/examples/go-app/let-my-people.go - install -m 644 -p debian/unit.example-go1.8-config debian/unit-go1.8/usr/share/doc/unit-go1.8/examples/unit.config -endef -export MODULE_PREINSTALL_go18 - -define MODULE_POST_go18 -cat <<BANNER ----------------------------------------------------------------------- - -The $(MODULE_SUMMARY_go18) has been installed. - -To check out the sample app, run these commands: - - GOPATH=/usr/share/gocode /usr/lib/go-1.8/bin/go build -o /tmp/go1.8-app /usr/share/doc/unit-$(MODULE_SUFFIX_go18)/examples/go-app/let-my-people.go - sudo service unit restart - cd /usr/share/doc/unit-$(MODULE_SUFFIX_go18)/examples - sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config - curl http://localhost:8500/ - -Online documentation is available at https://unit.nginx.org - ----------------------------------------------------------------------- -BANNER -endef -export MODULE_POST_go18 diff --git a/pkg/deb/Makefile.go19 b/pkg/deb/Makefile.go19 deleted file mode 100644 index 60d4b239..00000000 --- a/pkg/deb/Makefile.go19 +++ /dev/null @@ -1,48 +0,0 @@ -MODULES+= go19 -MODULE_SUFFIX_go19= go1.9 - -MODULE_SUMMARY_go19= Go 1.9 module for NGINX Unit - -MODULE_VERSION_go19= $(VERSION) -MODULE_RELEASE_go19= 1 - -MODULE_CONFARGS_go19= go --go=/usr/lib/go-1.9/bin/go --go-path=/usr/share/gocode -MODULE_MAKEARGS_go19= /usr/lib/go-1.9/bin/go -MODULE_INSTARGS_go19= /usr/lib/go-1.9/bin/go-install - -MODULE_SOURCES_go19= unit.example-go-app \ - unit.example-go1.9-config - -BUILD_DEPENDS_go19= golang-1.9 -BUILD_DEPENDS+= $(BUILD_DEPENDS_go19) - -MODULE_BUILD_DEPENDS_go19=,golang-1.9 -MODULE_DEPENDS_go19=,golang-1.9 - -define MODULE_PREINSTALL_go19 - mkdir -p debian/unit-go1.9/usr/share/doc/unit-go1.9/examples/go-app - install -m 644 -p debian/unit.example-go-app debian/unit-go1.9/usr/share/doc/unit-go1.9/examples/go-app/let-my-people.go - install -m 644 -p debian/unit.example-go1.9-config debian/unit-go1.9/usr/share/doc/unit-go1.9/examples/unit.config -endef -export MODULE_PREINSTALL_go19 - -define MODULE_POST_go19 -cat <<BANNER ----------------------------------------------------------------------- - -The $(MODULE_SUMMARY_go19) has been installed. - -To check out the sample app, run these commands: - - GOPATH=/usr/share/gocode /usr/lib/go-1.9/bin/go build -o /tmp/go1.9-app /usr/share/doc/unit-$(MODULE_SUFFIX_go19)/examples/go-app/let-my-people.go - sudo service unit restart - cd /usr/share/doc/unit-$(MODULE_SUFFIX_go19)/examples - sudo curl -X PUT --data-binary @unit.config --unix-socket /var/run/control.unit.sock http://localhost/config - curl http://localhost:8500/ - -Online documentation is available at https://unit.nginx.org - ----------------------------------------------------------------------- -BANNER -endef -export MODULE_POST_go19 |