Contents of /smage/trunk/core/toolchain/toolchain-0.2-r1.smage2
Parent Directory | Revision Log
Revision 2792 -
(show annotations)
(download)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1486 byte(s)
Mon Aug 29 20:03:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1486 byte(s)
-merged branch alx-0_6_0 into trunk
1 | # $Id$ |
2 | |
3 | PNAME="toolchain" |
4 | PVER="0.2" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="fake" |
8 | |
9 | PKGTYPE="virtual" |
10 | NOPKGBUILD=true |
11 | |
12 | DESCRIPTION="Mage toolchain - basic packages to install Magellan." |
13 | HOMEPAGE="http://www.magellan-linux.net/" |
14 | |
15 | DEPEND=">= virtual/base-files |
16 | >= virtual/debianutils |
17 | >= sys-apps/coreutils-8.10 |
18 | >= sys-apps/util-linux-2.19 |
19 | >= sys-apps/diffutils-3.0 |
20 | >= sys-apps/findutils-4.4 |
21 | >= sys-apps/gawk-3.1 |
22 | >= virtual/grep |
23 | >= virtual/sed |
24 | >= virtual/bzip2 |
25 | >= virtual/gzip |
26 | >= virtual/tar |
27 | >= virtual/wget |
28 | >= net-misc/rsync-3.0.7 |
29 | >= app-shells/bash-4.2 |
30 | >= app-mage/mage-0.4.25" |
31 | |
32 | sminclude alx |
33 | |
34 | src_install() |
35 | { |
36 | echo |
37 | echo "This is only a fake smage2 for ${PNAME}-${PVER}-${PBUILD}." |
38 | echo "No Package will be build." |
39 | echo |
40 | } |
41 | |
42 | postinstall() |
43 | { |
44 | if [ ! -f ${MROOT}/etc/passwd ] |
45 | then |
46 | echo "Creating a basic passwd file ..." |
47 | echo 'root:x:0:0:root:/root:/bin/bash' > ${MROOT}/etc/passwd |
48 | fi |
49 | |
50 | if [ ! -f ${MROOT}/etc/group ] |
51 | then |
52 | echo "Creating a basic groups file ..." |
53 | cat > ${MROOT}/etc/group << "EOF" |
54 | root:x:0: |
55 | bin:x:1: |
56 | sys:x:2: |
57 | kmem:x:3: |
58 | tty:x:4: |
59 | tape:x:5: |
60 | daemon:x:6: |
61 | floppy:x:7: |
62 | disk:x:8: |
63 | lp:x:9: |
64 | dialout:x:10: |
65 | audio:x:11: |
66 | EOF |
67 | fi |
68 | |
69 | if [ ! -e ${MROOT}/dev/console ] || |
70 | [ ! -e ${MROOT}/dev/null ] || |
71 | [ ! -e ${MROOT}/dev/tty1 ] |
72 | then |
73 | echo "Creating basic devices needed for devfs/udev ..." |
74 | mknod -m 611 ${MROOT}/dev/console c 5 1 |
75 | chgrp 4 ${MROOT}/dev/console |
76 | mknod -m 666 ${MROOT}/dev/null c 1 3 |
77 | mknod ${MROOT}/dev/tty1 c 4 1 |
78 | chgrp 4 ${MROOT}/dev/tty1 |
79 | fi |
80 | } |