Magellan Linux

Contents of /smage/branches/alx07x-unstable/core/serversystem/serversystem-0.9.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15515 - (show annotations) (download)
Wed Sep 9 13:52:31 2020 UTC (3 years, 7 months ago) by niro
File size: 2689 byte(s)
-release branches/alx07x-unstable
1 # $Id$
2
3 PNAME="serversystem"
4 PVER="0.9.3"
5 PBUILD="r1"
6
7 PKGTYPE="virtual"
8 PCAT="fake"
9
10 DESCRIPTION="ALX Server Pakages based on kernel-2.6 layout"
11 HOMEPAGE="http://www.magellan-linux.net"
12
13 DEPEND=">= app-mage/mage-0.4.114
14 >= virtual/initscripts
15 >= virtual/devmanager
16 >= virtual/kernel
17 >= sys-libs/libstdc++-8.3
18 >= sys-apps/coreutils-8.32
19 >= sys-libs/zlib-1.2.11
20 >= sys-apps/findutils-4.7
21 >= sys-apps/gawk-5
22 >= virtual/less
23 >= virtual/net-tools
24 >= virtual/inetutils
25 >= virtual/kbd
26 >= sys-fs/e2fsprogs-1.45
27 >= virtual/grep
28 >= sys-apps/grub-2.0
29 >= virtual/module-tools
30 >= virtual/procps
31 >= virtual/psmisc
32 >= virtual/tar
33 >= sys-apps/util-linux-2.35
34 >= virtual/editor
35 >= virtual/dhcp
36 >= virtual/wget
37 >= net-misc/rsync-3.2
38 >= sys-apps/diffutils-3.7
39 >= net-misc/ica-client-pnabrowse-13.8
40 >= net-misc/ica-client-storebrowse-13.8
41 >= virtual/ssh-server
42 >= sys-apps/hwinfo-21.70
43 >= app-admin/sudo-1.9
44 >= app-mage/mcore-controld-0.1
45 >= sys-apps/mage-release-0.7
46 >= app-admin/logrotate-3.16
47 >= virtual/mysql
48 >= net-www/apache2-2.4
49 >= dev-php/php-apache-7.3
50 >= dev-db/phpmyadmin-5.0
51 >= net-misc/curl-7
52 >= app-mage/alx-web-0.7"
53
54 sminclude alx systemd
55
56 src_install()
57 {
58 echo
59 echo "This is only a fake smage2 for ${PNAME}-${PVER}-${PBUILD}."
60 echo "No Package will be build."
61 echo
62 }
63
64 postinstall()
65 {
66 # enable php7, phpmyadmin mcore-boot and alx-web in httpd configuration
67 local module
68 for module in php7 phpmyadmin mcore-boot alx-web
69 do
70 if ! grep "^Include.*${module}.conf" ${MROOT}/etc/apache2/httpd.conf > /dev/null
71 then
72 echo "Include /etc/apache2/modules.d/${module}.conf" >> ${MROOT}/etc/apache2/httpd.conf
73 fi
74 done
75
76 # enable crond
77 mstartunit crond
78
79 # enable ssh
80 mstartunit dropbear
81
82 # enable tftpd
83 mstartunit tftpd
84
85 # start apache
86 mstartunit apache2
87
88 # disable mcored but use mcore-controld
89 mstopunit mcored
90 ln -snf /dev/null ${MROOT}/etc/systemd/system/mcored.service
91 mstopunit mcore-register-client
92 ln -snf /dev/null ${MROOT}/etc/systemd/system/mcore-register-client.service
93 mstopunit mcore-request-configuration
94 ln -snf /dev/null ${MROOT}/etc/systemd/system/mcore-request-configuration.service
95 mstartunit mcore-controld
96
97 # disable tmpfs for /var/log
98 ln -snf /dev/null ${MROOT}/etc/systemd/system/var-log.mount
99
100 # disable mcored in initrd
101 echo "# disabled with server OS" > ${MROOT}/etc/dracut.conf.d/50-mcored.conf
102 echo "# disabled with server OS" > ${MROOT}/etc/dracut.conf.d/51-mcored-citrix.conf
103
104 # regen initrd
105 mage run-postinstall kernel-alx
106
107 # replace wfica on serversystem with no_X version
108 if [[ -f ${MROOT}/opt/Citrix/ICAClient/wfica.no_X ]]
109 then
110 ln -snf wfica.no_X ${MROOT}/opt/Citrix/ICAClient/wfica
111 fi
112 }