diff options
Diffstat (limited to '')
-rw-r--r-- | pkg/deb/Makefile | 19 | ||||
-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 | ||||
-rw-r--r-- | pkg/deb/debian.module/rules-noarch.in | 1 | ||||
-rwxr-xr-x | pkg/deb/debian.module/rules.in | 1 | ||||
-rw-r--r-- | pkg/deb/debian.module/unit.example-go-app | 2 | ||||
-rw-r--r-- | pkg/deb/debian.module/unit.example-go1.10-config | 15 | ||||
-rw-r--r-- | pkg/deb/debian.module/unit.example-go1.11-config | 15 | ||||
-rw-r--r-- | pkg/deb/debian.module/unit.example-go1.12-config | 15 | ||||
-rw-r--r-- | pkg/deb/debian.module/unit.example-go1.13-config | 15 | ||||
-rw-r--r-- | pkg/deb/debian.module/unit.example-go1.7-config | 15 | ||||
-rw-r--r-- | pkg/deb/debian.module/unit.example-go1.8-config | 15 | ||||
-rw-r--r-- | pkg/deb/debian.module/unit.example-go1.9-config | 15 | ||||
-rw-r--r-- | pkg/deb/debian/rules.in | 1 | ||||
-rw-r--r-- | pkg/deb/debian/unit.example-go-app | 2 |
21 files changed, 16 insertions, 457 deletions
diff --git a/pkg/deb/Makefile b/pkg/deb/Makefile index 855dd6f7..13063fd8 100644 --- a/pkg/deb/Makefile +++ b/pkg/deb/Makefile @@ -22,8 +22,7 @@ include Makefile.php include Makefile.python27 include Makefile.python37 include Makefile.python38 -include Makefile.go112 -include Makefile.go113 +include Makefile.go include Makefile.perl include Makefile.ruby include Makefile.jsc-common @@ -36,8 +35,7 @@ include Makefile.php include Makefile.python27 include Makefile.python37 include Makefile.python38 -include Makefile.go110 -include Makefile.go111 +include Makefile.go include Makefile.perl include Makefile.ruby include Makefile.jsc-common @@ -50,8 +48,7 @@ include Makefile.php include Makefile.python27 include Makefile.python36 include Makefile.python37 -include Makefile.go19 -include Makefile.go110 +include Makefile.go include Makefile.perl include Makefile.ruby include Makefile.jsc-common @@ -66,8 +63,7 @@ include Makefile.python27 include Makefile.python36 include Makefile.python37 include Makefile.python38 -include Makefile.go19 -include Makefile.go110 +include Makefile.go include Makefile.perl include Makefile.ruby include Makefile.jsc-common @@ -99,7 +95,7 @@ ifeq ($(CODENAME),buster) include Makefile.php include Makefile.python27 include Makefile.python37 -include Makefile.go111 +include Makefile.go include Makefile.perl include Makefile.ruby include Makefile.jsc-common @@ -111,8 +107,7 @@ ifeq ($(CODENAME),stretch) include Makefile.php include Makefile.python27 include Makefile.python35 -include Makefile.go17 -include Makefile.go18 +include Makefile.go include Makefile.perl include Makefile.ruby include Makefile.jsc-common @@ -200,7 +195,7 @@ endif debuild/unit_$(VERSION).orig.tar.gz: | debuild/$(SRCDIR)/debian cd ../.. && tar -czf pkg/deb/debuild/$(SRCDIR).tar.gz \ --transform "s#^#$(SRCDIR)/#" \ - LICENSE NOTICE CHANGES README configure auto src test version + LICENSE NOTICE CHANGES README configure auto src test version go mv debuild/$(SRCDIR).tar.gz debuild/unit_$(VERSION).orig.tar.gz cd debuild && tar zxf unit_$(VERSION).orig.tar.gz 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 diff --git a/pkg/deb/debian.module/rules-noarch.in b/pkg/deb/debian.module/rules-noarch.in index 823675ba..a24602c4 100644 --- a/pkg/deb/debian.module/rules-noarch.in +++ b/pkg/deb/debian.module/rules-noarch.in @@ -27,6 +27,7 @@ config.env.%: cp -Pa $(CURDIR)/LICENSE $(BUILDDIR_$*)/ cp -Pa $(CURDIR)/NOTICE $(BUILDDIR_$*)/ cp -Pa $(CURDIR)/README $(BUILDDIR_$*)/ + cp -Pa $(CURDIR)/go $(BUILDDIR_$*)/ touch $@ configure.unit: config.env.unit diff --git a/pkg/deb/debian.module/rules.in b/pkg/deb/debian.module/rules.in index 1391e01a..8ee277b3 100755 --- a/pkg/deb/debian.module/rules.in +++ b/pkg/deb/debian.module/rules.in @@ -27,6 +27,7 @@ config.env.%: cp -Pa $(CURDIR)/LICENSE $(BUILDDIR_$*)/ cp -Pa $(CURDIR)/NOTICE $(BUILDDIR_$*)/ cp -Pa $(CURDIR)/README $(BUILDDIR_$*)/ + cp -Pa $(CURDIR)/go $(BUILDDIR_$*)/ touch $@ configure.unit: config.env.unit diff --git a/pkg/deb/debian.module/unit.example-go-app b/pkg/deb/debian.module/unit.example-go-app index 7ca0c9fd..6eec1dbb 100644 --- a/pkg/deb/debian.module/unit.example-go-app +++ b/pkg/deb/debian.module/unit.example-go-app @@ -3,7 +3,7 @@ package main import ( "fmt" "net/http" - "nginx/unit" + "unit.nginx.org/go" ) func handler(w http.ResponseWriter, r *http.Request) { diff --git a/pkg/deb/debian.module/unit.example-go1.10-config b/pkg/deb/debian.module/unit.example-go1.10-config deleted file mode 100644 index 61790b73..00000000 --- a/pkg/deb/debian.module/unit.example-go1.10-config +++ /dev/null @@ -1,15 +0,0 @@ -{ - "applications": { - "example_go": { - "type": "external", - "user": "nobody", - "executable": "/tmp/go1.10-app" - } - }, - - "listeners": { - "*:8500": { - "pass": "applications/example_go" - } - } -} diff --git a/pkg/deb/debian.module/unit.example-go1.11-config b/pkg/deb/debian.module/unit.example-go1.11-config deleted file mode 100644 index 5e063a4c..00000000 --- a/pkg/deb/debian.module/unit.example-go1.11-config +++ /dev/null @@ -1,15 +0,0 @@ -{ - "applications": { - "example_go": { - "type": "external", - "user": "nobody", - "executable": "/tmp/go1.11-app" - } - }, - - "listeners": { - "*:8500": { - "pass": "applications/example_go" - } - } -} diff --git a/pkg/deb/debian.module/unit.example-go1.12-config b/pkg/deb/debian.module/unit.example-go1.12-config deleted file mode 100644 index b49f0aba..00000000 --- a/pkg/deb/debian.module/unit.example-go1.12-config +++ /dev/null @@ -1,15 +0,0 @@ -{ - "applications": { - "example_go": { - "type": "external", - "user": "nobody", - "executable": "/tmp/go1.12-app" - } - }, - - "listeners": { - "*:8500": { - "pass": "applications/example_go" - } - } -} diff --git a/pkg/deb/debian.module/unit.example-go1.13-config b/pkg/deb/debian.module/unit.example-go1.13-config deleted file mode 100644 index 7dbffb17..00000000 --- a/pkg/deb/debian.module/unit.example-go1.13-config +++ /dev/null @@ -1,15 +0,0 @@ -{ - "applications": { - "example_go": { - "type": "external", - "user": "nobody", - "executable": "/tmp/go1.13-app" - } - }, - - "listeners": { - "*:8500": { - "pass": "applications/example_go" - } - } -} diff --git a/pkg/deb/debian.module/unit.example-go1.7-config b/pkg/deb/debian.module/unit.example-go1.7-config deleted file mode 100644 index e1a8e1a4..00000000 --- a/pkg/deb/debian.module/unit.example-go1.7-config +++ /dev/null @@ -1,15 +0,0 @@ -{ - "applications": { - "example_go": { - "type": "external", - "user": "nobody", - "executable": "/tmp/go1.7-app" - } - }, - - "listeners": { - "*:8500": { - "pass": "applications/example_go" - } - } -} diff --git a/pkg/deb/debian.module/unit.example-go1.8-config b/pkg/deb/debian.module/unit.example-go1.8-config deleted file mode 100644 index e570f38c..00000000 --- a/pkg/deb/debian.module/unit.example-go1.8-config +++ /dev/null @@ -1,15 +0,0 @@ -{ - "applications": { - "example_go": { - "type": "external", - "user": "nobody", - "executable": "/tmp/go1.8-app" - } - }, - - "listeners": { - "*:8500": { - "pass": "applications/example_go" - } - } -} diff --git a/pkg/deb/debian.module/unit.example-go1.9-config b/pkg/deb/debian.module/unit.example-go1.9-config deleted file mode 100644 index 90ef7d5f..00000000 --- a/pkg/deb/debian.module/unit.example-go1.9-config +++ /dev/null @@ -1,15 +0,0 @@ -{ - "applications": { - "example_go": { - "type": "external", - "user": "nobody", - "executable": "/tmp/go1.9-app" - } - }, - - "listeners": { - "*:8500": { - "pass": "applications/example_go" - } - } -} diff --git a/pkg/deb/debian/rules.in b/pkg/deb/debian/rules.in index bee9223f..a4696793 100644 --- a/pkg/deb/debian/rules.in +++ b/pkg/deb/debian/rules.in @@ -31,6 +31,7 @@ config.env.%: cp -Pa $(CURDIR)/LICENSE $(BUILDDIR_$*)/ cp -Pa $(CURDIR)/NOTICE $(BUILDDIR_$*)/ cp -Pa $(CURDIR)/README $(BUILDDIR_$*)/ + cp -Pa $(CURDIR)/go $(BUILDDIR_$*)/ touch $@ configure.unit: config.env.unit diff --git a/pkg/deb/debian/unit.example-go-app b/pkg/deb/debian/unit.example-go-app index 7ca0c9fd..6eec1dbb 100644 --- a/pkg/deb/debian/unit.example-go-app +++ b/pkg/deb/debian/unit.example-go-app @@ -3,7 +3,7 @@ package main import ( "fmt" "net/http" - "nginx/unit" + "unit.nginx.org/go" ) func handler(w http.ResponseWriter, r *http.Request) { |