Re: MegaCLI port is ports-only -- how would you deploy it?

From: Ruslan Makhmatkhanov <>
Date: Thu, 04 Aug 2022 14:22:29 UTC
<div> </div><div> </div><div>03.08.2022, 02:07, "Dan Mahoney" &lt;;:</div><blockquote><p>Hey there all,<br /><br />At the dayjob we have a fleet of Dell Poweredge servers that can use either mptsas or mrsas -- if you use mptsas, you use mptutil (in base) to check the state of the card.<br /><br />If you use mrsas, you need megacli, which is only in ports, and the port hasn't translated to pkg probably because of license restrictions. ( _LICENSE_RESTRICTED = delete-package delete-distfiles), but the license listed is just "megacli".<br /><br />* We want to deploy a cron job to periodically check the raid status (we're writing a wrapper, also having it check mfiutil, zpool, etc).<br /><br />* We do not want to install and manage a whole ports tree on every machine in our fleet, just to install a raid utlity.<br /><br />Option A:<br /><br />Make a local package somehow.<br /><br />The port just downloads a static binary, there's nothing to build here, but we want to do this the "right" way. Is there some way to have pkg deploy a single local package for this that will, for example, report the right package ownership, without moving every other package to our poudriere install (we're just using base packages, we keep poudriere around for testing in case we need to hot-patch something).<br /><br />For what it's worth, we use puppet for config management, so pushing out the static binary is not the worst answer, but it also feels "dirty".<br /><br />Option B:<br /><br />Figure out how to fix the license. I have no idea what this would involve.<br /><br />Option C:<br /><br />Also, apparently MegaCLI is no longer maintained (replaced by StorCLI), but there's no port for StorCLI, and...there are multiple raid-card specific versions? Jeez.<br /><br />Feels even more dirty.<br /><br /><a href="" rel="noopener noreferrer"></a><br /><br />Ideas welcome?<br /><br />-Dan Mahoney</p></blockquote><div> </div><div>Since sysutils/megacli:</div><div>- has no dependencies</div><div>- has nothing to build</div><div>- only carries single binary</div><div>- updates are not supposed to happen in future</div><div> </div><div>it may worth to just do `make package` once (manually or with puppet recipe) on some dedicated system and then deploy it with puppet directly. poudriere is overkill for this task imho.</div><div> </div><div>-- </div><div>Regards,</div><div>Ruslan</div><div> </div>