2007-10-25 12:57:57 +03:00
|
|
|
#
|
2012-04-02 19:25:48 +03:00
|
|
|
# Copyright (C) 2007-2012 OpenWrt.org
|
2006-06-27 03:35:46 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-18 22:16:08 +03:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
PKG_NAME:=util-linux
|
|
|
|
PKG_VERSION:=2.20.1
|
|
|
|
PKG_RELEASE:=1
|
2006-06-18 22:16:08 +03:00
|
|
|
|
2006-09-23 22:32:32 +03:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2012-04-02 19:25:48 +03:00
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.20
|
|
|
|
PKG_MD5SUM:=fcd18041c5390178b1aadc2fd298bee8
|
2007-10-25 12:57:57 +03:00
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2010-09-08 09:35:23 +03:00
|
|
|
PKG_BUILD_DEPENDS=e2fsprogs libncurses
|
2012-04-04 14:40:08 +03:00
|
|
|
PKG_FIXUP:=autoreconf
|
2006-09-23 22:32:32 +03:00
|
|
|
|
2006-06-21 05:32:39 +03:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-06-18 22:16:08 +03:00
|
|
|
|
2006-09-23 22:32:32 +03:00
|
|
|
define Package/util-linux/Default
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2012-04-02 19:25:48 +03:00
|
|
|
URL:=http://www.kernel.org/pub/linux/utils/util-linux/
|
2006-09-23 22:32:32 +03:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
scanf_cv_type_modifier="ms"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-nls \
|
|
|
|
--disable-tls
|
|
|
|
|
|
|
|
define Package/cfdisk
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/util-linux/Default)
|
2012-04-02 19:25:48 +03:00
|
|
|
SUBMENU:=disc
|
2006-09-23 22:32:32 +03:00
|
|
|
TITLE:=Partition table manipulation utility
|
2012-04-02 19:25:48 +03:00
|
|
|
DEPENDS:= +libncurses
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/cfdisk/description
|
2007-09-07 11:34:51 +03:00
|
|
|
This package contains a utility for managing disk partition tables.
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/fdisk
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/util-linux/Default)
|
2007-07-01 20:43:31 +03:00
|
|
|
TITLE:=Partition table manipulation utility
|
2012-04-02 19:25:48 +03:00
|
|
|
SUBMENU=disc
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/fdisk/description
|
2007-09-07 11:34:51 +03:00
|
|
|
This package contains a utility for managing disk partition tables.
|
2007-07-01 20:43:31 +03:00
|
|
|
endef
|
|
|
|
|
2009-11-24 00:30:45 +02:00
|
|
|
define Package/sfdisk
|
|
|
|
$(call Package/util-linux/Default)
|
|
|
|
TITLE:=Partition table manipulation utility (Command-line)
|
|
|
|
SUBMENU=disc
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sfdisk/description
|
|
|
|
This package contains a utility for managing disk partition tables using command-line only.
|
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/getopt
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/util-linux/Default)
|
2012-04-02 19:25:48 +03:00
|
|
|
TITLE:=Tool for parsing command parameters
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/getopt/description
|
|
|
|
getopt is a program to help shell scripts parse command-line parameters.
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/hwclock
|
2008-01-04 05:13:38 +02:00
|
|
|
$(call Package/util-linux/Default)
|
2012-04-02 19:25:48 +03:00
|
|
|
TITLE:=Utilities for managing the hardware clock
|
2008-01-04 05:13:38 +02:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/hwclock/description
|
|
|
|
This package contains a utility for managing the hardware clock.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/losetup
|
|
|
|
$(call Package/util-linux/Default)
|
|
|
|
TITLE:=Loopback devices setup and control utility
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/losetup/description
|
|
|
|
This package contains a utility for managing loopback devices.
|
2008-01-04 05:13:38 +02:00
|
|
|
endef
|
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
define Package/swap-utils
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/util-linux/Default)
|
2007-10-18 22:08:16 +03:00
|
|
|
SUBMENU:=disc
|
2008-08-20 19:04:21 +03:00
|
|
|
TITLE:=Swap space management utilities
|
2008-09-15 11:21:14 +03:00
|
|
|
DEPENDS+= +libblkid +libuuid
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/swap-utils/description
|
2008-05-20 01:08:46 +03:00
|
|
|
This package contains a collection of tools for managing swap space:
|
2007-09-07 11:34:51 +03:00
|
|
|
- mkswap
|
|
|
|
- swapon
|
|
|
|
- swapoff
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/mount-utils
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/util-linux/Default)
|
2012-04-02 19:25:48 +03:00
|
|
|
TITLE:=Devices mount/unmounting utilities
|
|
|
|
DEPENDS+= +libblkid +libuuid
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/mount-utils/description
|
|
|
|
This package contains utilities to mount/unmount devices.
|
2007-07-04 14:20:46 +03:00
|
|
|
endef
|
|
|
|
|
2009-05-07 16:18:44 +03:00
|
|
|
define Package/flock
|
|
|
|
$(call Package/util-linux/Default)
|
|
|
|
TITLE:=Manage file locks from shell scripts
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/flock/description
|
|
|
|
This package contains a utility for managing file locks from shell scripts.
|
|
|
|
endef
|
|
|
|
|
2010-02-09 00:05:11 +02:00
|
|
|
define Package/setterm
|
|
|
|
$(call Package/util-linux/Default)
|
|
|
|
TITLE:=Tool for setting terminal attributes
|
2010-06-15 00:48:57 +03:00
|
|
|
SUBMENU:=Terminal
|
2010-02-09 00:05:11 +02:00
|
|
|
DEPENDS:= +libncurses
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/setterm/description
|
2012-04-02 19:25:48 +03:00
|
|
|
This package contains a utility for setting terminal attributes.
|
2010-02-09 00:05:11 +02:00
|
|
|
endef
|
|
|
|
|
2010-06-15 00:48:57 +03:00
|
|
|
define Package/script
|
|
|
|
$(call Package/util-linux/Default)
|
|
|
|
TITLE:=Make typescript of terminal session
|
|
|
|
SUBMENU=Terminal
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/script/description
|
|
|
|
Script makes a typescript of everything printed on your terminal.
|
|
|
|
endef
|
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
define Build/Compile
|
2007-10-25 12:57:57 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/disk-utils mkswap
|
2012-04-02 19:25:48 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/fdisk cfdisk fdisk sfdisk
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/getopt getopt
|
2007-10-25 12:57:57 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock
|
2012-04-02 19:25:48 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/mount losetup mount swapon umount
|
2009-05-07 16:18:44 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/sys-utils flock
|
2012-04-02 19:25:48 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/term-utils setterm script
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/cfdisk/install
|
2008-05-20 01:08:46 +03:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2012-04-04 14:40:08 +03:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/.libs/cfdisk $(1)/sbin/
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
2006-09-23 22:32:32 +03:00
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/fdisk/install
|
2008-05-20 01:08:46 +03:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2012-04-04 14:40:08 +03:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/.libs/fdisk $(1)/sbin/
|
2007-07-01 20:43:31 +03:00
|
|
|
endef
|
|
|
|
|
2009-11-24 00:30:45 +02:00
|
|
|
define Package/sfdisk/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/sfdisk $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/getopt/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/getopt/getopt $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/hwclock/install
|
2008-05-20 01:08:46 +03:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2012-04-02 19:25:48 +03:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hwclock/hwclock $(1)/sbin/
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
2006-09-23 22:32:32 +03:00
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/losetup/install
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/losetup $(1)/sbin/
|
2008-01-04 05:13:38 +02:00
|
|
|
endef
|
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
define Package/swap-utils/install
|
2008-05-20 01:08:46 +03:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
2012-04-04 14:40:08 +03:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/disk-utils/.libs/mkswap $(1)/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/.libs/swapon $(1)/sbin/
|
2008-05-20 01:08:46 +03:00
|
|
|
ln -sf swapon $(1)/sbin/swapoff
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
2006-09-23 22:32:32 +03:00
|
|
|
|
2012-04-02 19:25:48 +03:00
|
|
|
define Package/mount-utils/install
|
|
|
|
$(INSTALL_DIR) $(1)/bin/
|
2012-04-04 14:40:08 +03:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/.libs/{u,}mount $(1)/bin
|
2007-07-04 14:20:46 +03:00
|
|
|
endef
|
|
|
|
|
2009-05-07 16:18:44 +03:00
|
|
|
define Package/flock/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sys-utils/flock $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2010-02-09 00:05:11 +02:00
|
|
|
define Package/setterm/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2012-04-02 19:25:48 +03:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/term-utils/setterm $(1)/usr/bin/
|
2010-02-09 00:05:11 +02:00
|
|
|
endef
|
|
|
|
|
2010-06-15 00:48:57 +03:00
|
|
|
define Package/script/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2012-04-02 19:25:48 +03:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/term-utils/script $(1)/usr/bin/
|
2010-06-15 00:48:57 +03:00
|
|
|
endef
|
|
|
|
|
2007-07-01 20:43:31 +03:00
|
|
|
$(eval $(call BuildPackage,cfdisk))
|
2012-04-02 19:25:48 +03:00
|
|
|
$(eval $(call BuildPackage,fdisk))
|
2009-11-24 00:30:45 +02:00
|
|
|
$(eval $(call BuildPackage,sfdisk))
|
2012-04-02 19:25:48 +03:00
|
|
|
$(eval $(call BuildPackage,getopt))
|
|
|
|
$(eval $(call BuildPackage,hwclock))
|
2006-06-18 22:16:08 +03:00
|
|
|
$(eval $(call BuildPackage,losetup))
|
|
|
|
$(eval $(call BuildPackage,swap-utils))
|
2012-04-02 19:25:48 +03:00
|
|
|
$(eval $(call BuildPackage,mount-utils))
|
2009-05-07 16:18:44 +03:00
|
|
|
$(eval $(call BuildPackage,flock))
|
2010-02-09 00:05:11 +02:00
|
|
|
$(eval $(call BuildPackage,setterm))
|
2010-06-15 00:48:57 +03:00
|
|
|
$(eval $(call BuildPackage,script))
|