3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=56ce3f8cbf5966a0d531c21813320423
10 PKG_SOURCE_URL
:=http
://v6web.litech.org
/radvd
/dist \
11 http
://download.sourcemage.org
/mirror
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 include $(TOPDIR
)/package
/rules.mk
20 $(eval
$(call PKG_template
,RADVD
,radvd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
22 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
23 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
24 $(TARGET_CONFIGURE_OPTS
) \
25 CFLAGS
="$(TARGET_CFLAGS)" \
27 --target
=$(GNU_TARGET_NAME
) \
28 --host
=$(GNU_TARGET_NAME
) \
29 --build
=$(GNU_HOST_NAME
) \
35 --datadir=/usr
/share \
36 --includedir=/usr
/include \
37 --infodir=/usr
/share
/info \
39 --libexecdir
=/usr
/lib \
40 --localstatedir
=/var \
41 --mandir=/usr
/share
/man \
44 $(DISABLE_LARGEFILE
) \
46 --with-configfile
=/etc
/radvd.conf \
47 --with-logfile
=/var
/log
/radvd.log \
48 --with-pidfile
=/var
/run
/radvd.pid \
52 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
55 mkdir
-p
$(PKG_INSTALL_DIR
)
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
57 DESTDIR
="$(PKG_INSTALL_DIR)" \
62 install -d
-m0755
$(IDIR_RADVD
)/etc
63 install -m0644 .
/files
/radvd.conf
$(IDIR_RADVD
)/etc
/radvd.conf
64 install -d
-m0755
$(IDIR_RADVD
)/etc
/init.d
65 install -m0755 .
/files
/radvd.init
$(IDIR_RADVD
)/etc
/init.d
/S51radvd
66 install -d
-m0755
$(IDIR_RADVD
)/usr
/sbin
67 install -m
755 $(PKG_INSTALL_DIR
)/usr
/sbin
/radvd
$(IDIR_RADVD
)/usr
/sbin
/
68 install -m
755 $(PKG_INSTALL_DIR
)/usr
/sbin
/radvdump
$(IDIR_RADVD
)/usr
/sbin
/
69 $(RSTRIP
) $(IDIR_RADVD
)
70 $(IPKG_BUILD
) $(IDIR_RADVD
) $(PACKAGE_DIR
)