Magellan Linux

Contents of /branches/magellan-next/core/toolchain/toolchain-0.4-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8842 - (show annotations) (download)
Tue Aug 2 18:56:11 2011 UTC (12 years, 9 months ago) by niro
File size: 1625 byte(s)
-added inetutils to fix "/usr/lib/mage/mkinfodir: line 53: hostname: command not found" issues
1 # $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/which-2
29 >= sys-apps/shadow-4.1
30 >= sys-apps/inetutils-1.8
31 >= sys-dev/libtool-2.4
32 >= net-misc/wget-1.12
33 >= net-misc/rsync-3
34 >= app-shells/bash-4.2
35 >= app-mage/mage-0.4.26"
36
37 src_install()
38 {
39 echo
40 echo "This is only a fake smage2 for ${PNAME}-${PVER}-${PBUILD}."
41 echo "No Package will be build."
42 echo
43 }
44
45 postinstall()
46 {
47 if [ ! -f ${MROOT}/etc/passwd ]
48 then
49 echo "Creating a basic passwd file ..."
50 echo 'root:x:0:0:root:/root:/bin/bash' > ${MROOT}/etc/passwd
51 fi
52
53 if [ ! -f ${MROOT}/etc/group ]
54 then
55 echo "Creating a basic groups file ..."
56 cat > ${MROOT}/etc/group << "EOF"
57 root:x:0:
58 bin:x:1:
59 sys:x:2:
60 kmem:x:3:
61 tty:x:4:
62 tape:x:5:
63 daemon:x:6:
64 floppy:x:7:
65 disk:x:8:
66 lp:x:9:
67 dialout:x:10:
68 audio:x:11:
69 EOF
70 fi
71
72 if [ ! -e ${MROOT}/dev/console ] ||
73 [ ! -e ${MROOT}/dev/null ] ||
74 [ ! -e ${MROOT}/dev/tty1 ]
75 then
76 echo "Creating basic devices needed for devfs/udev ..."
77 mknod -m 611 ${MROOT}/dev/console c 5 1
78 chgrp 4 ${MROOT}/dev/console
79 mknod -m 666 ${MROOT}/dev/null c 1 3
80 mknod ${MROOT}/dev/tty1 c 4 1
81 chgrp 4 ${MROOT}/dev/tty1
82 fi
83 }