[PC-BSD Pbi-dev] How to make a PBI with a combination of ports?
ken at pcbsd.org
Mon Feb 13 06:55:12 PST 2012
On 02/13/2012 06:09, Hakisho Nukama wrote:
> Am 13. Februar 2012 10:21 schrieb Jeff<dejamuse at yahoo.com>:
>> I don't think Easy PBI is setup to work with metaports since as you say
>> they're just a collection of dependencies.
>> I couldn't find any metaport for Apache, PHP, and PhpMyAdmin, in any case.
>> I would have to make one. I believe this is the way to do it:
>> I could build the PBI manually without using Easy PBI, but I'm lazy and I
>> figure other people will want to combine existing ports into a single PBI at
>> some point as well.
>> From: arrowdodger<6yearold at gmail.com>
>> To: Jeff<dejamuse at yahoo.com>
>> Cc: "pbi-dev at lists.pcbsd.org"<pbi-dev at lists.pcbsd.org>
>> Sent: Monday, February 13, 2012 5:06 PM
>> Subject: Re: [PC-BSD Pbi-dev] How to make a PBI with a combination of ports?
>> On Mon, Feb 13, 2012 at 1:52 PM, Jeff<dejamuse at yahoo.com> wrote:
>> In order to build a PBI for PhpMyAdmin, I need to include a webserver like
>> Apache, Nginx, or Lighttpd, and PHP.
>> It doesn't seem like EasyPBI is setup to build a PBI from multiple ports.
>> Can anyone explain how to do this?
>> Let me guess - you need to create meta-port for this. Meta-port is a simple
>> port, which doesn't install anything, but depends on some other ports.
>> Pbi-dev mailing list
>> Pbi-dev at lists.pcbsd.org
> Specify each additional port for your PBI in pbi.conf with following excerpt
> from http://wiki.pcbsd.org/index.php/PBI_Module_Builder_Guide and
> make sure a used variable is exported.
> # Ports to build before / after
> PBI_MKPORTAFTER="audio/esound x11-fonts/dejavu x11-themes/qtcurve-gtk2
> devel/gconf2 www/firefox-i18n"
> Pbi-dev mailing list
> Pbi-dev at lists.pcbsd.org
Hakisho Nukama is correct,
If a program has an additional dependency that is not listed in the port
(or you want to simply package another port with the program) you just
need to add that port to the PBI_MKPORTAFTER line in pbi.conf within the
module. EasyPBI is not setup to edit the pbi.conf file yet (it is on my
list of things to add) so you will have to do it by hand.
You may also run into programs that will not build as PBI's due to
missing build dependencies in the port, this can be solved the same way:
add the desired port to the PBI_MKPORTBEFORE line in pbi.conf in order
to ensure that the desired port is included with the main program before
the main program builds.
~~ Ken Moore ~~
More information about the Pbi-dev