Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 22:51:10 -0700
From:      Doug Hardie <bc979@lafn.org>
To:        Norman Gray <gray@nxg.name>
Cc:        questions@freebsd.org
Subject:   Re: Blacklistd Issues - Problem Identified
Message-ID:  <A084418D-339E-454B-A545-307C38F1108F@sermon-archive.info>
In-Reply-To: <ABAC31CD-0DB6-455A-B9A6-17D78010BCAF@nxg.name>
References:  <C632EC86-6745-42F9-A5EE-FE604C7A8599@sermon-archive.info> <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> <F025AE6A-A820-412E-A0F1-F551D719E319@ellael.org> <D948DD4E-4842-4D1B-B7D0-42EC5E8B1F8A@sermon-archive.info> <ABAC31CD-0DB6-455A-B9A6-17D78010BCAF@nxg.name>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Apr 18, 2023, at 11:46, Norman Gray <gray@nxg.name> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A084418D-339E-454B-A545-307C38F1108F>