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
:=56ce3f8cbf5966a0d531c21813320423
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
26 include $(INCLUDE_DIR
)/package.mk
31 TITLE
:=IPv6 Routing Advertisement Daemon
32 DESCRIPTION
:=IPv6 Routing Advertisement Daemon.
33 URL
:=http
://v6web.litech.org
/radvd
/
36 define Package
/radvd
/conffiles
40 define Build
/Configure
41 (cd
$(PKG_BUILD_DIR
); rm -f config.cache
; \
42 $(TARGET_CONFIGURE_OPTS
) \
43 CFLAGS
="$(TARGET_CFLAGS)" \
45 --target
=$(GNU_TARGET_NAME
) \
46 --host
=$(GNU_TARGET_NAME
) \
47 --build
=$(GNU_HOST_NAME
) \
53 --datadir=/usr
/share \
54 --includedir=/usr
/include \
55 --infodir=/usr
/share
/info \
57 --libexecdir
=/usr
/lib \
58 --localstatedir
=/var \
59 --mandir=/usr
/share
/man \
62 $(DISABLE_LARGEFILE
) \
64 --with-configfile
=/etc
/radvd.conf \
65 --with-logfile
=/var
/log
/radvd.log \
66 --with-pidfile
=/var
/run
/radvd.pid \
71 rm -rf
$(PKG_INSTALL_DIR
)
72 mkdir
-p
$(PKG_INSTALL_DIR
)
73 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
75 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
76 DESTDIR
="$(PKG_INSTALL_DIR)" \
80 define Package
/radvd
/install
81 install -d
-m0755
$(1)/etc
82 install -m0644 .
/files
/radvd.conf
$(1)/etc
/radvd.conf
83 install -d
-m0755
$(1)/etc
/init.d
84 install -m0755 .
/files
/radvd.init
$(1)/etc
/init.d
/S
$(PKG_INIT_PRIO
)radvd
85 install -d
-m0755
$(1)/usr
/sbin
86 install -m
755 $(PKG_INSTALL_DIR
)/usr
/sbin
/radvd
$(1)/usr
/sbin
/
87 install -m
755 $(PKG_INSTALL_DIR
)/usr
/sbin
/radvdump
$(1)/usr
/sbin
/
90 $(eval
$(call BuildPackage
,radvd
))