Magellan Linux

Contents of /smage/branches/alx07x-unstable/core/toolchain/toolchain-0.3.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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