1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${TOPDIR}/rules.mk
PKG_NAME:= util-linux
PKG_VERSION:= 2.23.2
PKG_RELEASE:= 2
PKG_MD5SUM:= b39fde897334a4858bb2098edcce5b3f
PKG_DESCR:= Linux utilities
PKG_SECTION:= fs
PKG_BUILDDEP:= ncurses
PKG_SITES:= http://www.kernel.org/pub/linux/utils/util-linux/v2.23/
PKG_NOPARALLEL:= 1
PKG_ARCH_DEPENDS:= !m68k
DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SUBPKGS:= FDISK SFDISK SWAP_UTILS LOSETUP MCOOKIE MOUNT
PKG_SUBPKGS+= LIBUUID LIBBLKID LIBUUID_DEV LIBMOUNT
PKGSD_LIBUUID:= UUID library
PKGSC_LIBUUID:= libs
PKGSD_LIBUUID_DEV:= UUID headers
PKGSC_LIBUUID_DEV:= devel
PKGSD_LIBBLKID:= BLKID library
PKGSC_LIBBLKID:= libs
PKGSD_LIBMOUNT:= Mount library
PKGSC_LIBMOUNT:= libs
PKGSD_FDISK:= Partition table manipulation utility
PKGSD_SFDISK:= Scriptable Partition table manipulation utility
PKGSD_SWAP_UTILS:= Swap space management utilities
PKGSS_SWAP_UTILS:= libblkid
PKGSD_LOSETUP:= Loop devices management utilities
PKGSS_LOSETUP:= kmod-blk-dev-loop
PKGSD_MOUNT:= mount/umount utilities
PKGSS_MOUNT:= libblkid libmount
PKGSC_MOUNT:= fs
PKGSD_MCOOKIE:= Generate magic cookies for xauth
PKGSC_MCOOKIE:= x11/apps
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,FDISK,fdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_FDISK},${PKG_SECTION}))
$(eval $(call PKG_template,SFDISK,sfdisk,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_SFDISK},${PKG_SECTION}))
$(eval $(call PKG_template,SWAP_UTILS,swap-utils,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_SWAP_UTILS},${PKGSD_SWAP_UTILS},${PKG_SECTION}))
$(eval $(call PKG_template,LOSETUP,losetup,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LOSETUP},${PKGSD_LOSETUP},${PKG_SECTION}))
$(eval $(call PKG_template,MOUNT,mount,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MOUNT},${PKG_SECTION}))
$(eval $(call PKG_template,MCOOKIE,mcookie,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_MCOOKIE},${PKGSC_MCOOKIE}))
$(eval $(call PKG_template,LIBUUID,libuuid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUUID},${PKGSC_LIBUUID}))
$(eval $(call PKG_template,LIBUUID_DEV,libuuid-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBUUID_DEV},${PKGSC_LIBUUID_DEV}))
$(eval $(call PKG_template,LIBBLKID,libblkid,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBBLKID},${PKGSC_LIBBLKID}))
$(eval $(call PKG_template,LIBMOUNT,libmount,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBMOUNT},${PKGSC_LIBMOUNT}))
CONFIGURE_ENV+= have_scanf_alloc_modifier=yes \
scanf_cv_alloc_modifier=ms
CONFIGURE_ARGS+= --disable-use-tty-group \
--disable-schedutils \
--disable-cramfs \
--disable-login \
--disable-su \
--enable-libuuid \
--enable-libblkid \
--enable-libmount \
--enable-mount \
--with-ncurses=$(STAGING_DIR)/usr/include \
--libdir=/usr/lib
FAKE_FLAGS+= INSTALLSUID="install -m 4755"
TARGET_CFLAGS+= -DSWAPON_HAS_TWO_ARGS -DHAVE_LLSEEK
post-build:
${INSTALL_DIR} ${STAGING_DIR}/usr/include/uuid
${CP} ${WRKBUILD}/libuuid/src/uuid.h \
${STAGING_DIR}/usr/include/uuid
fdisk-install:
${INSTALL_DIR} ${IDIR_FDISK}/usr/sbin
${CP} ${WRKINST}/sbin/fdisk ${IDIR_FDISK}/usr/sbin
sfdisk-install:
${INSTALL_DIR} ${IDIR_SFDISK}/usr/sbin
${CP} ${WRKINST}/sbin/sfdisk ${IDIR_SFDISK}/usr/sbin
losetup-install:
${INSTALL_DIR} ${IDIR_LOSETUP}/usr/sbin
${CP} ${WRKINST}/sbin/losetup ${IDIR_LOSETUP}/usr/sbin
swap-utils-install:
${INSTALL_DIR} ${IDIR_SWAP_UTILS}/usr/sbin
${CP} ${WRKINST}/sbin/mkswap ${IDIR_SWAP_UTILS}/usr/sbin
${CP} ${WRKINST}/sbin/swap{on,off} ${IDIR_SWAP_UTILS}/usr/sbin
mount-install:
${INSTALL_DIR} ${IDIR_MOUNT}/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/{u,}mount ${IDIR_MOUNT}/bin
mcookie-install:
${INSTALL_DIR} ${IDIR_MCOOKIE}/usr/bin
${INSTALL_BIN} ${WRKINST}/usr/bin/mcookie ${IDIR_MCOOKIE}/usr/bin
libuuid-install:
${INSTALL_DIR} ${IDIR_LIBUUID}/usr/lib
${CP} ${WRKINST}/usr/lib/libuuid.so* ${IDIR_LIBUUID}/usr/lib
libuuid-dev-install:
${INSTALL_DIR} ${IDIR_LIBUUID_DEV}/usr/include
${CP} ${WRKINST}/usr/include/* ${IDIR_LIBUUID_DEV}/usr/include
libblkid-install:
${INSTALL_DIR} ${IDIR_LIBBLKID}/usr/lib
${CP} ${WRKINST}/usr/lib/libblkid.so* ${IDIR_LIBBLKID}/usr/lib
libmount-install:
${INSTALL_DIR} ${IDIR_LIBMOUNT}/usr/lib
${CP} ${WRKINST}/usr/lib/libmount.so* ${IDIR_LIBMOUNT}/usr/lib
include ${TOPDIR}/mk/pkg-bottom.mk
|