* [gentoo-dev] emerge once -- distribute resulting binaries across lan?
@ 2002-10-03 15:16 Michael Dawson
2002-10-03 15:19 ` Mark Guertin
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Michael Dawson @ 2002-10-03 15:16 UTC (permalink / raw
To: gentoo-dev
Is there any automated way to generate an install package (rpm,
whatever) from an emerge? I want to emerge (retrieve, configure,
compile, install) on one workstation and then repeat just the
install phase on other workstations that I use.
I'm thinking of investigating how checkinstall can be integrated
with the emerge system
http://asic-linux.com.mx/~izto/checkinstall/
as it produces rpm's and is widely recommended.
But I'm checking to see that no one has already done something
similar, and I've missed it.
----------------------------------------
Michael Dawson
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] emerge once -- distribute resulting binaries across lan?
2002-10-03 15:16 [gentoo-dev] emerge once -- distribute resulting binaries across lan? Michael Dawson
@ 2002-10-03 15:19 ` Mark Guertin
2002-10-03 15:46 ` Mark Guertin
2002-10-03 16:13 ` Sven Vermeulen
2 siblings, 0 replies; 8+ messages in thread
From: Mark Guertin @ 2002-10-03 15:19 UTC (permalink / raw
To: gentoo-dev
On Thu, 2002-10-03 at 11:16, Michael Dawson wrote:
>
> Is there any automated way to generate an install package (rpm,
> whatever) from an emerge? I want to emerge (retrieve, configure,
> compile, install) on one workstation and then repeat just the
> install phase on other workstations that I use.
>
emerge -b (buildpkg) builds a tbz2 package which goes by default into
/usr/portage/packages/All/ . Also see man ebuild, as you can also
generate rpm pkgs this way (not from emerge but from ebuild command)
Mark
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] emerge once -- distribute resulting binaries across lan?
@ 2002-10-03 15:38 Mark Guertin
0 siblings, 0 replies; 8+ messages in thread
From: Mark Guertin @ 2002-10-03 15:38 UTC (permalink / raw
To: gentoo-dev
On Thu, 2002-10-03 at 11:16, Michael Dawson wrote:
>
> Is there any automated way to generate an install package (rpm,
> whatever) from an emerge? I want to emerge (retrieve, configure,
> compile, install) on one workstation and then repeat just the
> install phase on other workstations that I use.
>
emerge -b (buildpkg) builds a tbz2 package which goes by default into
/usr/portage/packages/All/ . Also see man ebuild, as you can also
generate rpm pkgs this way (not from emerge but from ebuild command)
Mark
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] emerge once -- distribute resulting binaries across lan?
2002-10-03 15:16 [gentoo-dev] emerge once -- distribute resulting binaries across lan? Michael Dawson
2002-10-03 15:19 ` Mark Guertin
@ 2002-10-03 15:46 ` Mark Guertin
2002-10-03 16:16 ` Michael Dawson
2002-10-03 16:13 ` Sven Vermeulen
2 siblings, 1 reply; 8+ messages in thread
From: Mark Guertin @ 2002-10-03 15:46 UTC (permalink / raw
To: gentoo-dev
On Thu, 2002-10-03 at 11:16, Michael Dawson wrote:
>
> Is there any automated way to generate an install package (rpm,
> whatever) from an emerge? I want to emerge (retrieve, configure,
> compile, install) on one workstation and then repeat just the
> install phase on other workstations that I use.
>
Also of note that i didn't mention in first post was to install on the
workstations, copy the pkgs into /usr/portage/packages/All, and do
emerge -u (usepkg) to install from them.
Mark
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] emerge once -- distribute resulting binaries across lan?
2002-10-03 15:16 [gentoo-dev] emerge once -- distribute resulting binaries across lan? Michael Dawson
2002-10-03 15:19 ` Mark Guertin
2002-10-03 15:46 ` Mark Guertin
@ 2002-10-03 16:13 ` Sven Vermeulen
2002-10-04 9:33 ` Paul de Vrieze
2 siblings, 1 reply; 8+ messages in thread
From: Sven Vermeulen @ 2002-10-03 16:13 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]
On Thu, Oct 03, 2002 at 09:16:44AM -0600, Michael Dawson wrote:
> Is there any automated way to generate an install package (rpm,
> whatever) from an emerge? I want to emerge (retrieve, configure,
> compile, install) on one workstation and then repeat just the
> install phase on other workstations that I use.
I have something that has a start of your features. Its very plain and
simple: it checks the files in the CONTENTS-file of the package and places it
in a tarball, together with the /var/db/pkg/[type]/[name]-[version] directory
contents so that portage thinks it has installed it by itself.
It also contains the magical word "system" which will make a tarball of the
packages that are listed in the file "packages", which has use for me, but
probably not for you.
#v+
#!/bin/bash
# $1 is kind/package-version or "system"
# $2 is tarfilename.tar
# Create the tarball, add something
tar cpf $2 /usr/portage/licenses/GPL-2
if [ $1 == "system" ]
then
for n in `cat packages`
do
echo "Adding $n"
for p in `cat /var/db/pkg/$n/CONTENTS | cut -f 2 -d ' '`
do
if [ ! -d "$p" ]
then
tar rpf stage3.tar "$p" 2>/dev/null
fi
done
done
else
for p in `cat /var/db/pkg/$1/CONTENTS | cut -f 2 -d ' '`
do
if [ ! -d "$p" ]
then
tar rpf $2 "$p" 2>/dev/null;
fi
done
tar rpf $2 /var/db/pkg/$1;
fi
gzip $2;
#v-
F.i.
~# makebinary app-office/openoffice-1.0.1 OOo-1.0.1.tar
makes a tarball called "OOo-1.0.1.tar.gz" with all the files provided by an
"emerge openoffice".
HTH,
Sven Vermeulen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] emerge once -- distribute resulting binaries across lan?
2002-10-03 15:46 ` Mark Guertin
@ 2002-10-03 16:16 ` Michael Dawson
0 siblings, 0 replies; 8+ messages in thread
From: Michael Dawson @ 2002-10-03 16:16 UTC (permalink / raw
To: gentoo-dev
On October 3, 2002 09:46 am, Mark Guertin wrote:...
> emerge -u (usepkg) to install from them....
Thanks for your patience, Mark. Looking it up, I think the -u is a
typo, and it's emerge -k. Nice to find out I can just use the
system, without messing with the code.
Now I can take any queries about this to the user list. I
(mis)understood some previous user posts to say that -b and -k did
not accomplish what I wanted.
----------------------------------------
Michael Dawson
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] emerge once -- distribute resulting binaries across lan?
2002-10-03 16:13 ` Sven Vermeulen
@ 2002-10-04 9:33 ` Paul de Vrieze
[not found] ` <20021004150806.GA5971@Daikan.pandora.be>
0 siblings, 1 reply; 8+ messages in thread
From: Paul de Vrieze @ 2002-10-04 9:33 UTC (permalink / raw
To: gentoo-dev
On Thursday 03 October 2002 18:13, Sven Vermeulen wrote:
>
> I have something that has a start of your features. Its very plain and
> simple: it checks the files in the CONTENTS-file of the package and places
> it in a tarball, together with the /var/db/pkg/[type]/[name]-[version]
> directory contents so that portage thinks it has installed it by itself.
>
> It also contains the magical word "system" which will make a tarball of the
> packages that are listed in the file "packages", which has use for me, but
> probably not for you.
Why not simply use /usr/lib/portage/bin/quickpkg ?
Paul
--
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-dev] emerge once -- distribute resulting binaries across lan?
[not found] ` <20021004150806.GA5971@Daikan.pandora.be>
@ 2002-10-06 15:33 ` Paul de Vrieze
0 siblings, 0 replies; 8+ messages in thread
From: Paul de Vrieze @ 2002-10-06 15:33 UTC (permalink / raw
To: gentoo-dev; +Cc: Sven Vermeulen
On Friday 04 October 2002 17:08, Sven Vermeulen wrote:
> On Fri, Oct 04, 2002 at 11:33:10AM +0200, Paul de Vrieze wrote:
> > Why not simply use /usr/lib/portage/bin/quickpkg ?
>
> 'cause I didn't know that existed. Where can one find information about
> these packages ?
The mailing list. And a look in that directory can also help.
Paul
--
Paul de Vrieze
Junior Researcher
Mail: pauldv@cs.kun.nl
Homepage: http://www.devrieze.net
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-10-06 15:33 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-03 15:16 [gentoo-dev] emerge once -- distribute resulting binaries across lan? Michael Dawson
2002-10-03 15:19 ` Mark Guertin
2002-10-03 15:46 ` Mark Guertin
2002-10-03 16:16 ` Michael Dawson
2002-10-03 16:13 ` Sven Vermeulen
2002-10-04 9:33 ` Paul de Vrieze
[not found] ` <20021004150806.GA5971@Daikan.pandora.be>
2002-10-06 15:33 ` Paul de Vrieze
-- strict thread matches above, loose matches on Subject: below --
2002-10-03 15:38 Mark Guertin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox