2
0

Makefile 19 KB

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