X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by lists.alpinelinux.org (Postfix) with ESMTP id D595F5C42AA for ; Fri, 30 Sep 2016 00:05:20 +0000 (GMT) Received: by mail-qk0-f196.google.com with SMTP id n189so3190788qke.1 for ; Thu, 29 Sep 2016 17:05:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=yJMhCk+pZLe2Kr5Osc2u2YoAMImr1ZSdgz3EfZibOAU=; b=bybjquBA5aIWvoFqcwVcsvdoBqGmGkSHuPQpICwToKqoE1WfASH1mYSX3nPFmkOWaE nE8YcgmKYn+YFAz8yqM9qGTAxUW38/SOidrcrSCoQJMaODq3Z+Rk0ku442vtYhBwdPtB hwCx4Aq+P2iTRB+d2U1zGXMmL+KMWxvtkkyj7nGgKo0ldcAhx3beb0gVqYT3eJd/8Fhe NSkG5P1muidUZHcBTQRDrwzHVgnQyMXnzoxMW5sUbCYAzU9DpYVys6XxwQKKGcEv5FxI puMK9fxjeX47PWvz9iNhxBPRW0JRE22knVR8uYWbzvwRrxqZ4AiuQ5TvRNjWN5DdWHe0 RzOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yJMhCk+pZLe2Kr5Osc2u2YoAMImr1ZSdgz3EfZibOAU=; b=NAZ7xg/jrWB5orqrunoww2FtDoa61JmtO+RIgqM+Qi1JkQUrjKZMOohrU5qD/M4U42 k8YNkGdexFT/dl+Po+bNviaa+YCZpAMjmwqlfqi/IeqtmAZePX7AYHd/9WO41OyDAdfk USYrrq8bNIJMnqBxLDdlupOp+Y/nIHii6Tis6t5CNHWCpiGoMH+xeDWCOahFVndcagOQ 4z1ZjEZ10J+wWLS11NVPIkzvBu3tTazxfZWfou3bwmPZ4sicKVF4W5qAwTIT6BagbXVL C/Baik/4sb5Pf+1UqxcQjHuH5nfXc4pa2nF8PabkN4PemYWvNtIcKJgLOwnCpNwaV35d 5QRg== X-Gm-Message-State: AA6/9RkliHma6Wv6+tr7vOK0BQDbmrh6Kfi4N6GSZ0nowVB4ySOI9pjAbr48oNKbKJ1htg== X-Received: by 10.55.174.2 with SMTP id x2mr4529715qke.63.1475193919110; Thu, 29 Sep 2016 17:05:19 -0700 (PDT) Received: from Maxs-MacBook-Pro.local.name ([177.42.49.94]) by smtp.gmail.com with ESMTPSA id z186sm8331223qkb.13.2016.09.29.17.05.17 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 29 Sep 2016 17:05:18 -0700 (PDT) From: Max Claus Nunes To: alpine-aports@lists.alpinelinux.org Cc: Max Claus Nunes Subject: [alpine-aports] [PATCH] testing/waitforit: new aport Date: Thu, 29 Sep 2016 21:05:07 -0300 Message-Id: <20160930000507.45342-1-maxcnunes@gmail.com> X-Mailer: git-send-email 2.9.2 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: https://github.com/maxcnunes/waitforit A tool written in Golang to wait until an address become available. --- testing/waitforit/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 testing/waitforit/APKBUILD diff --git a/testing/waitforit/APKBUILD b/testing/waitforit/APKBUILD new file mode 100644 index 0000000..88e4f1d --- /dev/null +++ b/testing/waitforit/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Max Claus Nunes +# Maintainer: Max Claus Nunes +pkgname=waitforit +pkgver=1.3.2 +pkgrel=0 +pkgdesc="Wait until an address become available" +url="https://github.com/maxcnunes/waitforit" +arch="all" +license="MIT" +depends="" +depends_dev="" +makedepends="$depends_dev go" +install="" +subpackages="" +source="${pkgname}-${pkgver}.tar.gz::https://github.com/maxcnunes/waitforit/archive/v$pkgver.tar.gz" + +builddir="${srcdir}/${pkgname}-${pkgver}" +_godir="${srcdir}/go" +_gourl="github.com/maxcnunes/waitforit" + +build() { + mkdir -p ${_godir}/bin ${_godir}/src/github.com/maxcnunes + ln -sf ${builddir} ${_godir}/src/github.com/maxcnunes/waitforit + + cd ${_godir}/src/${_gourl} + export GOPATH="${_godir}" + + go get -d -v ./... + go install -v ${_gourl} || return 1 +} + +package() { + cd "$_godir"/bin + + install -Dm755 waitforit \ + "${pkgdir}/usr/bin/waitforit" || return 1 +} + +md5sums="1d7d2d25386cd732c03fb63324ba3d15 waitforit-1.3.2.tar.gz" +sha256sums="8359692a2f63b5a13e831919f6ac51cf98ec7eb7b6e07038566c5ae21f40abe3 waitforit-1.3.2.tar.gz" +sha512sums="c50933cab19e160ea591cc2ee7793167b918c7c1dd94fcdf6f70c9744e92ce8287fad1ec135a325fc256fa3af8182d104595829c0627fd956f2a5b50ed2155a6 waitforit-1.3.2.tar.gz" -- 2.9.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---