Magellan Linux

Annotation of /smage/branches/alx07x-stable/core/serversystem/serversystem-0.9.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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