2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
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
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(INCLUDE_DIR
)/package.mk
29 TITLE
:=IPv6 Routing Advertisement Daemon
30 URL
:=http
://v6web.litech.org
/radvd
/
33 define Package
/radvd
/description
34 IPv6 Routing Advertisement Daemon.
37 define Package
/radvd
/conffiles
41 define Build
/Configure
42 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
43 $(TARGET_CONFIGURE_OPTS
) \
44 CFLAGS
="$(TARGET_CFLAGS)" \
46 --target
=$(GNU_TARGET_NAME
) \
47 --host
=$(GNU_TARGET_NAME
) \
48 --build
=$(GNU_HOST_NAME
) \
54 --datadir=/usr
/share \
55 --includedir=/usr
/include \
56 --infodir=/usr
/share
/info \
58 --libexecdir
=/usr
/lib \
59 --localstatedir
=/var \
60 --mandir=/usr
/share
/man \
63 $(DISABLE_LARGEFILE
) \
65 --with-configfile
=/etc
/radvd.conf \
66 --with-logfile
=/var
/log
/radvd.log \
67 --with-pidfile
=/var
/run
/radvd.pid \
72 rm -rf
$(PKG_INSTALL_DIR
)
73 mkdir
-p
$(PKG_INSTALL_DIR
)
74 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
76 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
77 DESTDIR
="$(PKG_INSTALL_DIR)" \
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
/
91 $(eval
$(call BuildPackage
,radvd
))