diff -urN /usr/ports/sysutils/busybox/Makefile sysutils/busybox/Makefile --- /usr/ports/sysutils/busybox/Makefile 2016-04-12 18:17:35.991238000 +0900 +++ sysutils/busybox/Makefile 2016-04-26 00:00:00.000000000 +0900 @@ -2,60 +2,64 @@ # $FreeBSD: head/sysutils/busybox/Makefile 413097 2016-04-12 05:54:17Z mandree $ PORTNAME= busybox -PORTVERSION= 1.24.1 +PORTVERSION= 1.24.2 CATEGORIES= sysutils misc shells -MASTER_SITES= http://www.busybox.net/downloads/ LOCAL/mandree +MASTER_SITES= https://busybox.net/downloads/ -PATCH_SITES= http://www.busybox.net/downloads/fixes-${PORTVERSION}/ +PATCH_SITES= https://busybox.net/downloads/fixes-${PORTVERSION}/ +PATCHFILES= ${PORTNAME}-${PORTVERSION}-CVE-2016-2147.patch \ + ${PORTNAME}-${PORTVERSION}-CVE-2016-2148.patch \ + ${PORTNAME}-${PORTVERSION}-ash-recursive-heredocs.patch PATCH_DIST_STRIP= -p1 MAINTAINER= ports@FreeBSD.org -COMMENT= Busybox for FreeBSD +COMMENT= Set of common utilities built as single binary LICENSE= GPLv2 BUILD_DEPENDS= gsed:textproc/gsed -CONFLICTS_INSTALL= busybox-unstable-* - -PORTSCOUT= skipv:1.25.0 +USES= cpe gmake perl5 tar:bzip2 +USE_PERL5= build +MAKE_ARGS= CC="${CC}" HOSTCC="${CC}" CXX="${CXX}" HOSTCXX="${CXX}" \ + SKIP_STRIP=y V=1 CFLAGS+= -fno-builtin-mempcpy # avoid -Wshadow warnings -MAKE_ARGS+= SKIP_STRIP=y CC="${CC}" HOSTCC="${CC}" CXX="${CXX}" HOSTCXX="${CXX}" -# findutils/find.c l. 752+, uses a GCC extension/invalid C code: -USES= compiler:nestedfct cpe gmake tar:bzip2 -PLIST_FILES= bin/busybox +CONFLICTS_INSTALL= busybox-unstable-* -OPTIONS_DEFINE= DOCS STATIC +PORTSCOUT= skipv:1.25.0 -STATIC_LDFLAGS= -static +PORTDOCS= * +PLIST_FILES= bin/busybox man/man1/busybox.1.gz -.include +OPTIONS_DEFINE= DOCS STATIC -.if ${PORT_OPTIONS:MDOCS} -USES+= perl5 -USE_PERL5= build -PORTDOCS= * -.endif +STATIC_LDFLAGS= -static post-patch: - ${REINPLACE_CMD} -e 's/sed/gsed/' ${WRKSRC}/scripts/gen_build_files.sh - ${REINPLACE_CMD} -e 's///' \ - ${WRKSRC}/libbb/appletlib.c \ - ${WRKSRC}/shell/hush.c - ${REINPLACE_CMD} -e 's///' \ - ${WRKSRC}/scripts/basic/*.c + @${REINPLACE_CMD} -e \ + 's|\([[:<:]]\)sed\([[:blank:]]-n\)|\1gsed\2|' \ + ${WRKSRC}/scripts/gen_build_files.sh + @${FIND} ${WRKSRC} -name "*.c" -print0 | ${XARGS} -0 \ + ${REINPLACE_CMD} -e \ + 's||| ; \ + s|||' + +pre-configure: + @${CP} ${FILESDIR}/data-.config ${WRKSRC}/.config do-configure: - ${CP} ${FILESDIR}/data-.config ${WRKSRC}/.config - cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} oldconfig + @(cd ${WRKSRC} && ${DO_MAKE_BUILD} oldconfig) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin -.if ${PORT_OPTIONS:MDOCS} - cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} - ${RM} -f ${STAGEDIR}${DOCSDIR}/.gitignore -.endif + (cd ${WRKSRC} && ${INSTALL_PROGRAM} busybox \ + ${STAGEDIR}${PREFIX}/bin) + (cd ${WRKSRC}/docs && ${INSTALL_MAN} busybox.1 \ + ${STAGEDIR}${MANPREFIX}/man/man1) + +post-install-DOCS-on: + @(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . \ + ${STAGEDIR}${DOCSDIR} "! -name busybox.1") .include diff -urN /usr/ports/sysutils/busybox/distinfo sysutils/busybox/distinfo --- /usr/ports/sysutils/busybox/distinfo 2015-12-21 21:16:04.179746000 +0900 +++ sysutils/busybox/distinfo 2016-04-26 00:00:00.000000000 +0900 @@ -1,2 +1,8 @@ -SHA256 (busybox-1.24.1.tar.bz2) = 37d03132cc078937360b392170b7a1d0e5b322eee9f57c0b82292a8b1f0afe3d -SIZE (busybox-1.24.1.tar.bz2) = 2068803 +SHA256 (busybox-1.24.2.tar.bz2) = e71ef53ec656f31c42633918d301405d40dea1d97eca12f272217ae4a971c855 +SIZE (busybox-1.24.2.tar.bz2) = 2066822 +SHA256 (busybox-1.24.2-CVE-2016-2147.patch) = 7cedbcfe2744a7efc1d811372932bc8ef610b8bbdfe34d28ba5a0b5d582b885d +SIZE (busybox-1.24.2-CVE-2016-2147.patch) = 3453 +SHA256 (busybox-1.24.2-CVE-2016-2148.patch) = 0d42e12334ff14616ce9dc22f02f15c8f3df3ef3334c9ef81abd29d21b5ac687 +SIZE (busybox-1.24.2-CVE-2016-2148.patch) = 1956 +SHA256 (busybox-1.24.2-ash-recursive-heredocs.patch) = 2e4b028036b6e983f04f51a2cfb5e61a6e71e4143e5342c54b96bc2296e5d45c +SIZE (busybox-1.24.2-ash-recursive-heredocs.patch) = 2442 diff -urN /usr/ports/sysutils/busybox/pkg-descr sysutils/busybox/pkg-descr --- /usr/ports/sysutils/busybox/pkg-descr 2015-08-24 04:06:39.707699000 +0900 +++ sysutils/busybox/pkg-descr 2016-04-26 00:00:00.000000000 +0900 @@ -1,5 +1,5 @@ -busybox is a set of common utilities built as a single -crunched binary, and sometimes stripped down in features -to fit the needs of embedded systems. +busybox is a set of common utilities built as a single crunched binary, +and sometimes stripped down in features to fit the needs of embedded +systems. WWW: http://www.busybox.net/