aboutsummaryrefslogtreecommitdiffstats
path: root/build/deb
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2018-07-30 16:56:40 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-07-30 16:56:40 +0800
commita5d5609e3810fd161e55950eb44d8314e3f1e169 (patch)
tree1b387f33124da896bd19430dc1dfda882abd101f /build/deb
parent93c0f1715d1ce6e590811a659d20f0e80277ba6a (diff)
downloadgo-tangerine-a5d5609e3810fd161e55950eb44d8314e3f1e169.tar
go-tangerine-a5d5609e3810fd161e55950eb44d8314e3f1e169.tar.gz
go-tangerine-a5d5609e3810fd161e55950eb44d8314e3f1e169.tar.bz2
go-tangerine-a5d5609e3810fd161e55950eb44d8314e3f1e169.tar.lz
go-tangerine-a5d5609e3810fd161e55950eb44d8314e3f1e169.tar.xz
go-tangerine-a5d5609e3810fd161e55950eb44d8314e3f1e169.tar.zst
go-tangerine-a5d5609e3810fd161e55950eb44d8314e3f1e169.zip
build: rename swarm deb package to ethereum-swarm; change swarm deb version from 1.8.x to 0.3.x (#16988)
* build: add support for different package and binary names * build: bump up copyright date * build: change default PackageName to empty string * build, internal, swarm: enhance build/release process * build: hack ethereum-swarm as a "depends" in deb package * build/ci: remove redundant variables * build, cmd, mobile, params, swarm: remove VERSION file; rename Version to VersionMeta; * internal: remove VERSION() method which reads VERSION file * build: fix VersionFilePath to Version * Makefile: remove clean_go_build_cache.sh until it works * Makefile: revert removal of clean_go_build_cache.sh
Diffstat (limited to 'build/deb')
-rw-r--r--build/deb/ethereum-swarm/deb.changelog5
-rw-r--r--build/deb/ethereum-swarm/deb.control19
-rw-r--r--build/deb/ethereum-swarm/deb.copyright14
-rw-r--r--build/deb/ethereum-swarm/deb.docs1
-rw-r--r--build/deb/ethereum-swarm/deb.install1
-rw-r--r--build/deb/ethereum-swarm/deb.rules13
-rw-r--r--build/deb/ethereum/deb.changelog5
-rw-r--r--build/deb/ethereum/deb.control25
-rw-r--r--build/deb/ethereum/deb.copyright14
-rw-r--r--build/deb/ethereum/deb.docs1
-rw-r--r--build/deb/ethereum/deb.install1
-rw-r--r--build/deb/ethereum/deb.rules13
12 files changed, 112 insertions, 0 deletions
diff --git a/build/deb/ethereum-swarm/deb.changelog b/build/deb/ethereum-swarm/deb.changelog
new file mode 100644
index 000000000..83f804a83
--- /dev/null
+++ b/build/deb/ethereum-swarm/deb.changelog
@@ -0,0 +1,5 @@
+{{.Name}} ({{.VersionString}}) {{.Distro}}; urgency=low
+
+ * git build of {{.Env.Commit}}
+
+ -- {{.Author}} {{.Time}}
diff --git a/build/deb/ethereum-swarm/deb.control b/build/deb/ethereum-swarm/deb.control
new file mode 100644
index 000000000..8cd325bf5
--- /dev/null
+++ b/build/deb/ethereum-swarm/deb.control
@@ -0,0 +1,19 @@
+Source: {{.Name}}
+Section: science
+Priority: extra
+Maintainer: {{.Author}}
+Build-Depends: debhelper (>= 8.0.0), golang-1.10
+Standards-Version: 3.9.5
+Homepage: https://ethereum.org
+Vcs-Git: git://github.com/ethereum/go-ethereum.git
+Vcs-Browser: https://github.com/ethereum/go-ethereum
+
+{{range .Executables}}
+Package: {{$.ExeName .}}
+Conflicts: {{$.ExeConflicts .}}
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Built-Using: ${misc:Built-Using}
+Description: {{.Description}}
+ {{.Description}}
+{{end}}
diff --git a/build/deb/ethereum-swarm/deb.copyright b/build/deb/ethereum-swarm/deb.copyright
new file mode 100644
index 000000000..fe6e36ad9
--- /dev/null
+++ b/build/deb/ethereum-swarm/deb.copyright
@@ -0,0 +1,14 @@
+Copyright 2018 The go-ethereum Authors
+
+go-ethereum is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+go-ethereum is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
diff --git a/build/deb/ethereum-swarm/deb.docs b/build/deb/ethereum-swarm/deb.docs
new file mode 100644
index 000000000..62deb0497
--- /dev/null
+++ b/build/deb/ethereum-swarm/deb.docs
@@ -0,0 +1 @@
+AUTHORS
diff --git a/build/deb/ethereum-swarm/deb.install b/build/deb/ethereum-swarm/deb.install
new file mode 100644
index 000000000..e7666ce5f
--- /dev/null
+++ b/build/deb/ethereum-swarm/deb.install
@@ -0,0 +1 @@
+build/bin/{{.BinaryName}} usr/bin
diff --git a/build/deb/ethereum-swarm/deb.rules b/build/deb/ethereum-swarm/deb.rules
new file mode 100644
index 000000000..7f286569e
--- /dev/null
+++ b/build/deb/ethereum-swarm/deb.rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+override_dh_auto_build:
+ build/env.sh /usr/lib/go-1.10/bin/go run build/ci.go install -git-commit={{.Env.Commit}} -git-branch={{.Env.Branch}} -git-tag={{.Env.Tag}} -buildnum={{.Env.Buildnum}} -pull-request={{.Env.IsPullRequest}}
+
+override_dh_auto_test:
+
+%:
+ dh $@
diff --git a/build/deb/ethereum/deb.changelog b/build/deb/ethereum/deb.changelog
new file mode 100644
index 000000000..83f804a83
--- /dev/null
+++ b/build/deb/ethereum/deb.changelog
@@ -0,0 +1,5 @@
+{{.Name}} ({{.VersionString}}) {{.Distro}}; urgency=low
+
+ * git build of {{.Env.Commit}}
+
+ -- {{.Author}} {{.Time}}
diff --git a/build/deb/ethereum/deb.control b/build/deb/ethereum/deb.control
new file mode 100644
index 000000000..e693d1d04
--- /dev/null
+++ b/build/deb/ethereum/deb.control
@@ -0,0 +1,25 @@
+Source: {{.Name}}
+Section: science
+Priority: extra
+Maintainer: {{.Author}}
+Build-Depends: debhelper (>= 8.0.0), golang-1.10
+Standards-Version: 3.9.5
+Homepage: https://ethereum.org
+Vcs-Git: git://github.com/ethereum/go-ethereum.git
+Vcs-Browser: https://github.com/ethereum/go-ethereum
+
+Package: {{.Name}}
+Architecture: any
+Depends: ${misc:Depends}, {{.EthereumSwarmPackageName}}, {{.ExeList}}
+Description: Meta-package to install geth, swarm, and other tools
+ Meta-package to install geth, swarm and other tools
+
+{{range .Executables}}
+Package: {{$.ExeName .}}
+Conflicts: {{$.ExeConflicts .}}
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Built-Using: ${misc:Built-Using}
+Description: {{.Description}}
+ {{.Description}}
+{{end}}
diff --git a/build/deb/ethereum/deb.copyright b/build/deb/ethereum/deb.copyright
new file mode 100644
index 000000000..fe6e36ad9
--- /dev/null
+++ b/build/deb/ethereum/deb.copyright
@@ -0,0 +1,14 @@
+Copyright 2018 The go-ethereum Authors
+
+go-ethereum is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+go-ethereum is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
diff --git a/build/deb/ethereum/deb.docs b/build/deb/ethereum/deb.docs
new file mode 100644
index 000000000..62deb0497
--- /dev/null
+++ b/build/deb/ethereum/deb.docs
@@ -0,0 +1 @@
+AUTHORS
diff --git a/build/deb/ethereum/deb.install b/build/deb/ethereum/deb.install
new file mode 100644
index 000000000..e7666ce5f
--- /dev/null
+++ b/build/deb/ethereum/deb.install
@@ -0,0 +1 @@
+build/bin/{{.BinaryName}} usr/bin
diff --git a/build/deb/ethereum/deb.rules b/build/deb/ethereum/deb.rules
new file mode 100644
index 000000000..7f286569e
--- /dev/null
+++ b/build/deb/ethereum/deb.rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+override_dh_auto_build:
+ build/env.sh /usr/lib/go-1.10/bin/go run build/ci.go install -git-commit={{.Env.Commit}} -git-branch={{.Env.Branch}} -git-tag={{.Env.Tag}} -buildnum={{.Env.Buildnum}} -pull-request={{.Env.IsPullRequest}}
+
+override_dh_auto_test:
+
+%:
+ dh $@