Skip to content

Commit

Permalink
updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
0pcom committed Jul 11, 2023
0 parents commit 244e24c
Show file tree
Hide file tree
Showing 64 changed files with 814 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
archive
archive/
archive/*
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deb.skywire.skycoin.com
51 changes: 51 additions & 0 deletions KEY.asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGR6eOEBEADZgNLET5XXJlt7kr/dykh8WOIhjowtUuHyKnUDZC8WzYxDP/1+
UqL0++mOfH+qOBrfeZwd0qsuWzg+0VJOUcj8iZqb/B/Hb+JpC0UnKT7SNKS402i8
pcDpjjhbRl1YbvOZWadGgtja6DB1b/8pCn0UhF9z4M+OJbti1DQhR88x44x4zdBT
boe2N8cMZDYsM72TCHyHIMta4hca83GCgkKvUxRJkkpk9CvLtpEOQJ6zHQdwNHuD
dRik1undq9pGpBRt8eZVv02frQn5j411pvTqkkBpf32przDHmQQ415VBApPPnfCo
SktCU/bEL3uA9KtLcFr6XgZazDSLr6/6nHUNxGpvw5vkUDl0nQub1emxMGHJPbvh
t1u8jK3K0QBy5pgWPKj5JPKbfb1or5oSmffU8rUL3k2Yi9qB1qL6zPFCnaq21fcO
RnjdH0m0bkKZS/W/SewnMXcLPy5/m2odD+OLsQq6SQkuCz7AjVzJ+0jhkjmDixi8
ayiO0Aq1CwjXI/pU/UhHH6t2bHUzCPg22enKaMzDGq7/BTrk7MxqQjxc/+UuJE42
c7H+Jl1p6k5Lfe31t/CU6GOWXCOv86ri3/gy6kqg8r6ci/t/I91nJYe+rp91nJpU
huPt7JOo/afQbFe0VjxLY4/Nfj7UNTL4POb15XZs2wkOfPHm1Of+hteESwARAQAB
tAdTa3ljb2luiQJOBBMBCAA4FiEESPG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UFEvdozYhjzhrB/f4MiO9CEwRG0MEITi
WD+g3jpoCpRbVRIYHtmdWBLJMjHZ6imU2zNjMHzya7hPYDQBpx0/Dmtw2t05t6A/
UC2sCVvO6gOK+E0vBHy6khzjhQ==
=9rQu
-----END PGP PUBLIC KEY BLOCK-----
140 changes: 140 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
pkgname=skyrepo
_pkgname=skyrepo
pkgdesc="Skycoin apt repo configuration & repo signing key - debian package"
pkgver='1.3.11'
_pkgver=${pkgver}
pkgrel=1
_pkgrel=${pkgrel}
arch=( 'any' )
_pkgarches=('amd64' 'arm64' 'armhf' 'armel')
_pkgpath="github.com/skycoin/${_pkgname}"
url="https://${_pkgpath}"
makedepends=('dpkg')
depends=()
_debdeps=""

build() {
#create the apt repo config
echo "deb http://deb.skywire.skycoin.com sid main
# deb-src http://deb.skywire.skycoin.com sid main" | tee ${srcdir}/skycoin.list
#create the pubkey file
gpg --export 48F19E5157BE6014D80A47328D6D51BC4AD7AE64 | tee ${srcdir}/skycoin.gpg
#create the update script
echo "#!/bin/bash
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
#create the update service
echo "[Unit]
Description=install skywire service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/bin/install-skywire
[Install]
WantedBy=multi-user.target
" | tee ${srcdir}/install-skywire.service

echo '#!/bin/bash
##/usr/bin/skywire-chrootconfig
#called by the postinstall script of the skyrepo .deb package
#################################################################
#meant to run when the skyrepo package is installed in chroot
if [[ $INSTALLFIRSTBOOT == "1" ]] ; then
if [[ -f /etc/systemd/system/install-skywire.service ]] ; then
systemctl enable install-skywire.service
fi
fi
# create envfile
if [[ ! -f /etc/profile.d/skyenv.sh && -d /etc/profile.d ]] ; then
touch /etc/profile.d/skyenv.sh
fi
# SKYBIAN=true enables autostart of skywire via skywire-autoconfig - on ARM architectures
if [[ $(cat /etc/profile.d/skyenv.sh | grep SKYBIAN ) != *"SKYBIAN"* ]] ; then
if [[ $(dpkg --print-architecture) == *"amd64"* ]] ; then
echo "#SKYBIAN=true" | tee -a /etc/profile.d/skyenv.sh
else
echo "SKYBIAN=true" | tee -a /etc/profile.d/skyenv.sh
fi
fi
# VPNSERVER=1 enables autostart of the vpn server - on ARM architectures
if [[ $(cat /etc/profile.d/skyenv.sh | grep VPNSERVER ) != *"VPNSERVER"* ]] ; then
if [[ $(dpkg --print-architecture) == *"amd64"* ]] ; then
echo "#export VPNSERVER=1" | tee -a /etc/profile.d/skyenv.sh
else
echo "export VPNSERVER=1" | tee -a /etc/profile.d/skyenv.sh
fi
fi
' | tee ${srcdir}/skywire-chrootconfig.sh
#create the postinstall script
echo '#!/bin/bash
#skybian post install script ; executed by dpkg upon package installation or updates
/usr/bin/skywire-chrootconfig
' | tee ${srcdir}/postinst.sh
#create the DEBIAN/control files
for _i in ${_pkgarches[@]}; do
_msg2 "_pkgarch=${_i}"
local _pkgarch=${_i}
_msg2 "Creating DEBIAN/control file for ${_pkgarch}"
echo "Package: ${_pkgname}" > ${srcdir}/${_pkgarch}.control
echo "Version: ${_pkgver}-${_pkgrel}" >> ${srcdir}/${_pkgarch}.control
echo "Priority: optional" >> ${srcdir}/${_pkgarch}.control
echo "Section: web" >> ${srcdir}/${_pkgarch}.control
echo "Architecture: ${_pkgarch}" >> ${srcdir}/${_pkgarch}.control
echo "Depends: ${_debdeps}" >> ${srcdir}/${_pkgarch}.control
echo "Maintainer: Skycoin" >> ${srcdir}/${_pkgarch}.control
echo "Description: ${pkgdesc}" >> ${srcdir}/${_pkgarch}.control
cat ${srcdir}/${_pkgarch}.control
done
}

package() {
for _i in ${_pkgarches[@]}; do
_msg2 "_pkgarch=${_i}"
local _pkgarch=${_i}
echo ${_pkgarch}
#set up to create a .deb package with dpkg
_debpkgdir="${_pkgname}-${pkgver}-${_pkgrel}-${_pkgarch}"
_pkgdir="${pkgdir}/${_debpkgdir}"
#########################################################################
#package normally here using ${_pkgdir} instead of ${pkgdir}
_msg2 "Creating dirs"
mkdir -p ${_pkgdir}/etc/apt/sources.list.d/
mkdir -p ${_pkgdir}/etc/apt/trusted.gpg.d/
mkdir -p ${_pkgdir}/usr/bin/
mkdir -p ${_pkgdir}/etc/systemd/system/
_msg2 "Installing install-skywire.sh skywire installation script"
install -Dm755 ${srcdir}/install-skywire.sh ${_pkgdir}/usr/bin/install-skywire
_msg2 "Installing install-skywire.service service for install-skywire.sh"
install -Dm644 ${srcdir}/install-skywire.service ${_pkgdir}/etc/systemd/system/install-skywire.service
_msg2 "Installing skywire-chrootconfig" #called by postinstall
install -Dm755 ${srcdir}/skywire-chrootconfig.sh ${_pkgdir}/usr/bin/skywire-chrootconfig
_msg2 "Installing apt repository configuration to:\n /etc/apt/sources.list.d/skycoin.list"
install -Dm644 ${srcdir}/skycoin.list ${_pkgdir}/etc/apt/sources.list.d/skycoin.list
_msg2 "Installing apt repository signing key to:\n /etc/apt/trusted.gpg.d/skycoin.gpg"
install -Dm644 ${srcdir}/skycoin.gpg ${_pkgdir}/etc/apt/trusted.gpg.d/skycoin.gpg
#########################################################################
_msg2 'Installing control file and postinst script'
install -Dm755 ${srcdir}/${_pkgarch}.control ${_pkgdir}/DEBIAN/control
install -Dm755 ${srcdir}/postinst.sh ${_pkgdir}/DEBIAN/postinst
_msg2 'Creating the debian package'
cd $pkgdir
if command -v tree &> /dev/null ; then
_msg2 'package tree'
tree -a ${_debpkgdir}
fi
dpkg-deb --build -z9 ${_debpkgdir}
mv *.deb ../../
done
#clean up manually just in case
rm -rf ${srcdir}
#exit so the arch package doesn't get built
exit
}

_msg2() {
(( QUIET )) && return
local mesg=$1; shift
printf "${BLUE} ->${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@"
}
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#### Skycoin APT repository
[deb.skywire.skycoin.com](https://deb.skywire.skycoin.com)

skywire installation via apt

```
sudo dpkg -i <(curl -L https://github.com/skycoin/apt-repo/releases/download/current/skyrepo-$(dpkg --print-architecture).deb -o skyrepo-$(dpkg --print-architecture).deb) && rm skyrepo-*.deb && install-skywire
```

if you encounter issues with the above step which resulted in skywire not being installed, at that point try
```
apt install skywire-bin
```

read the full package installation and configuration documentation in the [skywire package installation guide](https://github.com/skycoin/skywire/wiki/Skywire-Package-Installation)

If you have issues, we are happy to assist on telegram [@skywire](https://t.me/skywire)

[github.com/skycoin/apt-repo](https://github.com/skycoin/apt-repo)
6 changes: 6 additions & 0 deletions conf/.updates
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Name: skycoin
Method: http://deb.magnetosphere.net
Suite: skycoin
Components: main
Architectures: amd64 arm64 armhf armel i386 mips mipsel mips64el ppc64el riscv64 s390x
VerifyRelease: A8DC761B1C0C0CFC
10 changes: 10 additions & 0 deletions conf/distributions
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Origin: skycoin
Label: skycoin
#Suite: skycoin
Codename: sid
Architectures: amd64 arm64 armhf armel i386 mips mipsel mips64el ppc64el riscv64 s390x
Components: main
Description: skycoin debian package repository
SignWith: 48F19E5157BE6014D80A47328D6D51BC4AD7AE64
Update: skycoin
#Log: /var/log/reprepro/skycoin.log
1 change: 1 addition & 0 deletions conf/options
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
basedir .
Binary file added db/checksums.db
Binary file not shown.
Binary file added db/contents.cache.db
Binary file not shown.
Binary file added db/packagenames.db
Binary file not shown.
Binary file added db/packages.db
Binary file not shown.
Binary file added db/references.db
Binary file not shown.
Binary file added db/release.caches.db
Binary file not shown.
4 changes: 4 additions & 0 deletions db/version
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
5.4.1
3.3.0
bdb5.3.28
bdb5.3.0
Loading

0 comments on commit 244e24c

Please sign in to comment.