зеркало из https://github.com/mozilla/mig.git
[minor] add osx pkg target to fpm packaging in Makefile
This commit is contained in:
Родитель
4ba30f72cf
Коммит
4c5fafbd49
11
Makefile
11
Makefile
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче