Re: Ports and package creation Automation

2009-07-23 Thread b. f.
On 7/23/09, b. f.  wrote:
...

> where PKG_FETCH is an
> sftp-aware client like curll(1) from ftp/curl, with the appropriate
> flags

... or, as you said, sftp(1) in the base. entia non sunt multiplicanda
praeter necessitatem.


b.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Ports and package creation Automation

2009-07-23 Thread b. f.
> I know that pkg_create command will create packages for the other 3 boxes.
> if I am going to rebuild all of my ports from scratch, can I somehow
> tell FreeBSD
> to create a package all the time and store it in a directory?

In addition to what the others have mentioned, you can also use
"portmaster -g" to create the packages.


> also what file do I modify to tell the other local machines where to
> find the packages?
> can this be a sftp url? it would be convenient cause sshd is installed in 
> base.

That depends upon how you are going to manage the package installation
on the other machines.  If you are using pkg_add(1), then you can
either use full URLs like:

pkg_add ftp://packagemachineipaddress/packagedirectory/www/firefox-3.5.1,1.tbz

or you can define either PKG_PATH, PACKAGEROOT, or PACKAGESITE in the
environment in which you're going to call pkg_add:

env PACKAGEROOT='ftp://packagemachineipaddress/packagedirectory/'
pkg_add -r firefox35

You can test your settings with "pkg_add -nvr" to see from where it is
trying to fetch packages. See the pkg_add(1) manpage.  Note that if
you use pkg_add(1), you are limited to schemes supported by fetch(3)
for remote packages.  I don't think this includes sftp:// or ftps://,
although I think it does support http:// with basic authentication and
password-protected ftp. Of course, you could perhaps tunnel your ftp
through ssh; or you could turn remote packages into "local" packages
by mounting the remote package directory via Samba or NFS, protected
by Kerberos or IPSEC if you wish.

If you use portupgrade/portinstall -PP, then you can define
PACKAGESITE and PKG_FETCH in the environment, where PKG_FETCH is an
sftp-aware client like curll(1) from ftp/curl, with the appropriate
flags.  See the portupgrade(1) manpage.

b.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Ports and package creation Automation

2009-07-22 Thread Polytropon
On Wed, 22 Jul 2009 16:50:23 -0400, Glen Barber  wrote:
> I believe you are looking for the following:
> make package
> make package-recursive

If you're using portupgrade / portinstall, the -p option
should be a good choice:

 -p
 --package  Build a package when each specified port is
installed or upgraded.  If a package is upgraded
and its dependent packages are given from the com-
mand line (including the case where -r is speci-
fied), build packages for them as well.

As well as for for "make package", packages are stored in
the /usr/ports/packages/ directory.



-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Ports and package creation Automation

2009-07-22 Thread Glen Barber
On Wed, Jul 22, 2009 at 4:48 PM, Sam Fourman Jr. wrote:
> hello list,
>
> After searching google for 5 minutes I cant find what I am looking for.
>
> I know that pkg_create command will create packages for the other 3 boxes.
> if I am going to rebuild all of my ports from scratch, can I somehow
> tell FreeBSD
> to create a package all the time and store it in a directory?
>
> also what file do I modify to tell the other local machines where to
> find the packages?
> can this be a sftp url? it would be convenient cause sshd is installed in 
> base.
>
> I want to install FreeBSD 8 BETA2 i386 on 4 computers, I want to install
> gnome and firefox, k3b, compiz,openoffice etc... all in all it is like
> a 975 port count.
>
>

Hi, Sam.

I believe you are looking for the following:
make package
make package-recursive

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Ports and package creation Automation

2009-07-22 Thread Sam Fourman Jr.
hello list,

After searching google for 5 minutes I cant find what I am looking for.

I know that pkg_create command will create packages for the other 3 boxes.
if I am going to rebuild all of my ports from scratch, can I somehow
tell FreeBSD
to create a package all the time and store it in a directory?

also what file do I modify to tell the other local machines where to
find the packages?
can this be a sftp url? it would be convenient cause sshd is installed in base.

I want to install FreeBSD 8 BETA2 i386 on 4 computers, I want to install
gnome and firefox, k3b, compiz,openoffice etc... all in all it is like
a 975 port count.


Thank you in advance

Sam Fourman Jr.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"