Index: sysutils/toybox/Makefile =================================================================== --- sysutils/toybox/Makefile (nonexistent) +++ sysutils/toybox/Makefile (working copy) @@ -0,0 +1,50 @@ +# $FreeBSD$ + +PORTNAME= toybox +PORTVERSION= 0.8.1 +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 + +SHEBANG= 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: +.for f in ${SHEBANG} + @${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' ${WRKSRC}/${f} +.endfor + @${REINPLACE_CMD} -e 's||"${LOCALBASE}/include/sys/inotify.h"|' \ + ${WRKSRC}/lib/portability.c + @${REINPLACE_CMD} -e 's|-Werror=implicit-function-declaration||' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|-Wundef||' ${WRKSRC}/configure + +do-configure: + cd ${WRKSRC} && ${GMAKE} bsd_defconfig + +do-build: + cd ${WRKSRC} && ${GMAKE} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/toybox ${STAGEDIR}${PREFIX}/bin + +.include Index: sysutils/toybox/distinfo =================================================================== --- sysutils/toybox/distinfo (nonexistent) +++ sysutils/toybox/distinfo (working copy) @@ -0,0 +1,3 @@ +TIMESTAMP = 1564230606 +SHA256 (landley-toybox-0.8.1_GH0.tar.gz) = a71cb9e59539437d2c682903a1ac980a431710ee1e5a7ea9a230b78dbb8f1d11 +SIZE (landley-toybox-0.8.1_GH0.tar.gz) = 1022564 Index: sysutils/toybox/pkg-descr =================================================================== --- sysutils/toybox/pkg-descr (nonexistent) +++ sysutils/toybox/pkg-descr (working copy) @@ -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/