Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2516 - (show annotations) (download)
Thu Jun 30 15:16:33 2011 UTC (12 years, 10 months ago) by niro
File size: 1304 byte(s)
auto added: ver bump to 0.6.0_rc9-r1
1 # $Id$
2
3 PNAME="alxconfig-ng"
4 PVER="0.6.0_rc9"
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=">= app-text/xmlstarlet-1.1
13 >= dev-db/mysql-5.1
14 >= sys-apps/hwinfo-18"
15
16 SRCFILE="${PNAME}-${PVER/_/-}.tar.bz2"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/-}"
18
19 REMOVE_DEPRECATED_MAGE_TARGETS=1
20 sminclude mtools alx
21
22 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
23
24 src_prepare()
25 {
26 munpack ${SRCFILE} || die
27 }
28
29 src_install()
30 {
31 cd ${SRCDIR}
32 make DESTDIR=${BINDIR} install || die
33 }
34
35 preinstall()
36 {
37 add_conf_prot_mask /etc/rc.d /etc/alxconfig-ng/skel \
38 /etc/alxconfig-ng/ica-sessions/icons/default.png \
39 /etc/alxconfig-ng/ica-sessions/icons/default_item.png \
40 /etc/alxconfig-ng/ica-sessions/icons/sysinfo.png \
41 /etc/conf.d/hwsetup
42
43 add_conf_prot_ignore /etc/alxconfig-ng/config.rc
44 }
45
46 postinstall()
47 {
48 # install user station if needed (uucp is needed to acces com 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 }