Makefile 18 KB

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