Merge branch 'development-SDXPINN' into SDXPINN

This commit is contained in:
Cameron Thompson
2024-12-24 04:21:07 +00:00
11 changed files with 115 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
Package: sms-tool
Version: 2024.07.25~fce2b931-r3
Depends: libc
Source: feeds/kiddin9/sms-tool
SourceName: sms-tool
Section: utils
SourceDateEpoch: 1731357966
URL: https://github.com/obsy/sms_tool
Architecture: aarch64_cortex-a53
Installed-Size: 71680
Description: SMS Tool for 3G/4G/5G modem

View File

@@ -0,0 +1,5 @@
#!/bin/sh
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
default_postinst $0 $@

View File

@@ -0,0 +1,4 @@
#!/bin/sh
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
default_prerm $0 $@

View File

@@ -0,0 +1,74 @@
#!/bin/sh
# Script for building OpenWRT .ipk packages using tar by iamromulan
# Works with SDXPPINN OpenWRT - iamromulan
# This script accepts an optional path to the directory containing the `CONTROL` and `root` directories.
# Usage: ./build-ipk.sh [path]
# If no path is provided, the script will look in the current directory for `CONTROL` and `root` directories.
# This will spit out an ipk in the current directory
# Check if the script is run as root. If not, rerun with sudo.
if [ "$(id -u)" -ne 0 ]; then
echo "Script is not running as root. Re-executing with sudo..."
exec sudo "$0" "$@"
fi
# Set the default build path to the current directory
build_path="."
# Check if a path is provided as the first argument
if [ "$1" ]; then
build_path="$1"
fi
# Check if the required directories are present in the specified path
if [ ! -d "${build_path}/CONTROL" ] || [ ! -d "${build_path}/root" ]; then
echo "Error: CONTROL and root directories must be present in the specified path (${build_path})."
exit 1
fi
# Extract values from the CONTROL/control file in the specified path
pkgname=$(grep -i '^Package:' "${build_path}/CONTROL/control" | awk '{print $2}')
version=$(grep -i '^Version:' "${build_path}/CONTROL/control" | awk '{print $2}')
architecture=$(grep -i '^Architecture:' "${build_path}/CONTROL/control" | awk '{print $2}')
# Check if values are extracted correctly
if [ -z "$pkgname" ] || [ -z "$version" ] || [ -z "$architecture" ]; then
echo "Error: Failed to extract Package, Version, or Architecture from ${build_path}/CONTROL/control."
exit 1
fi
# Set the final IPK name based on the extracted values
ipkname="${pkgname}_${version}_${architecture}.ipk"
# Ensure all CONTROL scripts are executable
echo "Setting permissions for CONTROL scripts..."
chmod +x "${build_path}/CONTROL"/*
# Set ownership for CONTROL and root files
echo "Setting ownership for all package files..."
chown -R root:root "${build_path}/CONTROL"/*
chown -R root:root "${build_path}/root"/*
# Create control.tar.gz from the CONTROL directory
echo "Creating control.tar.gz..."
tar -czvf control.tar.gz -C "${build_path}/CONTROL" .
# Create data.tar.gz from the root directory
echo "Creating data.tar.gz..."
tar -czvf data.tar.gz -C "${build_path}/root" .
# Create debian-binary file (must contain exactly "2.0" without a newline)
echo -n "2.0" > debian-binary
chown -R root:root debian-binary
# Combine the components into the final .ipk file using tar
echo "Packaging ${ipkname}..."
tar -czvf "$ipkname" debian-binary control.tar.gz data.tar.gz
# Clean up intermediate files
echo "Cleaning up temporary files..."
rm -f control.tar.gz data.tar.gz debian-binary
echo "IPK package ${ipkname} created successfully using tar."

View File

@@ -0,0 +1,2 @@
/etc/config/
/etc/sms-tool/

View File

@@ -125,3 +125,16 @@ Description: BETA: A custom web UI desgined to run alongside luci for Quectel RM
License: GPLv3
Package: sms-tool
Version: 2024.07.25~fce2b931-r3
Depends: libc
Section: utils
Architecture: aarch64_cortex-a53
Maintainer: https://github.com/obsy/sms_tool
MD5Sum: 476cb439cf35180b228c3667e753680a
Size: 9837
Filename: sms-tool_2024.07.25~fce2b931-r3_aarch64_cortex-a53.ipk
Source: https://dl.openwrt.ai/packages-24.10/aarch64_cortex-a53/kiddin9/
Description: SMS Tool for 3G/4G/5G modem

Binary file not shown.

View File

@@ -1,13 +1,14 @@
Starting package analysis - Tue Dec 24 03:17:27 AM UTC 2024
Starting package analysis - Tue Dec 24 04:19:19 AM UTC 2024
No update needed for atinout (version 0.9.1, MD5: 6c8d3c910477e31940ee7740111a7fdf, size: 4226)
No update needed for luci-app-atinout-mod (version 1.3.4-20241006, MD5: 2dac55de763333c37dd1728957fc8294, size: 4827)
No update needed for ookla-speedtest (version 1.2.0, MD5: 2183f2df42a00380e761cace096e17c3, size: 1075762)
No update needed for sdxpinn-console-menu (version 0.0.2, MD5: 42d2fd4c85b36a9c29e66092899080a4, size: 7365)
No update needed for sdxpinn-mount-fix (version 1.1.0, MD5: f8e8f830a7ba794d3d090c206df2b729, size: 29357)
No update needed for sdxpinn-quecmanager (version 1.0.1, MD5: 142068c54af185e673b9e0ba0686b0f4, size: 715428)
Updating package info for sdxpinn-quecmanager-beta...
Updated sdxpinn-quecmanager-beta to version 1.1.0-2 with MD5: 3411a804f72d4f275866cc93d3795643 and size: 824527
No update needed for sdxpinn-quecmanager-beta (version 1.1.0-2, MD5: 3411a804f72d4f275866cc93d3795643, size: 824527)
Updating package info for sms-tool...
Updated sms-tool to version 2024.07.25~fce2b931-r3 with MD5: 476cb439cf35180b228c3667e753680a and size: 9837
No update needed for tailscale (version 1.78.1-1, MD5: 44ee97f75f2a85ccf146b11ae1d906b1, size: 9882827)
No update needed for tailscaled (version 1.78.1-1, MD5: 3a2eaf5f59c633379541d4e188a8c507, size: 17960526)
Package file and signature updated successfully.
Package analysis completed - Tue Dec 24 03:17:27 AM UTC 2024
Package analysis completed - Tue Dec 24 04:19:20 AM UTC 2024

View File

@@ -1,2 +1,2 @@
untrusted comment: signed by key 6262698f038d1226
RWRiYmmPA40SJjlBIB8KcLQHhpYP3/EFpiqGB24UJvYnJAvv5irqbp5WLi0/HRqOixJbMFV9WcE5ifv/x9kvFGRMlWma44AjtwY=
RWRiYmmPA40SJktxOk6lFmG5MVm3DDhZQ71Fe0nBq0/l6oCQZtXduGo3/xt5MQTJmMWZ5XyE2zN0cRJNzYQUp1Oej2sXld1IBQU=