Skip to content

Commit 14b5377

Browse files
committed
updated packages
0 parents  commit 14b5377

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+809
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.archive
2+
.archive/
3+
.archive/*

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deb.skywire.skycoin.com

KEY.asc

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
-----BEGIN PGP PUBLIC KEY BLOCK-----
2+
3+
mQINBGR6eOEBEADZgNLET5XXJlt7kr/dykh8WOIhjowtUuHyKnUDZC8WzYxDP/1+
4+
UqL0++mOfH+qOBrfeZwd0qsuWzg+0VJOUcj8iZqb/B/Hb+JpC0UnKT7SNKS402i8
5+
pcDpjjhbRl1YbvOZWadGgtja6DB1b/8pCn0UhF9z4M+OJbti1DQhR88x44x4zdBT
6+
boe2N8cMZDYsM72TCHyHIMta4hca83GCgkKvUxRJkkpk9CvLtpEOQJ6zHQdwNHuD
7+
dRik1undq9pGpBRt8eZVv02frQn5j411pvTqkkBpf32przDHmQQ415VBApPPnfCo
8+
SktCU/bEL3uA9KtLcFr6XgZazDSLr6/6nHUNxGpvw5vkUDl0nQub1emxMGHJPbvh
9+
t1u8jK3K0QBy5pgWPKj5JPKbfb1or5oSmffU8rUL3k2Yi9qB1qL6zPFCnaq21fcO
10+
RnjdH0m0bkKZS/W/SewnMXcLPy5/m2odD+OLsQq6SQkuCz7AjVzJ+0jhkjmDixi8
11+
ayiO0Aq1CwjXI/pU/UhHH6t2bHUzCPg22enKaMzDGq7/BTrk7MxqQjxc/+UuJE42
12+
c7H+Jl1p6k5Lfe31t/CU6GOWXCOv86ri3/gy6kqg8r6ci/t/I91nJYe+rp91nJpU
13+
huPt7JOo/afQbFe0VjxLY4/Nfj7UNTL4POb15XZs2wkOfPHm1Of+hteESwARAQAB
14+
tAdTa3ljb2luiQJOBBMBC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U5qnvycEr6
46+
WutZVNbe0v4am67Ck7cK6DXZCMXW7TlzWg1XpsE9lvTzimXoxhNiiIcDCF6RVJji
47+
w14ZQm6k4FoTMxETGd1bnxXQwd5dZtb5UFEvdozYhjzhrB/f4MiO9CEwRG0MEITi
48+
WD+g3jpoCpRbVRIYHtmdWBLJMjHZ6imU2zNjMHzya7hPYDQBpx0/Dmtw2t05t6A/
49+
UC2sCVvO6gOK+E0vBHy6khzjhQ==
50+
=9rQu
51+
-----END PGP PUBLIC KEY BLOCK-----

PKGBUILD

+143
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
pkgname=skyrepo
2+
_pkgname=skyrepo
3+
pkgdesc="Skycoin apt repo configuration & repo signing key - debian package"
4+
pkgver='1.3.28'
5+
_pkgver=${pkgver}
6+
pkgrel=2
7+
_pkgrel=${pkgrel}
8+
arch=( 'any' )
9+
_pkgarches=('amd64' 'arm64' 'armhf' 'armel' 'riscv64')
10+
_pkgpath="github.com/skycoin/${_pkgname}"
11+
url="https://${_pkgpath}"
12+
makedepends=('dpkg')
13+
depends=()
14+
_debdeps=""
15+
16+
build() {
17+
#create the apt repo config
18+
echo 'deb http://deb.skywire.skycoin.com sid main' | tee ${srcdir}/skycoin.list
19+
echo '#deb-src http://deb.skywire.skycoin.com sid main' | tee -a ${srcdir}/skycoin.list
20+
echo '' | tee -a ${srcdir}/skycoin.list
21+
echo 'deb http://deb.skywire.dev sid main' | tee -a ${srcdir}/skycoin.list
22+
echo '#deb-src http://deb.skywire.dev sid main' | tee -a ${srcdir}/skycoin.list
23+
#create the pubkey file
24+
gpg --export 48F19E5157BE6014D80A47328D6D51BC4AD7AE64 | tee ${srcdir}/skycoin.gpg
25+
#create the update script
26+
echo "#!/bin/bash
27+
apt update -o Dir::Etc::sourcelist=/etc/apt/sources.list.d/skycoin.list && apt -qq --yes reinstall skywire-bin && systemctl is-active --quiet install-skywire && systemctl disable install-skywire 2> /dev/null" | tee ${srcdir}/install-skywire.sh
28+
#create the update service
29+
echo "[Unit]
30+
Description=install skywire service
31+
After=network-online.target
32+
Wants=network-online.target
33+
34+
[Service]
35+
Type=simple
36+
ExecStart=/bin/install-skywire
37+
38+
[Install]
39+
WantedBy=multi-user.target
40+
" | tee ${srcdir}/install-skywire.service
41+
42+
echo '#!/bin/bash
43+
##/usr/bin/skywire-chrootconfig
44+
#called by the postinstall script of the skyrepo .deb package
45+
#################################################################
46+
#meant to run when the skyrepo package is installed in chroot
47+
if [[ $INSTALLFIRSTBOOT == "1" ]] ; then
48+
if [[ -f /etc/systemd/system/install-skywire.service ]] ; then
49+
systemctl enable install-skywire.service
50+
fi
51+
fi
52+
# create envfile
53+
if [[ ! -f /etc/profile.d/skyenv.sh && -d /etc/profile.d ]] ; then
54+
touch /etc/profile.d/skyenv.sh
55+
fi
56+
# SKYBIAN=true enables autostart of skywire via skywire-autoconfig - on ARM architectures
57+
if [[ $(cat /etc/profile.d/skyenv.sh | grep SKYBIAN ) != *"SKYBIAN"* ]] ; then
58+
if [[ $(dpkg --print-architecture) == *"amd64"* ]] ; then
59+
echo "#SKYBIAN=true" | tee -a /etc/profile.d/skyenv.sh
60+
else
61+
echo "SKYBIAN=true" | tee -a /etc/profile.d/skyenv.sh
62+
fi
63+
fi
64+
# VPNSERVER=1 enables autostart of the vpn server - on ARM architectures
65+
if [[ $(cat /etc/profile.d/skyenv.sh | grep VPNSERVER ) != *"VPNSERVER"* ]] ; then
66+
if [[ $(dpkg --print-architecture) == *"amd64"* ]] ; then
67+
echo "#export VPNSERVER=1" | tee -a /etc/profile.d/skyenv.sh
68+
else
69+
echo "export VPNSERVER=1" | tee -a /etc/profile.d/skyenv.sh
70+
fi
71+
fi
72+
' | tee ${srcdir}/skywire-chrootconfig.sh
73+
#create the postinstall script
74+
echo '#!/bin/bash
75+
#skybian post install script ; executed by dpkg upon package installation or updates
76+
/usr/bin/skywire-chrootconfig
77+
' | tee ${srcdir}/postinst.sh
78+
#create the DEBIAN/control files
79+
for _i in ${_pkgarches[@]}; do
80+
_msg2 "_pkgarch=${_i}"
81+
local _pkgarch=${_i}
82+
_msg2 "Creating DEBIAN/control file for ${_pkgarch}"
83+
echo "Package: ${_pkgname}" > ${srcdir}/${_pkgarch}.control
84+
echo "Version: ${_pkgver}-${_pkgrel}" >> ${srcdir}/${_pkgarch}.control
85+
echo "Priority: optional" >> ${srcdir}/${_pkgarch}.control
86+
echo "Section: web" >> ${srcdir}/${_pkgarch}.control
87+
echo "Architecture: ${_pkgarch}" >> ${srcdir}/${_pkgarch}.control
88+
echo "Depends: ${_debdeps}" >> ${srcdir}/${_pkgarch}.control
89+
echo "Maintainer: Skycoin" >> ${srcdir}/${_pkgarch}.control
90+
echo "Description: ${pkgdesc}" >> ${srcdir}/${_pkgarch}.control
91+
cat ${srcdir}/${_pkgarch}.control
92+
done
93+
}
94+
95+
package() {
96+
for _i in ${_pkgarches[@]}; do
97+
_msg2 "_pkgarch=${_i}"
98+
local _pkgarch=${_i}
99+
echo ${_pkgarch}
100+
#set up to create a .deb package with dpkg
101+
_debpkgdir="${_pkgname}-${pkgver}-${_pkgrel}-${_pkgarch}"
102+
_pkgdir="${pkgdir}/${_debpkgdir}"
103+
#########################################################################
104+
#package normally here using ${_pkgdir} instead of ${pkgdir}
105+
_msg2 "Creating dirs"
106+
mkdir -p ${_pkgdir}/etc/apt/sources.list.d/
107+
mkdir -p ${_pkgdir}/etc/apt/trusted.gpg.d/
108+
mkdir -p ${_pkgdir}/usr/bin/
109+
mkdir -p ${_pkgdir}/etc/systemd/system/
110+
_msg2 "Installing install-skywire.sh skywire installation script"
111+
install -Dm755 ${srcdir}/install-skywire.sh ${_pkgdir}/usr/bin/install-skywire
112+
_msg2 "Installing install-skywire.service service for install-skywire.sh"
113+
install -Dm644 ${srcdir}/install-skywire.service ${_pkgdir}/etc/systemd/system/install-skywire.service
114+
_msg2 "Installing skywire-chrootconfig" #called by postinstall
115+
install -Dm755 ${srcdir}/skywire-chrootconfig.sh ${_pkgdir}/usr/bin/skywire-chrootconfig
116+
_msg2 "Installing apt repository configuration to:\n /etc/apt/sources.list.d/skycoin.list"
117+
install -Dm644 ${srcdir}/skycoin.list ${_pkgdir}/etc/apt/sources.list.d/skycoin.list
118+
_msg2 "Installing apt repository signing key to:\n /etc/apt/trusted.gpg.d/skycoin.gpg"
119+
install -Dm644 ${srcdir}/skycoin.gpg ${_pkgdir}/etc/apt/trusted.gpg.d/skycoin.gpg
120+
#########################################################################
121+
_msg2 'Installing control file and postinst script'
122+
install -Dm755 ${srcdir}/${_pkgarch}.control ${_pkgdir}/DEBIAN/control
123+
install -Dm755 ${srcdir}/postinst.sh ${_pkgdir}/DEBIAN/postinst
124+
_msg2 'Creating the debian package'
125+
cd $pkgdir
126+
if command -v tree &> /dev/null ; then
127+
_msg2 'package tree'
128+
tree -a ${_debpkgdir}
129+
fi
130+
dpkg-deb --build -z9 ${_debpkgdir}
131+
mv *.deb ../../
132+
done
133+
#clean up manually just in case
134+
rm -rf ${srcdir}
135+
#exit so the arch package doesn't get built
136+
exit
137+
}
138+
139+
_msg2() {
140+
(( QUIET )) && return
141+
local mesg=$1; shift
142+
printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@"
143+
}

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#### Skycoin APT repository
2+
[deb.skywire.dev](https://deb.skywire.dev)
3+
[deb.skywire.skycoin.com](https://deb.skywire.skycoin.com)
4+
5+
skywire installation via apt
6+
7+
```
8+
_arch="$(dpkg --print-architecture)" ; sudo dpkg -i $(curl -L https://deb.skywire.dev/skyrepo-${_arch}.deb -o skyrepo-${_arch}.deb && echo -e "skyrepo-${_arch}.deb") && sudo rm skyrepo-*.deb && sudo install-skywire || sudo apt install skywire-bin
9+
```
10+
11+
if you encounter issues with the above step which resulted in skywire not being installed, at that point try
12+
```
13+
sudo apt install skywire-bin
14+
```
15+
16+
read the full package installation and configuration documentation in the [skywire package installation guide](https://github.com/skycoin/skywire/wiki/Skywire-Package-Installation)
17+
18+
If you have issues, we are happy to assist on telegram [@skywire](https://t.me/skywire)
19+
20+
[github.com/skycoin/apt-repo](https://github.com/skycoin/apt-repo)

conf/.updates

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Name: skycoin
2+
Method: http://deb.magnetosphere.net
3+
Suite: skycoin
4+
Components: main
5+
Architectures: amd64 arm64 armhf armel i386 mips mipsel mips64el ppc64el riscv64 s390x
6+
VerifyRelease: A8DC761B1C0C0CFC

conf/distributions

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Origin: skycoin
2+
Label: skycoin
3+
#Suite: skycoin
4+
Codename: sid
5+
Architectures: amd64 arm64 armhf armel i386 mips mipsel mips64el ppc64el riscv64 s390x
6+
Components: main
7+
Description: skycoin debian package repository
8+
SignWith: 48F19E5157BE6014D80A47328D6D51BC4AD7AE64
9+
Update: skycoin
10+
#Log: /var/log/reprepro/skycoin.log

conf/options

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
basedir .

db/checksums.db

16 KB
Binary file not shown.

db/contents.cache.db

16 KB
Binary file not shown.

db/packagenames.db

96 KB
Binary file not shown.

db/packages.db

96 KB
Binary file not shown.

db/references.db

16 KB
Binary file not shown.

db/release.caches.db

32 KB
Binary file not shown.

db/version

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
5.4.1
2+
3.3.0
3+
bdb5.3.28
4+
bdb5.3.0

0 commit comments

Comments
 (0)