Contents of /smage/branches/alx-0_6_0/core/alxconfig-ng/alxconfig-ng-0.6.0_rc2-r1.smage2
Parent Directory | Revision Log
Revision 2378 -
(show annotations)
(download)
Tue Jun 14 11:24:47 2011 UTC (13 years, 3 months ago) by niro
File size: 1298 byte(s)
Tue Jun 14 11:24:47 2011 UTC (13 years, 3 months ago) by niro
File size: 1298 byte(s)
auto added: ver bump to 0.6.0_rc2-r1
1 | # $Id$ |
2 | |
3 | PNAME="alxconfig-ng" |
4 | PVER="0.6.0_rc2" |
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 ${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 | } |