Magellan Linux

Contents of /trunk/todo/openslp/openslp-2.0.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 27912 - (show annotations) (download)
Wed Apr 6 11:09:24 2016 UTC (8 years, 1 month ago) by niro
File size: 975 byte(s)
-moved to 'todo'
1 # $Id$
2
3 PNAME="openslp"
4 PVER="2.0.0"
5 PBUILD="r1"
6
7 PCAT="net-libs"
8
9 DESCRIPTION="An open-source implementation of Service Location Protocol."
10 HOMEPAGE="http://www.openslp.org/"
11
12 DEPEND=">= dev-libs/openssl-1.0.1"
13
14 SRCFILE="${PNAME}-${PVER}.tar.gz"
15 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16
17 sminclude mbuild mtools systemd
18 msetfeature "!check"
19
20 SRC_URI=(
21 sourceforge://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 mirror://${PNAME}/slpd.service
24 mirror://${PNAME}/multicast_route_set.sh
25 )
26
27 UP2DATE="updatecmd ${HOMEPAGE} | grep 'current.*stable'| sed 's:.*OpenSLP\ \(.*\)\ \ .*(.*:\1:'"
28
29 src_install()
30 {
31 cd ${SRCDIR}
32 mmake DESTDIR=${BINDIR} install || die
33
34 # systemd
35 minstallunit slpd.service || die
36 # systemd helper script
37 minstallexec -s multicast_route_set.sh $(mget-systemd-util-dir)/multicast_route_set || die
38
39 minstalldocs AUTHORS ChangeLog FAQ NEWS README* THANKS || die
40 }
41
42 postinstall()
43 {
44 mstartunit slpd.service
45 }
46
47 postremove()
48 {
49 mstopunit slpd.service
50 }