From owner-freebsd-ports@freebsd.org Thu Jul 16 07:09:59 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FA119A3810 for ; Thu, 16 Jul 2015 07:09:59 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1C82C1C57 for ; Thu, 16 Jul 2015 07:09:57 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local ([192.168.100.2]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.15.1/8.15.1) with ESMTPSA id t6G79eQm092047 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 16 Jul 2015 08:09:40 +0100 (BST) (envelope-from matthew@FreeBSD.org) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org DKIM-Filter: OpenDKIM Filter v2.9.2 smtp.infracaninophile.co.uk t6G79eQm092047 Authentication-Results: smtp.infracaninophile.co.uk/t6G79eQm092047; dkim=none reason="no signature"; dkim-adsp=none; dkim-atps=neutral X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host [192.168.100.2] claimed to be liminal.local Message-ID: <55A758B3.2050502@FreeBSD.org> Date: Thu, 16 Jul 2015 08:09:39 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: poudriere with custom packages References: <55A729C8.10301@ish.com.au> In-Reply-To: <55A729C8.10301@ish.com.au> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CgVbGEauVmPcNSDXtIRniO5bWFMhRsOb4" X-Virus-Scanned: clamav-milter 0.98.7 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Jul 2015 07:09:59 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CgVbGEauVmPcNSDXtIRniO5bWFMhRsOb4 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 16/07/2015 04:49, Aristedes Maniatis wrote: > I have a custom built package which I'm building outside the FreeBSD > ports system (using pkg-create commands). How can I add that package > to a poudriere managed repository so that it appears in the package > index and can be easily installed like any other package? >=20 > Thanks for any help I can think of two ways to handle this: 1) Manually build your own repo containing just your custom package. Simply copy the package .txz to a directory accessible from your webserver (or however you want to publish the repo.) Then run 'pkg repo' in that directory. See pkg-repo(8) for the gory details. This fails on your 'poudriere managed' requirement, but it's pretty simple. You could even add your own package to the directory that poudriere creates and then use pkg repo to rebuild the catalogue there. 2) Integrate your custom package into the ports tree. You can add a 'Makefile.local' in /usr/ports containing something like: SUBDIR +=3D myports which adds 'myports' as a new category for your custom stuff. Then just mimic the layout from any of the other categories. This obviously works best if your custom stuff uses the standard ports machinery to build your package. You can then add 'myports/mypackage' to the list of what poudriere should build. I'd be interested to hear about how you are creating packages outside the ports tree. This is something we'd like to facilitate, but at the moment pkg(8) and the ports are deeply entwined and there isn't much useable documentation or prior art for how to do it 'by hand'. Cheers, Matthew --CgVbGEauVmPcNSDXtIRniO5bWFMhRsOb4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) iQJ8BAEBCgBmBQJVp1izXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATMiwP/Rjl5AXaOAzsE70l1RQsXINd snmOX9B1FSjWyHajTHMg6vSys7rWPYOJ/qsJwHdEJ6H22sJvWHs8oWunrDVK5t/+ 8bP4yDsyTJJ+XbuY5r+awqcDXufNH4fJPLdckiUE1g/SlGBpv7zhhT6bv4NmAtny Cn8SesBJgEqoyFeuYAGxLmBDpUdUjEkJwx8vGc0vuicYWz4PSsvoUNM7bbXA8KMA kl7MNYngw90w27QqQopcotJa5TWpBssRCMkepSSJn1tNZnGyYybOeZ1InJOJJC/V 1MZ7fE6G5RbGXBXSgZb7/qK/b2Yz3gpOwjImSanzWbBqxL096Leh1EPhoLSM8msd 4QZxVoijjD2kAA61updZLuh6Eeshd3gnQAeU/CQk7u/RbWF94SdpOIcqfR0CuAXI Y5/NkP9j/zug17fjIau4FIHms+Hpz/wnHpoLUxEioo2sq5xKLuWThpU72U355A2V vAIB0/yJHfmx4TSjfSofaEkGDCFUgLAvwD6bD6T+hXUdjLQDg9tKKHHZf6cuktBw 06yMKQJtrXWpPoZBDA2fWeDgZl0gX/cX6zxQ9bva6voxWX34jUd7w+YQyMKiBkbz d4qx96Pfxm6FFghoozn/20Sd0/Sx/V95SexOX1tD2GbWuSj2H+a40C1jqjEW/Brz q8sP0AxnD3loVtPc1BTP =2Fg0 -----END PGP SIGNATURE----- --CgVbGEauVmPcNSDXtIRniO5bWFMhRsOb4--