Toybox combines common command line utilities together

into a single BSD-licensed executable that's simple, small,
fast, reasonably standards-compliant, and powerful.

WWW: http://landley.net/toybox/

PR:		239494
Submitted by:	vidar@karlsen.tech
This commit is contained in:
Renato Botelho 2019-11-22 12:15:37 +00:00
parent 05b731e678
commit 05b7cafb93
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=518143
4 changed files with 50 additions and 0 deletions

View File

@ -1309,6 +1309,7 @@
SUBDIR += topless
SUBDIR += torque
SUBDIR += toshctl
SUBDIR += toybox
SUBDIR += tracker
SUBDIR += tracker-miners
SUBDIR += tree

41
sysutils/toybox/Makefile Normal file
View File

@ -0,0 +1,41 @@
# $FreeBSD$
PORTNAME= toybox
PORTVERSION= 0.8.2
CATEGORIES= sysutils
MAINTAINER= vidar@karlsen.tech
COMMENT= All-in-one command line
LICENSE= 0BSD
LICENSE_NAME= BSD Zero Clause License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= bash:shells/bash gsed:textproc/gsed
LIB_DEPENDS= libinotify.so:devel/libinotify
USES= gmake shebangfix
SHEBANG_FILES= scripts/change.sh scripts/findglobals.sh \
scripts/genconfig.sh scripts/install.sh \
scripts/make.sh scripts/minicom.sh \
scripts/portability.sh scripts/runtest.sh \
scripts/single.sh scripts/test.sh configure
PLIST_FILES= bin/toybox
USE_GITHUB= yes
GH_ACCOUNT= landley
post-patch:
@${REINPLACE_CMD} -e 's|<sys/inotify.h>|"${LOCALBASE}/include/sys/inotify.h"|' \
${WRKSRC}/lib/portability.c
do-configure:
cd ${WRKSRC} && ${GMAKE} bsd_defconfig
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/toybox ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>

3
sysutils/toybox/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1574378247
SHA256 (landley-toybox-0.8.2_GH0.tar.gz) = 9d8a9b00a6c93da5b472d8a4c7d9549339ed050d1578c557a20add100172b0f5
SIZE (landley-toybox-0.8.2_GH0.tar.gz) = 1057417

View File

@ -0,0 +1,5 @@
Toybox combines common command line utilities together
into a single BSD-licensed executable that's simple, small,
fast, reasonably standards-compliant, and powerful.
WWW: http://landley.net/toybox/