Skip to content

Commit

Permalink
Release 0.4
Browse files Browse the repository at this point in the history
Add sudoers config for passwordless usage of aurto group
  • Loading branch information
alexheretic committed Feb 14, 2018
1 parent 0a1fc98 commit fa6bfb1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bin/aurto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

set -eu
version="0.3.1"
version="0.4"
command=${1:-}
arg1=${2:-}

Expand Down
4 changes: 4 additions & 0 deletions conf/50_aurto_passwordless
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
%wheel ALL=(ALL) NOPASSWD: /usr/bin/arch-nspawn
%wheel ALL=(ALL) NOPASSWD: /usr/bin/pacsync aurto
%wheel ALL=(ALL) NOPASSWD:SETENV: /usr/bin/makechrootpkg
%wheel ALL=(ALL) NOPASSWD:SETENV: /usr/bin/aurbuild_chroot
18 changes: 6 additions & 12 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@

PREFIX = /usr
build_dist_args?=

all:
@rm -rf target

@mkdir -p target/etc/pacman.d
@cp conf/aurto.pacman.conf target/etc/pacman.d/aurto

@mkdir -p target$(PREFIX)/bin
@cp -r bin/* target$(PREFIX)/bin/

@mkdir -p target$(PREFIX)/lib/aurto
@cp -r lib/* target$(PREFIX)/lib/aurto/
@install -D conf/aurto.pacman.conf target/etc/pacman.d/aurto
@install -Dm440 conf/50_aurto_passwordless -t target/etc/sudoers.d
@chmod 750 target/etc/sudoers.d

@mkdir -p target$(PREFIX)/lib/systemd/system
@cp -r timer/* target$(PREFIX)/lib/systemd/system/
@install -D bin/* -t target$(PREFIX)/bin
@install -D lib/* -t target$(PREFIX)/lib/aurto
@install -D timer/* -t target$(PREFIX)/lib/systemd/system

@if command -v tree >/dev/null 2>&1; then tree target; fi

0 comments on commit fa6bfb1

Please sign in to comment.