2007-10-25 12:57:57 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 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
|
|
|
|
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
|
2007-10-25 12:57:57 +03:00
|
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.13
|
|
|
|
PKG_MD5SUM:=c841dc8743905c8f0db20c9db5094f57
|
|
|
|
|
|
|
|
PKG_BUILD_DEPENDS=libblkid libuuid
|
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-09-08 22:55:42 +03:00
|
|
|
DEPENDS:=@!TARGET_etrax
|
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)
|
2007-07-01 20:43:31 +03:00
|
|
|
TITLE:=Partition table manipulation utility
|
2007-09-07 11:34:51 +03:00
|
|
|
DEPENDS:= +libncurses
|
2007-10-18 22:08:16 +03:00
|
|
|
SUBMENU:=disc
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cfdisk/description
|
|
|
|
This package contains a utility for managing disk partition tables.
|
2007-07-01 20:43:31 +03:00
|
|
|
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
|
|
|
|
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)
|
2006-09-23 22:32:32 +03:00
|
|
|
TITLE:=Swap space management utilities
|
2007-10-18 22:08:16 +03:00
|
|
|
SUBMENU:=disc
|
2007-09-07 11:34:51 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/swap-utils/description
|
|
|
|
This package contains a collection of tools for managing swap space:
|
|
|
|
- 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
|
|
|
|
|
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
|
2007-10-25 12:57:57 +03:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/fdisk fdisk cfdisk
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock
|
2006-06-18 22:16:08 +03:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/fdisk/install
|
2007-10-25 12:57:57 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/fdisk $(1)/usr/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
|
2007-10-25 12:57:57 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/cfdisk $(1)/usr/sbin/
|
2007-07-01 20:43:31 +03:00
|
|
|
endef
|
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
define Package/losetup/install
|
2007-10-25 12:57:57 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/losetup $(1)/usr/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
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/{u,}mount $(1)/usr/sbin
|
|
|
|
endef
|
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
define Package/swap-utils/install
|
2007-10-25 12:57:57 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/disk-utils/mkswap $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/swapon $(1)/usr/sbin/
|
|
|
|
ln -sf swapon $(1)/usr/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
|
2007-10-25 12:57:57 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hwclock/hwclock $(1)/usr/sbin/
|
2007-07-04 14:20:46 +03:00
|
|
|
endef
|
|
|
|
|
2006-06-18 22:16:08 +03:00
|
|
|
$(eval $(call BuildPackage,fdisk))
|
2007-07-01 20:43:31 +03:00
|
|
|
$(eval $(call BuildPackage,cfdisk))
|
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))
|