talimat 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Tanım: Apache Cassandra NoSQL veritabanı
  2. # URL: http://cassandra.apache.org/
  3. # Paketçi: milisarge
  4. # Gerekler: gnupg openjdk
  5. # Grup: geliştirme
  6. isim=cassandra
  7. surum=3.11.3
  8. devir=1
  9. kaynak=(https://www.apache.org/dist/cassandra/3.11.3/apache-cassandra-3.11.3-bin.tar.gz
  10. 01_fix_cassandra_home_path.patch
  11. cassandra-tmpfile.conf
  12. cassandra-user.conf)
  13. derle() {
  14. cd ${SRC}/apache-cassandra-${surum}
  15. patch -p0 < ${SRC}/01_fix_cassandra_home_path.patch
  16. mkdir -p ${PKG}/{etc/cassandra,var/log/cassandra}
  17. mkdir -p ${PKG}/{usr/bin,usr/share/cassandra,usr/share/java/cassandra}
  18. cp -a interface pylib tools ${PKG}/usr/share/cassandra/
  19. mkdir -p ${PKG}/usr/share/cassandra/bin/
  20. for f in bin/*; do
  21. if [[ ! "${f}" == *.bat && ! "${f}" == *.ps1 && -x ${f} ]]; then
  22. cp -a ${f} ${PKG}/usr/share/cassandra/bin/
  23. ln -s /usr/share/cassandra/${f} ${PKG}/usr/${f}
  24. fi
  25. done
  26. unlink ${PKG}/usr/bin/cqlsh.py
  27. cp -a bin/cassandra.in.sh ${PKG}/usr/share/cassandra/
  28. cp -a lib/* ${PKG}/usr/share/java/cassandra/
  29. ln -s ../java/cassandra ${PKG}/usr/share/cassandra/lib
  30. cp -a conf/* ${PKG}/etc/cassandra/
  31. rm ${PKG}/etc/cassandra/*.ps1
  32. ln -s /etc/cassandra ${PKG}/usr/share/cassandra/conf
  33. install -Dm644 ${SRC}/cassandra-tmpfile.conf ${PKG}/usr/lib/tmpfiles.d/cassandra.conf
  34. install -Dm644 ${SRC}/cassandra-user.conf ${PKG}/usr/lib/sysusers.d/cassandra.conf
  35. }