Annotation of /branches/magellan-next/core/toolchain/toolchain-0.4-r2.smage2
Parent Directory
|
Revision Log
Revision 8825 -
(hide annotations)
(download)
Tue Aug 2 08:41:10 2011 UTC (12 years, 10 months ago) by niro
File size: 1577 byte(s)
Tue Aug 2 08:41:10 2011 UTC (12 years, 10 months ago) by niro
File size: 1577 byte(s)
-rev bump to 0.4-r2; added shadow to toolchain that mage is able to create users
1 | niro | 8825 | # $Id$ |
2 | |||
3 | PNAME="toolchain" | ||
4 | PVER="0.4" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCATEGORIE="fake" | ||
8 | |||
9 | PKGTYPE="virtual" | ||
10 | NOPKGBUILD=true | ||
11 | |||
12 | DESCRIPTION="Magellan toolchain - basic packages to install Magellan." | ||
13 | HOMEPAGE="http://www.magellan-linux.net/" | ||
14 | |||
15 | DEPEND=">= sys-apps/base-files-0.3 | ||
16 | >= sys-apps/debianutils-2.30 | ||
17 | >= sys-apps/coreutils-8.12 | ||
18 | >= sys-apps/util-linux-2.19 | ||
19 | >= sys-apps/diffutils-3 | ||
20 | >= sys-apps/findutils-4.4 | ||
21 | >= sys-apps/gawk-3.1.8 | ||
22 | >= sys-apps/grep-2.8 | ||
23 | >= sys-apps/sed-4.2 | ||
24 | >= app-arch/bzip2-1.0.6 | ||
25 | >= app-arch/gzip-1.4 | ||
26 | >= sys-apps/tar-1.26 | ||
27 | >= sys-apps/file-5 | ||
28 | >= sys-apps/shadow-4.1 | ||
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 | } |