add 'sudo' pkg

This commit is contained in:
Daniel Langbein 2021-04-20 10:33:47 +02:00
parent 2f2f598468
commit 9b17b0501f
2 changed files with 31 additions and 0 deletions

29
pkg/de-p1st-sudo/PKGBUILD Normal file
View File

@ -0,0 +1,29 @@
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=sudo
pkgname="de-p1st-$_pkgname"
pkgver=0.0.1
pkgrel=1
pkgdesc="sudo with configuration"
arch=('any')
url="https://git.privacy1st.de/langfingaz/arch-pkg.git"
license=('MIT')
groups=()
depends=()
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=() # autofill using updpkgsums, see https://man.archlinux.org/man/updpkgsums.8.en
package() {
cd "pkg/$pkgname"
install -Dm0644 wheel "$pkgdir"/etc/sudoers.d/wheel
}

2
pkg/de-p1st-sudo/wheel Normal file
View File

@ -0,0 +1,2 @@
# All members of group wheel can use sudo
%wheel ALL=(ALL) ALL