Creating port from pre-built package

Shawn Webb shawn.webb at hardenedbsd.org
Thu Feb 11 17:09:02 UTC 2021


On Thu, Feb 11, 2021 at 09:03:19AM -0800, Chris wrote:
> On 2021-02-11 08:26, Shawn Webb wrote:
> > Hey all,
> > 
> > The Splunk universal forwarder for FreeBSD is distributed as a package
> > tarball that you can use `pkg add` on. I'm in a position where I'd
> > like to create a port of the package so that I can automate certain
> > tasks.
> Reverse engineer a package? I think that will violate the NDA you
> signed. ;-)
> 
> Really. Unless the package is simply a wrapper of a binary blob. You'll
> need to *build* the port, as part of the package creation process.
> That is, unless I've *completely* misunderstood your intent here. :-)

It's literally a package of pre-built binaries. You can install it by
running:

# pkg add ./splunkforwarder-8.0.7-cbe73339abca-freebsd-11.1-amd64.txz

Here's what `pkg info` shows:

$ pkg info -F splunkforwarder-8.0.7-cbe73339abca-freebsd-11.1-amd64.txz                                                           [11:55:13]
splunkforwarder-8.0.7
Name           : splunkforwarder
Version        : 8.0.7
Origin         : sysutils/splunk
Architecture   : FreeBSD:11:amd64
Prefix         : /opt
Categories     : 
Licenses       : 
Maintainer     : eng-release at splunk.com
WWW            : http://www.splunk.com
Comment        : Splunk> The platform for machine data.
Annotations    :
        no_provide_shlib: yes
        FreeBSD_version: 1101001
Flat size      : 56.6MiB
Description    :
Splunk> The platform for machine data.

(C) 2005-2020 Splunk Inc. All rights Reserved

I'm not looking to re-build the binaries, but rather just use ports to
recreate the package given a pre-existing package tarball.

Thanks,

-- 
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

GPG Key ID:          0xFF2E67A277F8E1FA
GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9  3633 C85B 0AF8 AB23 0FB2
https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20210211/20e86177/attachment.sig>


More information about the freebsd-ports mailing list