Makefile 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903
  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.3
  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:=590c592e58cd6bf38519cb467af05ce6a1ab18040e3e3418f24bcfb2f55f9776
  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/ipcs
  221. $(call Package/util-linux/Default)
  222. TITLE:=show information on IPC facilities
  223. endef
  224. define Package/ipcs/description
  225. ipcs shows information on the inter-process communication facilities for
  226. which the calling process has read access. By default it shows information
  227. about all three resources: shared memory segments, message queues, and
  228. semaphore arrays.
  229. endef
  230. define Package/logger
  231. $(call Package/util-linux/Default)
  232. TITLE:=a shell command interface to the syslog system log module
  233. ALTERNATIVES:=200:/usr/bin/logger:/usr/bin/util-linux-logger
  234. endef
  235. define Package/logger/description
  236. logger makes entries in the system log, it provides a shell command interface
  237. to the syslog system log module
  238. endef
  239. define Package/look
  240. $(call Package/util-linux/Default)
  241. TITLE:=display lines beginning with a given string
  242. endef
  243. define Package/look/description
  244. look utility displays any lines in file which contain string
  245. endef
  246. define Package/losetup
  247. $(call Package/util-linux/Default)
  248. TITLE:=set up and control loop devices
  249. DEPENDS:= +libsmartcols
  250. endef
  251. define Package/losetup/description
  252. losetup is used to associate loop devices with regular files or block devices,
  253. to detach loop devices and to query the status of a loop device
  254. endef
  255. define Package/lsblk
  256. $(call Package/util-linux/Default)
  257. TITLE:=list block devices
  258. DEPENDS:= +libblkid +libmount +libsmartcols
  259. SUBMENU=Disc
  260. endef
  261. define Package/lsblk/description
  262. lsblk lists information about all or the specified block devices
  263. endef
  264. define Package/lscpu
  265. $(call Package/util-linux/Default)
  266. TITLE:=display information about the CPU architecture
  267. DEPENDS:= +libsmartcols
  268. endef
  269. define Package/lscpu/description
  270. lscpu displays information about the CPU architecture
  271. endef
  272. define Package/lslocks
  273. $(call Package/util-linux/Default)
  274. TITLE:=list local system locks
  275. DEPENDS:= +libmount +libsmartcols
  276. endef
  277. define Package/lslocks/description
  278. lslocks lists information about all the currently held file locks in a Linux system
  279. endef
  280. define Package/lsns
  281. $(call Package/util-linux/Default)
  282. TITLE:=list system namespaces
  283. DEPENDS:= +libblkid +libmount +libsmartcols
  284. endef
  285. define Package/lsns/description
  286. lsns lists information about all namespaces and their processes
  287. endef
  288. define Package/more
  289. $(call Package/util-linux/Default)
  290. TITLE:=filter for paging through text one screenful at a time
  291. DEPENDS:= +libncurses
  292. endef
  293. define Package/more/description
  294. more is a filter for paging through text one screenful at a time
  295. endef
  296. define Package/mcookie
  297. $(call Package/util-linux/Default)
  298. TITLE:=generate magic cookies for xauth
  299. endef
  300. define Package/mcookie/description
  301. mcookie generates a 128-bit random hexadecimal number for use with the X
  302. authority system
  303. endef
  304. define Package/mount-utils
  305. $(call Package/util-linux/Default)
  306. TITLE:=related (u)mount utilities
  307. DEPENDS+= +libmount +libsmartcols
  308. endef
  309. define Package/mount-utils/description
  310. contains: mount, umount, findmnt
  311. endef
  312. define Package/namei
  313. $(call Package/util-linux/Default)
  314. TITLE:=follow a pathname until a terminal point is found
  315. endef
  316. define Package/namei/description
  317. namei uses its arguments as pathnames to any type of Unix file (symlinks,
  318. files, directories, and so forth)
  319. endef
  320. define Package/nsenter
  321. $(call Package/util-linux/Default)
  322. TITLE:=enter a namespace
  323. endef
  324. define Package/nsenter/description
  325. run program with namespaces of other processes
  326. endef
  327. define Package/prlimit
  328. $(call Package/util-linux/Default)
  329. TITLE:=get and set process resource limits
  330. DEPENDS:= +libsmartcols
  331. endef
  332. define Package/prlimit/description
  333. Given a process id and one or more resources, prlimit tries to retrieve
  334. and/or modify the limits.
  335. endef
  336. define Package/rename
  337. $(call Package/util-linux/Default)
  338. TITLE:=rename files
  339. endef
  340. define Package/rename/description
  341. rename will rename the specified files by replacing the first occurrence of
  342. expression in their name by replacement
  343. endef
  344. define Package/partx-utils
  345. $(call Package/util-linux/Default)
  346. TITLE:=inform kernel about the presence and numbering of on-disk partitions
  347. DEPENDS:= +libblkid +libsmartcols
  348. SUBMENU=Disc
  349. endef
  350. define Package/partx-utils/description
  351. contains partx, addpart, delpart
  352. endef
  353. define Package/script-utils
  354. $(call Package/util-linux/Default)
  355. TITLE:=make and replay typescript of terminal session
  356. SUBMENU=Terminal
  357. endef
  358. define Package/script-utils/description
  359. contains: script, scriptreplay
  360. endef
  361. define Package/setterm
  362. $(call Package/util-linux/Default)
  363. TITLE:=set terminal attributes
  364. DEPENDS:= +libncurses
  365. SUBMENU:=Terminal
  366. endef
  367. define Package/setterm/description
  368. setterm writes to standard output a character string that will invoke the
  369. specified terminal capabilities
  370. endef
  371. define Package/sfdisk
  372. $(call Package/util-linux/Default)
  373. TITLE:=partition table manipulator for Linux
  374. SUBMENU=Disc
  375. DEPENDS:= +libblkid +libfdisk +libsmartcols +libncursesw
  376. endef
  377. define Package/sfdisk/description
  378. list the size of a partition, list the partitions on a device, check the
  379. partitions on a device and repartition a device
  380. endef
  381. define Package/swap-utils
  382. $(call Package/util-linux/Default)
  383. TITLE:=swap space management utilities
  384. DEPENDS+= +libblkid
  385. SUBMENU:=Filesystem
  386. endef
  387. define Package/swap-utils/description
  388. contains: mkswap, swaplabel
  389. endef
  390. define Package/taskset
  391. $(call Package/util-linux/Default)
  392. TITLE:=set or retrieve a process's CPU affinity
  393. endef
  394. define Package/taskset/description
  395. contains: taskset
  396. endef
  397. define Package/unshare
  398. $(call Package/util-linux/Default)
  399. TITLE:=unshare userspace tool
  400. endef
  401. define Package/unshare/description
  402. run programs with some namespaces unshared from parent
  403. endef
  404. define Package/uuidd
  405. $(call Package/util-linux/Default)
  406. TITLE:=UUID generation daemon
  407. DEPENDS:= +libuuid
  408. endef
  409. define Package/uuidd/description
  410. The uuidd daemon is used by the UUID library to generate universally unique
  411. identifiers (UUIDs), especially time-based UUIDs, in a secure and
  412. guaranteed-unique fashion, even in the face of large numbers of threads
  413. running on different CPUs trying to grab UUIDs.
  414. endef
  415. define Package/uuidgen
  416. $(call Package/util-linux/Default)
  417. TITLE:=create a new UUID value
  418. DEPENDS:= +libuuid
  419. endef
  420. define Package/uuidgen/description
  421. The uuidgen program creates (and prints) a new universally unique identifier
  422. (UUID) using the libuuid library. The new UUID can reasonably be considered
  423. unique among all UUIDs created on the local system, and among UUIDs created on
  424. other systems in the past and in the future.
  425. endef
  426. define Package/wall
  427. $(call Package/util-linux/Default)
  428. TITLE:=send a message to everybody's terminal
  429. SUBMENU=Terminal
  430. endef
  431. define Package/wall/description
  432. wall sends a message to everybody logged in with their mesg permission
  433. set to yes
  434. endef
  435. define Package/whereis
  436. $(call Package/util-linux/Default)
  437. TITLE:=locate the binary, source, and manual page files for a command
  438. endef
  439. define Package/whereis/description
  440. whereis locates source/binary and manuals sections for specified files
  441. endef
  442. define Package/wipefs
  443. $(call Package/util-linux/Default)
  444. TITLE:=wipe a signature from a device
  445. DEPENDS:= +libblkid +libsmartcols
  446. SUBMENU:=Disc
  447. endef
  448. define Package/wipefs/description
  449. wipefs can erase filesystem, raid or partition table signatures (magic
  450. strings) from the specified device to make the signature invisible for
  451. libblkid.
  452. endef
  453. CONFIGURE_ARGS += \
  454. --disable-use-tty-group \
  455. --disable-rpath \
  456. --disable-tls \
  457. --disable-su \
  458. --disable-sulogin \
  459. --disable-makeinstall-chown \
  460. --disable-login \
  461. --disable-nologin \
  462. --disable-lslogins \
  463. --disable-runuser \
  464. --disable-chfn-chsh \
  465. --disable-raw \
  466. --without-python \
  467. --without-udev \
  468. --without-readline \
  469. --without-libmagic \
  470. --with-ncursesw
  471. TARGET_CFLAGS += $(FPIC) -std=gnu99
  472. define Build/InstallDev
  473. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  474. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/blkid.pc $(1)/usr/lib/pkgconfig
  475. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/blkid.pc
  476. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/blkid.pc
  477. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdisk.pc $(1)/usr/lib/pkgconfig
  478. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/fdisk.pc
  479. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/fdisk.pc
  480. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/mount.pc $(1)/usr/lib/pkgconfig
  481. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/mount.pc
  482. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/mount.pc
  483. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/smartcols.pc $(1)/usr/lib/pkgconfig
  484. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/smartcols.pc
  485. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/smartcols.pc
  486. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/uuid.pc $(1)/usr/lib/pkgconfig
  487. $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/uuid.pc
  488. $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/uuid.pc
  489. $(INSTALL_DIR) $(1)/usr/include/blkid
  490. $(CP) $(PKG_INSTALL_DIR)/usr/include/blkid/blkid.h $(1)/usr/include/blkid
  491. $(INSTALL_DIR) $(1)/usr/include/libfdisk
  492. $(CP) $(PKG_INSTALL_DIR)/usr/include/libfdisk/libfdisk.h $(1)/usr/include/libfdisk
  493. $(INSTALL_DIR) $(1)/usr/include/libmount
  494. $(CP) $(PKG_INSTALL_DIR)/usr/include/libmount/libmount.h $(1)/usr/include/libmount
  495. $(INSTALL_DIR) $(1)/usr/include/uuid
  496. $(CP) $(PKG_INSTALL_DIR)/usr/include/uuid/uuid.h $(1)/usr/include/uuid
  497. $(INSTALL_DIR) $(1)/usr/include/libsmartcols
  498. $(CP) $(PKG_INSTALL_DIR)/usr/include/libsmartcols/libsmartcols.h $(1)/usr/include/libsmartcols
  499. $(INSTALL_DIR) $(1)/usr/lib
  500. $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so* $(1)/usr/lib
  501. $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so* $(1)/usr/lib
  502. $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so* $(1)/usr/lib
  503. $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so* $(1)/usr/lib
  504. $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so* $(1)/usr/lib
  505. $(LN) libblkid.so.1 $(1)/usr/lib/libblkid.so
  506. $(LN) libfdisk.so.1 $(1)/usr/lib/libfdisk.so
  507. $(LN) libmount.so.1 $(1)/usr/lib/libmount.so
  508. $(LN) libuuid.so.1 $(1)/usr/lib/libuuid.so
  509. $(LN) libsmartcols.so.1 $(1)/usr/lib/libsmartcols.so
  510. endef
  511. define Package/libfdisk/install
  512. $(INSTALL_DIR) $(1)/usr/lib
  513. $(CP) $(PKG_INSTALL_DIR)/lib/libfdisk.so.* $(1)/usr/lib/
  514. endef
  515. define Package/libblkid/install
  516. $(INSTALL_DIR) $(1)/usr/lib
  517. $(CP) $(PKG_INSTALL_DIR)/lib/libblkid.so.* $(1)/usr/lib/
  518. endef
  519. define Package/libmount/install
  520. $(INSTALL_DIR) $(1)/usr/lib
  521. $(CP) $(PKG_INSTALL_DIR)/lib/libmount.so.* $(1)/usr/lib/
  522. endef
  523. define Package/libsmartcols/install
  524. $(INSTALL_DIR) $(1)/usr/lib
  525. $(CP) $(PKG_INSTALL_DIR)/lib/libsmartcols.so.* $(1)/usr/lib/
  526. endef
  527. define Package/libuuid/install
  528. $(INSTALL_DIR) $(1)/usr/lib
  529. $(CP) $(PKG_INSTALL_DIR)/lib/libuuid.so.* $(1)/usr/lib/
  530. endef
  531. define Package/agetty/install
  532. $(INSTALL_DIR) $(1)/usr/sbin
  533. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/agetty $(1)/usr/sbin/
  534. endef
  535. define Package/blkdiscard/install
  536. $(INSTALL_DIR) $(1)/usr/sbin
  537. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkdiscard $(1)/usr/sbin/
  538. endef
  539. define Package/blkid/install
  540. $(INSTALL_DIR) $(1)/usr/sbin
  541. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blkid $(1)/usr/sbin/
  542. endef
  543. define Package/blockdev/install
  544. $(INSTALL_DIR) $(1)/usr/sbin
  545. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/blockdev $(1)/usr/sbin/
  546. endef
  547. define Package/cal/install
  548. $(INSTALL_DIR) $(1)/usr/bin
  549. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/cal $(1)/usr/bin/
  550. endef
  551. define Package/cfdisk/install
  552. $(INSTALL_DIR) $(1)/usr/sbin
  553. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/cfdisk $(1)/usr/sbin/
  554. endef
  555. define Package/dmesg/install
  556. $(INSTALL_DIR) $(1)/usr/bin
  557. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dmesg $(1)/usr/bin/
  558. endef
  559. define Package/eject/install
  560. $(INSTALL_DIR) $(1)/usr/bin
  561. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/eject $(1)/usr/bin/
  562. endef
  563. define Package/fdisk/install
  564. $(INSTALL_DIR) $(1)/usr/sbin
  565. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fdisk $(1)/usr/sbin/
  566. endef
  567. define Package/findfs/install
  568. $(INSTALL_DIR) $(1)/usr/sbin
  569. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/findfs $(1)/usr/sbin/
  570. endef
  571. define Package/flock/install
  572. $(INSTALL_DIR) $(1)/usr/bin
  573. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flock $(1)/usr/bin/util-linux-flock
  574. endef
  575. define Package/fstrim/install
  576. $(INSTALL_DIR) $(1)/usr/sbin
  577. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fstrim $(1)/usr/sbin/
  578. endef
  579. define Package/getopt/install
  580. $(INSTALL_DIR) $(1)/usr/bin
  581. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/getopt $(1)/usr/bin/
  582. endef
  583. define Package/hwclock/install
  584. $(INSTALL_DIR) $(1)/usr/sbin
  585. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/hwclock $(1)/usr/sbin/
  586. endef
  587. define Package/ipcs/install
  588. $(INSTALL_DIR) $(1)/usr/bin
  589. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ipcs $(1)/usr/bin/
  590. endef
  591. define Package/logger/install
  592. $(INSTALL_DIR) $(1)/usr/bin
  593. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/logger $(1)/usr/bin/util-linux-logger
  594. endef
  595. define Package/look/install
  596. $(INSTALL_DIR) $(1)/usr/bin
  597. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/look $(1)/usr/bin/
  598. endef
  599. define Package/losetup/install
  600. $(INSTALL_DIR) $(1)/usr/sbin
  601. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/losetup $(1)/usr/sbin/
  602. endef
  603. define Package/lsblk/install
  604. $(INSTALL_DIR) $(1)/usr/bin
  605. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
  606. endef
  607. define Package/lscpu/install
  608. $(INSTALL_DIR) $(1)/usr/bin
  609. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
  610. endef
  611. define Package/lslocks/install
  612. $(INSTALL_DIR) $(1)/usr/bin
  613. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lslocks $(1)/usr/bin/
  614. endef
  615. define Package/lsns/install
  616. $(INSTALL_DIR) $(1)/usr/bin
  617. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsns $(1)/usr/bin/
  618. endef
  619. define Package/more/install
  620. $(INSTALL_DIR) $(1)/usr/bin
  621. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
  622. endef
  623. define Package/mcookie/install
  624. $(INSTALL_DIR) $(1)/usr/bin
  625. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
  626. endef
  627. define Package/mount-utils/install
  628. $(INSTALL_DIR) $(1)/usr/bin
  629. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{u,}mount $(1)/usr/bin/
  630. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mountpoint $(1)/usr/bin/
  631. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/findmnt $(1)/usr/bin/
  632. endef
  633. define Package/namei/install
  634. $(INSTALL_DIR) $(1)/usr/bin
  635. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/namei $(1)/usr/bin/
  636. endef
  637. define Package/nsenter/install
  638. $(INSTALL_DIR) $(1)/usr/bin
  639. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/nsenter $(1)/usr/bin/
  640. endef
  641. define Package/prlimit/install
  642. $(INSTALL_DIR) $(1)/usr/bin
  643. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/prlimit $(1)/usr/bin/
  644. endef
  645. define Package/rename/install
  646. $(INSTALL_DIR) $(1)/usr/bin
  647. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rename $(1)/usr/bin/
  648. endef
  649. define Package/partx-utils/install
  650. $(INSTALL_DIR) $(1)/usr/sbin
  651. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partx $(1)/usr/sbin/
  652. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/addpart $(1)/usr/sbin/
  653. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/delpart $(1)/usr/sbin/
  654. endef
  655. define Package/script-utils/install
  656. $(INSTALL_DIR) $(1)/usr/bin
  657. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/script $(1)/usr/bin/
  658. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/scriptreplay $(1)/usr/bin/
  659. endef
  660. define Package/setterm/install
  661. $(INSTALL_DIR) $(1)/usr/bin
  662. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/setterm $(1)/usr/bin/
  663. endef
  664. define Package/sfdisk/install
  665. $(INSTALL_DIR) $(1)/usr/sbin
  666. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sfdisk $(1)/usr/sbin/
  667. endef
  668. define Package/swap-utils/install
  669. $(INSTALL_DIR) $(1)/usr/sbin
  670. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkswap $(1)/usr/sbin/
  671. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/swaplabel $(1)/usr/sbin/
  672. endef
  673. define Package/taskset/install
  674. $(INSTALL_DIR) $(1)/usr/bin
  675. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/taskset $(1)/usr/bin/
  676. endef
  677. define Package/unshare/install
  678. $(INSTALL_DIR) $(1)/usr/bin
  679. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/unshare $(1)/usr/bin/
  680. endef
  681. define Package/uuidd/install
  682. $(INSTALL_DIR) $(1)/usr/sbin
  683. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin//uuidd $(1)/usr/sbin/
  684. endef
  685. define Package/uuidgen/install
  686. $(INSTALL_DIR) $(1)/usr/bin
  687. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin//uuidgen $(1)/usr/bin/
  688. endef
  689. define Package/wall/install
  690. $(INSTALL_DIR) $(1)/usr/bin
  691. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wall $(1)/usr/bin/
  692. endef
  693. define Package/whereis/install
  694. $(INSTALL_DIR) $(1)/usr/bin
  695. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/whereis $(1)/usr/bin/
  696. endef
  697. define Package/wipefs/install
  698. $(INSTALL_DIR) $(1)/usr/sbin
  699. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/wipefs $(1)/usr/sbin/
  700. endef
  701. # these lines need to be ordered by dependency because of ABI versioning
  702. $(eval $(call BuildPackage,libuuid))
  703. $(eval $(call BuildPackage,libblkid))
  704. $(eval $(call BuildPackage,libfdisk))
  705. $(eval $(call BuildPackage,libmount))
  706. $(eval $(call BuildPackage,libsmartcols))
  707. $(eval $(call BuildPackage,agetty))
  708. $(eval $(call BuildPackage,blkdiscard))
  709. $(eval $(call BuildPackage,blkid))
  710. $(eval $(call BuildPackage,blockdev))
  711. $(eval $(call BuildPackage,cal))
  712. $(eval $(call BuildPackage,cfdisk))
  713. $(eval $(call BuildPackage,dmesg))
  714. $(eval $(call BuildPackage,eject))
  715. $(eval $(call BuildPackage,fdisk))
  716. $(eval $(call BuildPackage,findfs))
  717. $(eval $(call BuildPackage,flock))
  718. $(eval $(call BuildPackage,fstrim))
  719. $(eval $(call BuildPackage,getopt))
  720. $(eval $(call BuildPackage,hwclock))
  721. $(eval $(call BuildPackage,ipcs))
  722. $(eval $(call BuildPackage,logger))
  723. $(eval $(call BuildPackage,look))
  724. $(eval $(call BuildPackage,losetup))
  725. $(eval $(call BuildPackage,lsblk))
  726. $(eval $(call BuildPackage,lscpu))
  727. $(eval $(call BuildPackage,lslocks))
  728. $(eval $(call BuildPackage,lsns))
  729. $(eval $(call BuildPackage,more))
  730. $(eval $(call BuildPackage,mcookie))
  731. $(eval $(call BuildPackage,mount-utils))
  732. $(eval $(call BuildPackage,namei))
  733. $(eval $(call BuildPackage,nsenter))
  734. $(eval $(call BuildPackage,prlimit))
  735. $(eval $(call BuildPackage,rename))
  736. $(eval $(call BuildPackage,partx-utils))
  737. $(eval $(call BuildPackage,script-utils))
  738. $(eval $(call BuildPackage,setterm))
  739. $(eval $(call BuildPackage,sfdisk))
  740. $(eval $(call BuildPackage,swap-utils))
  741. $(eval $(call BuildPackage,taskset))
  742. $(eval $(call BuildPackage,unshare))
  743. $(eval $(call BuildPackage,uuidd))
  744. $(eval $(call BuildPackage,uuidgen))
  745. $(eval $(call BuildPackage,wall))
  746. $(eval $(call BuildPackage,whereis))
  747. $(eval $(call BuildPackage,wipefs))