Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: realtime-privileges 4-1: Upgrade to 4.
Browse files Browse the repository at this point in the history
Add nice limit of -11 for realtime group.
Add changelog entry.
Simplify quoting in file.
Switch to GPL3 as license as per the Arch Linux terms of service:
https://terms.archlinux.org/docs/terms-of-service/#_contribution_licenses

git-svn-id: file:///srv/repos/svn-community/svn@1117200 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
dvzrv authored and svntogit committed Jan 27, 2022
1 parent 0922396 commit 1188d89
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 18 deletions.
1 change: 1 addition & 0 deletions trunk/99-realtime-privileges.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@realtime - rtprio 98
@realtime - memlock unlimited
@realtime - nice -11
4 changes: 4 additions & 0 deletions trunk/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Changes with 4:
* Add an allowed nice value of -11 for the realtime group. This is required
e.g. for pipewire.

Changes with 3:
* Remove access to hpet0 and rtc0 for the realtime group as access is not
required in recent kernels and can be rather detrimental.
Expand Down
37 changes: 19 additions & 18 deletions trunk/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
# Maintainer: David Runge <dvzrv@archlinux.org>

pkgname=realtime-privileges
pkgver=3
pkgver=4
pkgrel=1
pkgdesc="Realtime privileges for users"
arch=('any')
arch=(any)
url="https://wiki.archlinux.org/index.php/Realtime_process_management"
license=('GPL')
groups=('pro-audio' 'realtime')
install="${pkgname}.install"
license=(GPL3)
groups=(pro-audio realtime)
install=${pkgname}.install
changelog=ChangeLog
source=("99-${pkgname}.conf"
"sysusers-${pkgname}.conf"
"40-${pkgname}.rules"
'ChangeLog')
sha512sums=('4d812d89561519fe79613d03b531408122a3ae729eba631187848c3480d6235b483102e8c647e6eb2f579293f462b0dae7f4f04d56e085063e24d69f3ed96b4a'
source=(
99-${pkgname}.conf
sysusers-${pkgname}.conf
40-${pkgname}.rules
ChangeLog
)
sha512sums=('10bba7242c27850287aeea5084ab54e6e71343672f611a047266bded0e3e0ab8d7cfb0eb3bc3e39c3625b0e49520605b038b640c342247a28f09c5c850182183'
'2f4d048a3e3c6de75bb7432092e1943143507110ff33aa9f7f2ca4ed3f028536c8f910735f5218f0fa6cc89e8eae70699bcce18c0dadc07e518fc3cf33611518'
'349b432f17f3b5ee061d21eddb75f5b424c5eca913053a68f4f959a418fc5dca9198b7cc9141869540ec8f6f1fa928452fca9993c8f2200c8fbda2b65a25f0ad'
'fd66feb3ef3ec28ebb1206f30f541e15c194863602711762fe9d7bb86228a3c93eca6b1b63d168e0357e3237bcf58e73e1d2b8414a04837cc87e815681b14e29')
b2sums=('f66a8b9f468201b4f0d4e3c69386794700beb674386ebedf45f187a22897cf1bffe1c3df657021d5fba652bbfc907f2dd0b3caf67da298b6d9b1703632509831'
'f66f92d4fe04743401d9f37bfd2a54393a0e66d24b82e05263842a68d9ef43691737898eb78ce6ab33dc78743b6143e140431230bc42ae02f80f5d34ac485d32')
b2sums=('ba49871609d0b8230be942a65d2c90277c1d6f398a3d6abc7a60a6f4e3141c3f9803608fd4af82368a5386ea3c7c233b7f5d36cc76999be62ba4c21381df8ddd'
'9a0c97a880ee034116e88dca34254505fc8599f85ad4228b2afc8812aba76ef17ff1f464ea93326972b6f603594ec758ea0aa011c2be388ebe94ebcf039cbf74'
'20dd3aa81d2c940b08091fc46199e98b8d5362e4b802ff1ce90f3d20554e9ad1c270228044407d5444ecbad960e9c8de29ff1ff7fe5652d875e8b1210a3db182'
'37bcfe3fae1f862adf87536d24dc3db6e386045d17bd8ec2c9f8e0a11b2c10ac9246b04d0c1e6c6b6e39bcedf8d71e593fa2937b0dd945f8353b249e30977672')
'7d4814748e92ffb74dc87c7839531b7d5e68fd7f0c9eb6abee25d23e4a4903fe9838082fefa55dcce51242c2b7437dc7290ceebe18ef7ef7cf42c886265fa444')

package() {
# realtime group installed through sysusers.d
install -vDm 644 "sysusers-${pkgname}.conf" \
"${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -vDm 644 sysusers-${pkgname}.conf "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
# limits for realtime group
install -vDm 644 "99-${pkgname}.conf" -t "${pkgdir}/etc/security/limits.d/"
# udev rules, giving access to devices to realtime group
install -vDm 644 "40-${pkgname}.rules" -t "${pkgdir}/usr/lib/udev/rules.d/"
install -vDm 644 99-${pkgname}.conf -t "${pkgdir}/etc/security/limits.d/"
# udev rules, giving access to devices for realtime group
install -vDm 644 40-${pkgname}.rules -t "${pkgdir}/usr/lib/udev/rules.d/"
install -vDm 644 ChangeLog -t "${pkgdir}/usr/share/doc/${pkgname}/"
}

0 comments on commit 1188d89

Please sign in to comment.