Re: how do i automate building packages?

2009-12-06 Thread Roland Smith
On Sat, Dec 05, 2009 at 06:09:48PM -0800, Robert wrote:
> On Sun, 29 Nov 2009 22:56:53 +0100
> Roland Smith  wrote:
>
> > Now that my desktop and laptop are both running 8.0, I build ports on
> > my (faster) desktop, and then rsync /usr/local to the laptop. Works
> > fine. Of course my laptop now has some apps on it that it doesn't
> > really need, but on the other hand I have been able to
> > remove /usr/ports, /var/db/ports and /var/db/pkg from the laptop.
> > This is a lot easier than creating packages and updating them on
> > another machine.
>
> I really like this idea. I checked your website but didn't find any
> more detail with regards to this.

Oops. Fixed that.
 
> Are you doing this from crontab, script or just on the command line?

Since my laptop isn't hooked up to my network permanently, I just do the
update from the command line. Here is what I do;

* On the desktop, I make sure that all ports are up to date;
  - 'portsnap fetch update'
  - 'portmaster -a -B -d'
* hook up the laptop to the wired network, with the hostname 'laptop'
  (names and IPs hardwired in /etc/hosts on both machines to keep things 
simple).
* start 'rsync --daemon' on the laptop. The laptop has the following in
  rsyncd.conf: 
[local]
path = /usr/local
comment = usr/local directory tree
uid = root
gid = wheel
read only = false

* synchronize all ports to the laptop with the following command on the build
  machine; 'rsync -av --delete /usr/local/ laptop::local'

> I personally want to thank you for all of your helpful posts. 

You're welcome. It's nice to be appreciated. :-)

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpB6crOalTyt.pgp
Description: PGP signature


Re: how do i automate building packages?

2009-12-05 Thread Robert
On Sun, 29 Nov 2009 22:56:53 +0100
Roland Smith  wrote:


> 
> Now that my desktop and laptop are both running 8.0, I build ports on
> my (faster) desktop, and then rsync /usr/local to the laptop. Works
> fine. Of course my laptop now has some apps on it that it doesn't
> really need, but on the other hand I have been able to
> remove /usr/ports, /var/db/ports and /var/db/pkg from the laptop.
> This is a lot easier than creating packages and updating them on
> another machine.
> 
> Roland

Hi Roland

I really like this idea. I checked your website but didn't find any
more detail with regards to this.

Are you doing this from crontab, script or just on the command line?

I personally want to thank you for all of your helpful posts. 

Robert
___
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: how do i automate building packages?

2009-11-29 Thread Roland Smith
On Sun, Nov 29, 2009 at 09:43:07PM +0100, Philipp Lengemann wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Am Sat, 28 Nov 2009 01:05:47 -0800
> schrieb Gary Kline :
> 
> > 
> > How do I build tarballs of packages that usually wind up in 
> > /usr/ports/packages?
> > 
> > I thought I had something in /etc/make.conf, but nope.  My
> > build of OOo [311] recently finished on my new to-be server.  
> > Since both the new Dell and this older Dell are running 7.2, I
> > figure I can do any builds and move the packages across.

Now that my desktop and laptop are both running 8.0, I build ports on my
(faster) desktop, and then rsync /usr/local to the laptop. Works fine. Of
course my laptop now has some apps on it that it doesn't really need, but on
the other hand I have been able to remove /usr/ports, /var/db/ports and
/var/db/pkg from the laptop. This is a lot easier than creating packages and
updating them on another machine.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpkjbqayY1B5.pgp
Description: PGP signature


Re: how do i automate building packages?

2009-11-29 Thread Philipp Lengemann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Am Sat, 28 Nov 2009 01:05:47 -0800
schrieb Gary Kline :

> 
>   How do I build tarballs of packages that usually wind up in 
>   /usr/ports/packages?
> 
>   I thought I had something in /etc/make.conf, but nope.  My
>   build of OOo [311] recently finished on my new to-be server.  
>   Since both the new Dell and this older Dell are running 7.2, I
>   figure I can do any builds and move the packages across.
> 
>   I thought I had seen foo.tgz in /usr/ports/bar/foo/; but this
>   time, no expected tarball.  --??--  A man ports isn't very
>   clear.  I usually type make install clean when I build
>   anything.  If I have to start over from scratch with
>   openoffice would I type
> 
>   # make install package clean? Or what?
> 
>   anybody?
> 
> 
> 

If you need packages one possibility is

# pkg_info -Ea | xargs -L1 pkg_create -b 

This will build a package of every installed port.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.13 (FreeBSD)

iEYEARECAAYFAksS3OAACgkQlOPmvEv31gZLcQCfTYu1X9jvr6CxgrmwgrMmavnA
36UAniyHgOkTgc5eqoyi0adt91b2FcZE
=K+9t
-END PGP SIGNATURE-
___
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: how do i automate building packages?

2009-11-28 Thread Matthias Apitz
El día Saturday, November 28, 2009 a las 12:15:11PM -0800, Gary Kline escribió:

> On Sat, Nov 28, 2009 at 12:58:09PM +0100, Matthias Apitz wrote:
> > El día Saturday, November 28, 2009 a las 11:26:55AM +0200, Manolis Kiagias 
> > escribió:
> > 
> > > Now that you got it installed, you may use pkg_create:
> > > 
> > > pkg_create -Rb openoffice.org-3.1.1
> > > 
> > > (You can get the exact package name using pkg_info -Ix openoffice)
> > > The -R flag will also build all dependencies of openoffice.
> > ...
> > 
> > If you build more than one package don't forget the flag -n
> 
> 
>   There are things I don't understand about this entire process.
>   That is, if I was a tarball to give to someone for
>   distribution anywhere among FBSD users.
> 
>   Somegow I wound up with 109 *tbz tarballs.  These among them:

...

After compiling and installing all ports I'm using I just do something
like this:

# mkdir PKGDIR
# cd PKGDIR
# ls /var/db/pkg > ../list
# while read name ; do
  pkg_create -Rnb $name
  done < ../list

this gives some 1000++ packages;

# scp * toSomeOtherHost:.


and can install all package ther by just do pkg_add(1M);

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
___
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: how do i automate building packages?

2009-11-28 Thread Gary Kline
On Sat, Nov 28, 2009 at 12:58:09PM +0100, Matthias Apitz wrote:
> El día Saturday, November 28, 2009 a las 11:26:55AM +0200, Manolis Kiagias 
> escribió:
> 
> > Now that you got it installed, you may use pkg_create:
> > 
> > pkg_create -Rb openoffice.org-3.1.1
> > 
> > (You can get the exact package name using pkg_info -Ix openoffice)
> > The -R flag will also build all dependencies of openoffice.
>   ...
> 
> If you build more than one package don't forget the flag -n


There are things I don't understand about this entire process.
That is, if I was a tarball to give to someone for
distribution anywhere among FBSD users.

Somegow I wound up with 109 *tbz tarballs.  These among them:


6 -rw-r--r--  1 root  wheel   5918 Nov 28 01:33 mkfontdir-1.0.4.tbz
18 -rw-r--r--  1 root  wheel  17429 Nov 28 01:33 mkfontscale-1.0.6.tbz
146256 -rw-r--r--  1 root  wheel  149655791 Nov 28 01:33 
openoffice.org-3.1.1.tbz
528 -rw-r--r--  1 root  wheel 520386 Nov 28 01:34 pango-1.24.5.tbz
152 -rw-r--r--  1 root  wheel 155011 Nov 28 01:33 pciids-20090807.tbz
608 -rw-r--r--  1 root  wheel 599789 Nov 28 01:33 pcre-8.00.tbz
11440 -rw-r--r--  1 root  wheel   11697094 Nov 28 01:33 perl-5.8.9_3.tbz


These I eventually scp'd over to 'tao', my current desktop,
and stored in /usr/ports/packages/All.  My 311 version of OOo
would not complete until I figured out that pkg_add required
the -F flag.  (Actually, I did pkg_add -vFf .
I chose the font packages and a few others from the 3D dialogs
when I build openoffice.  

Nutshell, is there a means of building only openoffice-3..1.tbz
and letting the user of this use pkg_add and install or build
his own additional ports, if any?

gary


> 
>   matthias
> -- 
> Matthias Apitz
> t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
> e  - w http://www.unixarea.de/
> Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 7.31a release of Jottings: http://jottings.thought.org/index.php

___
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: how do i automate building packages?

2009-11-28 Thread Matthias Apitz
El día Saturday, November 28, 2009 a las 11:26:55AM +0200, Manolis Kiagias 
escribió:

> Now that you got it installed, you may use pkg_create:
> 
> pkg_create -Rb openoffice.org-3.1.1
> 
> (You can get the exact package name using pkg_info -Ix openoffice)
> The -R flag will also build all dependencies of openoffice.
...

If you build more than one package don't forget the flag -n

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
___
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: how do i automate building packages?

2009-11-28 Thread Gary Kline
On Sat, Nov 28, 2009 at 11:26:55AM +0200, Manolis Kiagias wrote:
> Gary Kline wrote:
> > How do I build tarballs of packages that usually wind up in 
> > /usr/ports/packages?
> >
> > I thought I had something in /etc/make.conf, but nope.  My
> > build of OOo [311] recently finished on my new to-be server.  
> > Since both the new Dell and this older Dell are running 7.2, I
> > figure I can do any builds and move the packages across.
> >
> > I thought I had seen foo.tgz in /usr/ports/bar/foo/; but this
> > time, no expected tarball.  --??--  A man ports isn't very
> > clear.  I usually type make install clean when I build
> > anything.  If I have to start over from scratch with
> > openoffice would I type
> >
> > # make install package clean? Or what?
> >
> > anybody?
> >
> >   
> Now that you got it installed, you may use pkg_create:
> 
> pkg_create -Rb openoffice.org-3.1.1
> 
> (You can get the exact package name using pkg_info -Ix openoffice)
> The -R flag will also build all dependencies of openoffice.
> 
> Something along the lines of the following script:
> 
> #! /usr/bin/env bash
> mkdir -p /usr/ports/packages
> cd /usr/ports/packages
> rm -rf *.tbz
> echo "Package creation starting `date`"
> IFS=$'\n'
> for i in `pkg_info  -Ea`
> do
>  echo  "Creating $i"
>  pkg_create -b $i
> done
> echo "Finished, `date`"
> 
> will create a package for every single port installed on your system and
> place it in /usr/ports/packages.  You can then move these and install
> them on another system. Notice the script does not use -R as it is
> already building all packages  :)
> ___
> 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"


Doing a  "pkg_create -Rb" yielded the same results as
Patrick's make package.  Someone I wound up with 109 tarballs
on ethic [new Dell].  Am trying a pkg_add on tao [old Dell].  
See if it works.

...Well, an hour+, but it was a learning experience.  In my
desktop's /usr/ports/packages/All---it probably did not
matter-- 

pkg_add -vfF openoffice-3.tbz worked.

thanks guys,

gary

PS: I should add in my own defense that I tried building
OOo-311 on my desktop but ran out of diskspace... .


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 7.31a release of Jottings: http://jottings.thought.org/index.php

___
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: how do i automate building packages?

2009-11-28 Thread Manolis Kiagias
Gary Kline wrote:
>   How do I build tarballs of packages that usually wind up in 
>   /usr/ports/packages?
>
>   I thought I had something in /etc/make.conf, but nope.  My
>   build of OOo [311] recently finished on my new to-be server.  
>   Since both the new Dell and this older Dell are running 7.2, I
>   figure I can do any builds and move the packages across.
>
>   I thought I had seen foo.tgz in /usr/ports/bar/foo/; but this
>   time, no expected tarball.  --??--  A man ports isn't very
>   clear.  I usually type make install clean when I build
>   anything.  If I have to start over from scratch with
>   openoffice would I type
>
>   # make install package clean? Or what?
>
>   anybody?
>
>   
Now that you got it installed, you may use pkg_create:

pkg_create -Rb openoffice.org-3.1.1

(You can get the exact package name using pkg_info -Ix openoffice)
The -R flag will also build all dependencies of openoffice.

Something along the lines of the following script:

#! /usr/bin/env bash
mkdir -p /usr/ports/packages
cd /usr/ports/packages
rm -rf *.tbz
echo "Package creation starting `date`"
IFS=$'\n'
for i in `pkg_info  -Ea`
do
 echo  "Creating $i"
 pkg_create -b $i
done
echo "Finished, `date`"

will create a package for every single port installed on your system and
place it in /usr/ports/packages.  You can then move these and install
them on another system. Notice the script does not use -R as it is
already building all packages  :)
___
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: how do i automate building packages?

2009-11-28 Thread Patrick Lamaiziere
Le Sat, 28 Nov 2009 01:05:47 -0800,
Gary Kline  a écrit :

>   How do I build tarballs of packages that usually wind up in 
>   /usr/ports/packages?
... 
>   # make install package clean? Or what?

make package

You can also create a package from an already installed port with
pkg_create.

Regards.
___
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"


how do i automate building packages?

2009-11-28 Thread Gary Kline

How do I build tarballs of packages that usually wind up in 
/usr/ports/packages?

I thought I had something in /etc/make.conf, but nope.  My
build of OOo [311] recently finished on my new to-be server.  
Since both the new Dell and this older Dell are running 7.2, I
figure I can do any builds and move the packages across.

I thought I had seen foo.tgz in /usr/ports/bar/foo/; but this
time, no expected tarball.  --??--  A man ports isn't very
clear.  I usually type make install clean when I build
anything.  If I have to start over from scratch with
openoffice would I type

# make install package clean? Or what?

anybody?



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 7.31a release of Jottings: http://jottings.thought.org/index.php

___
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"