blob: 1162223fb585d3d4bbc44311c3da006978e0857d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Veroni zoubheir@gmail.com
pkgname="dnrs"
pkgver="1.1.3"
pkgrel=1
pkgdesc="Light dns server written in rust"
arch=('x86_64')
url="https://github.com/VeroniDeev/dnrs"
license=('MIT')
depends=('glibc')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://github.com/VeroniDeev/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')
install=dnrs.install
build() {
cd "$srcdir/$pkgname-$pkgver"
cargo build --release
}
package() {
install -d "$pkgdir/etc/dnrs/dns"
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 "target/release/$pkgname" "$pkgdir/etc/dnrs/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 dnrs.service "$pkgdir/usr/lib/systemd/system/dnrs.service"
}
post_install() {
echo "Don't forget to configure your DNS server by modifying the files in /etc/dnrs/dns"
}
|