Add wgcf to repo
This commit is contained in:
7
ipk-source/wgcf_aarch64_generic/CONTROL/control
Executable file
7
ipk-source/wgcf_aarch64_generic/CONTROL/control
Executable file
@@ -0,0 +1,7 @@
|
||||
Package: wgcf
|
||||
Depends: libc
|
||||
Version: 2.2.24
|
||||
Architecture: aarch64_generic
|
||||
Maintainer: ViRb3
|
||||
Source: github.com/ViRb3/wgcf/releases
|
||||
Description: wgcf is an unofficial, cross-platform CLI for Cloudflare Warp
|
||||
74
ipk-source/wgcf_aarch64_generic/build-ipk
Executable file
74
ipk-source/wgcf_aarch64_generic/build-ipk
Executable 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."
|
||||
|
||||
BIN
ipk-source/wgcf_aarch64_generic/root/usr/bin/wgcf
Normal file
BIN
ipk-source/wgcf_aarch64_generic/root/usr/bin/wgcf
Normal file
Binary file not shown.
@@ -206,3 +206,15 @@ Description: It creates a secure network between your servers, computers, and cl
|
||||
License: GPLv3
|
||||
|
||||
|
||||
Package: wgcf
|
||||
Version: 2.2.24
|
||||
Depends: libc
|
||||
Architecture: aarch64_generic
|
||||
Maintainer: ViRb3
|
||||
MD5Sum: a4e6a7622b0fe953e90065d9c604cdd0
|
||||
Size: 3677780
|
||||
Filename: wgcf_2.2.24_aarch64_generic.ipk
|
||||
Source: github.com/ViRb3/wgcf/releases
|
||||
Description: wgcf is an unofficial, cross-platform CLI for Cloudflare Warp
|
||||
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,9 +1,8 @@
|
||||
Starting package analysis - Thu Jan 30 08:48:50 PM EST 2025
|
||||
Starting package analysis - Fri Jan 31 06:38:57 PM EST 2025
|
||||
No update needed for atinout (version 0.9.1, MD5: 444eb87488bad1927b6ed069dedf7393, size: 4323)
|
||||
No update needed for kmod-wireguard (version 1, MD5: 98e77b68c2f1b5ff46ef7713b4f63a94, size: 789)
|
||||
No update needed for luci-app-atinout-mod (version 1.3.4-20250119, MD5: 1ffee9ec8fe5723b8140bf2c21fea508, size: 4864)
|
||||
Updating package info for luci-app-go-wireguard...
|
||||
Updated luci-app-go-wireguard to version 4.500-1 with MD5: b586305255284278b9012483da246bc3 and size: 24327
|
||||
No update needed for luci-app-go-wireguard (version 4.500-1, MD5: b586305255284278b9012483da246bc3, size: 24327)
|
||||
No update needed for luci-app-tailscale (version 1.2.3-2, MD5: 53c84c947c42d7518aecb4a6b8a9c5a8, size: 6501)
|
||||
No update needed for ookla-speedtest (version 1.2.0, MD5: b26e1909599f73cab40ea0281c5a6283, size: 1075696)
|
||||
No update needed for sdxpinn-console-menu (version 0.0.2, MD5: de75d2889510e92b57fc8a7ca087ced4, size: 7361)
|
||||
@@ -15,5 +14,7 @@ No update needed for sms-tool (version 2025.1.19-APmod-iamromulan, MD5: 83dc8bfd
|
||||
No update needed for socat-at-bridge (version 1.1.1, MD5: a5f4c4c371426fbe12bf2345938af195, size: 1795)
|
||||
No update needed for tailscale (version 1.78.1-2, MD5: baa4d97ba49aa42ef104accba2dc2fd8, size: 9882856)
|
||||
No update needed for tailscaled (version 1.78.1-4, MD5: 647b4d3c6e51f700dd96362f92f20b54, size: 17960998)
|
||||
Updating package info for wgcf...
|
||||
Updated wgcf to version 2.2.24 with MD5: a4e6a7622b0fe953e90065d9c604cdd0 and size: 3677780
|
||||
Package file and signature updated successfully.
|
||||
Package analysis completed - Thu Jan 30 08:48:51 PM EST 2025
|
||||
Package analysis completed - Fri Jan 31 06:38:58 PM EST 2025
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
untrusted comment: signed by key 6262698f038d1226
|
||||
RWRiYmmPA40SJrkrB5hUhNALG6pFz+ZVQ8zdCc/SrBvgauwrIlTgf3OALpRBBZUrTCGPfch3T766wYkAW2oxBbi1H3zvquMaSgQ=
|
||||
RWRiYmmPA40SJsQIc/H5phi4Pif3nZfWlrwLMX2+j1fWIk8KSwiaR18tTATAOaZwJo11K2+1vCKGwF9U9O+3Zk/QFC2ywfuyKAE=
|
||||
|
||||
BIN
opkg-feed/wgcf_2.2.24_aarch64_generic.ipk
Normal file
BIN
opkg-feed/wgcf_2.2.24_aarch64_generic.ipk
Normal file
Binary file not shown.
Reference in New Issue
Block a user