2011-07-28 17:53:48 +00:00
|
|
|
# Convenience targets for building and installing Arch packages
|
|
|
|
# prior to committing changes to git.
|
|
|
|
|
|
|
|
local:
|
2011-08-08 16:47:48 +00:00
|
|
|
-rm -rf ../../build
|
|
|
|
-rm salt-*.pkg.tar.xz
|
|
|
|
-rm -rf pkg
|
|
|
|
if [ "$$(id -u)" -eq 0 ]; \
|
|
|
|
then \
|
|
|
|
makepkg -f -p PKGBUILD-local --asroot; \
|
|
|
|
else \
|
|
|
|
makepkg -f -p PKGBUILD-local; \
|
|
|
|
fi
|
2011-07-28 17:53:48 +00:00
|
|
|
rm -rf pkg
|
2011-08-08 16:47:48 +00:00
|
|
|
-rm -rf ../../build
|
2011-07-28 17:53:48 +00:00
|
|
|
|
|
|
|
install: local
|
2011-08-08 16:47:48 +00:00
|
|
|
-/etc/rc.d/salt-monitor stop
|
|
|
|
-/etc/rc.d/salt-minion stop
|
|
|
|
-/etc/rc.d/salt-master stop
|
2011-07-28 17:53:48 +00:00
|
|
|
-yes | pacman -R salt-local
|
|
|
|
-yes | pacman -R salt-git
|
|
|
|
-yes | pacman -R salt
|
|
|
|
yes | pacman -U salt-local-*
|
|
|
|
|