mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-11-27 11:02:17 -05:00
Add stubby-git
This commit is contained in:
parent
6e04359b25
commit
343b571c2f
49
src/stubby-git/PKGBUILD
Normal file
49
src/stubby-git/PKGBUILD
Normal file
@ -0,0 +1,49 @@
|
||||
# Maintainer: Daniel Hillenbrand <codeworkx at bbqlinux dot org>
|
||||
|
||||
_pkgbase=stubby
|
||||
pkgname=stubby-git
|
||||
pkgver=2543.81bfa684
|
||||
pkgrel=1
|
||||
pkgdesc="DNS Privacy Daemon"
|
||||
arch=('x86_64' 'i686')
|
||||
url="https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby"
|
||||
license=('BSD')
|
||||
depends=('openssl' 'libyaml')
|
||||
makedepends=('git')
|
||||
|
||||
source=("$_pkgbase::git+https://github.com/getdnsapi/getdns.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
backup=('usr/etc/stubby/stubby.yml')
|
||||
install=install
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_pkgbase"
|
||||
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "$srcdir/$_pkgbase"
|
||||
git submodule update --init
|
||||
libtoolize -ci
|
||||
autoreconf -fi
|
||||
./configure --prefix=/usr --without-libidn --enable-stub-only --with-ssl=/usr --with-stubby
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_pkgbase"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_pkgbase"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$_pkgbase/LICENSE"
|
||||
|
||||
install -D -m644 stubby/systemd/stubby.service "${pkgdir}/usr/lib/systemd/system/stubby.service"
|
||||
install -D -m644 stubby/systemd/stubby.conf "${pkgdir}/usr/lib/tmpfiles.d/stubby.conf"
|
||||
|
||||
mkdir -p "${pkgdir}/etc/stubby"
|
||||
ln -s /usr/etc/stubby/stubby.yml "${pkgdir}/etc/stubby/stubby.yml"
|
||||
}
|
6
src/stubby-git/install
Normal file
6
src/stubby-git/install
Normal file
@ -0,0 +1,6 @@
|
||||
post_install() {
|
||||
if ! getent passwd stubby &>/dev/null; then
|
||||
groupadd -r stubby
|
||||
useradd -r -g stubby -d / -s /bin/nologin -c stubby stubby
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user