File: prep-for-freebsd-build

package info (click to toggle)
bup 0.33.9-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,712 kB
  • sloc: python: 15,897; sh: 5,764; ansic: 2,965; pascal: 669; makefile: 21
file content (31 lines) | stat: -rwxr-xr-x 530 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
31
#!/bin/sh

set -exu

usage()
{
    echo "Usage: prep-for-freebsd-build [python3]"
}

pyver="${1:-python3}"

# Install build deps
export ASSUME_ALWAYS_YES=yes
pkg update

# https://reviews.freebsd.org/D24816
pkg install rdiff-backup || true

pkgs='gmake git bash rsync curl par2cmdline readline duplicity'
pkgs="$pkgs rsnapshot"

case "$pyver" in
    python3)
        pkgs="$pkgs python311 py311-tornado py311-pytest py311-pytest-xdist"
        pkg install $pkgs
        ;;
    *)
        usage 1>&2
        exit 2
        ;;
esac