2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=util-linux-ng
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@KERNEL
/linux
/utils
/$(PKG_NAME
)/v2.13
16 PKG_MD5SUM
:=c841dc8743905c8f0db20c9db5094f57
18 PKG_BUILD_DEPENDS
=libblkid libuuid
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/util-linux
/Default
25 DEPENDS
:=@
!TARGET_etrax
26 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/util-linux-ng
/
30 $(call Package
/util-linux
/Default
)
31 TITLE
:=Partition table manipulation utility
35 define Package
/fdisk
/description
36 This package contains a utility for managing disk partition tables.
40 $(call Package
/util-linux
/Default
)
41 TITLE
:=Partition table manipulation utility
46 define Package
/cfdisk
/description
47 This package contains a utility for managing disk partition tables.
50 define Package
/losetup
51 $(call Package
/util-linux
/Default
)
52 TITLE
:=Loopback devices setup and control utility
55 define Package
/losetup
/description
56 This package contains a utility for managing loopback devices.
59 define Package
/swap-utils
60 $(call Package
/util-linux
/Default
)
61 TITLE
:=Swap space management utilities
65 define Package
/swap-utils
/description
66 This package contains a collection of tools for managing swap space
:
72 define Package
/hwclock
73 $(call Package
/util-linux
/Default
)
74 TITLE
:=Utilities for managing the hardware clock
77 define Package
/hwclock
/description
78 This package contains a utility for managing the hardware clock.
82 $(MAKE
) -C
$(PKG_BUILD_DIR
)/disk-utils mkswap
83 $(MAKE
) -C
$(PKG_BUILD_DIR
)/mount swapon losetup
84 $(MAKE
) -C
$(PKG_BUILD_DIR
)/fdisk fdisk cfdisk
85 $(MAKE
) -C
$(PKG_BUILD_DIR
)/hwclock hwclock
88 define Package
/fdisk
/install
89 $(INSTALL_DIR
) $(1)/usr
/sbin
90 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fdisk
/fdisk
$(1)/usr
/sbin
/
93 define Package
/cfdisk
/install
94 $(INSTALL_DIR
) $(1)/usr
/sbin
95 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/fdisk
/cfdisk
$(1)/usr
/sbin
/
98 define Package
/losetup
/install
99 $(INSTALL_DIR
) $(1)/usr
/sbin
100 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mount
/losetup
$(1)/usr
/sbin
/
103 define Package
/swap-utils
/install
104 $(INSTALL_DIR
) $(1)/usr
/sbin
105 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/disk-utils
/mkswap
$(1)/usr
/sbin
/
106 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mount
/swapon
$(1)/usr
/sbin
/
107 ln
-sf swapon
$(1)/usr
/sbin
/swapoff
110 define Package
/hwclock
/install
111 $(INSTALL_DIR
) $(1)/usr
/sbin
112 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/hwclock
/hwclock
$(1)/usr
/sbin
/
115 $(eval
$(call BuildPackage
,fdisk
))
116 $(eval
$(call BuildPackage
,cfdisk
))
117 $(eval
$(call BuildPackage
,losetup
))
118 $(eval
$(call BuildPackage
,swap-utils
))
119 $(eval
$(call BuildPackage
,hwclock
))