ixp4xx-2.6/config: Removed the PPP config override to allow PPP modules to be built
[openwrt.git] / package / util-linux / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=util-linux
12 PKG_VERSION:=2.12r
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.kernel.org/pub/linux/utils/$(PKG_NAME)/ \
17 http://ftp.kernel.org/pub/linux/utils/$(PKG_NAME)/ \
18 ftp://ftp.de.kernel.org/pub/linux/utils/$(PKG_NAME)/ \
19 http://ftp.de.kernel.org/pub/linux/utils/$(PKG_NAME)/
20 PKG_MD5SUM:=c261230b27fc0fbcc287c76884caf2d3
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/util-linux/Default
25 SECTION:=utils
26 CATEGORY:=Utilities
27 URL:=http://www.kernel.org/pub/linux/utils/util-linux/
28 endef
29
30 define Package/fdisk
31 $(call Package/util-linux/Default)
32 TITLE:=Partition table manipulation utility
33 DESCRIPTION:=\
34 This package contains a utility for managing disk partition tables.
35 URL:=http://www.kernel.org/pub/linux/utils/util-linux/
36 endef
37
38 define Package/cfdisk
39 $(call Package/util-linux/Default)
40 TITLE:=Partition table manipulation utility
41 DEPENDS:=+libncurses
42 DESCRIPTION:=\
43 This package contains a utility for managing disk partition tables.
44 URL:=http://www.kernel.org/pub/linux/utils/util-linux/
45 endef
46
47 define Package/losetup
48 $(call Package/util-linux/Default)
49 TITLE:=Loopback devices setup and control utility
50 DESCRIPTION:=\
51 This package contains a utility for managing loopback devices.
52 endef
53
54 define Package/swap-utils
55 $(call Package/util-linux/Default)
56 TITLE:=Swap space management utilities
57 DESCRIPTION:=\
58 This package contains a collection of tools for managing swap space: \\\
59 - mkswap\\\
60 - swapon\\\
61 - swapoff
62 endef
63
64 define Package/hwclock
65 $(call Package/util-linux/Default)
66 TITLE:=Utilities for managing the hardware clock
67 DESCRIPTION:=\
68 This package contains a utility for managing the hardware clock
69 endef
70
71 TARGET_CFLAGS += -I$(PKG_BUILD_DIR)/lib
72 define Build/Compile
73 $(call Build/Compile/Default, \
74 OPT="$(TARGET_CFLAGS)" \
75 INSTALLSUID="install -m 4755" \
76 DESTDIR="$(PKG_INSTALL_DIR)" \
77 all install \
78 )
79 endef
80
81 define Package/Template
82 @if [ \! -f "$(PKG_INSTALL_DIR)/$(1)" ]; then \
83 rm -f $(PKG_BUILD_DIR)/.built; \
84 $(MAKE) $(PKG_BUILD_DIR)/.built; \
85 fi
86 $(INSTALL_DIR) $(2)
87 $(CP) $(PKG_INSTALL_DIR)/$(1) $(2)/
88 endef
89
90 define Package/fdisk/install
91 $(call Package/Template,sbin/fdisk,$(1)/usr/sbin)
92 endef
93
94 define Package/cfdisk/install
95 $(call Package/Template,sbin/cfdisk,$(1)/usr/sbin)
96 endef
97
98 define Package/losetup/install
99 $(call Package/Template,sbin/losetup,$(1)/usr/sbin)
100 endef
101
102 define Package/swap-utils/install
103 $(call Package/Template,sbin/mkswap,$(1)/usr/sbin)
104 $(call Package/Template,sbin/swapon,$(1)/usr/sbin)
105 $(call Package/Template,sbin/swapoff,$(1)/usr/sbin)
106 endef
107
108 define Package/hwclock/install
109 $(call Package/Template,sbin/hwclock,$(1)/usr/sbin)
110 endef
111
112 $(eval $(call BuildPackage,fdisk))
113 $(eval $(call BuildPackage,cfdisk))
114 $(eval $(call BuildPackage,losetup))
115 $(eval $(call BuildPackage,swap-utils))
116 $(eval $(call BuildPackage,hwclock))
This page took 0.045525 seconds and 5 git commands to generate.