Magellan Linux

Contents of /smage/trunk/extras/mcore-tools/mcore-tools-0.1_svn2242-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5374 - (show annotations) (download)
Mon Jan 13 09:12:38 2014 UTC (10 years, 5 months ago) by niro
File size: 784 byte(s)
auto added: ver bump to 0.1_svn2242-r1
1 # $Id$
2
3 PNAME="mcore-tools"
4 PVER="0.1_svn2242"
5 PBUILD="r1"
6
7 PCAT="app-mage"
8
9 DESCRIPTION="mcore client daemon."
10 HOMEPAGE="http://www.magellan-linux.net/"
11
12 DEPEND=">= net-misc/sslsvd-1
13 >= sys-apps/hwinfo-20"
14
15 SRCFILE="${PNAME}-${PVER}.tar.bz2"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude systemd
19
20 SRC_URI=( mirror://${PNAME}/${SRCFILE} )
21
22 src_prepare()
23 {
24 munpack ${SRCFILE} || die
25 }
26
27 src_compile()
28 {
29 cd ${SRCDIR}
30 mmake \
31 MCORE_UNPRIV_USER=station \
32 MCORE_DISTRIBUTION=ALX \
33 MCORE_DEFAULT_HOSTNAME=alx-unconfigured \
34 MCORE_DEFAULT_DOMAIN=dom-aka-nt.intern \
35 || die
36 }
37
38 src_install()
39 {
40 cd ${SRCDIR}
41 make DESTDIR=${BINDIR} install || die
42
43 # needed directory
44 mkeepdir /var/lib/mcored || die
45 }
46
47 postinstall()
48 {
49 mstartunit mcored
50 }
51
52 postremove()
53 {
54 mstopunit mcored
55 }