supervisor.mk 1.0 KB

1234567891011121314151617181920212223242526
  1. #############################################################
  2. #
  3. # python-supervisor
  4. #
  5. #############################################################
  6. SUPERVISOR_VERSION = 3.0a12
  7. SUPERVISOR_SOURCE = supervisor-$(SUPERVISOR_VERSION).tar.gz
  8. SUPERVISOR_SITE = http://pypi.python.org/packages/source/s/supervisor/
  9. SUPERVISOR_LICENSE_FILES = LICENSES.txt
  10. SUPERVISOR_DEPENDENCIES = python host-python-setuptools
  11. define SUPERVISOR_BUILD_CMDS
  12. (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
  13. endef
  14. define SUPERVISOR_INSTALL_TARGET_CMDS
  15. (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=/usr --root=$(TARGET_DIR))
  16. sed -i '1s|#!.*python.*|#!/usr/bin/env python|' $(TARGET_DIR)/usr/bin/{echo_supervisord_conf,pidproxy,supervisorctl,supervisord}
  17. $(INSTALL) -d -m 755 $(TARGET_DIR)/etc/supervisor.d
  18. $(INSTALL) -D -m 644 package/supervisor/supervisord.conf $(TARGET_DIR)/etc/supervisord.conf
  19. $(INSTALL) -m 755 package/supervisor/S99supervisord $(TARGET_DIR)/etc/init.d/S99supervisord
  20. endef
  21. $(eval $(generic-package))