DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / ipv6 / radvd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=radvd
12 PKG_VERSION:=1.0
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://v6web.litech.org/radvd/dist \
18 http://download.sourcemage.org/mirror
19 PKG_MD5SUM:=8bce4a21757cf069f5a69e2f9bee9e5b
20 PKG_CAT:=zcat
21
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/radvd
27 SECTION:=ipv6
28 CATEGORY:=IPv6
29 TITLE:=IPv6 Routing Advertisement Daemon
30 URL:=http://v6web.litech.org/radvd/
31 endef
32
33 define Package/radvd/description
34 IPv6 Routing Advertisement Daemon.
35 endef
36
37 define Package/radvd/conffiles
38 /etc/radvd.conf
39 endef
40
41 define Build/Configure
42 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
43 $(TARGET_CONFIGURE_OPTS) \
44 CFLAGS="$(TARGET_CFLAGS)" \
45 ./configure \
46 --target=$(GNU_TARGET_NAME) \
47 --host=$(GNU_TARGET_NAME) \
48 --build=$(GNU_HOST_NAME) \
49 --program-prefix="" \
50 --program-suffix="" \
51 --prefix=/usr \
52 --exec-prefix=/usr \
53 --bindir=/usr/bin \
54 --datadir=/usr/share \
55 --includedir=/usr/include \
56 --infodir=/usr/share/info \
57 --libdir=/usr/lib \
58 --libexecdir=/usr/lib \
59 --localstatedir=/var \
60 --mandir=/usr/share/man \
61 --sbindir=/usr/sbin \
62 --sysconfdir=/etc \
63 $(DISABLE_LARGEFILE) \
64 $(DISABLE_NLS) \
65 --with-configfile=/etc/radvd.conf \
66 --with-logfile=/var/log/radvd.log \
67 --with-pidfile=/var/run/radvd.pid \
68 );
69 endef
70
71 define Build/Compile
72 rm -rf $(PKG_INSTALL_DIR)
73 mkdir -p $(PKG_INSTALL_DIR)
74 $(MAKE) -C $(PKG_BUILD_DIR) \
75 radvd_LDADD=""
76 $(MAKE) -C $(PKG_BUILD_DIR) \
77 DESTDIR="$(PKG_INSTALL_DIR)" \
78 install
79 endef
80
81 define Package/radvd/install
82 $(INSTALL_DIR) $(1)/etc
83 $(INSTALL_DATA) ./files/radvd.conf $(1)/etc/radvd.conf
84 $(INSTALL_DIR) $(1)/etc/init.d
85 $(INSTALL_BIN) ./files/radvd.init $(1)/etc/init.d/radvd
86 $(INSTALL_DIR) $(1)/usr/sbin
87 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvd $(1)/usr/sbin/
88 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/radvdump $(1)/usr/sbin/
89 endef
90
91 $(eval $(call BuildPackage,radvd))