pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

RE: knot-resolver posibility?



Hi Greg

I know but it's quite complicated for me (still learning), trying with some partial success, I'm looking for someone more experienced to continue or make it from scratch -> I would be very grateful.
As far I've properly understood, we need buildlink3.mk for knot, I've submitted this as bug pkg/58647.

With local buildlink3.mk for knot I'm able to compile, now I've to add steps to create custom directory for cache (/usr/pkg/var/cache/knot-resolver/) and create from scratch start-up script for rc.d - strictly related knot-resolver pieces.

What I've done so far:

File: net/knot/buildlink3.mk (bug pkg/58647)

# $NetBSD$
BUILDLINK_TREE+=        knot
.if !defined(KNOT_BUILDLINK3_MK)
KNOT_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.knot+=    knot>=3.3.8
BUILDLINK_PKGSRCDIR.knot?=      ../../net/knot
.endif  # KNOT_BUILDLINK3_MK
BUILDLINK_TREE+=        -knot

File: wip/knot-resolver/patches/patch-utils_client_kresc.c
# $NetBSD$

Fix readline.h location

--- utils/client/kresc.c.orig   2024-08-26 10:16:43.040999797 +0000
+++ utils/client/kresc.c
@@ -3,7 +3,7 @@
  */
 #include <arpa/inet.h>
 #include <contrib/ccan/asprintf/asprintf.h>
-#include <editline/readline.h>
+#include <readline.h>
 #include <errno.h>
 #include <histedit.h>
 #include <stdbool.h>

File: wip/knot-resolver/Makefile

# $NetBSD$

DISTNAME=       knot-resolver-5.7.4
CATEGORIES=     net
MASTER_SITES=   https://secure.nic.cz/files/knot-resolver/
EXTRACT_SUFX=   .tar.xz

MAINTAINER=     drixter%e-utp.net@localhost
HOMEPAGE=       https://secure.nic.cz/files/knot-resolver/
COMMENT=        Knot (resolver) DNS server
LICENSE=        gnu-gpl-v3

USE_LANGUAGES=  c c++

CMAKE_ARGS+=            -DINSTALL_BINDIR="bin"
CMAKE_ARGS+=            -DINSTALL_INFODIR="${PKGINFODIR}"
CMAKE_ARGS+=            -DINSTALL_LIBDIR="lib"
CMAKE_ARGS+=            -DINSTALL_MANDIR="${PKGMANDIR}"
CMAKE_ARGS+=            -DCMAKE_INSTALL_SYSCONFDIR=${PKG_SYSCONFDIR}
CMAKE_ARGS+=            -DINSTALL_SBINDIR="sbin"
CMAKE_ARGS+=            -DINSTALL_SCRIPTDIR="bin"

PKG_SYSCONFVAR=         knot-resolver

.include "../../mk/bsd.prefs.mk"

USE_LIBTOOL=    yes
USE_TOOLS+=     cmake pkg-config

RCD_SCRIPTS=    knot-resolver

.include "../../net/knot/buildlink3.mk"
.include "../../devel/libuv/buildlink3.mk"
.include "../../databases/lmdb/buildlink3.mk"
.include "../../lang/LuaJIT2/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
.include "../../devel/userspace-rcu/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../devel/editline/buildlink3.mk"
.include "../../devel/jemalloc/buildlink3.mk"
.include "../../devel/cmocka/buildlink3.mk"
.include "../../mk/tools/pkg-config.mk"
.include "../../devel/meson/build.mk"

I've skipped PLIST, distinfo and DESCR intentionally.

Thanks,

-----Original Message-----
From: Greg Troxel <gdt%lexort.com@localhost> 
Sent: Friday, January 24, 2025 1:28 PM
To: Marcin Gondek <drixter%e-utp.net@localhost>
Cc: pkgsrc-users%netbsd.org@localhost
Subject: Re: knot-resolver posibility?

Marcin Gondek <drixter%e-utp.net@localhost> writes:

> Is there any chance that someone can put knot-resolver into pkgsrc repository?
>
> https://www.knot-resolver.cz

You yourself can sign up for wip and add it there!

https://pkgsrc.org/wip/

Attachment: openpgp-digital-signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index