3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=68be5e911e4d604c0f5959338263356e
10 PKG_SOURCE_URL
:=http
://www.quagga.net
/download
/ \
11 http
://www.de.quagga.net
/download
/ \
12 http
://www.uk.quagga.net
/download
/
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 include $(TOPDIR
)/package
/rules.mk
22 $(eval
$(call PKG_template
,QUAGGA
,quagga
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
23 $(eval
$(call PKG_template
,QUAGGA_BGPD
,quagga-bgpd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
24 $(eval
$(call PKG_template
,QUAGGA_OSPFD
,quagga-ospfd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
25 $(eval
$(call PKG_template
,QUAGGA_OSPF6D
,quagga-ospf6d
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
26 $(eval
$(call PKG_template
,QUAGGA_RIPD
,quagga-ripd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
27 $(eval
$(call PKG_template
,QUAGGA_RIPNGD
,quagga-ripngd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
28 $(eval
$(call PKG_template
,QUAGGA_ZEBRA
,quagga-zebra
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
30 $(PKG_BUILD_DIR
)/.configured
:
31 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
32 $(TARGET_CONFIGURE_OPTS
) \
33 CFLAGS
="$(TARGET_CFLAGS)" \
35 --target
=$(GNU_TARGET_NAME
) \
36 --host
=$(GNU_TARGET_NAME
) \
37 --build
=$(GNU_HOST_NAME
) \
44 --libexecdir
=/usr
/lib \
45 --datadir=/usr
/share \
46 --includedir=/usr
/include \
47 --infodir=/usr
/share
/info \
49 --libexecdir
=/usr
/lib \
50 --localstatedir
=/var \
51 --mandir=/usr
/share
/man \
55 $(DISABLE_LARGEFILE
) \
60 --enable-user
=quagga \
61 --enable-group
=quagga \
62 --sysconfdir
=/etc
/quagga \
66 $(PKG_BUILD_DIR
)/.built
:
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 DESTDIR
=$(PKG_INSTALL_DIR
) \
73 install -d
-m0755
$(IDIR_QUAGGA
)/usr
/lib
74 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libzebra.so.
* $(IDIR_QUAGGA
)/usr
/lib
/
75 $(RSTRIP
) $(IDIR_QUAGGA
)
76 $(IPKG_BUILD
) $(IDIR_QUAGGA
) $(PACKAGE_DIR
)
79 install -d
-m0755
$(IDIR_QUAGGA_BGPD
)/usr
/sbin
80 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/bgpd
$(IDIR_QUAGGA_BGPD
)/usr
/sbin
/
81 $(RSTRIP
) $(IDIR_QUAGGA_BGPD
)
82 $(IPKG_BUILD
) $(IDIR_QUAGGA_BGPD
) $(PACKAGE_DIR
)
85 install -d
-m0755
$(IDIR_QUAGGA_OSPFD
)/usr
/lib
86 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libospf.so.
* $(IDIR_QUAGGA_OSPFD
)/usr
/lib
/
87 install -d
-m0755
$(IDIR_QUAGGA_OSPFD
)/usr
/sbin
88 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/ospfd
$(IDIR_QUAGGA_OSPFD
)/usr
/sbin
/
89 $(RSTRIP
) $(IDIR_QUAGGA_OSPFD
)
90 $(IPKG_BUILD
) $(IDIR_QUAGGA_OSPFD
) $(PACKAGE_DIR
)
92 $(IPKG_QUAGGA_OSPF6D
):
93 install -d
-m0755
$(IDIR_QUAGGA_OSPF6D
)/usr
/lib
94 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libospf.so.
* $(IDIR_QUAGGA_OSPF6D
)/usr
/lib
/
95 install -d
-m0755
$(IDIR_QUAGGA_OSPF6D
)/usr
/sbin
96 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/ospfd
$(IDIR_QUAGGA_OSPF6D
)/usr
/sbin
/
97 $(RSTRIP
) $(IDIR_QUAGGA_OSPF6D
)
98 $(IPKG_BUILD
) $(IDIR_QUAGGA_OSPF6D
) $(PACKAGE_DIR
)
101 install -d
-m0755
$(IDIR_QUAGGA_RIPD
)/usr
/sbin
102 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/ripd
$(IDIR_QUAGGA_RIPD
)/usr
/sbin
/
103 $(RSTRIP
) $(IDIR_QUAGGA_RIPD
)
104 $(IPKG_BUILD
) $(IDIR_QUAGGA_RIPD
) $(PACKAGE_DIR
)
106 $(IPKG_QUAGGA_RIPNGD
):
107 install -d
-m0755
$(IDIR_QUAGGA_RIPNGD
)/usr
/sbin
108 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/ripngd
$(IDIR_QUAGGA_RIPNGD
)/usr
/sbin
/
109 $(RSTRIP
) $(IDIR_QUAGGA_RIPNGD
)
110 $(IPKG_BUILD
) $(IDIR_QUAGGA_RIPNGD
) $(PACKAGE_DIR
)
112 $(IPKG_QUAGGA_ZEBRA
):
113 install -d
-m0755
$(IDIR_QUAGGA_ZEBRA
)/usr
/sbin
114 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/zebra
$(IDIR_QUAGGA_ZEBRA
)/usr
/sbin
/
115 $(RSTRIP
) $(IDIR_QUAGGA_ZEBRA
)
116 $(IPKG_BUILD
) $(IDIR_QUAGGA_ZEBRA
) $(PACKAGE_DIR
)