Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: update: shells/nsh 1.2.2
To:
ports@openbsd.org
Date:
Fri, 6 Sep 2024 14:00:49 +0100

Download raw body.

Thread
===>  Faking installation for nsh-1.2.2
install -c -s  -o root -g bin  -m 755 nsh /pobj/nsh-1.2.2/fake-amd64/usr/local/bin/nsh
test -e /usr/local/bin/save.sh || install -m 755 -o root -g bin  /usr/obj/ports/nsh-1.2.2/nsh-1.2.2/save-rw.sh /usr/local/bin/save.sh
install: /usr/local/bin/INS@XIeCpSEu4i: Permission denied
*** Error 1 in /usr/obj/ports/nsh-1.2.2/nsh-1.2.2 (Makefile:63 'afterinstall')


On 2024/09/06 14:42, Stefan Sperling wrote:
> Update shells/nsh to 1.2.2.
> Release notes: https://github.com/yellowman/nsh/releases/tag/v1.2.2
> 
> Should fix build failures with the -static flavor on sparc64.
> 
> Also, make the package provide example scripts which prepare a system for
> administration with nsh.  These aren't strictly needed in the sense that
> nsh can be run without them when setting things up from scratch. However,
> they make it easier to start using nsh on non-pristine installations
> which already have pf configured or have some daemons running etc.
> 
> Ok?
> 
> diff /usr/ports
> commit - f640b88fef18c3032a9b02b089db0dee4d88cf43
> path + /usr/ports
> blob - 66bab971f2124f1025600e908dbb4984214bfd85
> file + shells/nsh/Makefile
> --- shells/nsh/Makefile
> +++ shells/nsh/Makefile
> @@ -2,10 +2,9 @@ COMMENT =	network switch style shell
>  
>  CATEGORIES =	shells net
>  HOMEPAGE =	https://www.nmedia.net/nsh/
> -V =		1.2.1
> +V =		1.2.2
>  DISTNAME =	nsh-${V}
>  SITES =		https://github.com/yellowman/nsh/releases/download/v${V}/
> -REVISION =	0
>  
>  MAINTAINER =	Tom Smyth <tom.smyth@wirelessconnect.eu>
>  
> @@ -32,7 +31,7 @@ LIB_DEPENDS =	databases/sqlite3
>  FAKE_FLAGS =	PREFIX=${TRUEPREFIX}
>  
>  .if ${FLAVOR:Mstatic}
> -MAKE_FLAGS +=	LDFLAGS="-L${LOCALBASE}/lib -ledit -ltermcap -lsqlite3 -lm -lpthread -static"
> +ALL_TARGET =	static
>  .endif
>  
>  NO_TEST=	Yes
> @@ -45,5 +44,10 @@ post-install:
>  .for i in README.md COPYRIGHT
>  	${INSTALL_DATA} ${WRKDIST}/${i} ${PREFIX}/share/doc/nsh/
>  .endfor
> +	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/nsh
> +.for s in extensive-nsh-openbsd-integrate.sh rc.local-nsh-openbsd-integrate.sh
> +	${INSTALL_DATA} ${WRKDIST}/scripts/shell/${s} \
> +		${PREFIX}/share/examples/nsh/
> +.endfor
>  
>  .include <bsd.port.mk>
> blob - 644f8cc92d2911a3e757849b207930517cd1eee8
> file + shells/nsh/distinfo
> --- shells/nsh/distinfo
> +++ shells/nsh/distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (nsh-1.2.1.tar.gz) = rU/ep0MEA9O7CJacaF3vvMx82MRlUmLc2U/riRgJgTs=
> -SIZE (nsh-1.2.1.tar.gz) = 221571
> +SHA256 (nsh-1.2.2.tar.gz) = EfR0Yya3F7Ej6nfPd+WlqLT+Z8A8ZUb6fcWb1pQamw8=
> +SIZE (nsh-1.2.2.tar.gz) = 228756
> blob - 2897dbbb594af24ccdae8265ac828cc1e17db426
> file + shells/nsh/pkg/PLIST
> --- shells/nsh/pkg/PLIST
> +++ shells/nsh/pkg/PLIST
> @@ -16,3 +16,6 @@ bin/save-rw.sh
>  share/doc/nsh/
>  share/doc/nsh/COPYRIGHT
>  share/doc/nsh/README.md
> +share/examples/nsh/
> +share/examples/nsh/extensive-nsh-openbsd-integrate.sh
> +share/examples/nsh/rc.local-nsh-openbsd-integrate.sh
>