Annotation of /smage/branches/alx-0_6_0/core/alxconfig-ng/alxconfig-ng-0.6.0_rc1-r1.smage2
Parent Directory | Revision Log
Revision 2176 -
(hide annotations)
(download)
Wed May 18 22:02:57 2011 UTC (13 years, 1 month ago) by niro
File size: 1362 byte(s)
Wed May 18 22:02:57 2011 UTC (13 years, 1 month ago) by niro
File size: 1362 byte(s)
auto added: ver bump to 0.6.0_rc1-r1
1 | niro | 2176 | # $Id$ |
2 | |||
3 | PNAME="alxconfig-ng" | ||
4 | PVER="0.6.0_rc1" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCATEGORIE="app-alx" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="alxconfig-ng, configures alx clients via mysql." | ||
11 | HOMEPAGE="http://www.magellan-linux.net" | ||
12 | |||
13 | DEPEND=">= app-text/xmlstarlet-1.1 | ||
14 | >= dev-db/mysql-5.1" | ||
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 /home/station ] && install -o station -g users -d /home/station | ||
51 | |||
52 | # install default xsession | ||
53 | echo "exec startfluxbox" > /home/station/.xinitrc | ||
54 | |||
55 | # setup runlevels | ||
56 | # but never start the services! | ||
57 | MAGE_BOOTSTRAP=true mstartservice alxsettings | ||
58 | MAGE_BOOTSTRAP=true mstartservice alxsetstate | ||
59 | } |