2
0

Makefile 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. #
  2. # Copyright (C) 2007-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=util-linux
  9. PKG_VERSION:=2.29.2
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.29
  13. PKG_HASH:=accea4d678209f97f634f40a93b7e9fcad5915d1f4749f6c47bee6bf110fe8e3
  14. PKG_LICENSE:=GPL-2.0
  15. PKG_LICENSE_FILES:= COPYING \
  16. getopt/COPYING \
  17. libblkid/COPYING \
  18. libmount/COPYING \
  19. Documentation/licenses/COPYING.GPLv2 \
  20. Documentation/licenses/COPYING.LGPLv2.1 \
  21. libuuid/COPYING \
  22. Documentation/licenses/COPYING.BSD-3
  23. PKG_BUILD_PARALLEL:=1
  24. PKG_FIXUP:=autoreconf
  25. PKG_INSTALL:=1
  26. include $(INCLUDE_DIR)/package.mk
  27. define Package/util-linux/Default
  28. SECTION:=utils
  29. CATEGORY:=Utilities
  30. DEPENDS:= +librt
  31. URL:=http://www.kernel.org/pub/linux/utils/util-linux/
  32. endef
  33. define Package/libblkid
  34. $(call Package/util-linux/Default)
  35. DEPENDS:=+libuuid
  36. TITLE:=block device id library
  37. SECTION:=libs
  38. CATEGORY:=Libraries
  39. endef
  40. define Package/libblkid/description
  41. The libblkid library is used to identify block devices (disks) as to their
  42. content (e.g. filesystem type, partitions) as well as extracting additional
  43. information such as filesystem labels/volume names, partitions, unique
  44. identifiers/serial numbers...
  45. endef
  46. define Package/libfdisk
  47. $(call Package/util-linux/Default)
  48. DEPENDS:=+libuuid +libblkid
  49. TITLE:=partition manipulating library
  50. SECTION:=libs
  51. CATEGORY:=Libraries
  52. endef
  53. define Package/libfdisk/description
  54. The libfdisk library is used for manipulating with partition tables.
  55. endef
  56. define Package/libmount
  57. $(call Package/util-linux/Default)
  58. DEPENDS:=+libblkid
  59. TITLE:=mount library
  60. SECTION:=libs
  61. CATEGORY:=Libraries
  62. endef
  63. define Package/libmount/description
  64. The libmount library is used to parse /etc/fstab, /etc/mtab and
  65. /proc/self/mountinfo files, manage the mtab file, evaluate mount options...
  66. endef
  67. define Package/libuuid
  68. $(call Package/util-linux/Default)
  69. TITLE:=DCE compatible Universally Unique Identifier library
  70. SECTION:=libs
  71. CATEGORY:=Libraries
  72. endef
  73. define Package/libuuid/description
  74. The UUID library is used to generate unique identifiers for objects
  75. that may be accessible beyond the local system. This library
  76. generates UUIDs compatible with those created by the Open Software
  77. Foundation (OSF) Distributed Computing Environment (DCE) utility.
  78. endef
  79. define Package/libsmartcols
  80. $(call Package/util-linux/Default)
  81. TITLE:=table or tree library
  82. SECTION:=libs
  83. CATEGORY:=Libraries
  84. endef
  85. define Package/libsmartcols/description
  86. The smartcols library is used to print tables and trees in a pretty way.
  87. endef
  88. define Package/agetty
  89. $(call Package/util-linux/Default)
  90. TITLE:=alternative Linux getty
  91. SUBMENU=Terminal
  92. endef
  93. define Package/agetty/description
  94. agetty opens a tty port, prompts for a login name and invokes the
  95. /bin/login command
  96. endef
  97. define Package/blkdiscard
  98. $(call Package/util-linux/Default)
  99. TITLE:=discard sectors on a device
  100. SUBMENU=Disc
  101. endef
  102. define Package/blkdiscard/description
  103. The blkdiscard is used to discard device sectors. This is useful for
  104. solid-state drivers (SSDs) and thinly-provisioned storage. Unlike fstrim,
  105. this command is used directly on the block device.
  106. endef
  107. define Package/blkid
  108. $(call Package/util-linux/Default)
  109. TITLE:=locate and print block device attributes
  110. DEPENDS:= +libblkid +libuuid
  111. SUBMENU=Disc
  112. endef
  113. define Package/blkid/description
  114. The blkid program is the command-line interface to working with the libblkid
  115. library.
  116. endef
  117. define Package/cal
  118. $(call Package/util-linux/Default)
  119. TITLE:=display a calendar
  120. DEPENDS:= +libncurses
  121. endef
  122. define Package/cal/description
  123. cal displays a simple calendar
  124. endef
  125. define Package/cfdisk
  126. $(call Package/util-linux/Default)
  127. TITLE:=display or manipulate disk partition table
  128. DEPENDS:= +libblkid +libncurses +libsmartcols +libfdisk +libmount
  129. SUBMENU:=Disc
  130. endef
  131. define Package/cfdisk/description
  132. cfdisk is a curses-based program for partitioning any hard disk drive
  133. endef
  134. define Package/dmesg
  135. $(call Package/util-linux/Default)
  136. TITLE:=print or control the kernel ring buffer
  137. endef
  138. define Package/dmesg/description
  139. dmesg is used to examine or control the kernel ring buffer
  140. endef
  141. define Package/fdisk
  142. $(call Package/util-linux/Default)
  143. TITLE:=manipulate disk partition table
  144. DEPENDS:= +libblkid +libsmartcols +libfdisk
  145. SUBMENU=Disc
  146. endef
  147. define Package/fdisk/description
  148. a menu-driven program for creation and manipulation of partition tables
  149. endef
  150. define Package/findfs
  151. $(call Package/util-linux/Default)
  152. TITLE:=find a filesystem by label or UUID
  153. DEPENDS:= +libblkid
  154. SUBMENU=Disc
  155. endef
  156. define Package/findfs/description
  157. findfs will search the disks in the system looking for a filesystem which has
  158. a label matching label or a UUID equal to uuid
  159. endef
  160. define Package/flock
  161. $(call Package/util-linux/Default)
  162. TITLE:=manage locks from shell scripts
  163. endef
  164. define Package/flock/description
  165. manages flock locks from within shell scripts or the command line
  166. endef
  167. define Package/getopt
  168. $(call Package/util-linux/Default)
  169. TITLE:=parse command options (enhanced)
  170. endef
  171. define Package/getopt/description
  172. getopt is used to break up (parse) options in command lines for easy parsing
  173. by shell procedures, and to check for legal options
  174. endef
  175. define Package/hwclock
  176. $(call Package/util-linux/Default)
  177. TITLE:=query or set the hardware clock
  178. endef
  179. define Package/hwclock/description
  180. hwclock is a tool for accessing the Hardware Clock
  181. endef
  182. define Package/logger
  183. $(call Package/util-linux/Default)
  184. TITLE:=a shell command interface to the syslog system log module
  185. endef
  186. define Package/logger/description
  187. logger makes entries in the system log, it provides a shell command interface
  188. to the syslog system log module
  189. endef
  190. define Package/look
  191. $(call Package/util-linux/Default)
  192. TITLE:=display lines beginning with a given string
  193. endef
  194. define Package/look/description
  195. look utility displays any lines in file which contain string
  196. endef
  197. define Package/losetup
  198. $(call Package/util-linux/Default)
  199. TITLE:=set up and control loop devices
  200. DEPENDS:= +libsmartcols
  201. endef
  202. define Package/losetup/description
  203. losetup is used to associate loop devices with regular files or block devices,
  204. to detach loop devices and to query the status of a loop device
  205. endef
  206. define Package/lsblk
  207. $(call Package/util-linux/Default)
  208. TITLE:=list block devices
  209. DEPENDS:= +libblkid +libmount +libsmartcols
  210. SUBMENU=Disc
  211. endef
  212. define Package/lsblk/description
  213. lsblk lists information about all or the specified block devices
  214. endef
  215. define Package/mcookie
  216. $(call Package/util-linux/Default)
  217. TITLE:=generate magic cookies for xauth
  218. endef
  219. define Package/mcookie/description
  220. mcookie generates a 128-bit random hexadecimal number for use with the X
  221. authority system
  222. endef
  223. define Package/mount-utils
  224. $(call Package/util-linux/Default)
  225. TITLE:=related (u)mount utilities
  226. DEPENDS+= +libmount +libsmartcols
  227. endef
  228. define Package/mount-utils/description
  229. contains: mount, umount, findmnt
  230. endef
  231. define Package/namei
  232. $(call Package/util-linux/Default)
  233. TITLE:=follow a pathname until a terminal point is found
  234. endef
  235. define Package/namei/description
  236. namei uses its arguments as pathnames to any type of Unix file (symlinks,
  237. files, directories, and so forth)
  238. endef
  239. define Package/prlimit
  240. $(call Package/util-linux/Default)
  241. TITLE:=get and set process resource limits
  242. DEPENDS:= +libsmartcols
  243. endef
  244. define Package/prlimit/description
  245. Given a process id and one or more resources, prlimit tries to retrieve
  246. and/or modify the limits.
  247. endef
  248. define Package/rename
  249. $(call Package/util-linux/Default)
  250. TITLE:=rename files
  251. endef
  252. define Package/rename/description
  253. rename will rename the specified files by replacing the first occurrence of
  254. expression in their name by replacement
  255. endef
  256. define Package/partx-utils
  257. $(call Package/util-linux/Default)
  258. TITLE:=inform kernel about the presence and numbering of on-disk partitions
  259. DEPENDS:= +libblkid +libsmartcols
  260. SUBMENU=Disc
  261. endef
  262. define Package/partx-utils/description
  263. contains partx, addpart, delpart
  264. endef
  265. define Package/script-utils
  266. $(call Package/util-linux/Default)
  267. TITLE:=make and replay typescript of terminal session
  268. SUBMENU=Terminal
  269. endef
  270. define Package/script-utils/description
  271. contains: script, scriptreplay
  272. endef
  273. define Package/setterm
  274. $(call Package/util-linux/Default)
  275. TITLE:=set terminal attributes
  276. DEPENDS:= +libncurses
  277. SUBMENU:=Terminal
  278. endef
  279. define Package/setterm/description
  280. setterm writes to standard output a character string that will invoke the
  281. specified terminal capabilities
  282. endef
  283. define Package/sfdisk
  284. $(call Package/util-linux/Default)
  285. TITLE:=partition table manipulator for Linux
  286. SUBMENU=Disc
  287. DEPENDS:= +libblkid +libfdisk +libsmartcols
  288. endef
  289. define Package/sfdisk/description
  290. list the size of a partition, list the partitions on a device, check the
  291. partitions on a device and repartition a device
  292. endef
  293. define Package/swap-utils
  294. $(call Package/util-linux/Default)
  295. TITLE:=swap space management utilities
  296. DEPENDS+= +libblkid
  297. SUBMENU:=Filesystem
  298. endef
  299. define Package/swap-utils/description
  300. contains: mkswap, swaplabel
  301. endef
  302. define Package/uuidd
  303. $(call Package/util-linux/Default)
  304. TITLE:=UUID generation daemon
  305. DEPENDS:= +libuuid
  306. endef
  307. define Package/uuidd/description
  308. The uuidd daemon is used by the UUID library to generate universally unique
  309. identifiers (UUIDs), especially time-based UUIDs, in a secure and
  310. guaranteed-unique fashion, even in the face of large numbers of threads
  311. running on different CPUs trying to grab UUIDs.
  312. endef
  313. define Package/uuidgen
  314. $(call Package/util-linux/Default)
  315. TITLE:=create a new UUID value
  316. DEPENDS:= +libuuid
  317. endef
  318. define Package/uuidgen/description
  319. The uuidgen program creates (and prints) a new universally unique identifier
  320. (UUID) using the libuuid library. The new UUID can reasonably be considered
  321. unique among all UUIDs created on the local system, and among UUIDs created on
  322. other systems in the past and in the future.
  323. endef
  324. define Package/wall
  325. $(call Package/util-linux/Default)
  326. TITLE:=send a message to everybody's terminal
  327. SUBMENU=Terminal
  328. endef
  329. define Package/wall/description
  330. wall sends a message to everybody logged in with their mesg permission
  331. set to yes
  332. endef
  333. define Package/whereis
  334. $(call Package/util-linux/Default)
  335. TITLE:=locate the binary, source, and manual page files for a command
  336. endef
  337. define Package/whereis/description
  338. whereis locates source/binary and manuals sections for specified files
  339. endef
  340. define Package/wipefs
  341. $(call Package/util-linux/Default)
  342. TITLE:=wipe a signature from a device
  343. DEPENDS:= +libblkid
  344. SUBMENU:=Disc
  345. endef
  346. define Package/wipefs/description
  347. wipefs can erase filesystem, raid or partition table signatures (magic
  348. strings) from the specified device to make the signature invisible for
  349. libblkid.
  350. endef
  351. CONFIGURE_ARGS += \
  352. --disable-use-tty-group \
  353. --disable-rpath \
  354. --disable-tls \
  355. --disable-sulogin \
  356. --without-python \
  357. --without-udev \
  358. --without-readline \
  359. --disable-more \
  360. --with-ncursesw
  361. TARGET_CFLAGS += $(FPIC) -std=gnu99
  362. define Build/InstallDev
  363. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  364. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
  365. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
  366. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
  367. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
  368. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
  369. $(INSTALL_DIR) $(1)/usr/include/blkid
  370. $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
  371. $(INSTALL_DIR) $(1)/usr/include/libfdisk
  372. $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
  373. $(INSTALL_DIR) $(1)/usr/include/libmount
  374. $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
  375. $(INSTALL_DIR) $(1)/usr/include/uuid
  376. $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
  377. $(INSTALL_DIR) $(1)/usr/include/libsmartcols
  378. $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
  379. $(INSTALL_DIR) $(1)/usr/lib
  380. $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib
  381. $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib
  382. $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib
  383. $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib
  384. $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib
  385. $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
  386. $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
  387. $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
  388. $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
  389. $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
  390. endef
  391. define Package/libfdisk/install
  392. $(INSTALL_DIR) $(1)/usr/lib
  393. $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib/
  394. $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
  395. endef
  396. define Package/libblkid/install
  397. $(INSTALL_DIR) $(1)/usr/lib
  398. $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib/
  399. $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
  400. endef
  401. define Package/libmount/install
  402. $(INSTALL_DIR) $(1)/usr/lib
  403. $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib/
  404. $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
  405. endef
  406. define Package/libsmartcols/install
  407. $(INSTALL_DIR) $(1)/usr/lib
  408. $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib/
  409. $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
  410. endef
  411. define Package/libuuid/install
  412. $(INSTALL_DIR) $(1)/usr/lib
  413. $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib/
  414. $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
  415. endef
  416. define Package/agetty/install
  417. $(INSTALL_DIR) $(1)/usr/sbin
  418. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
  419. endef
  420. define Package/blkdiscard/install
  421. $(INSTALL_DIR) $(1)/usr/sbin
  422. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
  423. endef
  424. define Package/blkid/install
  425. $(INSTALL_DIR) $(1)/usr/sbin
  426. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
  427. endef
  428. define Package/cal/install
  429. $(INSTALL_DIR) $(1)/usr/bin
  430. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
  431. endef
  432. define Package/cfdisk/install
  433. $(INSTALL_DIR) $(1)/usr/sbin
  434. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
  435. endef
  436. define Package/dmesg/install
  437. $(INSTALL_DIR) $(1)/usr/bin
  438. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
  439. endef
  440. define Package/fdisk/install
  441. $(INSTALL_DIR) $(1)/usr/sbin
  442. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
  443. endef
  444. define Package/findfs/install
  445. $(INSTALL_DIR) $(1)/usr/sbin
  446. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
  447. endef
  448. define Package/flock/install
  449. $(INSTALL_DIR) $(1)/usr/bin
  450. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/
  451. endef
  452. define Package/getopt/install
  453. $(INSTALL_DIR) $(1)/usr/bin
  454. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
  455. endef
  456. define Package/hwclock/install
  457. $(INSTALL_DIR) $(1)/usr/sbin
  458. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
  459. endef
  460. define Package/logger/install
  461. $(INSTALL_DIR) $(1)/usr/bin
  462. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/
  463. endef
  464. define Package/look/install
  465. $(INSTALL_DIR) $(1)/usr/bin
  466. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
  467. endef
  468. define Package/losetup/install
  469. $(INSTALL_DIR) $(1)/usr/sbin
  470. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
  471. endef
  472. define Package/lsblk/install
  473. $(INSTALL_DIR) $(1)/usr/bin
  474. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
  475. endef
  476. define Package/mcookie/install
  477. $(INSTALL_DIR) $(1)/usr/bin
  478. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
  479. endef
  480. define Package/mount-utils/install
  481. $(INSTALL_DIR) $(1)/usr/bin
  482. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
  483. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
  484. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
  485. endef
  486. define Package/namei/install
  487. $(INSTALL_DIR) $(1)/usr/bin
  488. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
  489. endef
  490. define Package/prlimit/install
  491. $(INSTALL_DIR) $(1)/usr/bin
  492. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
  493. endef
  494. define Package/rename/install
  495. $(INSTALL_DIR) $(1)/usr/bin
  496. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
  497. endef
  498. define Package/partx-utils/install
  499. $(INSTALL_DIR) $(1)/usr/sbin
  500. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
  501. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
  502. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
  503. endef
  504. define Package/script-utils/install
  505. $(INSTALL_DIR) $(1)/usr/bin
  506. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
  507. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
  508. endef
  509. define Package/setterm/install
  510. $(INSTALL_DIR) $(1)/usr/bin
  511. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
  512. endef
  513. define Package/sfdisk/install
  514. $(INSTALL_DIR) $(1)/usr/sbin
  515. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
  516. endef
  517. define Package/swap-utils/install
  518. $(INSTALL_DIR) $(1)/usr/sbin
  519. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
  520. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
  521. endef
  522. define Package/uuidd/install
  523. $(INSTALL_DIR) $(1)/usr/sbin
  524. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
  525. endef
  526. define Package/uuidgen/install
  527. $(INSTALL_DIR) $(1)/usr/bin
  528. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
  529. endef
  530. define Package/wall/install
  531. $(INSTALL_DIR) $(1)/usr/bin
  532. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
  533. endef
  534. define Package/whereis/install
  535. $(INSTALL_DIR) $(1)/usr/bin
  536. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
  537. endef
  538. define Package/wipefs/install
  539. $(INSTALL_DIR) $(1)/usr/sbin
  540. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
  541. endef
  542. $(eval $(call BuildPackage,libblkid))
  543. $(eval $(call BuildPackage,libfdisk))
  544. $(eval $(call BuildPackage,libmount))
  545. $(eval $(call BuildPackage,libsmartcols))
  546. $(eval $(call BuildPackage,libuuid))
  547. $(eval $(call BuildPackage,agetty))
  548. $(eval $(call BuildPackage,blkdiscard))
  549. $(eval $(call BuildPackage,blkid))
  550. $(eval $(call BuildPackage,cal))
  551. $(eval $(call BuildPackage,cfdisk))
  552. $(eval $(call BuildPackage,dmesg))
  553. $(eval $(call BuildPackage,fdisk))
  554. $(eval $(call BuildPackage,findfs))
  555. $(eval $(call BuildPackage,flock))
  556. $(eval $(call BuildPackage,getopt))
  557. $(eval $(call BuildPackage,hwclock))
  558. $(eval $(call BuildPackage,logger))
  559. $(eval $(call BuildPackage,look))
  560. $(eval $(call BuildPackage,losetup))
  561. $(eval $(call BuildPackage,lsblk))
  562. $(eval $(call BuildPackage,mcookie))
  563. $(eval $(call BuildPackage,mount-utils))
  564. $(eval $(call BuildPackage,namei))
  565. $(eval $(call BuildPackage,prlimit))
  566. $(eval $(call BuildPackage,rename))
  567. $(eval $(call BuildPackage,partx-utils))
  568. $(eval $(call BuildPackage,script-utils))
  569. $(eval $(call BuildPackage,setterm))
  570. $(eval $(call BuildPackage,sfdisk))
  571. $(eval $(call BuildPackage,swap-utils))
  572. $(eval $(call BuildPackage,uuidd))
  573. $(eval $(call BuildPackage,uuidgen))
  574. $(eval $(call BuildPackage,wall))
  575. $(eval $(call BuildPackage,whereis))
  576. $(eval $(call BuildPackage,wipefs))