Skip to content

Commit

Permalink
runit: remove zsh completions.
Browse files Browse the repository at this point in the history
  • Loading branch information
triallax authored and sirkhancision committed Jun 27, 2023
1 parent 73af350 commit 8439f4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 49 deletions.
44 changes: 0 additions & 44 deletions srcpkgs/runit/files/_sv

This file was deleted.

9 changes: 4 additions & 5 deletions srcpkgs/runit/template
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ short_desc="UNIX init scheme with service supervision"
maintainer="Orphaned <[email protected]>"
license="BSD-3-Clause"
homepage="http://smarden.org/runit/"
distfiles="http://smarden.org/runit/runit-$version.tar.gz"
distfiles="http://smarden.org/runit/runit-${version}.tar.gz"
checksum=6fd0160cb0cf1207de4e66754b6d39750cff14bb0aa66ab49490992c0c47ba18
patch_args=-Np0
# FIXME: this is caused by some bonk tests that should be fixed in void-linux/runit at some point
Expand All @@ -22,14 +22,14 @@ if [ "$build_option_static" ]; then
fi

pre_build() {
sed -e 's,sbin/runit,usr/bin/runit,g' -i runit.h
vsed -e 's,sbin/runit,usr/bin/runit,g' -i runit.h

echo "$CC -D_GNU_SOURCE $CFLAGS" >conf-cc
echo "$CC $LDFLAGS -Wl,-z -Wl,noexecstack" >conf-ld
# set default service path to /var/service
sed -i -e 's:^char \*varservice ="/service/";$:char \*varservice ="/var/service/";:' sv.c
vsed -e 's:^char \*varservice ="/service/";$:char \*varservice ="/var/service/";:' -i sv.c
# change type short to gid_t for getgroups(2) and setgroups(2)
sed -i -e 's:short x\[4\];$:gid_t x[4];:' chkshsgr.c
vsed -e 's:short x\[4\];$:gid_t x[4];:' -i chkshsgr.c
}

do_install() {
Expand All @@ -50,6 +50,5 @@ do_install() {
vman $f
done

vinstall ${FILESDIR}/_sv 644 usr/share/zsh/site-functions
vinstall ${FILESDIR}/sv 644 usr/share/bash-completion/completions
}

0 comments on commit 8439f4d

Please sign in to comment.