From owner-freebsd-ports@freebsd.org Thu Feb 11 17:09:02 2021 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5982452E90F for ; Thu, 11 Feb 2021 17:09:02 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dc34s4F3Gz4XGZ for ; Thu, 11 Feb 2021 17:09:01 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt1-x829.google.com with SMTP id z32so4660785qtd.8 for ; Thu, 11 Feb 2021 09:09:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=CM9LVJee4Eh9lRYfBYyTHOv/9p7vhVgrBr4klPPGrZQ=; b=WTlgrJv85EwC7BvxCxSfMLn0hKe1Oto1giCBwM0Yg8AMLPFitYzG3IDFPQNKaBFtUL N7lRmYSAV4SYznHnu2Wwr4Ap9GlG88JmJidXf3O9melmB2zjBH9R7YcYhKFIqs5T0oF4 MH04waVbExKWodFZ7//N12CdikqmnKxpwHKr3IeXF36k4xVBFd4RDOP0hGg6rW2QcOSC MA7lWx43E/tZoaL1A8GzocL/dqt/6jlcEGEw41ARE7l9vj9sch4RHzjKhiZCTOEDqLxN ls4jLfJIOUtdzun0c3Gdz17uIPy00vE/6cxIYshkcN8FLaZcUabksF+vXzVHXeW049NL SUEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=CM9LVJee4Eh9lRYfBYyTHOv/9p7vhVgrBr4klPPGrZQ=; b=a+sTp8nDhzBHC4JMQgw8MWxukSJ79M8IuqyiaPWx7/WyS7J9ZeQeQd4qwu+cqlQ5vU dLPzk2xEv6TLpnKHwej3NeQAttBf59vvtMw6xij+GGbMe+BQRK7ZybwTGIMqgifSjqPZ 0eSp5WsXOwzSDDeQzs2Fg8Z9i6hJVp8Fq9n9ErGMI3s88R1DtEBVrM//2f3qD16m74KG wb0iAHdgqlxyhQ7ueybpvmJ3NGc1GgNY+fKy+eLMPk1wBEKZLIk4u7Eo20pofPU303Cw tfxmKXcdzNb/9C7mvrHRCNA7KFEJou7J7MwzA4Jtcl3ERMFLxy2ka7FDH2huxShDapnj 3V/w== X-Gm-Message-State: AOAM532uOY3yWy/aVhSrggBwoCpv9Weq4zpbHB9M3QNXVZSjJqbs8pPq bi02KHWjXoYyHKOOt6R/XmYYlg== X-Google-Smtp-Source: ABdhPJyPAZ19WLvVi2G6mZrEXON9oR+CogOSReDBi4EMYa9+tUezmsJu0r8bPC0TfMNWiYX9rUykKQ== X-Received: by 2002:ac8:4e94:: with SMTP id 20mr1633544qtp.328.1613063339845; Thu, 11 Feb 2021 09:08:59 -0800 (PST) Received: from mutt-hbsd (pool-100-16-222-53.bltmmd.fios.verizon.net. [100.16.222.53]) by smtp.gmail.com with ESMTPSA id w28sm3804331qtv.93.2021.02.11.09.08.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 09:08:59 -0800 (PST) Date: Thu, 11 Feb 2021 12:08:58 -0500 From: Shawn Webb To: Chris Cc: freebsd-ports@freebsd.org Subject: Re: Creating port from pre-built package Message-ID: <20210211170858.lsdctdxkc57wsvzb@mutt-hbsd> X-Operating-System: FreeBSD mutt-hbsd 14.0-CURRENT-HBSD FreeBSD 14.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0xFF2E67A277F8E1FA References: <20210211162625.k55tncjs2yjpw5jt@mutt-hbsd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oxwkmcrmbokr42kp" Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4Dc34s4F3Gz4XGZ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b=WTlgrJv8; dmarc=none; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::829 as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org X-Spamd-Result: default: False [-5.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[hardenedbsd.org:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-0.996]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::829:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RECEIVED_SPAMHAUS_PBL(0.00)[100.16.222.53:received]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[hardenedbsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::829:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::829:from]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2021 17:09:02 -0000 --oxwkmcrmbokr42kp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 11, 2021 at 09:03:19AM -0800, Chris wrote: > On 2021-02-11 08:26, Shawn Webb wrote: > > Hey all, > >=20 > > 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. ;-) >=20 > 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 :=20 Licenses :=20 Maintainer : eng-release@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, --=20 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/Sha= wn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --oxwkmcrmbokr42kp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmAlZKgACgkQ/y5nonf4 4fpLSQ/+IHjPsbWghBb+2PTLMd/bp+mV09Dkb+FDfot0u4hF0eNfoFU2mSN4Eizh slfhLDKklvj/g23ikPEODBSHPIkioDYjCI1+iCcxhOnbXwnCsXB/u/flz6oDIH1z nWmmySgQjArHhTk35XOQmJeE6yFSRcoOArERHIxk5yrFfLLwhw8Yfo5zPI4HmR/Z X1qqvtjT6J9XFp3VWNUmBtyRrovilrJOriFw+gK3HKrPh1Exdt9nIo+wjZc6AmPW Z8/3ydkTop+XdYS2b6/NrdPDguGueVfZlrEoFMDJ1uCGr4jIdJ2gGyQUSTFBBk64 Fk/tr/Ln9mGozC5tvauQ2gdBWct0YcN/8jAn8jNeL5XgLv0/LvpWYpUdDw2+6SLX kZpWpbmJksnEY1U5RGYKS4k3hMyqKyb5pN4/Y6ETzctRv/Wk7BKBhOJ2JoyU1H3Z 7n7wulABINeTMyv5keTbWDITEwMJg0oEtfwfUUlIgKWsMA0oVHNpnbb5913rdtR/ zwr8kJQ5RcjOOJ7bvIAvdx4Dj5yVbzCqAqJXXXPbv+Ox6jPdFqwncpLrqE2+0Iuo jIzTWPcH12+JEcLfOx/CJeDQTIpUDYyLw86FmvaiUYZPCMzrHUnwRomC/uTWWu7+ vd/ooB/kjCMgepE7o2gWIHjoJRTvpevKsGz5JKo7R2AMdhYAcew= =OfMI -----END PGP SIGNATURE----- --oxwkmcrmbokr42kp--