Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Andy Postnikov
aports
Commits
e15a895f
Commit
e15a895f
authored
Jan 20, 2021
by
Laurent Bercot
😴
Committed by
Leo
Jan 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing/dnsfunnel: new aport
parent
c90088ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
0 deletions
+63
-0
testing/dnsfunnel/APKBUILD
testing/dnsfunnel/APKBUILD
+41
-0
testing/dnsfunnel/dnsfunnel.initd
testing/dnsfunnel/dnsfunnel.initd
+17
-0
testing/dnsfunnel/dnsfunnel.pre-install
testing/dnsfunnel/dnsfunnel.pre-install
+5
-0
No files found.
testing/dnsfunnel/APKBUILD
0 → 100644
View file @
e15a895f
# 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"
testing/dnsfunnel/dnsfunnel.initd
0 → 100644
View file @
e15a895f
#!/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
}
testing/dnsfunnel/dnsfunnel.pre-install
0 → 100644
View file @
e15a895f
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment