Contents of /smage/trunk/extras/mcore-tools/mcore-tools-0.1_svn2106-r1.smage2
Parent Directory | Revision Log
Revision 5343 -
(show annotations)
(download)
Thu Jan 2 14:00:43 2014 UTC (10 years, 8 months ago) by niro
File size: 637 byte(s)
Thu Jan 2 14:00:43 2014 UTC (10 years, 8 months ago) by niro
File size: 637 byte(s)
-start/stop systemd units, not sysvinit services
1 | # $Id$ |
2 | |
3 | PNAME="mcore-tools" |
4 | PVER="0.1_svn2106" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="app-mcore" |
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 || die |
31 | } |
32 | |
33 | src_install() |
34 | { |
35 | cd ${SRCDIR} |
36 | make DESTDIR=${BINDIR} install || die |
37 | |
38 | # needed directory |
39 | mkeepdir /var/lib/mcored || die |
40 | } |
41 | |
42 | postinstall() |
43 | { |
44 | mstartunit mcored |
45 | } |
46 | |
47 | postremove() |
48 | { |
49 | mstopunit mcored |
50 | } |