Magellan Linux

Annotation of /smage/trunk/extras/keepalived/keepalived-2.0.17-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13240 - (hide annotations) (download)
Tue Jul 9 13:32:43 2019 UTC (4 years, 10 months ago) by niro
File size: 1541 byte(s)
-moved config samples into -dev package
1 niro 13240 # $Id$
2    
3     PNAME="keepalived"
4     PVER="2.0.17"
5     PBUILD="r3"
6    
7     PCAT="net-misc"
8    
9     DESCRIPTION="A strong and robust keepalive facility to the Linux Virtual Server project."
10     HOMEPAGE="http://www.keepalived.org/"
11    
12     DEPEND=">= dev-libs/libnl3-3.2
13     >= dev-libs/openssl-1
14     >= dev-libs/popt-1.16
15     >= net-misc/iptables-1.6
16     >= sys-apps/dbus-1.12"
17    
18     SDEPEND=">= dev-libs/libnl3-dev-3.2
19     >= dev-libs/openssl-dev-1
20     >= dev-libs/popt-dev-1.16
21     >= net-misc/iptables-dev-1.6
22     >= sys-apps/dbus-dev-1.12"
23    
24     SRCFILE="${PNAME}-${PVER}.tar.gz"
25     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
26    
27     ALX_PKG_KEEP="etc/conf.d
28     etc/keepalived/keepalived.conf
29     usr/bin
30     usr/share/snmp
31     usr/sbin"
32     sminclude mbuild systemd alx-split
33    
34     SRC_URI=(
35     http://www.keepalived.org/software/${SRCFILE}
36     mirror://${PNAME}/${SRCFILE}
37     mirror://${PNAME}/${PNAME}-2.0.13-confd-2.patch
38     )
39    
40     UP2DATE="updatecmd http://www.keepalived.org/download.html | highesttarball gz"
41    
42     src_prepare()
43     {
44     munpack ${SRCFILE} || die
45     cd ${SRCDIR}
46    
47     # use /etc/conf.d instead of /etc/sysconfig
48     mpatch ${PNAME}-2.0.13-confd-2.patch || die
49     mautoreconf || die
50     }
51    
52     src_compile()
53     {
54     cd ${SRCDIR}
55    
56     # tell configure where the unit dir resides or systemd will not detected due broken configure test
57     mconfigure --with-systemdsystemunitdir=$(mget-systemd-unit-dir) || die
58     mmake || die
59     }
60    
61     alx_generic_src_install()
62     {
63     cd ${SRCDIR}
64     mmake DESTDIR=${BINDIR} install || die
65    
66     # do not deploy any bundled ssl certificates
67     mdelete /etc/keepalived/samples/\*.pem || die
68    
69     minstalldocs AUTHOR CONTRIBUTORS COPYING ChangeLog README* TODO || die
70     }