Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 7C56F782B58 for <~alpine/aports@lists.alpinelinux.org>; Sun, 14 Jun 2020 16:03:18 +0000 (UTC) Received: by mail-qt1-f177.google.com with SMTP id g62so10782740qtd.5 for <~alpine/aports@lists.alpinelinux.org>; Sun, 14 Jun 2020 09:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ebH0WKXvCHJQ/HAMr2RpzJxlYIREgcAvTI8ARK6m5ls=; b=q5p5Q/fL/v7EFqxZpKDrQEQtwrPYVKD9uat3xN8F9N21La2/c6P7WeehBueCZisMtt d/7UuRYfMZSJchZ77GZ4au9wney5BLII8IUQkEvvmv80UeesH+zUUrz/CPp4VONbg/Ax jwf8dwYLd5mRmDaPR8MU5efnOBYdtMnHOT18OR2AhV2U0JqfPLwVGZR8XLiSVgpvOqtX PG/f8bluh91U0oTAzRyCPuK6g0KrkY6xQ67Gp0D5UuJVTM5o9qrPzT3XpOsZLb7HDYWW 7hdguxt49FkuRQodfOOrkhSOdNrJjeld97Mvc8GIt+pYsoIRAiGEPvlolLOhT7qSUykI BjCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ebH0WKXvCHJQ/HAMr2RpzJxlYIREgcAvTI8ARK6m5ls=; b=VOYk9nv3zE2tzG/bs9MXc7nsdOkQPlqgg7oPWYwDvrfZAAul52ps2DZLl2eTQ0A49R ZjMcbngoo0c8w9ekAJ7kK6g+GNnTOKO9OwRBbr9hwTi79/lfYap5GBq2bTNKVs3svLnR yiDE1rIsUK/3iqQtpoq5QRj8PPguHRgRY5YZFzp5Cw2A1U6hk6OJLy5U2cp8LWLuzdx6 J2cGqfyQejNlhhIYUgdPv/PH7G+wDXLLXGSCqJveTWNezChSdkWEkxZW+BftPJxJz4My wFzHKwsbl+JnspYh8ZvzfQxJ97ocYRzuoihJBEa8Q0e59KnO6qeySFSquadk9y7NWDyT xl1A== X-Gm-Message-State: AOAM530XWK234YAC9HtNMIFhu4xETtPzNf7ypwmz4V1W8yw+nrrsCJxu sSUUX1XcS/d4jUbFT0NpoqpOBs5G X-Google-Smtp-Source: ABdhPJyA62EhJ0FXyX7Wm9klMADcac842Zw+ZwoP3Jb6FRT92vV+W1pB9flIXA03FWFHlGaZ47yCnw== X-Received: by 2002:ac8:1bc1:: with SMTP id m1mr11579862qtk.57.1592150596125; Sun, 14 Jun 2020 09:03:16 -0700 (PDT) Received: from enterprise ([191.19.34.179]) by smtp.gmail.com with ESMTPSA id o33sm9941041qtj.44.2020.06.14.09.03.15 for <~alpine/aports@lists.alpinelinux.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2020 09:03:16 -0700 (PDT) Date: Sun, 14 Jun 2020 13:03:10 -0300 From: Leo To: ~alpine/aports@lists.alpinelinux.org Subject: Re: [PATCH] testing/yggdrasil-go: new aport Message-ID: <20200614130310.5957444e@enterprise> In-Reply-To: <20200614154340.31270-1-opal@wowana.me> References: <20200614154340.31270-1-opal@wowana.me> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 14 Jun 2020 15:43:40 +0000 opal hart wrote: > cc neilalexander to see if we can do `go test` already or if we should > keep options=!check in APKBUILD > > otherwise, the package works, currently using on two systems > --- > testing/yggdrasil/APKBUILD | 51 > +++++++++++++++++++++++++++++++ testing/yggdrasil/yggdrasil.initd | > 23 ++++++++++++++ 2 files changed, 74 insertions(+) > create mode 100644 testing/yggdrasil/APKBUILD > create mode 100644 testing/yggdrasil/yggdrasil.initd > > diff --git a/testing/yggdrasil/APKBUILD b/testing/yggdrasil/APKBUILD > new file mode 100644 > index 0000000000..9413364823 > --- /dev/null > +++ b/testing/yggdrasil/APKBUILD > @@ -0,0 +1,51 @@ > +# Contributor: opal hart > +# Maintainer: opal hart > +pkgname=yggdrasil-go > +pkgver=0.3.14 > +pkgrel=0 > +pkgdesc="An experiment in scalable routing as an encrypted IPv6 > overlay network" +url="https://yggdrasil-network.github.io/" > +arch="x86_64" > +license="LGPL-3 MIT Apache-2.0 BSD ZLIB" > +makedepends="go" > +source=" > + > https://github.com/yggdrasil-network/yggdrasil-go/archive/v$pkgver/yggdrasil-go-$pkgver.tar.gz > + yggdrasil.initd > +" > +builddir="$srcdir/src/github.com/yggdrasil-network/yggdrasil-go" > +options="!check" > + > +export GOPATH="$srcdir" > + > +prepare() { > + default_prepare > + cd "$srcdir" > + mkdir -p "$(dirname "$builddir")" > + ln -s "$srcdir/$pkgname-$pkgver" "$builddir" > +} > + > +build() { > + > pkgsrc="github.com/yggdrasil-network/yggdrasil-go/src/version" > + LDFLAGS="-X ${pkgsrc}.buildName=${pkgname} -X > ${pkgsrc}.buildVersion=${pkgver}" > + for cmd in yggdrasil yggdrasilctl; do > + go build -ldflags="$LDFLAGS" "./cmd/$cmd" > + done > +} > + > +package() { > + install -Dm755 yggdrasil \ > + "$pkgdir"/usr/sbin/yggdrasil > + install -Dm755 yggdrasilctl \ > + "$pkgdir"/usr/sbin/yggdrasilctl > + install -Dm644 README.md \ > + "$pkgdir"/usr/share/doc/$pkgname/README.md > + install -m755 -D "$srcdir"/yggdrasil.initd > "$pkgdir"/etc/init.d/yggdrasil +} > + > +cleanup_srcdir() { > + go clean -modcache > + default_cleanup_srcdir > +} > + > +sha512sums="3c3e92c7d49a08d2390a5d7226387c83b5575d55ae90b1209a103b50659ae60d978e39ee9247f548efe90228c3ce544b17bb205f9dcbc7f67262beaf9b7c38bf > yggdrasil-go-0.3.14.tar.gz > +f80848803109c67d27f2e381fd6dac2218bf6df338addcc648e9e2178adb5075700356a5f253c0b80db6354b6ab54f3d884ca13837b6238d00adea674ca92748 > yggdrasil.initd" diff --git a/testing/yggdrasil/yggdrasil.initd > b/testing/yggdrasil/yggdrasil.initd new file mode 100644 index > 0000000000..b0ab6aad91 --- /dev/null > +++ b/testing/yggdrasil/yggdrasil.initd > @@ -0,0 +1,23 @@ > +#!/sbin/openrc-run > + > +: "${YGGDRASIL_CONF=/etc/yggdrasil.conf}" > + > +description="End-to-end encrypted IPv6 networking" > + > +command="/usr/sbin/yggdrasil" > +command_args="--useconffile ${YGGDRASIL_CONF}" > +start_stop_daemon_args="--make-pidfile --pidfile /run/yggdrasil.pid > --background -1 /var/log/yggdrasil.log" + > +depend() { > + need net > + after firewall > + use dns > +} > + > +start_pre() { > + if [ ! -f "${YGGDRASIL_CONF}" ]; then > + eerror "Cannot find '${YGGDRASIL_CONF}'." > + eerror "Generate a sample config with `yggdrasil > -genconf > /etc/yggdrasil.conf` and edit." > + return 2 > + fi > +} Hello Could you submit this as an MR in our GitLab[1] ? It allows us to test if the package builds with pipelines and is the canonical place for testing Regards Leo [1] https://gitlab.alpinelinux.org/alpine/aports