Contents of /smage/trunk/core/alxconfig-ng/alxconfig-ng-0.6.7.1-r1.smage2
Parent Directory | Revision Log
Revision 5338 -
(show annotations)
(download)
Thu Jan 2 13:47:18 2014 UTC (10 years, 4 months ago) by niro
File size: 1586 byte(s)
Thu Jan 2 13:47:18 2014 UTC (10 years, 4 months ago) by niro
File size: 1586 byte(s)
-fixed missing include, removed obsolete REMOVE_DEPRECATED_MAGE_TARGETS variable
1 | # $Id$ |
2 | |
3 | PNAME="alxconfig-ng" |
4 | PVER="0.6.7.1" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="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 | sminclude alx sysvinit |
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 \ |
39 | /etc/conf.d/hwsetup |
40 | |
41 | add_conf_prot_ignore /etc/alxconfig-ng/config.rc |
42 | } |
43 | |
44 | postinstall() |
45 | { |
46 | # install user station if needed (uucp is needed to access serial ports [ica-mappings]) |
47 | ${MLIBDIR}/museradd -o "-g users -G audio,video,uucp -d /home/station -s /bin/bash" station |
48 | [ ! -d ${MROOT}/home/station ] && install -o station -g users -d ${MROOT}/home/station |
49 | |
50 | # setup runlevels |
51 | # but never start the services! |
52 | MAGE_BOOTSTRAP=true mstartservice alxsettings |
53 | MAGE_BOOTSTRAP=true mstartservice alxsetstate |
54 | |
55 | # not needed with alxconfig >= 0.6.0 |
56 | local i |
57 | for i in skel/fluxbox/init \ |
58 | skel/fluxbox/apps \ |
59 | skel/fluxbox/keys \ |
60 | skel/idesk \ |
61 | skel/samba \ |
62 | skel/xtdesktop |
63 | do |
64 | if [[ -f ${MROOT}/etc/alxconfig-ng/${i} ]] |
65 | then |
66 | rm ${MROOT}/etc/alxconfig-ng/${i} || die ${i} |
67 | fi |
68 | if [[ -d ${MROOT}/etc/alxconfig-ng/${i} ]] |
69 | then |
70 | rm -r ${MROOT}/etc/alxconfig-ng/${i} || die ${i} |
71 | fi |
72 | done |
73 | |
74 | alx_postinstall |
75 | } |