Skip to contentSkip to conversation

ipset: install libraries

PATCH Superseded Ilias Apalodimas 2 participants 4 messages Feb 15, 2017

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ipset: install libraries

Some packages may require libipset(i.e keepalived introduced in this patch).

---
 package/ipset/ipset.mk | 1 +
 1 file changed, 1 insertion(+)
package/ipset/ipset.mk +1 -0
index db4952b..bb40fee 100644
@@ -13,5 +13,6 @@ IPSET_CONF_OPTS = --with-kmod=no
 IPSET_AUTORECONF = YES
 IPSET_LICENSE = GPLv2
 IPSET_LICENSE_FILES = COPYING
+IPSET_INSTALL_STAGING = YES
 
 $(eval $(autotools-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 keepalived: new package

---
 DEVELOPERS                         |  3 +++
 package/Config.in                  |  1 +
 package/keepalived/Config.in       | 14 ++++++++++++++
 package/keepalived/keepalived.hash |  3 +++
 package/keepalived/keepalived.mk   | 30 ++++++++++++++++++++++++++++++
 5 files changed, 51 insertions(+)
 create mode 100644 package/keepalived/Config.in
 create mode 100644 package/keepalived/keepalived.hash
 create mode 100644 package/keepalived/keepalived.mk
DEVELOPERS +3 -0
index 7f65909..df2e747 100644
@@ -765,6 +765,9 @@ F:	package/python-rpi-gpio/
 N:	Ignacy Gaw?dzki <[email protected]>
 F:	package/angularjs/
 
+N:	Ilias Apalodimas <[email protected]>
+F:	package/keepalived/
+
 N:	James Knight <[email protected]>
 F:	package/atkmm/
 F:	package/cairomm/
package/Config.in +1 -0
index deff0fe..5b3871c 100644
@@ -1546,6 +1546,7 @@ menu "Networking applications"
 	source "package/irssi/Config.in"
 	source "package/iw/Config.in"
 	source "package/janus-gateway/Config.in"
+	source "package/keepalived/Config.in"
 	source "package/kismet/Config.in"
 	source "package/knock/Config.in"
 	source "package/leafnode2/Config.in"
package/keepalived/Config.in new file +14 -0
new file mode 100644
index 0000000..721eed5
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_KEEPALIVED
+	bool "keepalived"
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_POPT
+	depends on BR2_USE_MMU
+	help
+	  The main goal of the keepalived project is to add a strong & robust
+	  keepalive facility to the Linux Virtual Server project.
+	  It implements a multilayer TCP/IP stack checks. Keepalived implements
+	  a framework based on three family checks : Layer3, Layer4 & Layer5.
+	  This framework gives the daemon the ability of checking a LVS server
+	  pool states. Keepalived can be sumarize as a LVS driving daemon.
+
+	  http://www.keepalived.org/
package/keepalived/keepalived.hash new file +3 -0
new file mode 100644
index 0000000..e868587
@@ -0,0 +1,3 @@
+# From http://www.keepalived.org/download.html
+md5 744025d57c7f065c42fe925b0283897e	keepalived-1.3.2.tar.gz
+sha1	449f06dfce07e05c1ebd516d0545182e1416f264  keepalived-1.3.2.tar.gz
package/keepalived/keepalived.mk new file +30 -0
new file mode 100644
index 0000000..4a8f1b1
@@ -0,0 +1,30 @@
+################################################################################
+#
+# keepalived
+#
+################################################################################
+
+KEEPALIVED_VERSION = 1.3.2
+KEEPALIVED_SITE = http://www.keepalived.org/software
+KEEPALIVED_DEPENDENCIES = host-pkgconf openssl popt
+KEEPALIVED_LICENSE = GPLv2+
+KEEPALIVED_LICENSE_FILES = COPYING
+KEEPALIVED_CONF_OPTS += --disable-dbus
+
+ifeq ($(BR2_PACKAGE_LIBNL),y)
+KEEPALIVED_DEPENDENCIES += libnfnetlink
+endif
+
+ifeq ($(BR2_PACKAGE_IPSET),y)
+KEEPALIVED_CONF_OPTS += --enable-libipset
+else
+KEEPALIVED_CONF_OPTS += --disable-libipset
+endif
+
+ifeq ($(BR2_PACKAGE_IPTABLES),y)
+KEEPALIVED_CONF_OPTS += --enable-libiptc
+else
+KEEPALIVED_CONF_OPTS += --disable-libiptc
+endif
+
+$(eval $(autotools-package))
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 keepalived: new package

Hi Ilias,

package/keepalived/keepalived.mk line 19

Quoted 2 lines · Ilias Apalodimas
package/keepalived/keepalived.mk new file +2 -0
+ifeq ($(BR2_PACKAGE_IPSET),y)
+KEEPALIVED_CONF_OPTS += --enable-libipset

You need to add ipset to KEEPALIVED_DEPENDENCIES to make sure it builds before keepalived.

package/keepalived/keepalived.mk line 25

Quoted 6 lines
package/keepalived/keepalived.mk new file +6 -0
+else
+KEEPALIVED_CONF_OPTS += --disable-libipset
+endif
+
+ifeq ($(BR2_PACKAGE_IPTABLES),y)
+KEEPALIVED_CONF_OPTS += --enable-libiptc

Ditto.

package/keepalived/keepalived.mk line 30

Quoted 5 lines
package/keepalived/keepalived.mk new file +5 -0
+else
+KEEPALIVED_CONF_OPTS += --disable-libiptc
+endif
+
+$(eval $(autotools-package))

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#3 lore raw

PATCH 2/2 keepalived: new package

Yes you are right,

There is an older patch posted 2 days ago that had the dependencies :(. I think i messed up one of my diffs.
I'll fix it and report.

Quoted 30 lines · Baruch Siach

Hi Ilias,

package/keepalived/keepalived.mk line 19

Quoted 2 lines · Ilias Apalodimas
package/keepalived/keepalived.mk new file +2 -0
+ifeq ($(BR2_PACKAGE_IPSET),y)
+KEEPALIVED_CONF_OPTS += --enable-libipset

You need to add ipset to KEEPALIVED_DEPENDENCIES to make sure it builds before keepalived.

package/keepalived/keepalived.mk line 25

Quoted 6 lines
package/keepalived/keepalived.mk new file +6 -0
+else
+KEEPALIVED_CONF_OPTS += --disable-libipset
+endif
+
+ifeq ($(BR2_PACKAGE_IPTABLES),y)
+KEEPALIVED_CONF_OPTS += --enable-libiptc

Ditto.

package/keepalived/keepalived.mk line 30

Quoted 5 lines
package/keepalived/keepalived.mk new file +5 -0
+else
+KEEPALIVED_CONF_OPTS += --disable-libiptc
+endif
+
+$(eval $(autotools-package))

baruch

--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -