[minor] add osx pkg target to fpm packaging in Makefile

This commit is contained in:
Julien Vehent 2014-06-19 18:02:21 -04:00
Родитель 4ba30f72cf
Коммит 4c5fafbd49
1 изменённых файлов: 11 добавлений и 0 удалений

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

@ -124,6 +124,17 @@ deb-agent: mig-agent
--url https://github.com/mozilla/mig --after-install tmp/agent_install.sh \
--architecture $(FPMARCH) -v $(BUILDREV) -s dir -t deb .
osxpkg-agent: mig-agent
rm -fr tmp
$(INSTALL) -D -m 0755 $(BINDIR)/mig-agent-$(BUILDREV) tmp/sbin/mig-agent-$(BUILDENV)
$(MKDIR) -p tmp/var/cache/mig
echo -en "#!/bin/sh\npkill mig-agent-$(BUILDENV)\nset -e\n[ -h /sbin/mig-agent -o -e /sbin/mig-agent ] && rm /sbin/mig-agent\nln -s /sbin/mig-agent-$(BUILDENV) /sbin/mig-agent\nchmod 500 /sbin/mig-agent-$(BUILDENV)\nchown root:root /sbin/mig-agent-$(BUILDENV)\n/sbin/mig-agent" > tmp/agent_install.sh
chmod 0755 tmp/agent_install.sh
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 .
rpm-scheduler: mig-scheduler
rm -rf tmp
$(INSTALL) -D -m 0755 $(BINDIR)/mig-scheduler tmp/sbin/mig-scheduler