2008-06-11 08:29:35 +00:00
|
|
|
#
|
2012-06-07 17:08:50 +00:00
|
|
|
# Copyright (C) 2008-2012 OpenWrt.org
|
2008-06-11 08:29:35 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=diffutils
|
2010-07-22 15:42:27 +00:00
|
|
|
PKG_VERSION:=3.0
|
2012-06-07 17:08:50 +00:00
|
|
|
PKG_RELEASE:=2
|
2010-07-22 15:42:27 +00:00
|
|
|
|
2008-06-11 08:29:35 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-07-22 15:42:27 +00:00
|
|
|
PKG_SOURCE_URL:=@GNU/diffutils
|
|
|
|
PKG_MD5SUM:=684aaba1baab743a2a90e52162ff07da
|
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2008-06-11 08:29:35 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/diffutils
|
|
|
|
SECTION:=devel
|
|
|
|
CATEGORY:=Development
|
|
|
|
TITLE:=diffutils
|
2010-03-24 04:49:34 +00:00
|
|
|
URL:=http://www.gnu.org/software/diffutils/
|
2008-06-11 08:29:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/diffutils/description
|
2010-07-22 15:42:27 +00:00
|
|
|
The Diffutils package contains programs that show the differences between
|
|
|
|
files or directories.
|
2008-06-11 08:29:35 +00:00
|
|
|
endef
|
|
|
|
|
2010-07-22 15:42:27 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_func_mempcpy=n \
|
|
|
|
|
|
|
|
define Package/diffutils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sdiff,diff3,diff,cmp} $(1)/usr/bin/
|
2008-06-11 08:29:35 +00:00
|
|
|
endef
|
|
|
|
|
2010-07-22 15:42:27 +00:00
|
|
|
define Package/diffutils/preinst
|
|
|
|
#!/bin/sh
|
2012-06-07 17:08:50 +00:00
|
|
|
for x in sdiff diff3 diff cmp; do
|
|
|
|
[ -L "$${IPKG_INSTROOT}/usr/bin/$$x" ] && rm -f "$${IPKG_INSTROOT}/usr/bin/$$x"
|
|
|
|
done
|
2012-06-09 00:01:46 +00:00
|
|
|
exit 0
|
2008-06-11 08:29:35 +00:00
|
|
|
endef
|
|
|
|
|
2010-07-22 15:42:27 +00:00
|
|
|
define Package/diffutils/postrm
|
|
|
|
#!/bin/sh
|
2012-06-07 17:08:50 +00:00
|
|
|
for x in sdiff diff3 diff cmp; do
|
|
|
|
/bin/busybox $$x -h 2>&1 | grep -q BusyBox && ln -sf ../../bin/busybox /usr/bin/$$x
|
|
|
|
done
|
2010-07-22 15:42:27 +00:00
|
|
|
exit 0
|
2008-06-11 08:29:35 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,diffutils))
|