Separated the build-prerequisits
This commit is contained in:
parent
b2287c171c
commit
d0f5631626
|
|
@ -1,14 +1,19 @@
|
||||||
{
|
{
|
||||||
"install ssh": {
|
"Setup temp build env": {
|
||||||
"pacman -Syy --noconfirm git" : null,
|
"pacman -Syy --noconfirm git" : null,
|
||||||
"useradd -m -G wheel builder" : null,
|
"useradd -m -G wheel builder" : null,
|
||||||
"#Correct way would be to do cat PKGBUILD | grep 'depends=' | head -n 1 | ..." : null,
|
"#Correct way would be to do cat PKGBUILD | grep 'depends=' | head -n 1 | ..." : null,
|
||||||
"sed -i 's/# %wheel ALL=(ALL) NO/%wheel ALL=(ALL) NO/' /etc/sudoers" : null,
|
"sed -i 's/# %wheel ALL=(ALL) NO/%wheel ALL=(ALL) NO/' /etc/sudoers" : null
|
||||||
|
},
|
||||||
|
"install slimdhcp": {
|
||||||
|
|
||||||
"git https://aur.archlinux.org/slimdhcp-git.git /tmp/slimdhcp" : null,
|
"git https://aur.archlinux.org/slimdhcp-git.git /tmp/slimdhcp" : null,
|
||||||
"chown -R builder.builder /tmp/slimdhcp" : null,
|
"chown -R builder.builder /tmp/slimdhcp" : null,
|
||||||
"su - builder -c \"cd /tmp/slimdhcp; /usr/bin/makepkg -s --noconfirm\"" : null,
|
"su - builder -c \\"cd /tmp/slimdhcp; /usr/bin/makepkg -s --noconfirm\\"" : null,
|
||||||
"pacman -U --noconfirm /tmp/slimdhcp/*.xz" : null,
|
"pacman -U --noconfirm /tmp/slimdhcp/*.xz" : null
|
||||||
|
},
|
||||||
|
"Remove temp build env": {
|
||||||
"rm -rf /tmp/slimdhcp" : null,
|
"rm -rf /tmp/slimdhcp" : null,
|
||||||
"sed -i 's/%wheel ALL=(ALL) NO/# %wheel ALL=(ALL) NO/' /etc/sudoers" : null,
|
"sed -i 's/%wheel ALL=(ALL) NO/# %wheel ALL=(ALL) NO/' /etc/sudoers" : null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue