X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-qg0-f43.google.com (mail-qg0-f43.google.com [209.85.192.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id E7C6DDC0189 for ; Wed, 26 Nov 2014 19:33:50 +0000 (UTC) Received: by mail-qg0-f43.google.com with SMTP id q108so2527824qgd.2 for ; Wed, 26 Nov 2014 11:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=TfeqFp3cxs/zpb3WPbOSf84x891X71l0hWdWXJ+kBEc=; b=0AN52Xnxi0drJsoYi8A+vVs+jZNxJe6+TaQNY5zGq9lkCvHACM4hOrHGvy/FGKtD+1 OAxRJHXafpV3mtLZK9+jP3b1ksUfWKiq2NrSQJ2Adp8gOy1r1qcSOL9ON7s+m0nIstNQ gMICzCTbBxhcENUbJ9Rqbw5vxDZqhh55D3ikQIgWFVLZaujLh7KcEKTesJbhN0ufEeLW khd6cTcJINojEkz83+M1kmQbFRLD9KW0+vDfzT3Yr+gK6jHcL7DGHtJOi1kUqRXMk99Y G76PIaAUCvOiScgl1Gsp/jjmn98ThQzVv9+4cM6u1Oi7L8qDyOo/3ZOf8xrMZUkSRm7c VwNg== X-Received: by 10.224.65.69 with SMTP id h5mr48405678qai.69.1417030430255; Wed, 26 Nov 2014 11:33:50 -0800 (PST) Received: from x86-lab.bethel.jw.org ([186.233.140.3]) by mx.google.com with ESMTPSA id y3sm4709680qae.2.2014.11.26.11.33.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Nov 2014 11:33:49 -0800 (PST) From: Fabio Aires To: alpine-devel@lists.alpinelinux.org Cc: Fabio Aires Subject: [alpine-devel] [PATCH] testing/unix-privesc-check: new aport Date: Wed, 26 Nov 2014 19:33:39 +0000 Message-Id: <1417030419-19458-1-git-send-email-fabioaires.web@gmail.com> X-Mailer: git-send-email 1.8.2.3 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/unix-privesc-check-svn/APKBUILD | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 testing/unix-privesc-check-svn/APKBUILD diff --git a/testing/unix-privesc-check-svn/APKBUILD b/testing/unix-privesc-check-svn/APKBUILD new file mode 100644 index 0000000..672dfaa --- /dev/null +++ b/testing/unix-privesc-check-svn/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Fabio Aires +# Maintainer: Fabio Aires + +_pkgname="unix-privesc-check" +pkgname="$_pkgname-svn" +pkgver=362 +pkgrel=1 +pkgdesc="Shell script to check for simple privilege escalation vectors on Unix systems." +url="https://aur.archlinux.org/packages/unix-privesc-check-svn/" +arch="noarch" +license="GPL2" +depends="" +depends_dev="subversion" +makedepends="$depends_dev" +install="" +subpackages="" +source="https://aur.archlinux.org/packages/un/$pkgname/$pkgname.tar.gz" + +_builddir="$srcdir/$pkgname" +prepare() { + local i + 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" + svn co http://$_pkgname.googlecode.com/svn/trunk +} + +package() { + cd "$_builddir" + + touch files_cache.temp + touch privileged_cache.temp + + install -d "$pkgdir"/usr/bin + install -d "$pkgdir"/usr/share/$_pkgname + install -Dm0755 $_pkgname.sh "$pkgdir"/usr/bin/$_pkgname + install -Dm0666 files_cache.temp "$pkgdir"/usr/share/$_pkgname + install -Dm0666 privileged_cache.temp "$pkgdir"/usr/share/$_pkgname + cp -r trunk/* "$pkgdir"/usr/share/$_pkgname +} + +md5sums="6a3a3d7e37cbcd434f05a4b980e558bf unix-privesc-check-svn.tar.gz" +sha256sums="6c0c14cb9fae6c65efaf3b3bebe1fb1555900a0ddffa9cc7645278cd9941dc7f unix-privesc-check-svn.tar.gz" +sha512sums="039328039c06be9f909dd2b938d075705f402d75b830a179731c480851dee319dfd677fe5863c860b182458f52972a40a3b699e004958c78158c06763c9d5bd8 unix-privesc-check-svn.tar.gz" -- 1.8.2.3 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---