Initial commit

This commit is contained in:
2025-11-10 14:33:33 +02:00
commit 98e3b5bd79
4 changed files with 46 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# Exclude bpm archives
*.bpm
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
# Git repository
REPO="https://passt.top/passt"
# Get tag name using 'git ls-remote'
TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | tail -1 | cut -d'/' -f3)
echo "$TAG_NAME"
+17
View File
@@ -0,0 +1,17 @@
name: passt
description: Plug A Simple Socket Transport
version: 2025_09_19.623dbf6
revision: 1
url: https://passt.top/passt/about/
license: BSD-3-Clause,GPL2-or-later
architecture: any
type: source
depends:
- glibc
optional_depends:
- sh
downloads:
- url: https://passt.top/passt/snapshot/passt-${BPM_PKG_VERSION}.tar.zst
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 5e4c2d7a25122be4f34a177f1fe9b00670ee5c8d9509835a276737999fce854a
+18
View File
@@ -0,0 +1,18 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
make VERSION="$BPM_PKG_VERSION"
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" prefix=/usr install
# Install package licenses
install -Dm644 "$BPM_SOURCE"/LICENSES/* -t "$BPM_OUTPUT"/usr/share/licenses/passt/
}