diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-28 16:02:08 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-09-28 16:16:28 +0200 |
commit | 6dc8b5b425701a8a6cadd27065bba2a450e630db (patch) | |
tree | 52f9ef075f868f93b1d23d4abaa37ca652b31989 /community/syncthing/APKBUILD | |
parent | 2845b3981db34eb94244dddcced718c7189bce95 (diff) | |
download | aports-6dc8b5b425701a8a6cadd27065bba2a450e630db.tar.bz2 aports-6dc8b5b425701a8a6cadd27065bba2a450e630db.tar.xz |
community/syncthing: move from main
golang does not provide security patches for older stable branches so we
can not provide support for 2 years for golang applications.
Diffstat (limited to 'community/syncthing/APKBUILD')
-rw-r--r-- | community/syncthing/APKBUILD | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/community/syncthing/APKBUILD b/community/syncthing/APKBUILD new file mode 100644 index 0000000000..eed51613c6 --- /dev/null +++ b/community/syncthing/APKBUILD @@ -0,0 +1,65 @@ +# Contributor: Ćukasz Jendrysik <scadu@yandex.com> +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=syncthing +pkgver=0.11.19 +pkgrel=0 +pkgdesc="Open Source Continuous File Synchronization" +url="http://syncthing.net/" +arch="all" +license="MIT" +pkgusers="$pkgname" +pkggroups="$pkgname" +depends="" +depends_dev="" +makedepends="$depends_dev godep go mercurial bash" +install="$pkgname.pre-install" +subpackages="" +options="!strip" +source="$pkgname-$pkgver.tar.gz::https://github.com/syncthing/syncthing/archive/v$pkgver.tar.gz + syncthing.confd + syncthing.initd" +giturl="git://github.com/$pkgname/$pkgname.git" +disturl="dev.alpinelinux.org:/archive/$pkgname/" + +_builddir="$srcdir/src/github.com/syncthing" + +prepare() { + local i + mkdir -p $_builddir + mv $srcdir/$pkgname-$pkgver $_builddir/$pkgname + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir"/$pkgname + export GOPATH="$srcdir" + go run build.go -no-upgrade -version=v$pkgver +} + +package() { + mkdir -p "$pkgdir"/usr/bin || return 1 + install -d -o $pkgname -g $pkgname \ + "$pkgdir"/var/lib/$pkgname || return 1 + mv "$_builddir"/$pkgname/bin/* \ + "$pkgdir"/usr/bin || return 1 + install -D -m755 "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname || return 1 + install -D -m644 "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/$pkgname || return 1 +} + +md5sums="4f561b74e9c0170bbf8fe5b3b99ff917 syncthing-0.11.19.tar.gz +c4923d6df4d3e51274869c09ea46a3e1 syncthing.confd +760e26e5ea2f1dce8ce149a45f5e99bb syncthing.initd" +sha256sums="a57bbf9264f8db03e22657958e2b0d77438acc2180be8a24a8d9965d63a00cff syncthing-0.11.19.tar.gz +da396f944d7b5b2e4f5a7a9a3a7b31529cf359ef7ebecec4c48383d0c8b6821e syncthing.confd +4d7c1de71cfc415d716471f32fdbb1693597f0209167e4c4ea302478481ab9b3 syncthing.initd" +sha512sums="2015b73022b7bcb616d5fbfef6339b6eedacbdfd40ba00887e04bdb128211eaaebcad15a4af414b5ee16111ccd5cea15e5d7d234e494c087ccccfbf8eeff0bc6 syncthing-0.11.19.tar.gz +b19cc3d802caa33f4d06852de590d2d984c12cf27d0540162cd7195da4f3f149c83c72e7a10f385b32b27fff6f39d33698e7402442a3f32a9da136c5d19059ae syncthing.confd +21fa7b0090e579ad0f02bb8cc9a78736eb99811613823bf12d477262da2281543d07b47ae0888e2e3876a687bf4cab3c89405447373a9c5ab2915989c5f9dce8 syncthing.initd" |