generated from general-packages/pika-pkg-template
pkexec around sbctl for out-of-the-box sudo-only operation
All checks were successful
PikaOS Package Build Only (amd64-v3) / build (push) Successful in 37s
All checks were successful
PikaOS Package Build Only (amd64-v3) / build (push) Successful in 37s
This commit is contained in:
parent
a709dc352e
commit
4abbec0ebc
2
.github/build-nest-v3
vendored
2
.github/build-nest-v3
vendored
@ -1 +1 @@
|
|||||||
13
|
21
|
5
.github/workflows/build-nestv3.yml
vendored
5
.github/workflows/build-nestv3.yml
vendored
@ -38,5 +38,6 @@ jobs:
|
|||||||
|
|
||||||
#- uses: actions/upload-artifact@v3
|
#- uses: actions/upload-artifact@v3
|
||||||
# with:
|
# with:
|
||||||
# name: sbctl
|
# name: sbctl-all
|
||||||
# path: output/sbctl*.deb
|
# path: |
|
||||||
|
# output/sbctl*.deb
|
||||||
|
4
debian/rules
vendored
4
debian/rules
vendored
@ -51,6 +51,10 @@ export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
|
|||||||
#override_dh_clean:
|
#override_dh_clean:
|
||||||
# echo "disabled"
|
# echo "disabled"
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
dh_auto_install
|
||||||
|
install -Dm755 debian/sbctl-pkexec debian/sbctl/usr/bin/sbctl-pkexec
|
||||||
|
|
||||||
override_dh_usrlocal:
|
override_dh_usrlocal:
|
||||||
echo "disabled"
|
echo "disabled"
|
||||||
|
|
||||||
|
3
debian/sbctl-pkexec
vendored
Executable file
3
debian/sbctl-pkexec
vendored
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pkexec "/usr/sbin/sbctl" "$@"
|
1
main.sh
1
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
|
# 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/usr\/local/usr/" "${UPSTREAM_NAME}/Makefile"
|
||||||
|
sed -i "s/\$(PREFIX)\/bin/\$(PREFIX)\/sbin/" "${UPSTREAM_NAME}/Makefile"
|
||||||
|
|
||||||
# Get in there.
|
# Get in there.
|
||||||
pushd "./${UPSTREAM_NAME}/" || exit 1
|
pushd "./${UPSTREAM_NAME}/" || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user