mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-06 07:47:53 +10:00
Remove all non-essential dependencies from both package formats. The .deb now only depends on python3, pip, and venv. The brew formula only depends on python@3.13. All other runtime deps (node, chrome, yt-dlp, wget, ripgrep, etc.) are installed on-demand by `archivebox install` at runtime. Removed from brew formula: - 6 depends_on entries (node, git, wget, curl, ripgrep, yt-dlp) - on_linux block (pkg-config, openssl, libffi) - post_install hook (was running archivebox install) - service block (users run archivebox server directly) Removed from .deb: - 6 depends entries (nodejs, npm, git, wget, curl, ripgrep) - recommends section (yt-dlp, ffmpeg, chromium) Net: -126 lines across packaging files. https://claude.ai/code/session_01Vx1EsNrNySgsc8Y67dGzCn
62 lines
1.8 KiB
YAML
62 lines
1.8 KiB
YAML
# nFPM configuration for building ArchiveBox .deb packages
|
|
# Docs: https://nfpm.goreleaser.com/configuration/
|
|
# Usage: nfpm package --config pkg/debian/nfpm.yaml --packager deb --target dist/
|
|
|
|
name: archivebox
|
|
arch: "${ARCH:-amd64}"
|
|
platform: linux
|
|
version: "${VERSION}"
|
|
version_schema: semver
|
|
maintainer: "Nick Sweeting <nfpm@archivebox.io>"
|
|
description: |
|
|
Self-hosted internet archiving solution.
|
|
Save pages from the web including HTML, PDF, screenshots, media, and more.
|
|
Install with: sudo apt install archivebox && archivebox init --setup
|
|
vendor: "ArchiveBox"
|
|
homepage: "https://archivebox.io"
|
|
license: "MIT"
|
|
section: "web"
|
|
priority: "optional"
|
|
|
|
depends:
|
|
# python3 >= 3.11 allows dpkg to install on more systems (e.g. Ubuntu 24.04).
|
|
# install.sh enforces the real >= 3.13 requirement at venv creation time,
|
|
# failing early with a clear error if only an older python3 is available.
|
|
- python3 (>= 3.11)
|
|
- python3-pip
|
|
- python3-venv
|
|
# All other runtime deps (node, chrome, yt-dlp, etc.) are installed on-demand
|
|
# by `archivebox install` and should NOT be declared as package dependencies.
|
|
|
|
contents:
|
|
# Wrapper script for /usr/bin/archivebox
|
|
- src: pkg/debian/archivebox
|
|
dst: /usr/bin/archivebox
|
|
file_info:
|
|
mode: 0755
|
|
|
|
# Install helper script
|
|
- src: pkg/debian/install.sh
|
|
dst: /opt/archivebox/install.sh
|
|
file_info:
|
|
mode: 0755
|
|
|
|
# Systemd service file
|
|
- src: pkg/debian/archivebox.service
|
|
dst: /usr/lib/systemd/system/archivebox.service
|
|
file_info:
|
|
mode: 0644
|
|
|
|
# Create data directory (unpacked as root; postinstall.sh chowns to archivebox user)
|
|
- dst: /var/lib/archivebox
|
|
type: dir
|
|
file_info:
|
|
mode: 0755
|
|
|
|
scripts:
|
|
postinstall: pkg/debian/scripts/postinstall.sh
|
|
preremove: pkg/debian/scripts/preremove.sh
|
|
|
|
deb:
|
|
compression: zstd
|