From nobody Wed Apr 19 05:51:10 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q1VK52gcXz451lW for ; Wed, 19 Apr 2023 05:51:21 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [47.181.130.121]) by mx1.freebsd.org (Postfix) with ESMTP id 4Q1VK51XTyz4KGN for ; Wed, 19 Apr 2023 05:51:21 +0000 (UTC) (envelope-from bc979@lafn.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (mini [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4Q1VK453krz2gDp4; Tue, 18 Apr 2023 22:51:20 -0700 (PDT) Content-Type: text/plain; charset=us-ascii List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: Blacklistd Issues - Problem Identified From: Doug Hardie In-Reply-To: Date: Tue, 18 Apr 2023 22:51:10 -0700 Cc: questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <8B1C1DCE-75CA-4CE9-A589-329519FB792E@sermon-archive.info> <4E4A4B99-D8DF-4C5C-9700-C56F354A9991@sermon-archive.info> <24171551-4181-49C8-B1DE-2C3D9A00DC4C@sermon-archive.info> <6BD45EAE-D626-4B16-8C24-197FFE34E601@ellael.org> <8FEE687C-E342-49CF-B3D9-118D7ADB84AA@nxg.name> To: Norman Gray X-Mailer: Apple Mail (2.3731.500.231) X-Virus-Scanned: clamav-milter 1.0.1 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4Q1VK51XTyz4KGN X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:5650, ipnet:47.181.128.0/18, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N > On Apr 18, 2023, at 11:46, Norman Gray wrote: >=20 >=20 > Doug, hello. >=20 > On 18 Apr 2023, at 19:18, Doug Hardie wrote: >=20 >> Quick answers as I have to leave very soon. >>=20 >> Blacklistd source is in /usr/src/contrib/blacklistd/bin >>=20 >> Apply the patch there. >>=20 >> To recompile it go to /usr/src/usr.sbin/blacklistd and do the make = there. >=20 > Aha! Thanks. The stock version builds OK, so ... onward to step 2! >=20 >> To find the new execuitable go to = /usr/obj/usr/src/amd64.amd64/usr.sbin/blacklistd and put the blacklistd = there into /usr/libexec >=20 > In my install, the products end up in the same directory, rather than = in /usr/obj. I could presumably tweak that (MAKEOBJDIRPREFIX in the = environment?), but will forbear to do so for the moment. >=20 > I note Michael's point about the config file format. I do remember = looking in the blacklistd source before, trying to understand how it was = parsed (or indeed mis-parsed), and I recall that the parsing was a = bit... magic. I have never seen make build a system component in the source tree. = However, I have only used i386 and amd64 so it's possible some of the = other architectures build things differently. =20 I had to use blacklistd's debug setting to find out how it was working. = Then I played computer and walked through the code. Very time = consuming, but successful. -- Doug