Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 43B8E781B45 for ; Tue, 17 Sep 2019 17:17:37 +0000 (UTC) Received: from bell.riseup.net (bell-pn.riseup.net [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 036071A01E4 for ; Tue, 17 Sep 2019 10:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1568740328; bh=Obb7jYaYVVwJt7ArCBdQLDVx2SDVApU9kaWMu2cG7fM=; h=From:To:Subject:Date:From; b=gxT8XVBmmv0PBfbTjtXsJg0HbNx+fpx4qt0WgSOzwJ57UWG57ve4/7awymlewDI51 044C8bqiitE7r8vD45a4m7WrTDKpre0HlTt6XHANVO8T5vTOn8WMXroOMKK6kAz6h8 Olqgs0vsl4gZCKRu/XxSdEmrHaXYGjGq4WpVjfrs= X-Riseup-User-ID: D586D33DF77B6529302B53EC611CF530B714471F5470EF53F2CED0F12B927F58 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id D5DD92222F4 for ; Tue, 17 Sep 2019 10:12:06 -0700 (PDT) From: Ivan Tham To: alpine-aports@lists.alpinelinux.org Subject: [PATCH] testing/lynis: new aport Date: Wed, 18 Sep 2019 01:11:55 +0800 Message-Id: <20190917171155.19939-1-pickfire@riseup.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit https://cisofy.com/lynis/ Security auditing and hardening tool, for UNIX-based systems --- testing/lynis/APKBUILD | 43 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 testing/lynis/APKBUILD diff --git a/testing/lynis/APKBUILD b/testing/lynis/APKBUILD new file mode 100644 index 0000000000..d801fa8a44 --- /dev/null +++ b/testing/lynis/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Ivan Tham +# Maintainer: Ivan Tham +pkgname="lynis" +pkgver="2.7.5" +pkgrel=0 +pkgdesc="Security auditing and hardening tool, for UNIX-based systems" +url="https://cisofy.com/lynis/" +arch="noarch" +license="GPL-3.0-or-later" +options="!check" +subpackages="$pkgname-doc + $pkgname-bash-completion:bashcomp:noarch" +source="$pkgname-$pkgver.tar.gz::https://github.com/CISOfy/$pkgname/archive/$pkgver.tar.gz" + +package() { + cd "$builddir" + + # binary + install -Dm755 lynis "$pkgdir/usr/bin/$pkgname" + + # profile + install -Dm644 default.prf "$pkgdir/etc/$pkgname/default.prf" + + # plugins, include, db + install -d "$pkgdir/usr/share/$pkgname" + cp -ra db include plugins "$pkgdir/usr/share/$pkgname" + + # doc files + install -Dm644 README INSTALL CHANGELOG.md FAQ \ + -t "$pkgdir/usr/share/$pkgname" + install -Dm644 $pkgname.8 -t "$pkgdir/usr/share/man/man8" +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + install -Dm644 "$builddir"/extras/bash_completion.d/$pkgname \ + -t "$subpkgdir/usr/share/bash-completion/completions" +} + +sha512sums="4930ce886d6aeec0c96b220a4ccba70fb8e1a62dcada557f184d538e6b24283a95256ee90a8186678bbbff0081e18ee6c1177c03774202069b301aa40c28781b lynis-2.7.5.tar.gz" -- 2.22.0