Gentoo Archives: gentoo-dev

From: Terry Chan <tchan@××××××××.com>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Useful bash script to create Gentoo binary packages after emerge is over
Date: Tue, 20 Nov 2001 17:49:43
Message-Id: 20011120174806.A77914@enteract.com
1 Hi,
2
3 Hopefully other Gentoo users will find this bash script useful. It creates
4 Gentoo binary packages AFTER the package has already been emerge'd.
5
6 This is useful if you don't always want to emerge with --buildpkg, but you
7 do want to create the Gentoo package (tbz2) at a later date. This also
8 gives the sys-admin a chance to modify the config files that are a part
9 of any given package and then those config file changes will be bundled
10 up into the resulting binary package.
11
12 Script must be run as ROOT. Invocation is fairly simple. Using prozilla as
13 an example:
14
15 quickpkg /var/db/pkg/net-www/prozilla-1.3.6/
16
17 Will create /usr/portage/packages/All/prozilla-1.3.6.tbz2
18
19 This binary Gentoo package can then be installed on another Gentoo system
20 by simplying copy the tbz2 package to the new gentoo box and then using
21 this command:
22
23 emerge --usepkg /usr/portage/packages/All/prozilla-1.3.6.tbz2
24
25 Terry Chan
26 ----------

Attachments

File name MIME type
quickpkg text/plain

Replies