From nobody Tue Apr 12 07:50:50 2022 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 627647EECB1 for ; Tue, 12 Apr 2022 07:50:54 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KcyZj6nnzz3C4f for ; Tue, 12 Apr 2022 07:50:53 +0000 (UTC) (envelope-from pat@patmaddox.com) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id B2F073201F66; Tue, 12 Apr 2022 03:50:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 12 Apr 2022 03:50:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=patmaddox.com; h=cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1649749852; x= 1649836252; bh=vdlpq6C2tpJl4J3TFittxXoFztHhWixQlwoN5aU0lh0=; b=y jnPdW0g/GpbGeWJ41r5E4smAIG95mgu1oDGIgIEjgH5vpSZdQH2aErtCJyERklIF vYLxQtbat6q7DzqfUJJnFFFtZnedCecFL7pS3lDf7YTemGFfAM0Q/lXrqF0kh3pe M8+l232gcKOAeBeiUIJT47lQf42ySjRZ4F9LNzxcoqa4/4JtaY2qAgU1n1LjgZvH 9Cvy/FK4u+MJjCmpQO2852TEAFv8eeNcon2vuQNIXGdTZGERj6orSP99puxuP1rf QmWFdBF5nGpKg8VMNmkND4nMwgwqThqrukA3RD+q3nE4XCyvS4Qaqb6zLO4NHE0R zfyMUIUEHr4duhYggey3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1649749852; x=1649836252; bh=vdlpq6C2tpJl4J3TFittxXoFztHh WixQlwoN5aU0lh0=; b=fj5ogyAYzgZvhpaR18BMf6nI3JP/zyKdBuxlHuTQDkoy Q0nloEBOSzMD0CmR8uTp/lRVUxYXoRUnlThSfq+WmDQPtP3FigP4lrDiw5mnNP51 nimOnTBOoa/6fqgWxmv5jRj8TtmSnC9O1eLRyWugbP/Rw3Qjr+B6MRFjAfMip7u0 gd4MMbpdonqFVtWrQYcaJerGR2wn73NUlcSIyxTLLRltbc/T5xJXTEmVhgb8fTNR ESpK5pIi1a9Z4NYmfszeuu7VDV12t1ep5Y1mVfM2IEplV02IJyO5tEZpEcoIEf7o k3sJNIexB2srkQeC18+3NeRo8CsidUBfH3mJ7/5Gjg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudekjedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffoffkjghfgggtgfesth ekmhdtredtjeenucfhrhhomhepfdfrrghtucforgguughogidfuceophgrthesphgrthhm rgguughogidrtghomheqnecuggftrfgrthhtvghrnhepieefheekgeegfeehheffieejff etfefgudetleeiveetveevhffhudekledttefhnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepphgrthesphgrthhmrgguughogidrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 12 Apr 2022 03:50:51 -0400 (EDT) From: "Pat Maddox" To: questions@freebsd.org Subject: Re: Suggestions for making private packages? Date: Tue, 12 Apr 2022 00:50:50 -0700 X-Mailer: MailMate (1.13.2r5673) Message-ID: <412AF6C5-E707-4B1B-8185-CBC75C271666@patmaddox.com> In-Reply-To: <20220412081908.1c177ebaa4e038a5448e5d90@sohara.org> References: <20220412081908.1c177ebaa4e038a5448e5d90@sohara.org> 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 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4KcyZj6nnzz3C4f X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=patmaddox.com header.s=fm3 header.b="y jnPdW0"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=fj5ogyAY; dmarc=none; spf=pass (mx1.freebsd.org: domain of pat@patmaddox.com designates 64.147.123.25 as permitted sender) smtp.mailfrom=pat@patmaddox.com X-Spamd-Result: default: False [-3.60 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; RWL_MAILSPIKE_EXCELLENT(0.00)[64.147.123.25:from]; DKIM_TRACE(0.00)[patmaddox.com:+,messagingengine.com:+]; NEURAL_HAM_SHORT(-1.00)[-0.996]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.25:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[patmaddox.com:s=fm3,messagingengine.com:s=fm3]; FREEFALL_USER(0.00)[pat]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; DMARC_NA(0.00)[patmaddox.com]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; MLMMJ_DEST(0.00)[questions] X-ThisMailContainsUnwantedMimeParts: N On 12 Apr 2022, at 0:19, Steve O'Hara-Smith wrote: > On Mon, 11 Apr 2022 23:58:05 -0700 > "Pat Maddox" wrote: > >> We are considering using FreeBSD to deploy the proprietary software >> we >> build. >> >> I am interested in using the package system to build and distribute >> the >> software to our servers. I believe this will help us maintain >> consistency and cleanliness. >> >> Right now I have a few ideas of how to do this: >> >> 1. Fork the ports tree, and add a directory for our software. Build >> as >> usual. > > In a software development environment this is the way to go, you > get flexibility and control along with standardisation and familiar > tools > that are easy to integrate with anything else you choose to use. I've > used > this approach with great success. > >> 2. Use portshaker to overlay our software onto the ports tree. > > This is a powerful ports tree mix and match system that's overkill > for what you seem to want and well stocked with foot shooting > opportunities. I'd reserve it for jobs nothing else will handle. > >> 3. Use pkg-create directly. > > Masochism IMHO, goferit if you enjoy it. Thanks for that, it’s super helpful. My one concern with forking the ports tree was how to handle frequent updates. We’ll build the package multiple times per day, and deploy them to our demo environment. pkg-create at first seemed like a more straightforward way to automate it. But when I compare “the way to go” and “masochism”, I’m not so sure :) Have you set up a build server that automates the port definition after commits? It looks to me like there are three main pieces: 1) Bump the DISTVERSION 2) update pkg-plist 3) make makesum. Is that about it? Pat