2 # Copyright (C) 2008-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@GNU
/diffutils
16 PKG_MD5SUM
:=684aaba1baab743a2a90e52162ff07da
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/diffutils
26 URL
:=http
://www.gnu.org
/software
/diffutils
/
29 define Package
/diffutils
/description
30 The Diffutils package contains programs that show the differences between
35 ac_cv_func_mempcpy
=n \
37 define Package
/diffutils
/install
38 $(INSTALL_DIR
) $(1)/usr
/bin
39 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/{sdiff
,diff3
,diff
,cmp
} $(1)/usr
/bin
/
42 define Package
/diffutils
/preinst
44 for x in sdiff diff3 diff cmp
; do
45 [ -L
"$${IPKG_INSTROOT}/usr/bin/$$x" ] && rm -f
"$${IPKG_INSTROOT}/usr/bin/$$x"
50 define Package
/diffutils
/postrm
52 for x in sdiff diff3 diff cmp
; do
53 /bin
/busybox
$$x -h
2>&1 | grep
-q BusyBox
&& ln
-sf ..
/..
/bin
/busybox
/usr
/bin
/$$x
58 $(eval
$(call BuildPackage
,diffutils
))