basecoin - basecoind rename
This commit is contained in:
parent
0192e101ce
commit
82106913f1
|
@ -35,12 +35,12 @@ endif
|
||||||
# Here comes the real deal
|
# Here comes the real deal
|
||||||
###
|
###
|
||||||
|
|
||||||
binaries = tendermint basecoin ethermint gaia
|
binaries = tendermint basecoind ethermint gaia
|
||||||
build-binaries = build-tendermint build-basecoin build-ethermint build-gaia
|
build-binaries = build-tendermint build-basecoind build-ethermint build-gaia
|
||||||
package-rpm = package-rpm-tendermint package-rpm-basecoin package-rpm-ethermint package-rpm-gaia
|
package-rpm = package-rpm-tendermint package-rpm-basecoind package-rpm-ethermint package-rpm-gaia
|
||||||
install-rpm = install-rpm-tendermint install-rpm-basecoin install-rpm-ethermint install-rpm-gaia
|
install-rpm = install-rpm-tendermint install-rpm-basecoind install-rpm-ethermint install-rpm-gaia
|
||||||
package-deb = package-deb-tendermint package-deb-basecoin package-deb-ethermint package-deb-gaia
|
package-deb = package-deb-tendermint package-deb-basecoind package-deb-ethermint package-deb-gaia
|
||||||
install-deb = install-deb-tendermint install-deb-basecoin install-deb-ethermint install-deb-gaia
|
install-deb = install-deb-tendermint install-deb-basecoind install-deb-ethermint install-deb-gaia
|
||||||
|
|
||||||
all: $(binaries)
|
all: $(binaries)
|
||||||
build: $(build-binaries)
|
build: $(build-binaries)
|
||||||
|
@ -83,13 +83,13 @@ build-gaia: git-branch gopath-setup
|
||||||
export PATH=$(GOPATH)/bin:$(PATH) && $(MAKE) -C $(GOPATH)/src/github.com/cosmos/gaia get_vendor_deps install
|
export PATH=$(GOPATH)/bin:$(PATH) && $(MAKE) -C $(GOPATH)/src/github.com/cosmos/gaia get_vendor_deps install
|
||||||
@echo "*** Built gaia"
|
@echo "*** Built gaia"
|
||||||
|
|
||||||
build-basecoin: git-branch gopath-setup
|
build-basecoind: git-branch gopath-setup
|
||||||
@echo "*** Building basecoin from cosmos-sdk"
|
@echo "*** Building basecoind from cosmos-sdk"
|
||||||
go get -d -u github.com/cosmos/cosmos-sdk/examples/basecoin/cmd/basecoind
|
go get -d -u github.com/cosmos/cosmos-sdk/examples/basecoin/cmd/basecoind
|
||||||
cd $(GOPATH)/src/github.com/cosmos/cosmos-sdk && git checkout "$(GIT_BRANCH)" && git pull
|
cd $(GOPATH)/src/github.com/cosmos/cosmos-sdk && git checkout "$(GIT_BRANCH)" && git pull
|
||||||
export PATH=$(GOPATH)/bin:$(PATH) && $(MAKE) -C $(GOPATH)/src/github.com/cosmos/cosmos-sdk get_tools get_vendor_deps build
|
export PATH=$(GOPATH)/bin:$(PATH) && $(MAKE) -C $(GOPATH)/src/github.com/cosmos/cosmos-sdk get_tools get_vendor_deps build
|
||||||
cp $(GOPATH)/src/github.com/cosmos/cosmos-sdk/build/basecoind $(GOPATH)/bin/basecoin
|
cp $(GOPATH)/src/github.com/cosmos/cosmos-sdk/build/basecoind $(GOPATH)/bin/basecoind
|
||||||
@echo "*** Built basecoin from cosmos-sdk"
|
@echo "*** Built basecoind from cosmos-sdk"
|
||||||
|
|
||||||
###
|
###
|
||||||
# Prepare package files
|
# Prepare package files
|
||||||
|
@ -119,7 +119,7 @@ prepare-ethermint = mkdir -p $(build_folder)/etc/ethermint && \
|
||||||
cp $(GOPATH)/src/github.com/tendermint/ethermint/setup/genesis.json $(build_folder)/etc/ethermint/genesis.json && \
|
cp $(GOPATH)/src/github.com/tendermint/ethermint/setup/genesis.json $(build_folder)/etc/ethermint/genesis.json && \
|
||||||
cp -r $(GOPATH)/src/github.com/tendermint/ethermint/setup/keystore $(build_folder)/etc/ethermint
|
cp -r $(GOPATH)/src/github.com/tendermint/ethermint/setup/keystore $(build_folder)/etc/ethermint
|
||||||
prepare-gaia =
|
prepare-gaia =
|
||||||
prepare-basecoin = cp $(GOPATH)/bin/basecoin $(build_folder)/usr/bin
|
prepare-basecoind = cp $(GOPATH)/bin/basecoind $(build_folder)/usr/bin
|
||||||
|
|
||||||
###
|
###
|
||||||
# Package the binary for CentOS/RedHat (RPM) and Debian/Ubuntu (DEB)
|
# Package the binary for CentOS/RedHat (RPM) and Debian/Ubuntu (DEB)
|
||||||
|
@ -199,7 +199,7 @@ install-rpm-%: version-%
|
||||||
cp ./RPM-GPG-KEY-Tendermint tmp/s3/7/os/x86_64/
|
cp ./RPM-GPG-KEY-Tendermint tmp/s3/7/os/x86_64/
|
||||||
cp ./tendermint.repo tmp/s3/7/os/x86_64/
|
cp ./tendermint.repo tmp/s3/7/os/x86_64/
|
||||||
rm -f tmp/s3/7/os/x86_64/repodata/*.bz2 tmp/s3/7/os/x86_64/repodata/*.gz tmp/s3/7/os/x86_64/repodata/repomd.xml.asc
|
rm -f tmp/s3/7/os/x86_64/repodata/*.bz2 tmp/s3/7/os/x86_64/repodata/*.gz tmp/s3/7/os/x86_64/repodata/repomd.xml.asc
|
||||||
createrepo tmp/s3/7/os/x86_64/Packages -u https://tendermint-packages.interblock.io/$(DEVOPS_PATH)centos/7/os/x86_64/Packages -o tmp/s3/7/os/x86_64 --update -S --repo Tendermint --content tendermint --content basecoin --content ethermint
|
createrepo tmp/s3/7/os/x86_64/Packages -u https://tendermint-packages.interblock.io/$(DEVOPS_PATH)centos/7/os/x86_64/Packages -o tmp/s3/7/os/x86_64 --update -S --repo Tendermint --content tendermint --content basecoind --content ethermint
|
||||||
gpg --batch --passphrase "$(GPG_PASSPHRASE)" --detach-sign -a tmp/s3/7/os/x86_64/repodata/repomd.xml
|
gpg --batch --passphrase "$(GPG_PASSPHRASE)" --detach-sign -a tmp/s3/7/os/x86_64/repodata/repomd.xml
|
||||||
aws s3 sync tmp/s3/ s3://tendermint-packages/$(DEVOPS_PATH)centos/ --delete --acl public-read
|
aws s3 sync tmp/s3/ s3://tendermint-packages/$(DEVOPS_PATH)centos/ --delete --acl public-read
|
||||||
@echo "*** Uploaded $* to AWS $(DEVOPS_PATH)CentOS repository"
|
@echo "*** Uploaded $* to AWS $(DEVOPS_PATH)CentOS repository"
|
||||||
|
@ -281,7 +281,7 @@ distclean: clean
|
||||||
rm -rf $(GOPATH)/src/github.com/cosmos/cosmos-sdk
|
rm -rf $(GOPATH)/src/github.com/cosmos/cosmos-sdk
|
||||||
rm -rf $(GOPATH)/src/github.com/tendermint/ethermint
|
rm -rf $(GOPATH)/src/github.com/tendermint/ethermint
|
||||||
rm -rf $(GOPATH)/bin/tendermint
|
rm -rf $(GOPATH)/bin/tendermint
|
||||||
rm -rf $(GOPATH)/bin/basecoin
|
rm -rf $(GOPATH)/bin/basecoind
|
||||||
rm -rf $(GOPATH)/bin/ethermint
|
rm -rf $(GOPATH)/bin/ethermint
|
||||||
rm -rf $(GOPATH)/bin/gaia
|
rm -rf $(GOPATH)/bin/gaia
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
basecoin (@VERSION@) @STABILITY@; urgency=medium
|
|
||||||
|
|
||||||
* Automatic build. See https://github.com/tendermint/basecoin for more information.
|
|
||||||
|
|
||||||
-- Greg Szabo <greg@philosobear.com> @DATETIMESTAMP@
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
Source: basecoin
|
|
||||||
Section: net
|
|
||||||
Priority: optional
|
|
||||||
Maintainer: Greg Szabo <greg@philosobear.com>
|
|
||||||
Build-Depends: debhelper (>=9)
|
|
||||||
Standards-Version: 3.9.6
|
|
||||||
Homepage: https://tendermint.com
|
|
||||||
Package: basecoin
|
|
||||||
Architecture: amd64
|
|
||||||
Version: @VERSION@
|
|
||||||
Installed-Size: @INSTALLEDSIZE@
|
|
||||||
Description: basecoin is a Proof-of-Stake cryptocurrency and framework
|
|
||||||
Basecoin is an ABCI application designed to be used with the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency. It also provides a general purpose framework for extending the feature-set of the cryptocurrency by implementing plugins.
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
disable basecoin.service
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
basecoind (@VERSION@) @STABILITY@; urgency=medium
|
||||||
|
|
||||||
|
* Automatic build. See https://github.com/cosmos/cosmos-sdk for more information.
|
||||||
|
|
||||||
|
-- Greg Szabo <greg@philosobear.com> @DATETIMESTAMP@
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
Source: basecoind
|
||||||
|
Section: net
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Greg Szabo <greg@philosobear.com>
|
||||||
|
Build-Depends: debhelper (>=9)
|
||||||
|
Standards-Version: 3.9.6
|
||||||
|
Homepage: https://tendermint.com
|
||||||
|
Package: basecoind
|
||||||
|
Architecture: amd64
|
||||||
|
Version: @VERSION@
|
||||||
|
Installed-Size: @INSTALLEDSIZE@
|
||||||
|
Description: basecoind is a Proof-of-Stake cryptocurrency and framework
|
||||||
|
Basecoind is an ABCI application designed to be used with the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency. It also provides a general purpose framework for extending the feature-set of the cryptocurrency by implementing plugins.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
Upstream-Name: basecoin
|
Upstream-Name: basecoind
|
||||||
Source: https://github.com/tendermint/basecoin
|
Source: https://github.com/cosmos/cosmos-sdk
|
||||||
|
|
||||||
Files: *
|
Files: *
|
||||||
Copyright: 2017 All In Bits, Inc.
|
Copyright: 2017 All In Bits, Inc.
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# postinst script for basecoin
|
# postinst script for basecoind
|
||||||
#
|
#
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
@ -19,8 +19,8 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
chown basecoin.basecoin /etc/basecoin
|
chown basecoind.basecoind /etc/basecoind
|
||||||
sudo -Hu basecoin basecoin node init --home /etc/basecoin 2B24DEE2364762300168DF19B6C18BCE2D399EA2
|
sudo -Hu basecoind basecoind node init --home /etc/basecoind 2B24DEE2364762300168DF19B6C18BCE2D399EA2
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# preinst script for basecoin
|
# preinst script for basecoind
|
||||||
#
|
#
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
@ -15,9 +15,9 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
install|upgrade)
|
install|upgrade)
|
||||||
if ! grep -q '^basecoin:' /etc/passwd ; then
|
if ! grep -q '^basecoind:' /etc/passwd ; then
|
||||||
useradd -k /dev/null -r -m -b /etc basecoin
|
useradd -k /dev/null -r -m -b /etc basecoind
|
||||||
chmod 755 /etc/basecoin
|
chmod 755 /etc/basecoind
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -18,7 +18,7 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
remove|upgrade|deconfigure)
|
remove|upgrade|deconfigure)
|
||||||
systemctl stop basecoin 2> /dev/null || :
|
systemctl stop basecoind 2> /dev/null || :
|
||||||
;;
|
;;
|
||||||
|
|
||||||
failed-upgrade)
|
failed-upgrade)
|
|
@ -0,0 +1,2 @@
|
||||||
|
disable basecoind.service
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Basecoin
|
Description=Basecoind
|
||||||
Requires=network-online.target
|
Requires=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment="BCHOME=/etc/basecoin"
|
Environment="BCHOME=/etc/basecoind"
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
User=basecoin
|
User=basecoin
|
||||||
Group=basecoin
|
Group=basecoin
|
|
@ -1,5 +0,0 @@
|
||||||
PACKAGE_SUMMARY="basecoin is a Proof-of-Stake cryptocurrency and framework"
|
|
||||||
PACKAGE_URL="https://cosmos.network/"
|
|
||||||
PACKAGE_ADDITIONAL_HEADER="Provides: basecoin"
|
|
||||||
PACKAGE_DESCRIPTION="Basecoin is an ABCI application designed to be used with the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency. It also provides a general purpose framework for extending the feature-set of the cryptocurrency by implementing plugins."
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
PACKAGE_SUMMARY="basecoind is a Proof-of-Stake cryptocurrency and framework"
|
||||||
|
PACKAGE_URL="https://cosmos.network/"
|
||||||
|
PACKAGE_ADDITIONAL_HEADER="Provides: basecoind"
|
||||||
|
PACKAGE_DESCRIPTION="Basecoind is an ABCI application designed to be used with the Tendermint consensus engine to form a Proof-of-Stake cryptocurrency. It also provides a general purpose framework for extending the feature-set of the cryptocurrency by implementing plugins."
|
||||||
|
|
Loading…
Reference in New Issue