Magellan Linux

Contents of /smage/trunk/core/tinyalxconfig-ng/tinyalxconfig-ng-20080713-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1136 - (show annotations) (download)
Tue Aug 4 18:25:55 2009 UTC (14 years, 9 months ago) by niro
File size: 1321 byte(s)
auto added: ver bump to 20080713-r2
1 # $Id$
2
3 PNAME="tinyalxconfig-ng"
4 PVER="20080713"
5 PBUILD="r2"
6
7 PCATEGORIE="app-alx"
8 STATE="unstable"
9
10 DESCRIPTION="Port of alxconfig-ng for tinyALX clients - configures alx clients via mysql."
11 HOMEPAGE="http://www.magellan-linux.net"
12
13 DEPEND=""
14
15 SRCFILE="${PNAME}-${PVER}-${PBUILD}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}-${PBUILD}"
17
18 sminclude alx
19
20 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
21
22 src_prepare()
23 {
24 munpack ${SRCFILE} || die
25 }
26
27 src_install()
28 {
29 cd ${SRCDIR}
30 make DESTDIR=${BINDIR} install || die
31 }
32
33 preinstall()
34 {
35 add_conf_prot_mask /etc/rc.d /etc/alxconfig-ng/skel \
36 /etc/alxconfig-ng/ica-sessions/icons/default.png \
37 /etc/alxconfig-ng/ica-sessions/icons/default_item.png \
38 /etc/alxconfig-ng/ica-sessions/icons/sysinfo.png
39 }
40
41 postinstall()
42 {
43 # whipeout uneeded protected stuff
44 [ -f /etc/alxconfig-ng/._cfg????_config.rc ] && \
45 rm /etc/alxconfig-ng/._cfg????_config.rc
46
47 # # install user station if needed (uucp is needed to acces com ports [ica-mappings])
48 [ -x ${MLIBDIR}/museradd ] && \
49 ${MLIBDIR}/museradd -o "-g users -d /home/station -s /bin/bash" station
50 [ ! -d /home/station ] && install -o station -g users -d /home/station
51
52 # setup runlevels
53 if [ -x /sbin/rc-config ]
54 then
55 /sbin/rc-config add alxsetstate
56 /sbin/rc-config add alxsettings
57 /sbin/rc-config add single-x11
58 fi
59 }

Properties

Name Value
svn:keywords Id