2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@KERNEL
/linux
/utils
/$(PKG_NAME
)/
17 PKG_MD5SUM
:=c261230b27fc0fbcc287c76884caf2d3
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/util-linux
/Default
24 DEPENDS
:=@
!TARGET_ETRAX
25 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/util-linux
/
29 $(call Package
/util-linux
/Default
)
30 TITLE
:=Partition table manipulation utility
32 This package contains a utility for managing disk partition tables.
33 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/util-linux
/
37 $(call Package
/util-linux
/Default
)
38 TITLE
:=Partition table manipulation utility
41 This package contains a utility for managing disk partition tables.
42 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/util-linux
/
45 define Package
/losetup
46 $(call Package
/util-linux
/Default
)
47 TITLE
:=Loopback devices setup and control utility
49 This package contains a utility for managing loopback devices.
52 define Package
/swap-utils
53 $(call Package
/util-linux
/Default
)
54 TITLE
:=Swap space management utilities
56 This package contains a collection of tools for managing swap space
: \\\
62 define Package
/hwclock
63 $(call Package
/util-linux
/Default
)
64 TITLE
:=Utilities for managing the hardware clock
66 This package contains a utility for managing the hardware clock
69 define Build
/Configure
70 # this is NOT GNU configure!
71 ( cd
$(PKG_BUILD_DIR
); \
73 CFLAGS
="$(TARGET_CPPFLAGS)" \
74 LDFLAGS
="$(TARGET_LDFLAGS)" \
80 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
81 OPT
="$(TARGET_CFLAGS)" \
82 INSTALLSUID
="install -m 4755" \
83 DESTDIR
="$(PKG_INSTALL_DIR)" \
87 define Package
/Template
88 @if
[ \
! -f
"$(PKG_INSTALL_DIR)/$(1)" ]; then \
89 rm -f
$(PKG_BUILD_DIR
)/.built
; \
90 $(MAKE
) $(PKG_BUILD_DIR
)/.built
; \
93 $(CP
) $(PKG_INSTALL_DIR
)/$(1) $(2)/
96 define Package
/fdisk
/install
97 $(call Package
/Template
,sbin
/fdisk
,$(1)/usr
/sbin
)
100 define Package
/cfdisk
/install
101 $(call Package
/Template
,sbin
/cfdisk
,$(1)/usr
/sbin
)
104 define Package
/losetup
/install
105 $(call Package
/Template
,sbin
/losetup
,$(1)/usr
/sbin
)
108 define Package
/swap-utils
/install
109 $(call Package
/Template
,sbin
/mkswap
,$(1)/usr
/sbin
)
110 $(call Package
/Template
,sbin
/swapon
,$(1)/usr
/sbin
)
111 $(call Package
/Template
,sbin
/swapoff
,$(1)/usr
/sbin
)
114 define Package
/hwclock
/install
115 $(call Package
/Template
,sbin
/hwclock
,$(1)/usr
/sbin
)
118 $(eval
$(call BuildPackage
,fdisk
))
119 $(eval
$(call BuildPackage
,cfdisk
))
120 $(eval
$(call BuildPackage
,losetup
))
121 $(eval
$(call BuildPackage
,swap-utils
))
122 $(eval
$(call BuildPackage
,hwclock
))