From 6595f5345df26ec7d68aea0a5107cfe1b5887557 Mon Sep 17 00:00:00 2001 From: bugcrazy <39757967+bugcrazy@users.noreply.github.com> Date: Tue, 26 Jul 2022 21:26:24 -0300 Subject: [PATCH] New package: delphinusdnsd-1.5.3 Added libmd-devel Added patch for fixed compile --- srcpkgs/delphinusdnsd/patches/fix_cc.patch | 7 ++++ srcpkgs/delphinusdnsd/template | 40 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 srcpkgs/delphinusdnsd/patches/fix_cc.patch create mode 100644 srcpkgs/delphinusdnsd/template diff --git a/srcpkgs/delphinusdnsd/patches/fix_cc.patch b/srcpkgs/delphinusdnsd/patches/fix_cc.patch new file mode 100644 index 000000000000..a2c44a435462 --- /dev/null +++ b/srcpkgs/delphinusdnsd/patches/fix_cc.patch @@ -0,0 +1,7 @@ +--- Makefile.linux 2022-09-25 00:37:17.898172984 -0300 ++++ Makefile.linux 2022-09-25 00:37:07.068172740 -0300 +@@ -1,4 +1,3 @@ +-CC=gcc + #CFLAGS=-DDEBUG + CFLAGS=-D_XOPEN_SOURCE -D_DEFAULT_SOURCE -Wno-shift-count-overflow + LDADD= -lresolv -lcrypto -lrt -lbsd diff --git a/srcpkgs/delphinusdnsd/template b/srcpkgs/delphinusdnsd/template new file mode 100644 index 000000000000..ee6f584ca26d --- /dev/null +++ b/srcpkgs/delphinusdnsd/template @@ -0,0 +1,40 @@ +# Template file for 'delphinusdnsd' +pkgname=delphinusdnsd +version=1.5.3 +revision=1 +_delphinusdnsVersion=1_5_3 +wrksrc="${pkgname}-RELEASE_${_delphinusdnsVersion}" +build_style=configure +configure_script="./configure" +conf_files="/etc/delphinusdns/delphinusdns.conf" +hostmakedepends="mk-configure bison" +makedepends="openssl-devel libbsd-devel libmd-devel" +short_desc="Delphinusdns is a small authoritative nameserver" +maintainer="MarcoAPC " +license="BSD-3-Clause" +homepage="https://delphinusdns.org" +distfiles="https://github.com/delphinusdns/${pkgname}/archive/RELEASE_${_delphinusdnsVersion}.tar.gz" +checksum=0cd11f04ddb8743ac1efaba280fe44e5d33089cda995c1bbe24b1d189ebb13d5 +patch_args="-Np0" + +system_accounts="_ddd" + +if [ "$XBPS_TARGET_LIBC" = "musl" ]; then + makedepends+=" musl-legacy-compat" +fi + +do_install() { + vbin dddctl/dddctl + vbin delphinusdnsd/delphinusdnsd + vmkdir etc/delphinusdns/ + vmkdir usr/share/examples/delphinusdnsd + mv examples/Master/* ${DESTDIR}/usr/share/examples/delphinusdnsd + mv examples/Replicant/* ${DESTDIR}/usr/share/examples/delphinusdnsd + chmod 0644 ${DESTDIR}/usr/share/examples/delphinusdnsd/* + vinstall delphinusdns.conf 0644 etc/delphinusdns/ + vman delphinusdns.conf.5 + vman delphinusdnsd.8 + vman dddctl.8 + sed -n '2,25p' < ddd-dns.h > LICENSE.BSD-3-Clause + vlicense LICENSE.BSD-3-Clause +}