Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2008 02:36:14 -0500
From:      "Philip M. Gollucci" <pgollucci@riderway.com>
To:        Dave <dmehler26@woh.rr.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: packaging a metaport
Message-ID:  <47959CEE.60902@riderway.com>
In-Reply-To: <000301c85cad$3b3b78b0$0200a8c0@satellite>
References:  <000301c85cad$3b3b78b0$0200a8c0@satellite>

next in thread | previous in thread | raw e-mail | index | archive | help
Dave wrote:
> Hello,
>     I'd like to compile and install xorg and gnome via metaports on a
> machine, making packages out of the entire process, including dependencies.
> My goal is to have a tarball that i can take to other machines, extract it
> and do a pkg_add * and have xorg and gnome installed via packages vs.
> recompiling the port. I tried a make package but that doesn't work with
> metaports, and make package-recursive doesn't happen either.
> Thanks.
> Dave.

$ id ftp
uid=14(ftp) gid=14(ftp) groups=14(ftp)

In /etc/inetd.conf
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -4 
-A -l -l -r M -s

In /etc/rc.conf
inetd_flags="-wW -l -R 1024 -C 60"
inetd_enable="YES"

$ sudo /etc/rc.d/inetd restart

In /etc/make.conf
DISTDIR=/home/ftp/pub/FreeBSD/ports/distfiles
PACKAGES=/home/ftp/pub/FreeBSD/ports/amd64/packages-7-current

(change the arch and os version to match yours)

$ sudo mkdir -p /home/ftp/pub/FreeBSD/ports/distfiles
$ sudo mkdir -p /home/ftp/pub/FreeBSD/ports/amd64/packages-7-current

$ cd /usr/ports/x11/xorg
$ make all install package-recursive

$ cd /usr/ports/x11-wm/gnome
$ make all install package-recursive

$ ls /home/ftp/pub/FreeBSD/ports/amd64/packages-7-current/Latest/

NOW, or REMOTE machines


$ export 
PACKAGESITE=ftp://ftp.tld/pub/FreeBSD/ports/amd64/packages-7-current/Latest/

$ sudo pkg_add -r xorg
$ sudo pkg_add -r gnome

You can probably just do this for gnome and dependencies will work, but
I've never used gnome, so I can't say.

I don't have the link handy, you can google for the above information.


-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com)
c:703.336.9354
Consultant / http://p6m7g8.net/Resume/resume.txt
http://riderway.com / http://ridecharge.com
1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB  B89E 1324 9B4F EC88 A0BF

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47959CEE.60902>