2005-03-28 14:05:38 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=quagga
|
2006-02-02 10:58:43 +02:00
|
|
|
PKG_VERSION:=0.98.5
|
2005-03-28 14:05:38 +03:00
|
|
|
PKG_RELEASE:=1
|
2006-02-02 10:58:43 +02:00
|
|
|
PKG_MD5SUM:=ec09c1ec624aea98e18aa19282666784
|
2005-03-28 14:05:38 +03:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=http://www.quagga.net/download/ \
|
|
|
|
http://www.de.quagga.net/download/ \
|
|
|
|
http://www.uk.quagga.net/download/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_CAT:=zcat
|
2005-05-20 00:18:00 +03:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
|
|
|
$(eval $(call PKG_template,QUAGGA,quagga,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,QUAGGA_BGPD,quagga-bgpd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,QUAGGA_OSPFD,quagga-ospfd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,QUAGGA_OSPF6D,quagga-ospf6d,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,QUAGGA_RIPD,quagga-ripd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
$(eval $(call PKG_template,QUAGGA_RIPNGD,quagga-ripngd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-08-03 13:51:37 +03:00
|
|
|
$(eval $(call PKG_template,QUAGGA_VTYSH,quagga-vtysh,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-05-20 00:18:00 +03:00
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
|
2005-03-28 14:05:38 +03:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2005-08-03 13:51:37 +03:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
|
2005-03-28 14:05:38 +03:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2005-05-20 00:18:00 +03:00
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
2005-03-28 14:05:38 +03:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--datadir=/usr/share \
|
2005-05-20 00:18:00 +03:00
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
2005-08-03 13:51:37 +03:00
|
|
|
--localstatedir=/var/run/quagga \
|
2005-05-20 00:18:00 +03:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
2005-08-03 13:51:37 +03:00
|
|
|
--sysconfdir=/etc/quagga \
|
2005-05-20 00:18:00 +03:00
|
|
|
$(DISABLE_NLS) \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
--enable-shared \
|
2005-03-28 14:05:38 +03:00
|
|
|
--disable-static \
|
2005-05-20 00:18:00 +03:00
|
|
|
--enable-ipv6 \
|
2005-08-03 13:51:37 +03:00
|
|
|
--enable-vtysh \
|
2005-03-28 14:05:38 +03:00
|
|
|
--enable-user=quagga \
|
|
|
|
--enable-group=quagga \
|
2006-02-06 14:19:57 +02:00
|
|
|
--enable-multipath=8 \
|
2005-03-28 14:05:38 +03:00
|
|
|
);
|
2005-05-20 00:18:00 +03:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.built:
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR=$(PKG_INSTALL_DIR) \
|
|
|
|
all install
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(IPKG_QUAGGA):
|
|
|
|
install -d -m0755 $(IDIR_QUAGGA)/usr/lib
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libzebra.so.* $(IDIR_QUAGGA)/usr/lib/
|
2005-08-03 13:51:37 +03:00
|
|
|
install -d -m0755 $(IDIR_QUAGGA)/usr/sbin
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/zebra $(IDIR_QUAGGA)/usr/sbin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/watchquagga $(IDIR_QUAGGA)/usr/sbin/
|
2005-08-03 13:51:37 +03:00
|
|
|
# avoid /etc being set to 0750
|
|
|
|
install -d -m0755 $(IDIR_QUAGGA)/etc/quagga/
|
|
|
|
chmod 0750 $(IDIR_QUAGGA)/etc/quagga/
|
|
|
|
install -d -m0755 $(IDIR_QUAGGA)/etc/init.d/
|
|
|
|
install -m0755 ./files/quagga.init $(IDIR_QUAGGA)/etc/init.d/quagga
|
|
|
|
ln -sf quagga $(IDIR_QUAGGA)/etc/init.d/S49quagga
|
2006-02-06 14:19:57 +02:00
|
|
|
install -d -m0755 $(IDIR_QUAGGA)/var/run/quagga
|
2005-05-20 00:18:00 +03:00
|
|
|
$(RSTRIP) $(IDIR_QUAGGA)
|
|
|
|
$(IPKG_BUILD) $(IDIR_QUAGGA) $(PACKAGE_DIR)
|
|
|
|
|
|
|
|
$(IPKG_QUAGGA_BGPD):
|
|
|
|
install -d -m0755 $(IDIR_QUAGGA_BGPD)/usr/sbin
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/bgpd $(IDIR_QUAGGA_BGPD)/usr/sbin/
|
2005-05-20 00:18:00 +03:00
|
|
|
$(RSTRIP) $(IDIR_QUAGGA_BGPD)
|
|
|
|
$(IPKG_BUILD) $(IDIR_QUAGGA_BGPD) $(PACKAGE_DIR)
|
|
|
|
|
|
|
|
$(IPKG_QUAGGA_OSPFD):
|
2005-08-03 13:51:37 +03:00
|
|
|
install -d -m0755 $(IDIR_QUAGGA_OSPFD)/usr/lib
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libospf.so.* $(IDIR_QUAGGA_OSPFD)/usr/lib/
|
2005-05-20 00:18:00 +03:00
|
|
|
install -d -m0755 $(IDIR_QUAGGA_OSPFD)/usr/sbin
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ospfd $(IDIR_QUAGGA_OSPFD)/usr/sbin/
|
2005-05-20 00:18:00 +03:00
|
|
|
$(RSTRIP) $(IDIR_QUAGGA_OSPFD)
|
|
|
|
$(IPKG_BUILD) $(IDIR_QUAGGA_OSPFD) $(PACKAGE_DIR)
|
|
|
|
|
|
|
|
$(IPKG_QUAGGA_OSPF6D):
|
|
|
|
install -d -m0755 $(IDIR_QUAGGA_OSPF6D)/usr/sbin
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ospf6d $(IDIR_QUAGGA_OSPF6D)/usr/sbin/
|
2005-05-20 00:18:00 +03:00
|
|
|
$(RSTRIP) $(IDIR_QUAGGA_OSPF6D)
|
|
|
|
$(IPKG_BUILD) $(IDIR_QUAGGA_OSPF6D) $(PACKAGE_DIR)
|
|
|
|
|
|
|
|
$(IPKG_QUAGGA_RIPD):
|
|
|
|
install -d -m0755 $(IDIR_QUAGGA_RIPD)/usr/sbin
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ripd $(IDIR_QUAGGA_RIPD)/usr/sbin/
|
2005-05-20 00:18:00 +03:00
|
|
|
$(RSTRIP) $(IDIR_QUAGGA_RIPD)
|
|
|
|
$(IPKG_BUILD) $(IDIR_QUAGGA_RIPD) $(PACKAGE_DIR)
|
|
|
|
|
|
|
|
$(IPKG_QUAGGA_RIPNGD):
|
|
|
|
install -d -m0755 $(IDIR_QUAGGA_RIPNGD)/usr/sbin
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ripngd $(IDIR_QUAGGA_RIPNGD)/usr/sbin/
|
2005-05-20 00:18:00 +03:00
|
|
|
$(RSTRIP) $(IDIR_QUAGGA_RIPNGD)
|
|
|
|
$(IPKG_BUILD) $(IDIR_QUAGGA_RIPNGD) $(PACKAGE_DIR)
|
|
|
|
|
2005-08-03 13:51:37 +03:00
|
|
|
$(IPKG_QUAGGA_VTYSH):
|
|
|
|
install -d -m0755 $(IDIR_QUAGGA_VTYSH)/usr/bin
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/vtysh $(IDIR_QUAGGA_VTYSH)/usr/bin/
|
2005-08-03 13:51:37 +03:00
|
|
|
$(RSTRIP) $(IDIR_QUAGGA_VTYSH)
|
|
|
|
$(IPKG_BUILD) $(IDIR_QUAGGA_VTYSH) $(PACKAGE_DIR)
|