diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/nsd/APKBUILD | 55 | ||||
-rw-r--r-- | user/nsd/nsd.confd | 5 | ||||
-rw-r--r-- | user/nsd/nsd.initd | 15 | ||||
-rwxr-xr-x | user/nsd/nsd.pre-install | 5 | ||||
-rw-r--r-- | user/redshift/APKBUILD | 57 |
5 files changed, 137 insertions, 0 deletions
diff --git a/user/nsd/APKBUILD b/user/nsd/APKBUILD new file mode 100644 index 000000000..388c902a1 --- /dev/null +++ b/user/nsd/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: Luis Ressel <aranea@aixah.de> +# Maintainer: Luis Ressel <aranea@aixah.de> +pkgname=nsd +pkgver=4.1.26 +pkgrel=0 +pkgdesc="An authoritative only name server" +url="https://www.nlnetlabs.nl/projects/nsd/about/" +arch="all" +options="!check" # No test suite +license="BSD-3-Clause" +depends="" +makedepends="libevent-dev openssl-dev" +subpackages="$pkgname-doc $pkgname-openrc" +install="$pkgname.pre-install" +pkgusers="nsd" +pkggroups="nsd" +source="https://nlnetlabs.nl/downloads/$pkgname/$pkgname-$pkgver.tar.gz + nsd.confd + nsd.initd" + +build() { + cd "$builddir" + + # dnstap has yet unpackaged dependencies + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-pidfile=/run/nsd.pid \ + --disable-dnstap \ + --enable-bind8-stats \ + --enable-ratelimit \ + --enable-ratelimit-default-is-off \ + --enable-recvmmsg \ + --with-ssl=/usr \ + --with-libevent=/usr + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +openrc() { + default_openrc + install -Dm755 "$srcdir/nsd.initd" "$subpkgdir/etc/init.d/nsd" + install -Dm644 "$srcdir/nsd.confd" "$subpkgdir/etc/conf.d/nsd" +} + +sha512sums="49c07ad79e4e056bd519dad157a44d5cc55cd9a28723fd910159dc761d4ba56ef86cb7bf289dc5d1b363a49b999232bb7ec1afa737ca5c2659c4c9893e93494b nsd-4.1.26.tar.gz +f0ef1d3427e92650239d9d91402810c045fc9223e3f42ce86986422bf2039a0bcc02dffdfe1153d54de5c76c8f2bdc3e34fe341c65b41f2d333b02c00b5b0eae nsd.confd +139e52dec98792173f06d298574db0d0e6966a06af8a0a3069487beb01fd570c09d22322569b54bacdc43232dbfb99a8c497d4417d2bbfee88bcdd9d1b4d22f7 nsd.initd" diff --git a/user/nsd/nsd.confd b/user/nsd/nsd.confd new file mode 100644 index 000000000..403de4fe8 --- /dev/null +++ b/user/nsd/nsd.confd @@ -0,0 +1,5 @@ +# +# Specify daemon options here. +# + +nsd_opts="" diff --git a/user/nsd/nsd.initd b/user/nsd/nsd.initd new file mode 100644 index 000000000..981e04ac7 --- /dev/null +++ b/user/nsd/nsd.initd @@ -0,0 +1,15 @@ +#!/sbin/openrc-run + +name="nsd" +command="/usr/sbin/nsd" +command_args="${nsd_opts}" +pidfile="/run/nsd.pid" +extra_started_commands="reload" + +depend() { + use logger net +} + +reload() { + start-stop-daemon --signal HUP --pidfile "${pidfile}" +} diff --git a/user/nsd/nsd.pre-install b/user/nsd/nsd.pre-install new file mode 100755 index 000000000..b8a8bf698 --- /dev/null +++ b/user/nsd/nsd.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +groupadd -r nsd 2>/dev/null +useradd -M -N -g nsd -r -s /sbin/nologin -d /etc/nsd nsd 2>/dev/null +exit 0 diff --git a/user/redshift/APKBUILD b/user/redshift/APKBUILD new file mode 100644 index 000000000..8e3441950 --- /dev/null +++ b/user/redshift/APKBUILD @@ -0,0 +1,57 @@ +# Contributor: Luis Ressel <aranea@aixah.de> +# Maintainer: Luis Ressel <aranea@aixah.de> +pkgname=redshift +pkgver=1.12 +pkgrel=0 +pkgdesc="Adjust the color temperature of your screen according to your surroundings" +url="http://jonls.dk/redshift/" +arch="all" +license="GPL-3.0+" +options="!check" # No test suite +depends="" +makedepends="intltool libdrm-dev libx11-dev libxcb-dev libxxf86vm-dev" +subpackages="$pkgname-doc $pkgname-gui $pkgname-lang" +source="https://github.com/jonls/redshift/releases/download/v$pkgver/redshift-$pkgver.tar.xz" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --disable-rpath \ + --disable-corelocation \ + --enable-drm \ + --disable-geoclue2 \ + --enable-nls \ + --disable-quartz \ + --enable-randr \ + --enable-vidmode \ + --disable-wingdi + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +doc() { + cd "$builddir" + install -Dm644 -t "$subpkgdir/usr/share/doc/$pkgname" redshift.conf.sample + default_doc +} + +gui() { + depends="py3-pygobject" + + install -d "$subpkgdir/usr/bin" "$subpkgdir/usr/lib" "$subpkgdir/usr/share" + mv "$pkgdir/usr/bin/redshift-gtk" "$subpkgdir/usr/bin/" + mv "$pkgdir/usr/lib/python"* "$subpkgdir/usr/lib/" + mv "$pkgdir/usr/share/appdata" "$pkgdir/usr/share/applications" "$pkgdir/usr/share/icons" "$subpkgdir/usr/share/" +} + +sha512sums="225e222e5f2c55be4571094ccaf02a92e162dfc35fd0fe504084e21e358b888a72f9992f9f9edaf1d496eb673af74a0d825ae5cf6ef7f0f1ab51d32419722c32 redshift-1.12.tar.xz" |