1 # $Id: Makefile 3822 2006-05-24 07:01:52Z nico $
3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=c261230b27fc0fbcc287c76884caf2d3
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
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 include $(TOPDIR
)/include/package.mk
24 TITLE
:=Partition table manipulation utility
25 DESCRIPTION
:=A partition table manipulation utility
26 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/util-linux
/
29 define Package
/losetup
31 TITLE
:=Loopback devices setup and control utility
32 DESCRIPTION
:=A loopback devices setup and control utility
35 define Package
/swap-utils
37 TITLE
:=Swap space management utilities
38 DESCRIPTION
:=A collection of tools to manage swap space
\\\
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" \
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
; \
60 install -d
-m0755
$(2)
61 $(CP
) $(PKG_INSTALL_DIR
)/$(1) $(2)/
64 define Package
/fdisk
/install
65 $(call Package
/Template
,sbin
/fdisk
,$(1)/usr
/sbin
)
67 define Package
/losetup
/install
68 $(call Package
/Template
,sbin
/losetup
,$(1)/usr
/sbin
)
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
)
75 $(eval
$(call BuildPackage
,fdisk
))
76 $(eval
$(call BuildPackage
,losetup
))
77 $(eval
$(call BuildPackage
,swap-utils
))