Commit e15a895f authored by Laurent Bercot's avatar Laurent Bercot 😴 Committed by Leo

testing/dnsfunnel: new aport

parent c90088ff
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
# Contributor: Laurent Bercot <ska-devel@skarnet.org>
pkgname=dnsfunnel
pkgver=0.0.1.0
pkgrel=0
pkgdesc="A small local DNS cache daemon"
url="https://skarnet.org/software/$pkgname/"
arch="all"
license="ISC"
options="!check" # no test targets
makedepends="skalibs-dev s6-dns-dev"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://skarnet.org/software/dnsfunnel/dnsfunnel-$pkgver.tar.gz
dnsfunnel.initd"
install="dnsfunnel.pre-install"
build() {
./configure \
--enable-shared \
--enable-static \
--disable-allstatic \
--prefix=/usr \
--libdir=/usr/lib \
--libexecdir="/usr/lib/$pkgname" \
--with-dynlib=/lib
make
}
package() {
make DESTDIR="$pkgdir" install
install -D "$srcdir/dnsfunnel.initd" "$pkgdir/etc/init.d/dnsfunnel"
}
doc() {
default_doc
mkdir -p "$subpkgdir/usr/share/doc"
cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}
sha512sums="a051a26db1be100265e2ae1928fab35b698934fe73f3cb76b79637aa9b1d7b62e8a723e0d3e10e1c203bfc75c84154a6ee49bd7aa35983827014bc75e0b299b1 dnsfunnel-0.0.1.0.tar.gz
09577636ea4e09a80f41900f05d408ceb1283e095a85ffba28075f183863524f1e5a2556d6859fc60e297090f0134521a257177200bce517739d05ab3f1eef4e dnsfunnel.initd"
#!/sbin/openrc-run
# Copyright 2020 Laurent Bercot for Alpine Linux
# Distributed under the terms of the ISC License.
#
name=dnsfunnel
description="local DNS cache daemon"
command=dnsfunneld
command_args="-v2 -u `id -u dnsfunnel` -g `id -g dnsfunnel` -xn"
command_background=true
directory=/run/dnsfunnel/root
pidfile=/run/dnsfunnel/dnsfunnel.pid
start_pre() {
mkdir -p -m 0755 /run/dnsfunnel/root
dnsfunnel-translate
}
#!/bin/sh
addgroup -S dnsfunnel 2>/dev/null
adduser -S -D -H -s /bin/false -G dnsfunnel -g dnsfunnel dnsfunnel 2>/dev/null
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment