sbctl packaging (squashed)
All checks were successful
PikaOS Package Build Only (amd64-v3) / build (push) Successful in 41s

This commit is contained in:
R L 2024-09-13 13:36:05 -07:00
parent 9b7d5f0d8f
commit a709dc352e
Signed by: cybik
GPG Key ID: A6DD1646CC69863E
6 changed files with 45 additions and 23 deletions

View File

@ -1 +1 @@
1 13

View File

@ -35,3 +35,8 @@ jobs:
- name: Build Package - name: Build Package
run: ./main.sh run: ./main.sh
#- uses: actions/upload-artifact@v3
# with:
# name: sbctl
# path: output/sbctl*.deb

6
debian/changelog vendored
View File

@ -1,5 +1,5 @@
upstream-name (1.0-101pika1) pika; urgency=medium sbctl (0.15.4-101pika1) pika; urgency=low
* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP> * Initial release.
-- ferreo <harderthanfire@gmail.com> Wed, 18 Jan 2023 21:48:14 +0000 -- cybik <root@cybik.moe> Fri, 13 Sep 2024 13:38:39 -0700

28
debian/control vendored
View File

@ -1,19 +1,21 @@
Source: upstream-name Source: sbctl
Section: admin Section: admin
Priority: optional Priority: optional
Maintainer: name <email> Maintainer: cybik <root@cybik.moe>
Standards-Version: 4.6.1 Standards-Version: 4.6.1
Build-Depends: debhelper-compat (= 13) Build-Depends:
debhelper-compat (= 13), asciidoc, golang-go
Rules-Requires-Root: no Rules-Requires-Root: no
Package: pkgname1 Package: sbctl
Architecture: linux-any Architecture: linux-any
# Delete any of these lines if un-used Depends:
Depends: ${misc:Depends}, depends ${misc:Depends}, ${shlibs:Depends}, util-linux, binutils, golang-go
Recommends: high priority optdepends Provides: sbctl
Conflicts: conflicts Homepage: https://github.com/Foxboron/sbctl/
Suggests: low priority optdepends Vcs-Browser: https://github.com/Foxboron/sbctl/
Breaks: also conflicts!? Vcs-Git: https://github.com/Foxboron/sbctl/
Provides: provides Description: SecureBoot Manager toolkit
# The sbctl tool allows one to create keys for secure boot,
Description: pkgdesc securely enroll them, and keep track of files to sign
and/or that have been signed.

6
debian/rules vendored
View File

@ -51,6 +51,12 @@ export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
#override_dh_clean: #override_dh_clean:
# echo "disabled" # echo "disabled"
override_dh_usrlocal:
echo "disabled"
override_dh_dwz:
echo "disabled"
## overriding dh_auto_configure to add custom configs: ## overriding dh_auto_configure to add custom configs:
#override_dh_auto_configure: #override_dh_auto_configure:
# $(srcdir)/configure -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_DATADIR=/usr/share -DCMAKE_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu -DBUILD_PLUGIN=OFF # $(srcdir)/configure -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_DATADIR=/usr/share -DCMAKE_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu -DBUILD_PLUGIN=OFF

21
main.sh
View File

@ -6,21 +6,30 @@ set -e
echo "$PIKA_BUILD_ARCH" > pika-build-arch echo "$PIKA_BUILD_ARCH" > pika-build-arch
VERSION="1.0" VERSION="0.15.4"
# Clone Upstream # Clone Upstream
mkdir -p ./src-pkg-name UPSTREAM_NAME="sbctl"
cp -rvf ./debian ./src-pkg-name/
cd ./src-pkg-name/ # Checkout and munch
git clone https://github.com/Foxboron/sbctl.git "${UPSTREAM_NAME}"
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"
# Get in there.
pushd "./${UPSTREAM_NAME}/" || exit 1
# Get build deps # Get build deps
LOGNAME=root dh_make --createorig -y -l -p src-pkg-name_"$VERSION" || echo "dh-make: Ignoring Last Error" LOGNAME=root dh_make --createorig -y -l -p ${UPSTREAM_NAME}_"$VERSION" || echo "dh-make: Ignoring Last Error"
apt-get build-dep ./ -y apt-get build-dep ./ -y
# Build package # Build package
dpkg-buildpackage --no-sign dpkg-buildpackage --no-sign
popd || exit 2
# Move the debs to output # Move the debs to output
cd ../
mkdir -p ./output mkdir -p ./output
mv ./*.deb ./output/ mv ./*.deb ./output/