Makefile 24 KB

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