From 873665024ebfaa761ee49b508a79db7178aeb778 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 4 Jun 2022 15:08:04 +0100 Subject: added gnupg --- repo/sndio/sndio.xibuild | 29 +++++++++++++++++++++++++++++ repo/sndio/sndiod.initd | 17 +++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 repo/sndio/sndio.xibuild create mode 100644 repo/sndio/sndiod.initd (limited to 'repo/sndio') diff --git a/repo/sndio/sndio.xibuild b/repo/sndio/sndio.xibuild new file mode 100644 index 0000000..a795bca --- /dev/null +++ b/repo/sndio/sndio.xibuild @@ -0,0 +1,29 @@ +#!/bin/sh + +NAME="sndio" +DESC="Small audio and MIDI framework part of the OpenBSD project" + +MAKEDEPS="alsa-lib" + +PKG_VER=1.8.1 +SOURCE="https://sndio.org/sndio-$PKG_VER.tar.gz" + +ADDITIONAL=" +sndiod.initd +" + +build() { + ./configure --prefix=/usr + make +} + +package() { + make DESTDIR="$PKG_DEST" install + mkdir -p "$PKG_DEST"/usr/sbin + mv "$PKG_DEST"/usr/bin/sndiod "$PKG_DEST"/usr/sbin/ + install -D -m 644 contrib/default.sndiod \ + "$PKG_DEST"/etc/conf.d/sndiod + install -m755 -D "$BUILD_ROOT"/sndiod.initd \ + "$PKG_DEST"/etc/init.d/sndiod +} + diff --git a/repo/sndio/sndiod.initd b/repo/sndio/sndiod.initd new file mode 100644 index 0000000..c255f84 --- /dev/null +++ b/repo/sndio/sndiod.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run + +name="sndiod" +pname="sndiod" +user="sndiod" +group="audio" +command="/usr/sbin/$pname" +command_args="$DAEMON_OPTS" +command_backdground="no" + +pidfile="/run/$pname.pid" + +depend() { + need net + after firewall +} + -- cgit v1.2.1