summaryrefslogtreecommitdiffstats
path: root/hosts/alsvid3/postinst
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-08-20 20:16:07 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-08-20 20:16:07 (EDT)
commit76cb7e7055d4bfe68ae8052f9abec459ba8e97fc (patch)
tree0ab704a9f82ce39b912668edf2fe6e190c94a72e /hosts/alsvid3/postinst
parenteab790d824486679faa065aad08c15f555dadb62 (diff)
downloadpc-inst-76cb7e7055d4bfe68ae8052f9abec459ba8e97fc.zip
pc-inst-76cb7e7055d4bfe68ae8052f9abec459ba8e97fc.tar.gz
pc-inst-76cb7e7055d4bfe68ae8052f9abec459ba8e97fc.tar.bz2
alsvid3: Install and set up pbuilder for trisquel
Diffstat (limited to 'hosts/alsvid3/postinst')
-rw-r--r--hosts/alsvid3/postinst11
1 files changed, 9 insertions, 2 deletions
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" | \