Makefile 18 KB

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