Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Feb 2018 21:06:26 +0100
From:      olli hauer <ohauer@gmx.de>
To:        FreeBSD ports list <freebsd-ports@freebsd.org>
Cc:        "Dan Mahoney (Gushi)" <freebsd@gushi.org>
Subject:   Re: 6100 subdirectories in /usr/ports/devel!
Message-ID:  <42bb81af-dae6-1edc-090e-b1cfce00f1d3@gmx.de>
In-Reply-To: <alpine.BSF.2.20.1802190823450.3676@prime.gushi.org>
References:  <20171228203634.GK99670@rancor.immure.com> <5A4557E8.70907@grosbein.net> <5A455A04.4090100@grosbein.net> <20171228211639.GL99670@rancor.immure.com> <c11f29e9-8ebd-1f66-f759-953882c191f8@freebsd.org> <CALH631=YvOB344o8EiiPz-LxyuuCgGif_NB%2BvYKe57w0VZ6O9w@mail.gmail.com> <CALM2mEkwX7Sym8=7gM1AJcbQEt=j622B12Z11SJG9NFSeh0_fg@mail.gmail.com> <alpine.BSF.2.20.1802190823450.3676@prime.gushi.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2018-02-19 17:25, Dan Mahoney (Gushi) wrote:
> On Mon, 19 Feb 2018, blubee blubeeme wrote:

...

> 
> For those of us requiring a perl module on a bunch of machines, we don't have a good mechanism (outside of ports/pkg/poudriere) to build those modules and get them out.  One of the things pkgng lacks is the old ports "make pkg" function -- in order to build an installable package, you pretty much must be running poudriere.
> 


No, with pkgng you have several ways to create a package from a port.

On a system where the port is installed:

  $ mkdir -p $space/packages//All
  $ cd $space/packages
  $ pkg create -o $space/packages/All -x p5*
# optional if you want to distribute your packages create the pkg indexes
  $ pkg repo .

Now you have a repo with all your p5* packages, change "-x p5" to "-a" and you have a repo with all installed package, see man pkg-create(8)


If you want to create a package directly in the directory of the port

  $ mkdir -p $space/packages/All
  $ sysrc -f /etc/make.conf PACKAGES="$space/packages"
  $ cd $PORT
  $ make package

Now you have one package in $space/packages/All and one in $PORT/work/pkg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42bb81af-dae6-1edc-090e-b1cfce00f1d3>