blob: 25638fabd020bee39b331f90dbd2fca2823ad246 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
set -e
# Define the working directory
WORKDIR=$(pwd)
# Define the APT repository directory
REPO_DIR="$WORKDIR/apt-repo"
# Create necessary directories
mkdir -p "$REPO_DIR/conf"
mkdir -p "$REPO_DIR/dists/debian-12/main/binary-amd64"
mkdir -p "$REPO_DIR/pool/main"
# Configuration of the APT repository
cat > "$REPO_DIR/conf/distributions" <<EOF
Codename: debian-12
Suite: stable
Components: main
Architectures: amd64
EOF
# Add packages to the repository
reprepro -b "$REPO_DIR" includedeb debian-12 "$WORKDIR/output/*.deb"
|