2007-10-25 12:57:57 +03:00
|
|
|
#
|
2010-02-09 00:05:11 +02:00
|
|
|
# Copyright (C) 2007-2010 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
|
|
|
|
|
2007-10-25 12:57:57 +03:00
|
|
|
PKG_NAME:=util-linux-ng
|
|
|
|
PKG_VERSION:=2.13.0.1
|
2010-02-09 00:05:11 +02:00
|
|
|
PKG_RELEASE:=4
|
2006-06-18 22:16:08 +03:00
|
|
|
|
2006-09-23 22:32:32 +03:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-10-25 12:57:57 +03:00
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.13
|
|
|
|
PKG_MD5SUM:=c841dc8743905c8f0db20c9db5094f57
|
|
|
|
|
2008-08-20 19:04:21 +03:00
|
|
|
PKG_BUILD_DEPENDS=e2fsprogs
|
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
|
2007-10-25 12:57:57 +03:00
|
|
|
URL:=http://www.kernel.org/pub/linux/utils/util-linux-ng/
|
2006-09-23 22:32:32 +03:00
|
|
|
endef
|
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
define Package/fdisk
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/util-linux/Default)
|
2006-09-23 22:32:32 +03:00
|
|
|
TITLE:=Partition table manipulation utility
|
2007-10-18 22:08:16 +03:00
|
|
|
SUBMENU=disc
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fdisk/description
|
|
|
|
This package contains a utility for managing disk partition tables.
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
|
|
|
|
2007-07-01 20:43:31 +03:00
|
|
|
define Package/cfdisk
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/util-linux/Default)
|
2008-08-20 19:04:21 +03:00
|
|
|
SUBMENU:=disc
|
2007-07-01 20:43:31 +03:00
|
|
|
TITLE:=Partition table manipulation utility
|
2007-09-07 11:34:51 +03:00
|
|
|
DEPENDS:= +libncurses
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cfdisk/description
|
|
|
|
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
|
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
define Package/losetup
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/util-linux/Default)
|
2006-09-23 22:32:32 +03:00
|
|
|
TITLE:=Loopback devices setup and control utility
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/losetup/description
|
|
|
|
This package contains a utility for managing loopback devices.
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
|
|
|
|
2008-01-04 05:13:38 +02:00
|
|
|
define Package/mount-utils
|
|
|
|
$(call Package/util-linux/Default)
|
|
|
|
TITLE:=Devices mount/unmounting utilities
|
2008-08-20 19:04:21 +03:00
|
|
|
DEPENDS+= +libblkid +libuuid
|
2008-01-04 05:13:38 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mount-utils/description
|
|
|
|
This package contains utilities to mount/unmount devices.
|
|
|
|
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
|
|
|
|
|
2007-07-04 14:20:46 +03:00
|
|
|
define Package/hwclock
|
2007-09-07 11:34:51 +03:00
|
|
|
$(call Package/util-linux/Default)
|
2007-07-04 14:20:46 +03:00
|
|
|
TITLE:=Utilities for managing the hardware clock
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/hwclock/description
|
|
|
|
This package contains a utility for managing the hardware clock.
|
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-08-11 23:35:00 +03:00
|
|
|
SUBMENU:=Terminal
|
2010-02-09 00:05:11 +02:00
|
|
|
DEPENDS:= +libncurses
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/setterm/description
|
|
|
|
This package contains a utility for setting terminal attributes
|
|
|
|
endef
|
|
|
|
|
2010-08-11 23:35:00 +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.
|
|
|
|
http://linux.die.net/man/1/script
|
|
|
|
endef
|
|
|
|
|
2010-02-09 00:05:11 +02:00
|
|
|
|
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
|
2008-01-04 05:13:38 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/mount swapon losetup umount mount
|
2009-11-24 00:30:45 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/fdisk fdisk cfdisk sfdisk
|
2007-10-25 12:57:57 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock
|
2009-05-07 16:18:44 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/sys-utils flock
|
2010-02-09 00:05:11 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/misc-utils setterm
|
2010-08-11 23:35:00 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/misc-utils script
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fdisk/install
|
2008-05-20 01:08:46 +03:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/fdisk $(1)/sbin/
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
2006-09-23 22:32:32 +03:00
|
|
|
|
2007-07-01 20:43:31 +03:00
|
|
|
define Package/cfdisk/install
|
2008-05-20 01:08:46 +03:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/cfdisk $(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
|
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
define Package/losetup/install
|
2008-05-20 01:08:46 +03:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/losetup $(1)/sbin/
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
2006-09-23 22:32:32 +03:00
|
|
|
|
2008-01-04 05:13:38 +02:00
|
|
|
define Package/mount-utils/install
|
2008-05-25 23:03:00 +03:00
|
|
|
$(INSTALL_DIR) $(1)/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/{u,}mount $(1)/bin
|
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
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/disk-utils/mkswap $(PKG_BUILD_DIR)/mount/swapon $(1)/sbin/
|
|
|
|
ln -sf swapon $(1)/sbin/swapoff
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
2006-09-23 22:32:32 +03:00
|
|
|
|
2007-07-04 14:20:46 +03:00
|
|
|
define Package/hwclock/install
|
2008-05-20 01:08:46 +03:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hwclock/hwclock $(1)/sbin/
|
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
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/misc-utils/setterm $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2010-08-11 23:35:00 +03:00
|
|
|
define Package/script/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/misc-utils/script $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2010-02-09 00:05:11 +02:00
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
$(eval $(call BuildPackage,fdisk))
|
2007-07-01 20:43:31 +03:00
|
|
|
$(eval $(call BuildPackage,cfdisk))
|
2009-11-24 00:30:45 +02:00
|
|
|
$(eval $(call BuildPackage,sfdisk))
|
2006-06-18 22:16:08 +03:00
|
|
|
$(eval $(call BuildPackage,losetup))
|
2008-01-04 05:13:38 +02:00
|
|
|
$(eval $(call BuildPackage,mount-utils))
|
2006-06-18 22:16:08 +03:00
|
|
|
$(eval $(call BuildPackage,swap-utils))
|
2007-07-04 14:20:46 +03:00
|
|
|
$(eval $(call BuildPackage,hwclock))
|
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-08-11 23:35:00 +03:00
|
|
|
$(eval $(call BuildPackage,script))
|