Magellan Linux

Contents of /smage/branches/alx-0_6_0/core/alxconfig-ng/alxconfig-ng-0.6.10-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7970 - (show annotations) (download)
Wed Dec 9 10:52:19 2015 UTC (8 years, 4 months ago) by niro
File size: 1676 byte(s)
auto added: ver bump to 0.6.10-r1
1 # $Id$
2
3 PNAME="alxconfig-ng"
4 PVER="0.6.10"
5 PBUILD="r1"
6
7 PCATEGORIE="app-alx"
8
9 DESCRIPTION="alxconfig-ng, configures alx clients via mysql."
10 HOMEPAGE="http://www.magellan-linux.net"
11
12 DEPEND=">= sys-apps/mage-release-0
13 >= app-text/xmlstarlet-1.1
14 >= dev-db/mysql-5.1
15 >= sys-apps/hwinfo-18"
16
17 SRCFILE="${PNAME}-${PVER/_/-}.tar.bz2"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}"
19
20 REMOVE_DEPRECATED_MAGE_TARGETS=1
21 sminclude mtools alx
22
23 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
24
25 src_prepare()
26 {
27 munpack ${SRCFILE} || die
28 }
29
30 src_install()
31 {
32 cd ${SRCDIR}
33 make DESTDIR=${BINDIR} install || die
34 }
35
36 preinstall()
37 {
38 add_conf_prot_mask /etc/rc.d /etc/alxconfig-ng/skel \
39 /etc/alxconfig-ng/ica-sessions/icons \
40 /etc/conf.d/hwsetup
41
42 add_conf_prot_ignore /etc/alxconfig-ng/config.rc
43 add_conf_prot_ignore /etc/alxconfig-ng/storefront.rc
44 }
45
46 postinstall()
47 {
48 # install user station if needed (uucp is needed to access serial ports [ica-mappings])
49 ${MLIBDIR}/museradd -o "-g users -G audio,video,uucp -d /home/station -s /bin/bash" station
50 [ ! -d ${MROOT}/home/station ] && install -o station -g users -d ${MROOT}/home/station
51
52 # setup runlevels
53 # but never start the services!
54 MAGE_BOOTSTRAP=true mstartservice alxsettings
55 MAGE_BOOTSTRAP=true mstartservice alxsetstate
56
57 # not needed with alxconfig >= 0.6.0
58 local i
59 for i in skel/fluxbox/init \
60 skel/fluxbox/apps \
61 skel/fluxbox/keys \
62 skel/idesk \
63 skel/samba \
64 skel/xtdesktop
65 do
66 if [[ -f ${MROOT}/etc/alxconfig-ng/${i} ]]
67 then
68 rm ${MROOT}/etc/alxconfig-ng/${i} || die ${i}
69 fi
70 if [[ -d ${MROOT}/etc/alxconfig-ng/${i} ]]
71 then
72 rm -r ${MROOT}/etc/alxconfig-ng/${i} || die ${i}
73 fi
74 done
75
76 alx_postinstall
77 }