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