diff --git a/.github/build-nest-v3 b/.github/build-nest-v3 index ca7bf83..3f10ffe 100644 --- a/.github/build-nest-v3 +++ b/.github/build-nest-v3 @@ -1 +1 @@ -13 \ No newline at end of file +15 \ No newline at end of file diff --git a/.github/workflows/build-nestv3.yml b/.github/workflows/build-nestv3.yml index f784499..6a52259 100644 --- a/.github/workflows/build-nestv3.yml +++ b/.github/workflows/build-nestv3.yml @@ -36,7 +36,7 @@ jobs: - name: Build Package run: ./main.sh - #- uses: actions/upload-artifact@v3 - # with: - # name: sbctl - # path: output/sbctl*.deb + - uses: actions/upload-artifact@v3 + with: + name: sbctl + path: output/sbctl*.deb diff --git a/debian/rules b/debian/rules index d410b57..46f0397 100755 --- a/debian/rules +++ b/debian/rules @@ -51,6 +51,12 @@ export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch) #override_dh_clean: # echo "disabled" +override_dh_auto_build: + dh_auto_build + mkdir -p "debian/sbctl/usr/bin" + cp -v "debian/sbctl-pkexec" "debian/sbctl/usr/bin/sbctl-pkexec" + chmod 0755 "debian/sbctl/usr/bin/sbctl-pkexec" + override_dh_usrlocal: echo "disabled" diff --git a/debian/sbctl-pkexec b/debian/sbctl-pkexec new file mode 100755 index 0000000..77adb9d --- /dev/null +++ b/debian/sbctl-pkexec @@ -0,0 +1,3 @@ +#!/bin/sh + +pkexec "/usr/sbin/sbctl" "$@" diff --git a/main.sh b/main.sh index 3e0131f..8bdd8ed 100755 --- a/main.sh +++ b/main.sh @@ -17,6 +17,7 @@ cp -rvf ./debian ./${UPSTREAM_NAME}/ # easier than figuring out the right way to override the prefix in the makefile sed -i "s/usr\/local/usr/" "${UPSTREAM_NAME}/Makefile" +sed -i "s/\$(PREFIX)\/bin/\$(PREFIX)\/sbin/" "${UPSTREAM_NAME}/Makefile" # Get in there. pushd "./${UPSTREAM_NAME}/" || exit 1