Contents of /smage/trunk/core/remserial/remserial-1.4-r6.smage2
Parent Directory | Revision Log
Revision 6682 -
(show annotations)
(download)
Wed Jul 15 14:10:20 2015 UTC (9 years, 2 months ago) by niro
File size: 896 byte(s)
Wed Jul 15 14:10:20 2015 UTC (9 years, 2 months ago) by niro
File size: 896 byte(s)
auto added: ver bump to 1.4-r6
1 | # $Id$ |
2 | |
3 | PNAME="remserial" |
4 | PVER="1.4" |
5 | PBUILD="r6" |
6 | |
7 | PCAT="net-misc" |
8 | |
9 | DESCRIPTION="The remserial program acts as a communications bridge between a TCP/IP network port and a Linux device such as a serial port." |
10 | HOMEPAGE="http://lpccomp.bc.ca/remserial/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | |
14 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
16 | |
17 | sminclude mbuild mtools systemd |
18 | |
19 | RC_REV=1.2 |
20 | |
21 | SRC_URI=( |
22 | http://lpccomp.bc.ca/${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/remserial.service |
25 | mirror://${PNAME}/remserial.confd |
26 | ) |
27 | |
28 | UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz" |
29 | |
30 | src_compile() |
31 | { |
32 | cd ${SRCDIR} |
33 | mmake || die |
34 | } |
35 | |
36 | src_install() |
37 | { |
38 | cd ${SRCDIR} |
39 | |
40 | minstallexec remserial || die |
41 | minstallunit remserial.service || die |
42 | minstallconf remserial.confd remserial || die |
43 | } |
44 | |
45 | postinstall() |
46 | { |
47 | mstartunit remserial.service |
48 | } |
49 | |
50 | postremove() |
51 | { |
52 | mstopunit remserial.service |
53 | } |