Magellan Linux

Contents of /smage/trunk/extras/keepalived/keepalived-2.1.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14347 - (show annotations) (download)
Thu Jul 9 09:08:14 2020 UTC (3 years, 9 months ago) by niro
File size: 1872 byte(s)
auto added: ver bump to 2.1.3-r1
1 # $Id$
2
3 PNAME="keepalived"
4 PVER="2.1.3"
5 PBUILD="r1"
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.5
13 >= dev-libs/openssl-1.1
14 >= dev-libs/popt-1.16
15 >= net-misc/iptables-1.8
16 >= sys-apps/dbus-1.12"
17
18 SDEPEND=">= dev-libs/libnl3-dev-3.5
19 >= dev-libs/openssl-dev-1.1
20 >= dev-libs/popt-dev-1.16
21 >= net-misc/iptables-dev-1.8
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/lib/systemd
31 usr/share/snmp
32 usr/sbin"
33 sminclude mbuild systemd alx-split
34
35 SRC_URI=(
36 http://www.keepalived.org/software/${SRCFILE}
37 mirror://${PNAME}/${SRCFILE}
38 mirror://${PNAME}/${PNAME}-2.0.13-confd-2.patch
39 )
40
41 UP2DATE="updatecmd http://www.keepalived.org/download.html | highesttarball gz"
42
43 src_prepare()
44 {
45 munpack ${SRCFILE} || die
46 cd ${SRCDIR}
47
48 # use /etc/conf.d instead of /etc/sysconfig
49 mpatch ${PNAME}-2.0.13-confd-2.patch || die
50 mautoreconf || die
51 }
52
53 src_compile()
54 {
55 cd ${SRCDIR}
56
57 # tell configure where the unit dir resides or systemd will not detected due broken configure test
58 mconfigure --with-systemdsystemunitdir=$(mget-systemd-unit-dir) || die
59 mmake || die
60 }
61
62 alx_generic_src_install()
63 {
64 cd ${SRCDIR}
65 mmake DESTDIR=${BINDIR} install || die
66
67 # do not deploy any bundled ssl certificates
68 mdelete /etc/keepalived/samples/\*.pem || die
69
70 # move examples to /usr/share/doc
71 minstalldir /usr/share/doc/${PNAME}-${PVER} || die
72 mv ${BINDIR}/etc/keepalived/samples ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die
73
74 minstalldocs AUTHOR CONTRIBUTORS COPYING ChangeLog README* TODO || die
75 }
76
77 preinstall_keepalived()
78 {
79 # always keep this files even if the user edited them
80 add_conf_prot_ignore /etc/keepalived/keepalived.conf
81 }