Magellan Linux

Annotation of /smage/branches/alx-0_6_0/core/alxconfig-ng/alxconfig-ng-0.6.8.99-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6750 - (hide annotations) (download)
Thu Jul 16 15:04:33 2015 UTC (8 years, 10 months ago) by niro
File size: 1624 byte(s)
auto added: ver bump to 0.6.8.99-r1
1 niro 6750 # $Id$
2    
3     PNAME="alxconfig-ng"
4     PVER="0.6.8.99"
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     }
44    
45     postinstall()
46     {
47     # install user station if needed (uucp is needed to access serial ports [ica-mappings])
48     ${MLIBDIR}/museradd -o "-g users -G audio,video,uucp -d /home/station -s /bin/bash" station
49     [ ! -d ${MROOT}/home/station ] && install -o station -g users -d ${MROOT}/home/station
50    
51     # setup runlevels
52     # but never start the services!
53     MAGE_BOOTSTRAP=true mstartservice alxsettings
54     MAGE_BOOTSTRAP=true mstartservice alxsetstate
55    
56     # not needed with alxconfig >= 0.6.0
57     local i
58     for i in skel/fluxbox/init \
59     skel/fluxbox/apps \
60     skel/fluxbox/keys \
61     skel/idesk \
62     skel/samba \
63     skel/xtdesktop
64     do
65     if [[ -f ${MROOT}/etc/alxconfig-ng/${i} ]]
66     then
67     rm ${MROOT}/etc/alxconfig-ng/${i} || die ${i}
68     fi
69     if [[ -d ${MROOT}/etc/alxconfig-ng/${i} ]]
70     then
71     rm -r ${MROOT}/etc/alxconfig-ng/${i} || die ${i}
72     fi
73     done
74    
75     alx_postinstall
76     }