move the broadcom driver stuff into its own submenu
[openwrt.git] / package / util-linux / Makefile
1 # $Id: Makefile 3822 2006-05-24 07:01:52Z nico $
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=util-linux
6 PKG_VERSION:=2.12r
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=c261230b27fc0fbcc287c76884caf2d3
9
10 PKG_SOURCE_URL:=ftp://ftp.kernel.org/pub/linux/utils/$(PKG_NAME)/ \
11 http://ftp.kernel.org/pub/linux/utils/$(PKG_NAME)/ \
12 ftp://ftp.de.kernel.org/pub/linux/utils/$(PKG_NAME)/ \
13 http://ftp.de.kernel.org/pub/linux/utils/$(PKG_NAME)/
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_CAT:=zcat
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/fdisk
22 SECTION:=base
23 CATEGORY:=Utilities
24 TITLE:=Partition table manipulation utility
25 DESCRIPTION:=A partition table manipulation utility
26 URL:=http://www.kernel.org/pub/linux/utils/util-linux/
27 endef
28
29 define Package/losetup
30 $(call Package/fdisk)
31 TITLE:=Loopback devices setup and control utility
32 DESCRIPTION:=A loopback devices setup and control utility
33 endef
34
35 define Package/swap-utils
36 $(call Package/fdisk)
37 TITLE:=Swap space management utilities
38 DESCRIPTION:=A collection of tools to manage swap space \\\
39 * mkswap\\\
40 * swapon\\\
41 * swapoff
42 endef
43
44 define Build/Compile
45 rm -rf $(PKG_INSTALL_DIR)
46 mkdir -p $(PKG_INSTALL_DIR)
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 $(TARGET_CONFIGURE_OPTS) \
49 OPT="$(TARGET_CFLAGS)" \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 INSTALLSUID="install -m 4755" \
52 all install
53 endef
54
55 define Package/Template
56 @if [ \! -f "$(PKG_INSTALL_DIR)/$(1)" ]; then \
57 rm -f $(PKG_BUILD_DIR)/.built; \
58 $(MAKE) $(PKG_BUILD_DIR)/.built; \
59 fi
60 install -d -m0755 $(2)
61 $(CP) $(PKG_INSTALL_DIR)/$(1) $(2)/
62 endef
63
64 define Package/fdisk/install
65 $(call Package/Template,sbin/fdisk,$(1)/usr/sbin)
66 endef
67 define Package/losetup/install
68 $(call Package/Template,sbin/losetup,$(1)/usr/sbin)
69 endef
70 define Package/swap-utils/install
71 $(call Package/Template,sbin/mkswap,$(1)/usr/sbin)
72 $(call Package/Template,sbin/swapon,$(1)/usr/sbin)
73 $(call Package/Template,sbin/swapoff,$(1)/usr/sbin)
74 endef
75 $(eval $(call BuildPackage,fdisk))
76 $(eval $(call BuildPackage,losetup))
77 $(eval $(call BuildPackage,swap-utils))
This page took 0.041368 seconds and 5 git commands to generate.