From 76cb7e7055d4bfe68ae8052f9abec459ba8e97fc Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Fri, 20 Aug 2021 20:16:07 -0400 Subject: alsvid3: Install and set up pbuilder for trisquel --- (limited to 'hosts/alsvid3/postinst') diff --git a/hosts/alsvid3/postinst b/hosts/alsvid3/postinst index 564e6e8..268256a 100644 --- a/hosts/alsvid3/postinst +++ b/hosts/alsvid3/postinst @@ -58,6 +58,13 @@ in_target adduser pj scanner || return 1 in_target adduser pj wireshark || return 1 in_target adduser pj sbuild || return 1 +# Keep env vars for pbuilder. +cat >"${target}/etc/sudoers.d/pbuilder" <<-EOF + Cmnd_Alias PBUILDER = /usr/sbin/pbuilder, /usr/bin/pdebuild, /usr/bin/debuild-pbuilder, /usr/sbin/cowbuilder + Defaults!PBUILDER env_keep+="DIST ARCH BUILD* TMPFS SIGNED HOME" + %sudo ALL=(ALL) SETENV: NOPASSWD: PBUILDER + EOF + # Add udev rule for USBtinyISP(-compatible) programmers. cat >"${target}/etc/udev/rules.d/10-usbtinyisp.rules" <<-EOF SUBSYSTEM=="usb", ATTR{idVendor}=="1781", ATTR{idProduct}=="0c9f", MODE="0660", GROUP="adm" @@ -152,8 +159,8 @@ in_target sudo -u pj vcsh clone ssh://git@git.pehjota.net/dotfiles/mr.git mr \ || return 1 in_target sudo -u pj mr update || return 1 in_target sudo -u pj /home/pj/bin/dfen claws-mail clipit fluxbox geeqie gimp \ - gpicview gtk keychain kicad midori mpd mpv redshift xdg-user-dirs \ - xfce4-terminal xscreensaver + gpicview gtk keychain kicad midori mpd mpv pbuilder redshift trisquel \ + xdg-user-dirs xfce4-terminal xscreensaver # Create XDG directories. sed 's/#.*$//; /^$/d;' "${target}/home/pj/.config/user-dirs.dirs" | \ -- cgit v0.9.1