3 include $(TOPDIR
)/rules.mk
6 PKG_VERSION
:=2.4b2_to-ipv6
8 PKG_MD5SUM
:=3ad516765514249a40d3c5b6caab812a
10 PKG_SOURCE_URL
:=http
://www.fping.com
/download
/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,FPING
,$(PKG_NAME
),$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
19 $(PKG_BUILD_DIR
)/.configured
:
20 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
21 $(TARGET_CONFIGURE_OPTS
) \
22 CFLAGS
="$(TARGET_CFLAGS)" \
24 --target
=$(GNU_TARGET_NAME
) \
25 --host
=$(GNU_TARGET_NAME
) \
26 --build
=$(GNU_HOST_NAME
) \
31 --libexecdir
=/usr
/lib \
33 --datadir=/usr
/share \
34 --localstatedir
=/var \
38 $(DISABLE_LARGEFILE
) \
42 $(PKG_BUILD_DIR
)/.built
:
43 $(MAKE
) -j1 CC
=$(TARGET_CC
) CFLAGS
="$(TARGET_CFLAGS)" -C
$(PKG_BUILD_DIR
) clean $(PKG_NAME
)
44 mv
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(PKG_BUILD_DIR
)/$(PKG_NAME
)4
45 $(MAKE
) -j1 CC
=$(TARGET_CC
) CFLAGS
="$(TARGET_CFLAGS) -DIPV6=1" -C
$(PKG_BUILD_DIR
) clean $(PKG_NAME
)
46 mv
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(PKG_BUILD_DIR
)/$(PKG_NAME
)6
50 mkdir
-p
$(IDIR_FPING
)/usr
/bin
51 cp
$(PKG_BUILD_DIR
)/$(PKG_NAME
)4 $(IDIR_FPING
)/usr
/bin
/$(PKG_NAME
)
52 cp
$(PKG_BUILD_DIR
)/$(PKG_NAME
)6 $(IDIR_FPING
)/usr
/bin
/
53 $(STRIP
) $(IDIR_FPING
)/usr
/bin
/*
54 $(IPKG_BUILD
) $(IDIR_FPING
) $(PACKAGE_DIR
)