From 5220aec19c74e8497e83d4579c1c10d774522f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Z=C3=B3ka?= <59315013+gabor-zoka@users.noreply.github.com> Date: Wed, 11 Nov 2020 23:32:27 +0000 Subject: [PATCH] Fixing the permission issue. --- PKGBUILD | 3 ++- cdrtools.install | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 cdrtools.install diff --git a/PKGBUILD b/PKGBUILD index a023f22..5b4bd5b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Lukas Jirkovsky pkgname=cdrtools pkgver=3.02a09 -pkgrel=3 +pkgrel=4 pkgdesc="Original cdrtools supporting CD, DVD and BluRay burning" arch=('x86_64') url="http://cdrecord.org/" @@ -14,6 +14,7 @@ options=(!makeflags) backup=('etc/default/cdrecord' 'etc/default/rscsi') source=(https://downloads.sourceforge.net/cdrtools/cdrtools-$pkgver.tar.bz2) sha256sums=('aa28438f458ef3f314b79f2029db27679dae1d5ffe1569b6de57742511915e81') +install=cdrtools.install build() { cd "$srcdir"/cdrtools-${pkgver%%a*} diff --git a/cdrtools.install b/cdrtools.install new file mode 100644 index 0000000..e231477 --- /dev/null +++ b/cdrtools.install @@ -0,0 +1,5 @@ +post_install() { + setcap cap_sys_resource,cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_ipc_lock,cap_sys_rawio+ep /usr/bin/cdrecord + setcap cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep /usr/bin/cdda2wav + setcap cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep /usr/bin/readcd +} -- 2.29.2