1 |
Folks |
2 |
|
3 |
Here's my script for trying portage. I'm running on RHEL4 and getting |
4 |
the problems I've sent earlier. If you've got a few minutes try it |
5 |
out on your computer. Let me know if it works for you ;) |
6 |
|
7 |
#!/bin/sh |
8 |
|
9 |
export PREFIX=/tmp/Mar17 |
10 |
#this directory has portage and the ebuild tree from the wiki |
11 |
#unzipped here |
12 |
#it also has a copy of the normal portage profiles in "normal-profiles" |
13 |
|
14 |
export MYBASE=/home/spike/portage |
15 |
export TREE=${MYBASE}/portage-alt-prefix |
16 |
export PORTCODE=${MYBASE}/portage-prefix-2.1.11 |
17 |
GROUP=spike |
18 |
|
19 |
cd $PORTCODE |
20 |
#./configure --prefix=${PREFIX} --with-user=`whoami` |
21 |
--with-group=${GROUP} --sysconfdir=${PREFIX}/etc |
22 |
--with-rootuser=`whoami` --with-rootuid=`id -u` |
23 |
--with-offset-prefix=${PREFIX} |
24 |
./configure --prefix=${PREFIX}/usr --with-user=`whoami` |
25 |
--with-group=${GROUP} --sysconfdir=${PREFIX}/etc |
26 |
--with-rootuser=`whoami` --with-rootuid=`id -u` |
27 |
--with-offset-prefix=${PREFIX} --with-wheelgroup=${GROUP} |
28 |
--with-wheelgid=`id -g` |
29 |
make |
30 |
make install |
31 |
|
32 |
cd ${PREFIX} |
33 |
mkdir -p usr/portage |
34 |
cp -r ${TREE}/* usr/portage |
35 |
|
36 |
export PATH=${PREFIX}/usr/bin:${PREFIX}/usr/sbin:${PATH} |
37 |
|
38 |
mkdir etc |
39 |
cp ${PORTCODE}/cnf/make.conf etc/ |
40 |
#SET PREFIX in make.conf |
41 |
#PREPEND PREFIX TO A FEW PLACES |
42 |
|
43 |
mkdir -p ${PREFIX}/etc/portage |
44 |
|
45 |
|
46 |
#end script |
47 |
|
48 |
matt |
49 |
|
50 |
-- |
51 |
gentoo-osx@g.o mailing list |