From: sev Date: Mon, 28 Oct 2024 21:48:17 +0000 (-0500) Subject: testing/bsd-security: new aport X-Git-Url: https://git.sev.monster/aports.git/commitdiff_plain/6ccbc38a7051947881a9f78450c46b056a62e026?hp=dfa11bd3cb0d9ccfa7f7b8fac8d9cab731194fda testing/bsd-security: new aport --- diff --git a/testing/bsd-security/APKBUILD b/testing/bsd-security/APKBUILD new file mode 100644 index 0000000..d25168c --- /dev/null +++ b/testing/bsd-security/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: sev +# Maintainer: sev +pkgname=bsd-security +pkgver= +pkgrel=0 +pkgdesc="Shell scripts inspired by FreeBSD's security suite" +url="" +arch="all" +license="WTFPL" +depends="" +makedepends="" +install="$pkgname.pre-install $pkgname.post-install" +subpackages="$pkgname-dev $pkgname-doc" +source=" + bsd-security.initd + bsd-security.confd + " +builddir="$srcdir/" + +build() { + # Replace with proper build command(s) + : +} + +check() { + # Replace with proper check command(s) + : +} + +package() { + # Replace with proper package command(s) + : + + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/$pkgname + install -m644 -D "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/$pkgname +} + +sha512sums="512331fd6b4c5621c14b8bf07a94b2318dc33fea245de1e66d6385e1dc4cbfde7cb0d53507b46c85a11defe65a936cca40ace80df76130c7af2ef5999899892c bsd-security.initd +f11f0d192cd7823307c2ce4ddc7b3fff5190f72d3f65a5524b487021a95a222aca1fd36ab1eb58ed533e7acd555bfb70f0c8a13db20338ea31527f3151fd2bd7 bsd-security.confd" diff --git a/testing/bsd-security/bsd-security.confd b/testing/bsd-security/bsd-security.confd new file mode 100644 index 0000000..486252b --- /dev/null +++ b/testing/bsd-security/bsd-security.confd @@ -0,0 +1,7 @@ +# Sample conf.d file for alpine linux + +# +# Specify daemon options here. +# + +sample_opts="" diff --git a/testing/bsd-security/bsd-security.initd b/testing/bsd-security/bsd-security.initd new file mode 100644 index 0000000..0dc706c --- /dev/null +++ b/testing/bsd-security/bsd-security.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run + +# Sample init.d file for alpine linux. + +name= +command="/usr/sbin/$name" +command_args="$sample_opts" +command_background="yes" + +start_stop_daemon_args="--user $sample_user:$sample_group" +pidfile="/run/$name.pid" + +depend() { + need net + after firewall +} diff --git a/testing/bsd-security/bsd-security.post-install b/testing/bsd-security/bsd-security.post-install new file mode 100644 index 0000000..512fd3e --- /dev/null +++ b/testing/bsd-security/bsd-security.post-install @@ -0,0 +1,4 @@ +#!/bin/sh + +# add something which happens after install + diff --git a/testing/bsd-security/bsd-security.pre-install b/testing/bsd-security/bsd-security.pre-install new file mode 100644 index 0000000..20f04f7 --- /dev/null +++ b/testing/bsd-security/bsd-security.pre-install @@ -0,0 +1,4 @@ +#!/bin/sh + +# add something which happens before install +