Commit 0983778f authored by Dominique Martinet's avatar Dominique Martinet
Browse files

testing/swupdate: new aport

parent 2905495e
# Maintainer: Dominique Martinet <dominique.martinet@atmark-techno.com>
pkgname=swupdate
pkgver=2020.11
pkgrel=0
pkgdesc="Software Update for Embedded Systems"
url="https://github.com/sbabic/swupdate"
arch="all"
license="GPL-2.0-or-later"
depends="libubootenv"
makedepends="lua-dev linux-headers libconfig-dev autoconf libubootenv-dev mtd-utils-dev zlib-dev openssl-dev curl-dev coreutils json-c-dev libarchive-dev zeromq-dev libwebsockets-dev uriparser-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/sbabic/swupdate/archive/$pkgver.tar.gz"
build() {
cat > configs/alpine_defconfig <<EOF
# if bpo
CONFIG_SWFORWARDER_HANDLER=y
CONFIG_CFI=y
CONFIG_CFIHAMMING1=y
CONFIG_UBIVOL=y
CONFIG_SBLSWITCH=y
# else
## CONFIG_MTD is not set
# endif
# if uboot
CONFIG_UBOOT=y
# elseif grub
#CONFIG_BOOTLOADER_GRUB=y
#CONFIG_GRUBENV_PATH="/boot/grub/grubenv"
# else
#CONFIG_BOOTLOADER_NONE=y
# endif
# if p11
# CONFIG_PKCS11 is not set
# endif
# if lua
CONFIG_LUAPKG=lua$(lua -e "print(_VERSION)" | awk '{print $2}')
CONFIG_LUASCRIPTHANDLER=y
CONFIG_HANDLER_IN_LUA=y
# endif
CONFIG_DOWNLOAD=y
CONFIG_DOWNLOAD_SSL=y
CONFIG_SURICATTA=y
CONFIG_SURICATTA_SSL=y
CONFIG_HASH_VERIFY=y
CONFIG_ENCRYPTED_IMAGES=y
CONFIG_SHELLSCRIPTHANDLER=y
CONFIG_REMOTE_HANDLER=y
CONFIG_SWUFORWARDER_HANDLER=y
CONFIG_BOOTLOADERHANDLER=y
CONFIG_ARCHIVE=y
CONFIG_WEBSERVER=y
CONFIG_MONGOOSE=y
CONFIG_MONGOOSESSL=y
CONFIG_SSL_IMPL_OPENSSL=y
CONFIG_EXTRA_CFLAGS="$CFLAGS $CPPFLAGS"
CONFIG_EXTRA_LDFLAGS="$LDFLAGS"
CONFIG_EXTRA_LDLIBS="$LDLIBS"
EOF
make alpine_defconfig
make
}
check() {
make tests
}
package() {
DESTDIR="$pkgdir" make install
}
sha512sums="35755f72d328c649c55495b7b327d712c0194e55e2845a83022d4ad8b81d1a93dcd0e93eede845d4fe9bd265b60870bfc2d0ef8f45724daf541fa9169b8a8f1f swupdate-2020.11.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment