Bläddra i källkod

feat(build): add tar-1.35 package to repository

clanker 1 månad sedan
förälder
incheckning
5c7a4a3335

+ 87 - 0
tar-1.35/MANIFEST.usm

@@ -0,0 +1,87 @@
+{
+  "provides" : {
+    "locale:sk/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:ms/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:ro/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:uk/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:nb/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:pt_BR/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:fr/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:hr/LC_MESSAGES/tar.mo" : "as-expected",
+    "bin:tar" : "as-expected",
+    "locale:ca/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:da/LC_MESSAGES/tar.mo" : "as-expected",
+    "info:dir" : "as-expected",
+    "locale:sr/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:tr/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:ga/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:de/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:sv/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:ja/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:ka/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:fi/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:eu/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:hu/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:vi/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:ky/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:ru/LC_MESSAGES/tar.mo" : "as-expected",
+    "libexec:rmt" : "as-expected",
+    "locale:zh_TW/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:id/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:el/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:zh_CN/LC_MESSAGES/tar.mo" : "as-expected",
+    "man:man8/rmt.8" : "as-expected",
+    "locale:gl/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:et/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:nl/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:pl/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:it/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:sl/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:pt/LC_MESSAGES/tar.mo" : "as-expected",
+    "info:tar.info-1" : "as-expected",
+    "info:tar.info-2" : "as-expected",
+    "info:tar.info" : "as-expected",
+    "info:tar.info-3" : "as-expected",
+    "locale:bg/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:eo/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:cs/LC_MESSAGES/tar.mo" : "as-expected",
+    "locale:es/LC_MESSAGES/tar.mo" : "as-expected",
+    "man:man1/tar.1" : "as-expected",
+    "locale:ko/LC_MESSAGES/tar.mo" : "as-expected"
+  },
+  "flags" : [
+    "simpleBuildEnvironment"
+  ],
+  "summary" : "GNU tar utility for archiving files",
+  "name" : "tar",
+  "md" : "PACKAGE.md",
+  "depends" : {
+    "build" : [
+      "bin:gcc",
+      "bin:make"
+    ],
+    "runtime" : [
+      "lib:libc.so.6"
+    ],
+    "manage" : [
+      "bin:bash",
+      "bin:wget",
+      "bin:tar"
+    ]
+  },
+  "url" : "https://www.gnu.org/software/tar/",
+  "version" : "1.35",
+  "licences" : [
+    {
+      "category" : "libre",
+      "name" : "GPLv3",
+      "text" : "sources/tar/COPYING"
+    }
+  ],
+  "execs" : {
+    "build" : "usm-scripts/build.sh",
+    "test" : "usm-scripts/test.sh",
+    "install" : "usm-scripts/install.sh",
+    "acquire" : "usm-scripts/acquire.sh"
+  }
+}

+ 32 - 0
tar-1.35/PACKAGE.md

@@ -0,0 +1,32 @@
+# GNU tar
+
+GNU tar is an archiving utility that allows you to create, extract, and manipulate tar archives. It is a fundamental tool for Unix-like systems, widely used for distributing software, backing up data, and collecting files together.
+
+## Features
+
+- **Multiple Archive Formats**: Supports various archive formats including GNU tar, ustar, pax, and v7
+- **Compression Support**: Can work with gzip, bzip2, xz, lzip, and lzop compressed archives
+- **Extended Attributes**: Preserves file ownership, permissions, timestamps, and extended attributes
+- **Incremental Backups**: Supports incremental and differential backups
+- **Remote Tape Support**: Can work with remote tape drives through the rmt protocol
+- **Sparse File Handling**: Efficiently handles sparse files
+- **Multi-volume Archives**: Can create and extract multi-volume archives
+
+## Common Use Cases
+
+- **Software Distribution**: Packaging source code and binaries for distribution
+- **System Backups**: Creating full and incremental system backups
+- **Data Archiving**: Collecting related files for storage or transfer
+- **File Transfer**: Efficiently transferring directory structures
+- **Container Images**: Creating layers for container systems
+
+## Key Capabilities
+
+- Create archives with various compression methods
+- Extract files from archives while preserving metadata
+- List contents of archives without extraction
+- Update existing archives by adding or removing files
+- Convert between different archive formats
+- Verify archive integrity
+
+GNU tar is part of the GNU core utilities and is essential for system administration and software development workflows. It provides reliable, feature-rich archiving capabilities that make it indispensable for managing files and directories on Unix-like systems.

+ 20 - 0
tar-1.35/usm-scripts/acquire.sh

@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+
+ARCHIVE_URL="https://ftp.gnu.org/gnu/tar/tar-1.35.tar.xz"
+ARCHIVE_NAME="tar-1.35.tar.xz"
+EXTRACT_DIR="sources/tar"
+
+echo "Downloading tar source..."
+wget -O ${ARCHIVE_NAME} ${ARCHIVE_URL}
+
+echo "Creating extraction directory..."
+mkdir -p ${EXTRACT_DIR}
+
+echo "Extracting archive..."
+tar -xJf ${ARCHIVE_NAME} -C ${EXTRACT_DIR} --strip-components=1
+
+echo "Cleaning up..."
+rm ${ARCHIVE_NAME}
+
+echo "Source acquisition complete."

+ 17 - 0
tar-1.35/usm-scripts/build.sh

@@ -0,0 +1,17 @@
+#!/bin/bash
+set -e
+
+build_dir=$1
+
+# With simpleBuildEnvironment flag, we're already in build directory
+# The source tree is copied to build directory before this script runs
+# We need to change to the source directory first
+
+cd sources/tar
+echo "Configuring tar..."
+./configure --prefix=${PREFIX} --libdir=${LIBDIR} --bindir=${BINDIR} --mandir=${MANDIR} --infodir=${INFODIR}
+
+echo "Building tar..."
+make -j$(nproc)
+
+echo "Build complete."

+ 15 - 0
tar-1.35/usm-scripts/install.sh

@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+
+build_dir=$1
+install_dir=$2
+install_type=$3
+
+# With simpleBuildEnvironment flag, we're already in build directory
+# We need to change to the source directory first
+cd sources/tar
+echo "Installing tar to ${install_dir}..."
+
+make install DESTDIR=${install_dir}
+
+echo "Installation complete."

+ 14 - 0
tar-1.35/usm-scripts/test.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+set -e
+
+build_dir=$1
+
+# With simpleBuildEnvironment flag, we're already in build directory
+# We need to change to the source directory first
+cd sources/tar
+echo "Running tests..."
+
+# Run the test suite
+make check
+
+echo "Tests completed."