This commit is contained in:
Julien Vehent 2014-08-04 09:24:00 -04:00
Родитель f001954d22
Коммит a58666be0a
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -119,6 +119,7 @@ rpm-agent: mig-agent
$(INSTALL) -D -m 0755 $(BINDIR)/mig-agent-$(BUILDREV) tmp/sbin/mig-agent-$(BUILDENV)
$(MKDIR) -p tmp/var/cache/mig
make agent-install-script
make agent-cron
fpm -C tmp -n mig-agent --license GPL --vendor mozilla --description "Mozilla InvestiGator Agent" \
--url https://github.com/mozilla/mig --after-install tmp/agent_install.sh \
--architecture $(FPMARCH) -v $(BUILDREV) -s dir -t rpm .
@ -128,6 +129,7 @@ deb-agent: mig-agent
$(INSTALL) -D -m 0755 $(BINDIR)/mig-agent-$(BUILDREV) tmp/sbin/mig-agent-$(BUILDENV)
$(MKDIR) -p tmp/var/cache/mig
make agent-install-script
make agent-cron
fpm -C tmp -n mig-agent --license GPL --vendor mozilla --description "Mozilla InvestiGator Agent" \
--url https://github.com/mozilla/mig --after-install tmp/agent_install.sh \
--architecture $(FPMARCH) -v $(BUILDREV) -s dir -t deb .
@ -138,6 +140,7 @@ osxpkg-agent: mig-agent
$(INSTALL) -m 0755 $(BINDIR)/mig-agent-$(BUILDREV) tmp/sbin/mig-agent-$(BUILDENV)
$(MKDIR) -p tmp/var/cache/mig
make agent-install-script
make agent-cron
fpm -C tmp -n mig-agent --license GPL --vendor mozilla --description "Mozilla InvestiGator Agent" \
--url https://github.com/mozilla/mig --after-install tmp/agent_install.sh \
--architecture $(FPMARCH) -v $(BUILDREV) -s dir -t osxpkg --osxpkg-identifier-prefix org.mozilla.mig .
@ -151,6 +154,13 @@ agent-install-script:
echo '/sbin/mig-agent-$(BUILDENV)' >> tmp/agent_install.sh
chmod 0755 tmp/agent_install.sh
agent-cron:
mkdir -p tmp/etc/cron.d/
echo 'PATH="/sbin"' > tmp/etc/cron.d/mig-agent
echo 'SHELL=/bin/bash' >> tmp/etc/cron.d/mig-agent
echo '*/10 * * * * root /sbin/mig-agent -q=pid 2>&1 1>/dev/null || /sbin/mig-agent' >> tmp/etc/cron.d/mig-agent
chmod 0755 tmp/etc/cron.d/mig-agent
rpm-scheduler: mig-scheduler
rm -rf tmp
$(INSTALL) -D -m 0755 $(BINDIR)/mig-scheduler tmp/sbin/mig-scheduler