From 425024f9aae6381fbc33cdc6f3c5f826b4aa9b9f Mon Sep 17 00:00:00 2001 From: Renaud Lepage Date: Fri, 13 Sep 2024 13:36:05 -0700 Subject: [PATCH] test --- debian/changelog | 6 +++--- debian/control | 23 +++++++++-------------- main.sh | 17 +++++++++++------ 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6d8d068..1e467b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,5 @@ -upstream-name (1.0-101pika1) pika; urgency=medium +sbctl (0.15.4-101pika1) pika; urgency=low - * Initial release. (Closes: #nnnn) + * Initial release. - -- ferreo Wed, 18 Jan 2023 21:48:14 +0000 + -- cybik Fri, 13 Sep 2024 13:38:39 -0700 diff --git a/debian/control b/debian/control index 0bcd8e0..a9fee75 100644 --- a/debian/control +++ b/debian/control @@ -1,19 +1,14 @@ -Source: upstream-name +Source: sbctl Section: admin Priority: optional -Maintainer: name +Maintainer: cybik Standards-Version: 4.6.1 -Build-Depends: debhelper-compat (= 13) -Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), asciidoc, golang-go +Rules-Requires-Root: yes -Package: pkgname1 +Package: sbctl Architecture: linux-any -# Delete any of these lines if un-used -Depends: ${misc:Depends}, depends -Recommends: high priority optdepends -Conflicts: conflicts -Suggests: low priority optdepends -Breaks: also conflicts!? -Provides: provides -# -Description: pkgdesc +Depends: ${misc:Depends}, ${shlibs:Depends} +Provides: sbctl +Description: SecureBoot Manager toolkit diff --git a/main.sh b/main.sh index d80ca48..8a4ac41 100755 --- a/main.sh +++ b/main.sh @@ -6,21 +6,26 @@ set -e echo "$PIKA_BUILD_ARCH" > pika-build-arch -VERSION="1.0" +VERSION="0.15.4" # Clone Upstream -mkdir -p ./src-pkg-name -cp -rvf ./debian ./src-pkg-name/ -cd ./src-pkg-name/ +UPSTREAM_NAME="sbctl" + +git clone https://github.com/Foxboron/sbctl.git "${UPSTREAM_NAME}" +cp -rvf ./debian ./${UPSTREAM_NAME}/ + +# Get in there. +pushd "./${UPSTREAM_NAME}/" || exit 1 # 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 # Build package dpkg-buildpackage --no-sign +popd || exit 2 + # Move the debs to output -cd ../ mkdir -p ./output mv ./*.deb ./output/