talimat 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Tanım: Erlang/OTP'de yazılmış AMQP'nin güvenilir ve kurumsal kurumsal mesajlaşma uygulaması
  2. # URL: https://rabbitmq.com
  3. # Paketçi: milisarge
  4. # Gerekler: erlang python3 python3-simplejson libxslt xmlto zip
  5. # Grup: kütüphane
  6. isim=rabbitmq
  7. surum=3.7.10
  8. devir=1
  9. kaynak=(https://github.com/rabbitmq/rabbitmq-server/archive/v${surum}.tar.gz::rabbitmq-$surum.tar.gz
  10. rabbitmq-env.conf
  11. rabbitmq.sysusers
  12. rabbitmq.tmpfiles
  13. rabbitmq-script-wrapper
  14. rabbitmq.logrotate)
  15. derle() {
  16. cd ${isim}-server-${surum}
  17. sed -r 's|^(SYS_PREFIX=).*$|\1""|' -i ./scripts/rabbitmq-defaults
  18. make -j1
  19. make DESTDIR="${PKG}" PREFIX=/usr RMQ_ROOTDIR=/usr/lib/rabbitmq \
  20. install install-man install-bin
  21. # using script wrapper for better bin handling
  22. local libdir="${PKG}/usr/lib/rabbitmq/lib/rabbitmq_server-${surum}"
  23. install -d "${PKG}/usr/bin"
  24. install -Dm 755 scripts/rabbitmq-script-wrapper -t "${PKG}/usr/lib/rabbitmq/bin"
  25. for script in "${libdir}"/sbin/rabbit*; do
  26. ln -s /usr/lib/rabbitmq/bin/rabbitmq-script-wrapper "${PKG}/usr/bin/${script#${libdir}/sbin/}"
  27. done
  28. install -Dm 644 "${SRC}/rabbitmq-env.conf" "${PKG}/etc/rabbitmq/rabbitmq-env.conf"
  29. install -Dm 644 "${SRC}/rabbitmq.sysusers" "${PKG}/usr/lib/sysusers.d/rabbitmq.conf"
  30. install -Dm 644 "${SRC}/rabbitmq.tmpfiles" "${PKG}/usr/lib/tmpfiles.d/rabbitmq.conf"
  31. install -Dm 644 "${SRC}/rabbitmq.logrotate" "${PKG}/etc/logrotate.d/rabbitmq"
  32. chown -R 197:0 "${PKG}/etc/rabbitmq"
  33. }