Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/deployments/router.json
diff options
context:
space:
mode:
authorLord Anton Hvornum <anton.hvo@gmail.com>2018-05-24 20:39:35 +0200
committerLord Anton Hvornum <anton.hvo@gmail.com>2018-05-24 20:39:35 +0200
commit022b375185dacebcce15bea72486279b159f1a4b (patch)
treef2343015b880f3eb0a61ae90651cf7ac8d668e90 /deployments/router.json
parent225b0b6451f6bb5eaf558c8ba309d64bde3910ef (diff)
Rebased the deployment examples
Diffstat (limited to 'deployments/router.json')
-rw-r--r--deployments/router.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/deployments/router.json b/deployments/router.json
new file mode 100644
index 00000000..48e038c0
--- /dev/null
+++ b/deployments/router.json
@@ -0,0 +1,17 @@
+{
+ "Setup temp build env": {
+ "pacman -Syy --noconfirm git" : null,
+ "useradd -m -G wheel builder" : null,
+ "sed -i 's/# %wheel ALL=(ALL) NO/%wheel ALL=(ALL) NO/' /etc/sudoers" : null
+ },
+ "install slimdhcp": {
+ "git clone https://aur.archlinux.org/slimdhcp-git.git /home/builder/slimdhcp" : null,
+ "chown -R builder.builder /home/builder/slimdhcp" : null,
+ "su - builder -c \"(cd /home/builder/slimdhcp/; /usr/bin/makepkg -s --noconfirm)\"" : null,
+ "sh -c 'pacman -U --noconfirm /home/builder/slimdhcp/*.xz'" : null
+ },
+ "Remove temp build env": {
+ "rm -rf /home/builder/slimdhcp" : null,
+ "sed -i 's/%wheel ALL=(ALL) NO/# %wheel ALL=(ALL) NO/' /etc/sudoers" : null
+ }
+}