Makefile 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869
  1. #
  2. # Copyright (C) 2007-2018 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.37
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.37
  13. PKG_HASH:=bd07b7e98839e0359842110525a3032fdb8eaf3a90bedde3dd1652d32d15cce5
  14. PKG_CPE_ID:=cpe:/a:kernel:util-linux
  15. PKG_LICENSE:=GPL-2.0-only
  16. PKG_LICENSE_FILES:= 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. DISABLE_NLS:=--disable-nls
  27. include $(INCLUDE_DIR)/package.mk
  28. define Package/util-linux/Default
  29. SECTION:=utils
  30. CATEGORY:=Utilities
  31. DEPENDS:= +librt
  32. URL:=http://www.kernel.org/pub/linux/utils/util-linux/
  33. endef
  34. define Package/libblkid
  35. $(call Package/util-linux/Default)
  36. DEPENDS:=+libuuid
  37. TITLE:=block device id library
  38. SECTION:=libs
  39. CATEGORY:=Libraries
  40. ABI_VERSION:=1
  41. endef
  42. define Package/libblkid/description
  43. The libblkid library is used to identify block devices (disks) as to their
  44. content (e.g. filesystem type, partitions) as well as extracting additional
  45. information such as filesystem labels/volume names, partitions, unique
  46. identifiers/serial numbers...
  47. endef
  48. define Package/libfdisk
  49. $(call Package/util-linux/Default)
  50. DEPENDS:=+libuuid +libblkid
  51. TITLE:=partition manipulating library
  52. SECTION:=libs
  53. CATEGORY:=Libraries
  54. ABI_VERSION:=1
  55. endef
  56. define Package/libfdisk/description
  57. The libfdisk library is used for manipulating with partition tables.
  58. endef
  59. define Package/libmount
  60. $(call Package/util-linux/Default)
  61. DEPENDS:=+libblkid
  62. TITLE:=mount library
  63. SECTION:=libs
  64. CATEGORY:=Libraries
  65. ABI_VERSION:=1
  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. ABI_VERSION:=1
  77. endef
  78. define Package/libuuid/description
  79. The UUID library is used to generate unique identifiers for objects
  80. that may be accessible beyond the local system. This library
  81. generates UUIDs compatible with those created by the Open Software
  82. Foundation (OSF) Distributed Computing Environment (DCE) utility.
  83. endef
  84. define Package/libsmartcols
  85. $(call Package/util-linux/Default)
  86. TITLE:=table or tree library
  87. SECTION:=libs
  88. CATEGORY:=Libraries
  89. ABI_VERSION:=1
  90. endef
  91. define Package/libsmartcols/description
  92. The smartcols library is used to print tables and trees in a pretty way.
  93. endef
  94. define Package/agetty
  95. $(call Package/util-linux/Default)
  96. TITLE:=alternative Linux getty
  97. SUBMENU=Terminal
  98. endef
  99. define Package/agetty/description
  100. agetty opens a tty port, prompts for a login name and invokes the
  101. /bin/login command
  102. endef
  103. define Package/blkdiscard
  104. $(call Package/util-linux/Default)
  105. TITLE:=discard sectors on a device
  106. SUBMENU=Disc
  107. DEPENDS:=libblkid
  108. endef
  109. define Package/blkdiscard/description
  110. The blkdiscard is used to discard device sectors. This is useful for
  111. solid-state drivers (SSDs) and thinly-provisioned storage. Unlike fstrim,
  112. this command is used directly on the block device.
  113. endef
  114. define Package/blkid
  115. $(call Package/util-linux/Default)
  116. TITLE:=locate and print block device attributes
  117. DEPENDS:= +libblkid +libuuid
  118. SUBMENU=Disc
  119. endef
  120. define Package/blkid/description
  121. The blkid program is the command-line interface to working with the libblkid
  122. library.
  123. endef
  124. define Package/blockdev
  125. $(call Package/util-linux/Default)
  126. TITLE:=call block device ioctls from the command line
  127. SUBMENU=Disc
  128. endef
  129. define Package/blockdev/description
  130. The blockdev program is the command-line interface to call block device ioctls.
  131. endef
  132. define Package/cal
  133. $(call Package/util-linux/Default)
  134. TITLE:=display a calendar
  135. DEPENDS:= +libncurses
  136. endef
  137. define Package/cal/description
  138. cal displays a simple calendar
  139. endef
  140. define Package/cfdisk
  141. $(call Package/util-linux/Default)
  142. TITLE:=display or manipulate disk partition table
  143. DEPENDS:= +libblkid +libncurses +libsmartcols +libfdisk +libmount
  144. SUBMENU:=Disc
  145. endef
  146. define Package/cfdisk/description
  147. cfdisk is a curses-based program for partitioning any hard disk drive
  148. endef
  149. define Package/dmesg
  150. $(call Package/util-linux/Default)
  151. TITLE:=print or control the kernel ring buffer
  152. DEPENDS:= +libncursesw
  153. endef
  154. define Package/dmesg/description
  155. dmesg is used to examine or control the kernel ring buffer
  156. endef
  157. define Package/eject
  158. $(call Package/util-linux/Default)
  159. TITLE:=eject removable media
  160. DEPENDS:= +libblkid +libmount +libuuid
  161. SUBMENU=Disc
  162. endef
  163. define Package/eject/description
  164. eject allows removable media (typically a CD-ROM, floppy disk, tape, or JAZ
  165. or ZIP disk) to be ejected under software control.
  166. endef
  167. define Package/fdisk
  168. $(call Package/util-linux/Default)
  169. TITLE:=manipulate disk partition table
  170. DEPENDS:= +libblkid +libsmartcols +libfdisk +libncursesw
  171. SUBMENU=Disc
  172. endef
  173. define Package/fdisk/description
  174. a menu-driven program for creation and manipulation of partition tables
  175. endef
  176. define Package/findfs
  177. $(call Package/util-linux/Default)
  178. TITLE:=find a filesystem by label or UUID
  179. DEPENDS:= +libblkid
  180. SUBMENU=Disc
  181. endef
  182. define Package/findfs/description
  183. findfs will search the disks in the system looking for a filesystem which has
  184. a label matching label or a UUID equal to uuid
  185. endef
  186. define Package/flock
  187. $(call Package/util-linux/Default)
  188. TITLE:=manage locks from shell scripts
  189. ALTERNATIVES:=200:/usr/bin/flock:/usr/bin/util-linux-flock
  190. endef
  191. define Package/flock/description
  192. manages flock locks from within shell scripts or the command line
  193. endef
  194. define Package/fstrim
  195. $(call Package/util-linux/Default)
  196. TITLE:=discard unused blocks on a mounted filesystem
  197. DEPENDS:= +libblkid +libuuid +libsmartcols +libmount
  198. SUBMENU=Filesystem
  199. endef
  200. define Package/fstrim/description
  201. fstrim is used on a mounted filesystem to discard (or "trim") blocks
  202. which are not in use by the filesystem. This is useful for solid-
  203. state drives (SSDs) and thinly-provisioned storage.
  204. endef
  205. define Package/getopt
  206. $(call Package/util-linux/Default)
  207. TITLE:=parse command options (enhanced)
  208. endef
  209. define Package/getopt/description
  210. getopt is used to break up (parse) options in command lines for easy parsing
  211. by shell procedures, and to check for legal options
  212. endef
  213. define Package/hwclock
  214. $(call Package/util-linux/Default)
  215. TITLE:=query or set the hardware clock
  216. endef
  217. define Package/hwclock/description
  218. hwclock is a tool for accessing the Hardware Clock
  219. endef
  220. define Package/logger
  221. $(call Package/util-linux/Default)
  222. TITLE:=a shell command interface to the syslog system log module
  223. ALTERNATIVES:=200:/usr/bin/logger:/usr/bin/util-linux-logger
  224. endef
  225. define Package/logger/description
  226. logger makes entries in the system log, it provides a shell command interface
  227. to the syslog system log module
  228. endef
  229. define Package/look
  230. $(call Package/util-linux/Default)
  231. TITLE:=display lines beginning with a given string
  232. endef
  233. define Package/look/description
  234. look utility displays any lines in file which contain string
  235. endef
  236. define Package/losetup
  237. $(call Package/util-linux/Default)
  238. TITLE:=set up and control loop devices
  239. DEPENDS:= +libsmartcols
  240. endef
  241. define Package/losetup/description
  242. losetup is used to associate loop devices with regular files or block devices,
  243. to detach loop devices and to query the status of a loop device
  244. endef
  245. define Package/lsblk
  246. $(call Package/util-linux/Default)
  247. TITLE:=list block devices
  248. DEPENDS:= +libblkid +libmount +libsmartcols
  249. SUBMENU=Disc
  250. endef
  251. define Package/lsblk/description
  252. lsblk lists information about all or the specified block devices
  253. endef
  254. define Package/lscpu
  255. $(call Package/util-linux/Default)
  256. TITLE:=display information about the CPU architecture
  257. DEPENDS:= +libsmartcols
  258. endef
  259. define Package/lscpu/description
  260. lscpu displays information about the CPU architecture
  261. endef
  262. define Package/lslocks
  263. $(call Package/util-linux/Default)
  264. TITLE:=list local system locks
  265. DEPENDS:= +libmount +libsmartcols
  266. endef
  267. define Package/lslocks/description
  268. lslocks lists information about all the currently held file locks in a Linux system
  269. endef
  270. define Package/more
  271. $(call Package/util-linux/Default)
  272. TITLE:=filter for paging through text one screenful at a time
  273. DEPENDS:= +libncurses
  274. endef
  275. define Package/more/description
  276. more is a filter for paging through text one screenful at a time
  277. endef
  278. define Package/mcookie
  279. $(call Package/util-linux/Default)
  280. TITLE:=generate magic cookies for xauth
  281. endef
  282. define Package/mcookie/description
  283. mcookie generates a 128-bit random hexadecimal number for use with the X
  284. authority system
  285. endef
  286. define Package/mount-utils
  287. $(call Package/util-linux/Default)
  288. TITLE:=related (u)mount utilities
  289. DEPENDS+= +libmount +libsmartcols
  290. endef
  291. define Package/mount-utils/description
  292. contains: mount, umount, findmnt
  293. endef
  294. define Package/namei
  295. $(call Package/util-linux/Default)
  296. TITLE:=follow a pathname until a terminal point is found
  297. endef
  298. define Package/namei/description
  299. namei uses its arguments as pathnames to any type of Unix file (symlinks,
  300. files, directories, and so forth)
  301. endef
  302. define Package/nsenter
  303. $(call Package/util-linux/Default)
  304. TITLE:=enter a namespace
  305. endef
  306. define Package/nsenter/description
  307. run program with namespaces of other processes
  308. endef
  309. define Package/prlimit
  310. $(call Package/util-linux/Default)
  311. TITLE:=get and set process resource limits
  312. DEPENDS:= +libsmartcols
  313. endef
  314. define Package/prlimit/description
  315. Given a process id and one or more resources, prlimit tries to retrieve
  316. and/or modify the limits.
  317. endef
  318. define Package/rename
  319. $(call Package/util-linux/Default)
  320. TITLE:=rename files
  321. endef
  322. define Package/rename/description
  323. rename will rename the specified files by replacing the first occurrence of
  324. expression in their name by replacement
  325. endef
  326. define Package/partx-utils
  327. $(call Package/util-linux/Default)
  328. TITLE:=inform kernel about the presence and numbering of on-disk partitions
  329. DEPENDS:= +libblkid +libsmartcols
  330. SUBMENU=Disc
  331. endef
  332. define Package/partx-utils/description
  333. contains partx, addpart, delpart
  334. endef
  335. define Package/script-utils
  336. $(call Package/util-linux/Default)
  337. TITLE:=make and replay typescript of terminal session
  338. SUBMENU=Terminal
  339. endef
  340. define Package/script-utils/description
  341. contains: script, scriptreplay
  342. endef
  343. define Package/setterm
  344. $(call Package/util-linux/Default)
  345. TITLE:=set terminal attributes
  346. DEPENDS:= +libncurses
  347. SUBMENU:=Terminal
  348. endef
  349. define Package/setterm/description
  350. setterm writes to standard output a character string that will invoke the
  351. specified terminal capabilities
  352. endef
  353. define Package/sfdisk
  354. $(call Package/util-linux/Default)
  355. TITLE:=partition table manipulator for Linux
  356. SUBMENU=Disc
  357. DEPENDS:= +libblkid +libfdisk +libsmartcols +libncursesw
  358. endef
  359. define Package/sfdisk/description
  360. list the size of a partition, list the partitions on a device, check the
  361. partitions on a device and repartition a device
  362. endef
  363. define Package/swap-utils
  364. $(call Package/util-linux/Default)
  365. TITLE:=swap space management utilities
  366. DEPENDS+= +libblkid
  367. SUBMENU:=Filesystem
  368. endef
  369. define Package/swap-utils/description
  370. contains: mkswap, swaplabel
  371. endef
  372. define Package/taskset
  373. $(call Package/util-linux/Default)
  374. TITLE:=set or retrieve a process's CPU affinity
  375. endef
  376. define Package/taskset/description
  377. contains: taskset
  378. endef
  379. define Package/unshare
  380. $(call Package/util-linux/Default)
  381. TITLE:=unshare userspace tool
  382. endef
  383. define Package/unshare/description
  384. run programs with some namespaces unshared from parent
  385. endef
  386. define Package/uuidd
  387. $(call Package/util-linux/Default)
  388. TITLE:=UUID generation daemon
  389. DEPENDS:= +libuuid
  390. endef
  391. define Package/uuidd/description
  392. The uuidd daemon is used by the UUID library to generate universally unique
  393. identifiers (UUIDs), especially time-based UUIDs, in a secure and
  394. guaranteed-unique fashion, even in the face of large numbers of threads
  395. running on different CPUs trying to grab UUIDs.
  396. endef
  397. define Package/uuidgen
  398. $(call Package/util-linux/Default)
  399. TITLE:=create a new UUID value
  400. DEPENDS:= +libuuid
  401. endef
  402. define Package/uuidgen/description
  403. The uuidgen program creates (and prints) a new universally unique identifier
  404. (UUID) using the libuuid library. The new UUID can reasonably be considered
  405. unique among all UUIDs created on the local system, and among UUIDs created on
  406. other systems in the past and in the future.
  407. endef
  408. define Package/wall
  409. $(call Package/util-linux/Default)
  410. TITLE:=send a message to everybody's terminal
  411. SUBMENU=Terminal
  412. endef
  413. define Package/wall/description
  414. wall sends a message to everybody logged in with their mesg permission
  415. set to yes
  416. endef
  417. define Package/whereis
  418. $(call Package/util-linux/Default)
  419. TITLE:=locate the binary, source, and manual page files for a command
  420. endef
  421. define Package/whereis/description
  422. whereis locates source/binary and manuals sections for specified files
  423. endef
  424. define Package/wipefs
  425. $(call Package/util-linux/Default)
  426. TITLE:=wipe a signature from a device
  427. DEPENDS:= +libblkid +libsmartcols
  428. SUBMENU:=Disc
  429. endef
  430. define Package/wipefs/description
  431. wipefs can erase filesystem, raid or partition table signatures (magic
  432. strings) from the specified device to make the signature invisible for
  433. libblkid.
  434. endef
  435. CONFIGURE_ARGS += \
  436. --disable-use-tty-group \
  437. --disable-rpath \
  438. --disable-tls \
  439. --disable-su \
  440. --disable-sulogin \
  441. --disable-makeinstall-chown \
  442. --disable-login \
  443. --disable-nologin \
  444. --disable-lslogins \
  445. --disable-runuser \
  446. --disable-chfn-chsh \
  447. --disable-raw \
  448. --without-python \
  449. --without-udev \
  450. --without-readline \
  451. --without-libmagic \
  452. --with-ncursesw
  453. TARGET_CFLAGS += $(FPIC) -std=gnu99
  454. define Build/InstallDev
  455. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  456. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
  457. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/blkid.pc
  458. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/blkid.pc
  459. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
  460. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/fdisk.pc
  461. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/fdisk.pc
  462. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
  463. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/mount.pc
  464. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/mount.pc
  465. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
  466. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/smartcols.pc
  467. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/smartcols.pc
  468. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
  469. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/uuid.pc
  470. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/uuid.pc
  471. $(INSTALL_DIR) $(1)/usr/include/blkid
  472. $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
  473. $(INSTALL_DIR) $(1)/usr/include/libfdisk
  474. $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
  475. $(INSTALL_DIR) $(1)/usr/include/libmount
  476. $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
  477. $(INSTALL_DIR) $(1)/usr/include/uuid
  478. $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
  479. $(INSTALL_DIR) $(1)/usr/include/libsmartcols
  480. $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
  481. $(INSTALL_DIR) $(1)/usr/lib
  482. $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib
  483. $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib
  484. $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib
  485. $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib
  486. $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib
  487. $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
  488. $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
  489. $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
  490. $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
  491. $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
  492. endef
  493. define Package/libfdisk/install
  494. $(INSTALL_DIR) $(1)/usr/lib
  495. $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so.* $(1)/usr/lib/
  496. endef
  497. define Package/libblkid/install
  498. $(INSTALL_DIR) $(1)/usr/lib
  499. $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so.* $(1)/usr/lib/
  500. endef
  501. define Package/libmount/install
  502. $(INSTALL_DIR) $(1)/usr/lib
  503. $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so.* $(1)/usr/lib/
  504. endef
  505. define Package/libsmartcols/install
  506. $(INSTALL_DIR) $(1)/usr/lib
  507. $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so.* $(1)/usr/lib/
  508. endef
  509. define Package/libuuid/install
  510. $(INSTALL_DIR) $(1)/usr/lib
  511. $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so.* $(1)/usr/lib/
  512. endef
  513. define Package/agetty/install
  514. $(INSTALL_DIR) $(1)/usr/sbin
  515. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
  516. endef
  517. define Package/blkdiscard/install
  518. $(INSTALL_DIR) $(1)/usr/sbin
  519. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
  520. endef
  521. define Package/blkid/install
  522. $(INSTALL_DIR) $(1)/usr/sbin
  523. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
  524. endef
  525. define Package/blockdev/install
  526. $(INSTALL_DIR) $(1)/usr/sbin
  527. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
  528. endef
  529. define Package/cal/install
  530. $(INSTALL_DIR) $(1)/usr/bin
  531. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
  532. endef
  533. define Package/cfdisk/install
  534. $(INSTALL_DIR) $(1)/usr/sbin
  535. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
  536. endef
  537. define Package/dmesg/install
  538. $(INSTALL_DIR) $(1)/usr/bin
  539. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
  540. endef
  541. define Package/eject/install
  542. $(INSTALL_DIR) $(1)/usr/bin
  543. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
  544. endef
  545. define Package/fdisk/install
  546. $(INSTALL_DIR) $(1)/usr/sbin
  547. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
  548. endef
  549. define Package/findfs/install
  550. $(INSTALL_DIR) $(1)/usr/sbin
  551. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
  552. endef
  553. define Package/flock/install
  554. $(INSTALL_DIR) $(1)/usr/bin
  555. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
  556. endef
  557. define Package/fstrim/install
  558. $(INSTALL_DIR) $(1)/usr/sbin
  559. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
  560. endef
  561. define Package/getopt/install
  562. $(INSTALL_DIR) $(1)/usr/bin
  563. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
  564. endef
  565. define Package/hwclock/install
  566. $(INSTALL_DIR) $(1)/usr/sbin
  567. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
  568. endef
  569. define Package/logger/install
  570. $(INSTALL_DIR) $(1)/usr/bin
  571. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/util-linux-logger
  572. endef
  573. define Package/look/install
  574. $(INSTALL_DIR) $(1)/usr/bin
  575. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
  576. endef
  577. define Package/losetup/install
  578. $(INSTALL_DIR) $(1)/usr/sbin
  579. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
  580. endef
  581. define Package/lsblk/install
  582. $(INSTALL_DIR) $(1)/usr/bin
  583. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
  584. endef
  585. define Package/lscpu/install
  586. $(INSTALL_DIR) $(1)/usr/bin
  587. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
  588. endef
  589. define Package/lslocks/install
  590. $(INSTALL_DIR) $(1)/usr/bin
  591. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lslocks $(1)/usr/bin/
  592. endef
  593. define Package/more/install
  594. $(INSTALL_DIR) $(1)/usr/bin
  595. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
  596. endef
  597. define Package/mcookie/install
  598. $(INSTALL_DIR) $(1)/usr/bin
  599. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
  600. endef
  601. define Package/mount-utils/install
  602. $(INSTALL_DIR) $(1)/usr/bin
  603. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
  604. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
  605. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
  606. endef
  607. define Package/namei/install
  608. $(INSTALL_DIR) $(1)/usr/bin
  609. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
  610. endef
  611. define Package/nsenter/install
  612. $(INSTALL_DIR) $(1)/usr/bin
  613. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
  614. endef
  615. define Package/prlimit/install
  616. $(INSTALL_DIR) $(1)/usr/bin
  617. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
  618. endef
  619. define Package/rename/install
  620. $(INSTALL_DIR) $(1)/usr/bin
  621. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
  622. endef
  623. define Package/partx-utils/install
  624. $(INSTALL_DIR) $(1)/usr/sbin
  625. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
  626. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
  627. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
  628. endef
  629. define Package/script-utils/install
  630. $(INSTALL_DIR) $(1)/usr/bin
  631. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
  632. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
  633. endef
  634. define Package/setterm/install
  635. $(INSTALL_DIR) $(1)/usr/bin
  636. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
  637. endef
  638. define Package/sfdisk/install
  639. $(INSTALL_DIR) $(1)/usr/sbin
  640. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
  641. endef
  642. define Package/swap-utils/install
  643. $(INSTALL_DIR) $(1)/usr/sbin
  644. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
  645. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
  646. endef
  647. define Package/taskset/install
  648. $(INSTALL_DIR) $(1)/usr/bin
  649. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taskset $(1)/usr/bin/
  650. endef
  651. define Package/unshare/install
  652. $(INSTALL_DIR) $(1)/usr/bin
  653. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
  654. endef
  655. define Package/uuidd/install
  656. $(INSTALL_DIR) $(1)/usr/sbin
  657. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
  658. endef
  659. define Package/uuidgen/install
  660. $(INSTALL_DIR) $(1)/usr/bin
  661. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
  662. endef
  663. define Package/wall/install
  664. $(INSTALL_DIR) $(1)/usr/bin
  665. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
  666. endef
  667. define Package/whereis/install
  668. $(INSTALL_DIR) $(1)/usr/bin
  669. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
  670. endef
  671. define Package/wipefs/install
  672. $(INSTALL_DIR) $(1)/usr/sbin
  673. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
  674. endef
  675. # these lines need to be ordered by dependency because of ABI versioning
  676. $(eval $(call BuildPackage,libuuid))
  677. $(eval $(call BuildPackage,libblkid))
  678. $(eval $(call BuildPackage,libfdisk))
  679. $(eval $(call BuildPackage,libmount))
  680. $(eval $(call BuildPackage,libsmartcols))
  681. $(eval $(call BuildPackage,agetty))
  682. $(eval $(call BuildPackage,blkdiscard))
  683. $(eval $(call BuildPackage,blkid))
  684. $(eval $(call BuildPackage,blockdev))
  685. $(eval $(call BuildPackage,cal))
  686. $(eval $(call BuildPackage,cfdisk))
  687. $(eval $(call BuildPackage,dmesg))
  688. $(eval $(call BuildPackage,eject))
  689. $(eval $(call BuildPackage,fdisk))
  690. $(eval $(call BuildPackage,findfs))
  691. $(eval $(call BuildPackage,flock))
  692. $(eval $(call BuildPackage,fstrim))
  693. $(eval $(call BuildPackage,getopt))
  694. $(eval $(call BuildPackage,hwclock))
  695. $(eval $(call BuildPackage,logger))
  696. $(eval $(call BuildPackage,look))
  697. $(eval $(call BuildPackage,losetup))
  698. $(eval $(call BuildPackage,lsblk))
  699. $(eval $(call BuildPackage,lscpu))
  700. $(eval $(call BuildPackage,lslocks))
  701. $(eval $(call BuildPackage,more))
  702. $(eval $(call BuildPackage,mcookie))
  703. $(eval $(call BuildPackage,mount-utils))
  704. $(eval $(call BuildPackage,namei))
  705. $(eval $(call BuildPackage,nsenter))
  706. $(eval $(call BuildPackage,prlimit))
  707. $(eval $(call BuildPackage,rename))
  708. $(eval $(call BuildPackage,partx-utils))
  709. $(eval $(call BuildPackage,script-utils))
  710. $(eval $(call BuildPackage,setterm))
  711. $(eval $(call BuildPackage,sfdisk))
  712. $(eval $(call BuildPackage,swap-utils))
  713. $(eval $(call BuildPackage,taskset))
  714. $(eval $(call BuildPackage,unshare))
  715. $(eval $(call BuildPackage,uuidd))
  716. $(eval $(call BuildPackage,uuidgen))
  717. $(eval $(call BuildPackage,wall))
  718. $(eval $(call BuildPackage,whereis))
  719. $(eval $(call BuildPackage,wipefs))