From 9b17b0501f3b8af0fc1dec0c68b2d805f0b8fbd1 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Tue, 20 Apr 2021 10:33:47 +0200 Subject: [PATCH] add 'sudo' pkg --- pkg/de-p1st-sudo/PKGBUILD | 29 +++++++++++++++++++++++++++++ pkg/de-p1st-sudo/wheel | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkg/de-p1st-sudo/PKGBUILD create mode 100644 pkg/de-p1st-sudo/wheel diff --git a/pkg/de-p1st-sudo/PKGBUILD b/pkg/de-p1st-sudo/PKGBUILD new file mode 100644 index 0000000..e0e12f5 --- /dev/null +++ b/pkg/de-p1st-sudo/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Daniel Langbein +_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 +} diff --git a/pkg/de-p1st-sudo/wheel b/pkg/de-p1st-sudo/wheel new file mode 100644 index 0000000..4d384be --- /dev/null +++ b/pkg/de-p1st-sudo/wheel @@ -0,0 +1,2 @@ +# All members of group wheel can use sudo +%wheel ALL=(ALL) ALL \ No newline at end of file