From 15d90debc454e5598eaf1aa45bb8b9dc8caa9f1c Mon Sep 17 00:00:00 2001 From: tomcup Date: Mon, 28 Sep 2026 02:15:44 +0800 Subject: [PATCH] New package: SmartDNS-48.4 --- srcpkgs/smartdns/files/smartdns/run | 3 +++ srcpkgs/smartdns/template | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 srcpkgs/smartdns/files/smartdns/run create mode 100644 srcpkgs/smartdns/template diff --git a/srcpkgs/smartdns/files/smartdns/run b/srcpkgs/smartdns/files/smartdns/run new file mode 100644 index 00000000000000..6d18fdbb408029 --- /dev/null +++ b/srcpkgs/smartdns/files/smartdns/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec smartdns -f -c /etc/smartdns/smartdns.conf diff --git a/srcpkgs/smartdns/template b/srcpkgs/smartdns/template new file mode 100644 index 00000000000000..f42c3d008aff63 --- /dev/null +++ b/srcpkgs/smartdns/template @@ -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 " +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" +}