Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / qbittorrent
Commits: adf84bbb by graysky at 2025-02-18T19:11:14-05:00 upgpkg: 5.0.4-3: pkg a user and service for nox Closes https://gitlab.archlinux.org/archlinux/packaging/packages/qbittorrent/-/issues/2 - - - - - 4 changed files: - PKGBUILD - + qbittorrent-nox.service - + sysusers.conf - + tmpfiles.conf Changes: ===================================== PKGBUILD ===================================== @@ -11,7 +11,7 @@ pkgbase=qbittorrent pkgname=(qbittorrent qbittorrent-nox) pkgver=5.0.4 -pkgrel=2 +pkgrel=3 arch=(x86_64) url='https://www.qbittorrent.org' license=(GPL-2.0-or-later @@ -28,8 +28,12 @@ makedepends=(boost qt6-svg qt6-tools) optdepends=('python: needed for torrent search tab') -source=(git+https://github.com/qbittorrent/qBittorrent/#tag=release-$pkgver?signed) -sha256sums=('5cb819d013d6b5633b6df318d919f94baaa0521b781e847f64639112ba2812be') +source=(git+https://github.com/qbittorrent/qBittorrent/#tag=release-$pkgver + sysusers.conf tmpfiles.conf qbittorrent-nox.service) +sha256sums=('5cb819d013d6b5633b6df318d919f94baaa0521b781e847f64639112ba2812be' + '0f148c97cc5fae83fc5022b5f2da374b60a1e2f62a4faf01265e73a9f208825a' + '941a90f59d3400fff022a2c2239502eec3aac97b31d25f30593cf3d95b1d788b' + 'e0142e716098aa7047bf5160eee1dd839d84feaa30ec2c01b988c9bca16bd831') validpgpkeys=('D8F3DA77AAC6741053599C136E4A2D025B7CC9A2') # sledgehammer999 <[email protected]> build() { @@ -57,4 +61,8 @@ package_qbittorrent-nox() { DESTDIR="$pkgdir" cmake --install build-nox install -Dm644 qBittorrent/COPYING -t "$pkgdir"/usr/share/licenses/$pkgname + + install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/qbittorrent.conf" + install -Dm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/qbittorrent.conf" + install -Dm644 qbittorrent-nox.service "$pkgdir/usr/lib/systemd/system/qbittorrent-nox.service" } ===================================== qbittorrent-nox.service ===================================== @@ -0,0 +1,15 @@ +[Unit] +Description=qBittorrent-nox service for user qbt +Documentation=man:qbittorrent-nox(1) +Wants=network-online.target +After=local-fs.target network-online.target nss-lookup.target + +[Service] +Type=simple +PrivateTmp=false +User=qbt +ExecStart=/usr/bin/qbittorrent-nox +TimeoutStopSec=1800 + +[Install] +WantedBy=multi-user.target ===================================== sysusers.conf ===================================== @@ -0,0 +1,5 @@ +# override these settings by copying this to /etc/sysusers.d/ and modifying it therein + +# Type Name ID GECOS Home directory Shell +g qbt - - +u! qbt - "qBittorrent User" /var/lib/qbittorrent ===================================== tmpfiles.conf ===================================== @@ -0,0 +1,3 @@ +# Type Path Mode User Group Age Argument +d /var/lib/qbittorrent 0700 qbt qbt - - +Z /var/lib/qbittorrent - qbt qbt - - View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/qbittorrent/-/commit/adf84bbbfccd456687a82221f8af58892736bea3 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/qbittorrent/-/commit/adf84bbbfccd456687a82221f8af58892736bea3 You're receiving this email because of your account on gitlab.archlinux.org.
