Magellan Linux

Contents of /branches/R11-stable/extras/openslp/openslp-1.2.1-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 15307 - (show annotations) (download)
Wed Jan 2 11:27:32 2013 UTC (11 years, 4 months ago) by niro
File size: 959 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="openslp"
4 PVER="1.2.1"
5 PBUILD="r5"
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
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 /usr/lib/systemd/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 }