Magellan Linux

Contents of /trunk/extras/openslp/openslp-1.2.1-r5.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12272 - (show annotations) (download)
Tue May 15 12:00:59 2012 UTC (12 years, 1 month ago) by niro
File size: 934 byte(s)
-enable systemd unit
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
19 SRC_URI=(
20 sourceforge://${PNAME}/${SRCFILE}
21 mirror://${PNAME}/${SRCFILE}
22 mirror://${PNAME}/slpd.service
23 mirror://${PNAME}/multicast_route_set.sh
24 )
25
26 UP2DATE="updatecmd ${HOMEPAGE} | grep 'current.*stable'| sed 's:.*OpenSLP\ \(.*\)\ \ .*(.*:\1:'"
27
28 src_install()
29 {
30 cd ${SRCDIR}
31 mmake DESTDIR=${BINDIR} install || die
32
33 # systemd
34 minstallunit slpd.service || die
35 # systemd helper script
36 minstallexec -s multicast_route_set.sh /lib/systemd/multicast_route_set || die
37
38 minstalldocs AUTHORS ChangeLog FAQ NEWS README* THANKS || die
39 }
40
41 postinstall()
42 {
43 mstartunit slpd.service
44 }
45
46 postremove()
47 {
48 mstopunit slpd.service
49 }