2007-10-25 11:57:57 +02:00
|
|
|
#
|
2009-05-07 15:18:44 +02:00
|
|
|
# Copyright (C) 2007-2009 OpenWrt.org
|
2006-06-27 02:35:46 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-18 21:16:08 +02:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2007-10-25 11:57:57 +02:00
|
|
|
PKG_NAME:=util-linux-ng
|
|
|
|
PKG_VERSION:=2.13.0.1
|
2008-08-20 18:04:21 +02:00
|
|
|
PKG_RELEASE:=2
|
2006-06-18 21:16:08 +02:00
|
|
|
|
2006-09-23 21:32:32 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2007-10-25 11:57:57 +02:00
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.13
|
|
|
|
PKG_MD5SUM:=c841dc8743905c8f0db20c9db5094f57
|
|
|
|
|
2008-08-20 18:04:21 +02:00
|
|
|
PKG_BUILD_DEPENDS=e2fsprogs
|
2006-09-23 21:32:32 +02:00
|
|
|
|
2006-06-21 04:32:39 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2006-06-18 21:16:08 +02:00
|
|
|
|
2006-09-23 21:32:32 +02:00
|
|
|
define Package/util-linux/Default
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2007-10-25 11:57:57 +02:00
|
|
|
URL:=http://www.kernel.org/pub/linux/utils/util-linux-ng/
|
2006-09-23 21:32:32 +02:00
|
|
|
endef
|
|
|
|
|
2006-06-18 21:16:08 +02:00
|
|
|
define Package/fdisk
|
2007-09-07 10:34:51 +02:00
|
|
|
$(call Package/util-linux/Default)
|
2006-09-23 21:32:32 +02:00
|
|
|
TITLE:=Partition table manipulation utility
|
2007-10-18 21:08:16 +02:00
|
|
|
SUBMENU=disc
|
2007-09-07 10:34:51 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fdisk/description
|
|
|
|
This package contains a utility for managing disk partition tables.
|
2006-06-18 21:16:08 +02:00
|
|
|
endef
|
|
|
|
|
2007-07-01 19:43:31 +02:00
|
|
|
define Package/cfdisk
|
2007-09-07 10:34:51 +02:00
|
|
|
$(call Package/util-linux/Default)
|
2008-08-20 18:04:21 +02:00
|
|
|
SUBMENU:=disc
|
2007-07-01 19:43:31 +02:00
|
|
|
TITLE:=Partition table manipulation utility
|
2007-09-07 10:34:51 +02:00
|
|
|
DEPENDS:= +libncurses
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cfdisk/description
|
|
|
|
This package contains a utility for managing disk partition tables.
|
2007-07-01 19:43:31 +02:00
|
|
|
endef
|
|
|
|
|
2006-06-18 21:16:08 +02:00
|
|
|
define Package/losetup
|
2007-09-07 10:34:51 +02:00
|
|
|
$(call Package/util-linux/Default)
|
2006-09-23 21:32:32 +02:00
|
|
|
TITLE:=Loopback devices setup and control utility
|
2007-09-07 10:34:51 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/losetup/description
|
|
|
|
This package contains a utility for managing loopback devices.
|
2006-06-18 21:16:08 +02:00
|
|
|
endef
|
|
|
|
|
2008-01-04 04:13:38 +01:00
|
|
|
define Package/mount-utils
|
|
|
|
$(call Package/util-linux/Default)
|
|
|
|
TITLE:=Devices mount/unmounting utilities
|
2008-08-20 18:04:21 +02:00
|
|
|
DEPENDS+= +libblkid +libuuid
|
2008-01-04 04:13:38 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mount-utils/description
|
|
|
|
This package contains utilities to mount/unmount devices.
|
|
|
|
endef
|
|
|
|
|
2006-06-18 21:16:08 +02:00
|
|
|
define Package/swap-utils
|
2007-09-07 10:34:51 +02:00
|
|
|
$(call Package/util-linux/Default)
|
2007-10-18 21:08:16 +02:00
|
|
|
SUBMENU:=disc
|
2008-08-20 18:04:21 +02:00
|
|
|
TITLE:=Swap space management utilities
|
2008-09-15 10:21:14 +02:00
|
|
|
DEPENDS+= +libblkid +libuuid
|
2007-09-07 10:34:51 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/swap-utils/description
|
2008-05-20 00:08:46 +02:00
|
|
|
This package contains a collection of tools for managing swap space:
|
2007-09-07 10:34:51 +02:00
|
|
|
- mkswap
|
|
|
|
- swapon
|
|
|
|
- swapoff
|
2006-06-18 21:16:08 +02:00
|
|
|
endef
|
|
|
|
|
2007-07-04 13:20:46 +02:00
|
|
|
define Package/hwclock
|
2007-09-07 10:34:51 +02:00
|
|
|
$(call Package/util-linux/Default)
|
2007-07-04 13:20:46 +02:00
|
|
|
TITLE:=Utilities for managing the hardware clock
|
2007-09-07 10:34:51 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/hwclock/description
|
|
|
|
This package contains a utility for managing the hardware clock.
|
2007-07-04 13:20:46 +02:00
|
|
|
endef
|
|
|
|
|
2009-05-07 15:18:44 +02: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
|
|
|
|
|
2006-06-18 21:16:08 +02:00
|
|
|
define Build/Compile
|
2007-10-25 11:57:57 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/disk-utils mkswap
|
2008-01-04 04:13:38 +01:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/mount swapon losetup umount mount
|
2007-10-25 11:57:57 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/fdisk fdisk cfdisk
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock
|
2009-05-07 15:18:44 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/sys-utils flock
|
2006-06-18 21:16:08 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fdisk/install
|
2008-05-20 00:08:46 +02:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/fdisk $(1)/sbin/
|
2006-06-18 21:16:08 +02:00
|
|
|
endef
|
2006-09-23 21:32:32 +02:00
|
|
|
|
2007-07-01 19:43:31 +02:00
|
|
|
define Package/cfdisk/install
|
2008-05-20 00:08:46 +02:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/cfdisk $(1)/sbin/
|
2007-07-01 19:43:31 +02:00
|
|
|
endef
|
|
|
|
|
2006-06-18 21:16:08 +02:00
|
|
|
define Package/losetup/install
|
2008-05-20 00:08:46 +02:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/losetup $(1)/sbin/
|
2006-06-18 21:16:08 +02:00
|
|
|
endef
|
2006-09-23 21:32:32 +02:00
|
|
|
|
2008-01-04 04:13:38 +01:00
|
|
|
define Package/mount-utils/install
|
2008-05-25 22:03:00 +02:00
|
|
|
$(INSTALL_DIR) $(1)/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/{u,}mount $(1)/bin
|
2008-01-04 04:13:38 +01:00
|
|
|
endef
|
|
|
|
|
2006-06-18 21:16:08 +02:00
|
|
|
define Package/swap-utils/install
|
2008-05-20 00:08:46 +02: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 21:16:08 +02:00
|
|
|
endef
|
2006-09-23 21:32:32 +02:00
|
|
|
|
2007-07-04 13:20:46 +02:00
|
|
|
define Package/hwclock/install
|
2008-05-20 00:08:46 +02:00
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hwclock/hwclock $(1)/sbin/
|
2007-07-04 13:20:46 +02:00
|
|
|
endef
|
|
|
|
|
2009-05-07 15:18:44 +02:00
|
|
|
define Package/flock/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/sys-utils/flock $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2006-06-18 21:16:08 +02:00
|
|
|
$(eval $(call BuildPackage,fdisk))
|
2007-07-01 19:43:31 +02:00
|
|
|
$(eval $(call BuildPackage,cfdisk))
|
2006-06-18 21:16:08 +02:00
|
|
|
$(eval $(call BuildPackage,losetup))
|
2008-01-04 04:13:38 +01:00
|
|
|
$(eval $(call BuildPackage,mount-utils))
|
2006-06-18 21:16:08 +02:00
|
|
|
$(eval $(call BuildPackage,swap-utils))
|
2007-07-04 13:20:46 +02:00
|
|
|
$(eval $(call BuildPackage,hwclock))
|
2009-05-07 15:18:44 +02:00
|
|
|
$(eval $(call BuildPackage,flock))
|