libgpg-error: fix riscv64
[openadk.git] / package / quagga / Makefile
blobe5628ff13612d9625fdb01d224ffec867f3c6d88
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= quagga
7 PKG_VERSION:= 1.2.4
8 PKG_RELEASE:= 1
9 PKG_HASH:= e364c082c3309910e1eb7b068bf39ee298e2f2f3f31a6431a5c115193bd653d3
10 PKG_DESCR:= routing software package
11 PKG_SECTION:= net/route
12 PKG_BUILDDEP:= readline ncurses c-ares
13 PKG_DEPENDS:= c-ares
14 PKG_NEEDS:= threads
15 PKG_URL:= http://www.quagga.net/
16 PKG_SITES:= https://github.com/Quagga/quagga/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
18 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_SUBPKGS:= QUAGGA QUAGGA_BGPD QUAGGA_OSPFD QUAGGA_OSPF6D
21 PKG_SUBPKGS+= QUAGGA_RIPNGD QUAGGA_RIPD QUAGGA_VTYSH
22 PKGSD_QUAGGA_BGPD:= bgp daemon
23 PKGSN_QUAGGA_BGPD:= quagga
24 PKGSD_QUAGGA_OSPFD:= ospf daemon
25 PKGSN_QUAGGA_OSPFD:= quagga
26 PKGSD_QUAGGA_OSPF6D:= ospf ipv6 daemon
27 PKGSN_QUAGGA_OSPF6D:= quagga
28 PKGSD_QUAGGA_RIPNGD:= ripng daemon
29 PKGSN_QUAGGA_RIPNGD:= quagga
30 PKGSD_QUAGGA_RIPD:= rip daemon
31 PKGSN_QUAGGA_RIPD:= quagga
32 PKGSD_QUAGGA_VTYSH:= vtysh utility
33 PKGSN_QUAGGA_VTYSH:= quagga
35 PKG_CFLINE_QUAGGA:= select BUSYBOX_PIDOF
37 include $(ADK_TOPDIR)/mk/package.mk
39 $(eval $(call PKG_template,QUAGGA,quagga,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
40 $(eval $(call PKG_template,QUAGGA_BGPD,quagga-bgpd,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_QUAGGA_BGPD),$(PKG_SECTION)))
41 $(eval $(call PKG_template,QUAGGA_OSPFD,quagga-ospfd,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_QUAGGA_OSPFD),$(PKG_SECTION)))
42 $(eval $(call PKG_template,QUAGGA_OSPF6D,quagga-ospf6d,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_QUAGGA_OSPF6D),$(PKG_SECTION)))
43 $(eval $(call PKG_template,QUAGGA_RIPNGD,quagga-ripngd,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_QUAGGA_RIPNGD),$(PKG_SECTION)))
44 $(eval $(call PKG_template,QUAGGA_RIPD,quagga-ripd,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_QUAGGA_RIPD),$(PKG_SECTION)))
45 $(eval $(call PKG_template,QUAGGA_VTYSH,quagga-vtysh,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKGSD_QUAGGA_VTYSH),$(PKG_SECTION)))
47 TARGET_CFLAGS+= -fcommon
48 CONFIGURE_ENV+= quagga_cv_ipforward_method="proc"
49 CONFIGURE_ARGS+= --localstatedir=/var/run/quagga \
50 --sysconfdir=/etc/quagga \
51 --enable-vtysh \
52 --enable-user=quagga \
53 --enable-group=quagga \
54 --disable-pie \
55 --disable-babeld \
56 --disable-doc \
57 --enable-multipath=8
59 quagga-install:
60 $(INSTALL_DIR) $(IDIR_QUAGGA)/etc/quagga
61 $(INSTALL_DIR) $(IDIR_QUAGGA)/usr/lib
62 $(INSTALL_DIR) $(IDIR_QUAGGA)/usr/sbin
63 $(CP) $(WRKINST)/usr/lib/libzebra.so.* $(IDIR_QUAGGA)/usr/lib/
64 $(INSTALL_BIN) $(WRKINST)/usr/sbin/zebra \
65 $(WRKINST)/usr/sbin/watchquagga $(IDIR_QUAGGA)/usr/sbin/
66 $(CP) $(WRKINST)/etc/quagga/zebra.conf.sample \
67 $(IDIR_QUAGGA)/etc/quagga/zebra.conf
69 quagga-bgpd-install:
70 $(INSTALL_DIR) $(IDIR_QUAGGA_BGPD)/usr/sbin
71 $(CP) $(WRKINST)/usr/sbin/bgpd $(IDIR_QUAGGA_BGPD)/usr/sbin/
72 $(CP) $(WRKINST)/etc/quagga/bgpd.conf.sample \
73 $(IDIR_QUAGGA)/etc/quagga/bgpd.conf
75 quagga-ospfd-install:
76 $(INSTALL_DIR) $(IDIR_QUAGGA_OSPFD)/usr/lib
77 $(INSTALL_DIR) $(IDIR_QUAGGA_OSPFD)/usr/sbin
78 $(CP) $(WRKINST)/usr/lib/libospf.so.* $(IDIR_QUAGGA_OSPFD)/usr/lib/
79 $(CP) $(WRKINST)/usr/sbin/ospfd $(IDIR_QUAGGA_OSPFD)/usr/sbin/
80 $(CP) $(WRKINST)/etc/quagga/ospfd.conf.sample \
81 $(IDIR_QUAGGA)/etc/quagga/ospfd.conf
83 quagga-ospf6d-install:
84 $(INSTALL_DIR) $(IDIR_QUAGGA_OSPF6D)/usr/sbin
85 $(CP) $(WRKINST)/usr/sbin/ospf6d $(IDIR_QUAGGA_OSPF6D)/usr/sbin/
87 quagga-ripngd-install:
88 $(INSTALL_DIR) $(IDIR_QUAGGA_RIPNGD)/usr/sbin
89 $(CP) $(WRKINST)/usr/sbin/ripngd $(IDIR_QUAGGA_RIPNGD)/usr/sbin/
91 quagga-ripd-install:
92 $(INSTALL_DIR) $(IDIR_QUAGGA_RIPD)/usr/sbin
93 $(CP) $(WRKINST)/usr/sbin/ripd $(IDIR_QUAGGA_RIPD)/usr/sbin/
95 quagga-vtysh-install:
96 $(INSTALL_DIR) $(IDIR_QUAGGA_VTYSH)/usr/bin
97 $(CP) $(WRKINST)/usr/bin/vtysh $(IDIR_QUAGGA_VTYSH)/usr/bin/
99 include $(ADK_TOPDIR)/mk/pkg-bottom.mk