3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=04e2ca849e758d0b88c8281775ec3b58
10 PKG_SOURCE_URL
:=ftp
://ftp.dementia.org
/pub
/net-tools
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
18 # The configure script for rarpd, when used with the --with-libnet option
19 # doesn't correctly detect and set -DNEW_LIBNET_INTERFACE.
20 EXTRA_CFLAGS
= -DNEW_LIBNET_INTERFACE
22 include $(TOPDIR
)/package
/rules.mk
24 $(eval
$(call PKG_template
,RARPD
,rarpd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
26 $(PKG_BUILD_DIR
)/.configured
:
27 (cd
$(PKG_BUILD_DIR
); \
28 $(TARGET_CONFIGURE_OPTS
) \
29 CFLAGS
="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
30 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
31 LDFLAGS
="-I$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/lib" \
33 --target
=$(GNU_TARGET_NAME
) \
34 --host
=$(GNU_TARGET_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
50 $(DISABLE_LARGEFILE
) \
52 --with-libnet
="$(STAGING_DIR)/usr" \
53 --with-pcap
="$(STAGING_DIR)/usr" \
57 $(PKG_BUILD_DIR
)/.built
:
58 rm -rf
$(PKG_INSTALL_DIR
)
59 mkdir
-p
$(PKG_INSTALL_DIR
)
60 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
61 $(TARGET_CONFIGURE_OPTS
) \
62 DESTDIR
="$(PKG_INSTALL_DIR)" \
67 install -d
-m0755
$(IDIR_RARPD
)/usr
/sbin
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/rarpd
$(IDIR_RARPD
)/usr
/sbin
/
69 install -d
-m0755
$(IDIR_RARPD
)/etc
/default
70 install -m644 .
/files
/rarpd.default
$(IDIR_RARPD
)/etc
/default
/rarpd
71 install -d
-m0755
$(IDIR_RARPD
)/etc
/init.d
72 install -m755 .
/files
/rarpd.init
$(IDIR_RARPD
)/etc
/init.d
/rarpd
73 ln
-sf rarpd
$(IDIR_RARPD
)/etc
/init.d
/S50rarpd
74 $(RSTRIP
) $(IDIR_RARPD
)
75 $(IPKG_BUILD
) $(IDIR_RARPD
) $(PACKAGE_DIR
)
78 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
79 rm -f
$(PKG_BUILD_DIR
)/.built