source: branches/8.09/package/util-linux-ng/Makefile @ 15409

Last change on this file since 15409 was 15409, checked in by nico, 8 years ago

remove references to etrax target, since it's not present in 8.09

File size: 3.3 KB
Line 
1#
2# Copyright (C) 2007-2008 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=util-linux-ng
11PKG_VERSION:=2.13.0.1
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.13
16PKG_MD5SUM:=c841dc8743905c8f0db20c9db5094f57
17
18PKG_BUILD_DEPENDS=e2fsprogs
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/util-linux/Default
23  SECTION:=utils
24  CATEGORY:=Utilities
25  URL:=http://www.kernel.org/pub/linux/utils/util-linux-ng/
26endef
27
28define Package/fdisk
29$(call Package/util-linux/Default)
30  TITLE:=Partition table manipulation utility
31  SUBMENU=disc
32endef
33
34define Package/fdisk/description
35 This package contains a utility for managing disk partition tables.
36endef
37
38define Package/cfdisk
39$(call Package/util-linux/Default)
40  SUBMENU:=disc
41  TITLE:=Partition table manipulation utility
42  DEPENDS:= +libncurses
43endef
44
45define Package/cfdisk/description
46 This package contains a utility for managing disk partition tables.
47endef
48
49define Package/losetup
50$(call Package/util-linux/Default)
51  TITLE:=Loopback devices setup and control utility
52endef
53
54define Package/losetup/description
55 This package contains a utility for managing loopback devices.
56endef
57
58define Package/mount-utils
59$(call Package/util-linux/Default)
60  TITLE:=Devices mount/unmounting utilities
61  DEPENDS+= +libblkid +libuuid
62endef
63
64define Package/mount-utils/description
65 This package contains utilities to mount/unmount devices.
66endef
67
68define Package/swap-utils
69$(call Package/util-linux/Default)
70  SUBMENU:=disc
71  TITLE:=Swap space management utilities
72  DEPENDS+= +libblkid +libuuid
73endef
74
75define Package/swap-utils/description
76 This package contains a collection of tools for managing swap space:
77 - mkswap
78 - swapon
79 - swapoff
80endef
81
82define Package/hwclock
83$(call Package/util-linux/Default)
84  TITLE:=Utilities for managing the hardware clock
85endef
86
87define Package/hwclock/description
88 This package contains a utility for managing the hardware clock.
89endef
90
91define Build/Compile
92        $(MAKE) -C $(PKG_BUILD_DIR)/disk-utils mkswap
93        $(MAKE) -C $(PKG_BUILD_DIR)/mount swapon losetup umount mount
94        $(MAKE) -C $(PKG_BUILD_DIR)/fdisk fdisk cfdisk
95        $(MAKE) -C $(PKG_BUILD_DIR)/hwclock hwclock
96endef
97
98define Package/fdisk/install
99        $(INSTALL_DIR) $(1)/sbin
100        $(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/fdisk $(1)/sbin/
101endef
102
103define Package/cfdisk/install
104        $(INSTALL_DIR) $(1)/sbin
105        $(INSTALL_BIN) $(PKG_BUILD_DIR)/fdisk/cfdisk $(1)/sbin/
106endef
107
108define Package/losetup/install
109        $(INSTALL_DIR) $(1)/sbin
110        $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/losetup $(1)/sbin/
111endef
112
113define Package/mount-utils/install
114        $(INSTALL_DIR) $(1)/bin/
115        $(INSTALL_BIN) $(PKG_BUILD_DIR)/mount/{u,}mount $(1)/bin
116endef
117
118define Package/swap-utils/install
119        $(INSTALL_DIR) $(1)/sbin
120        $(INSTALL_BIN) $(PKG_BUILD_DIR)/disk-utils/mkswap $(PKG_BUILD_DIR)/mount/swapon $(1)/sbin/
121        ln -sf swapon $(1)/sbin/swapoff
122endef
123
124define Package/hwclock/install
125        $(INSTALL_DIR) $(1)/sbin
126        $(INSTALL_BIN) $(PKG_BUILD_DIR)/hwclock/hwclock $(1)/sbin/
127endef
128
129$(eval $(call BuildPackage,fdisk))
130$(eval $(call BuildPackage,cfdisk))
131$(eval $(call BuildPackage,losetup))
132$(eval $(call BuildPackage,mount-utils))
133$(eval $(call BuildPackage,swap-utils))
134$(eval $(call BuildPackage,hwclock))
Note: See TracBrowser for help on using the repository browser.