Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions srcpkgs/smartdns/files/smartdns/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
exec 2>&1
exec smartdns -f -c /etc/smartdns/smartdns.conf
23 changes: 23 additions & 0 deletions srcpkgs/smartdns/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Template file for 'smartdns'
pkgname=smartdns
version=48.4
revision=1
build_style=gnu-makefile
make_install_args="PREFIX=/usr SBINDIR=/usr/bin"
conf_files="/etc/smartdns/smartdns.conf"
hostmakedepends="pkg-config"
makedepends="libuv-devel openssl-devel"
depends="libuv openssl"
short_desc="Local DNS server to obtain the fastest website IP"
maintainer="tomcup <jiligulu7755@outlook.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/pymumu/smartdns"
distfiles="https://github.com/pymumu/smartdns/archive/refs/tags/Release${version}.tar.gz"
checksum=b07abba99e921f262ba47588e12f5b36dd849f79c0145542440eb6b7eed80553

post_install() {
rm -f "${DESTDIR}/smartdns.service"
rm -rf "${DESTDIR}/etc/init.d"
vsv smartdns
chmod 0644 "${DESTDIR}/etc/smartdns/smartdns.conf"
}