talimat 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Tanım: Gelişmiş nesne-ilişkisel veritabanı yönetim sistemi (ORDBMS).
  2. # URL: http://www.postgresql.org/docs
  3. # Paketçi: milisarge
  4. # Gerekler: python3
  5. # Grup: sistem
  6. isim=postgresql
  7. surum=10.5
  8. devir=1
  9. kaynak=(https://ftp.postgresql.org/pub/source/v$surum/postgresql-$surum.tar.bz2
  10. postgresql.logrotate
  11. postgresql.pam
  12. postgresql-check-db-dir
  13. postgresql_db_yukselt)
  14. derle() {
  15. cd $isim-$surum
  16. sed -i '/DEFAULT_PGSOCKET_DIR/s@/tmp@/run/postgresql@' src/include/pg_config_manual.h &&
  17. ./configure \
  18. --prefix=/usr \
  19. --sysconfdir=/etc \
  20. --includedir=/usr/include \
  21. --datarootdir=/usr/share \
  22. --datadir=/usr/share/postgresql \
  23. --with-openssl \
  24. --with-tcl \
  25. --with-perl \
  26. --with-pam \
  27. --with-python \
  28. --with-libxml \
  29. --with-libxslt \
  30. --enable-thread-safety \
  31. --with-system-tzdata=/usr/share/zoneinfo \
  32. --enable-nls \
  33. --disable-rpath
  34. make
  35. make DESTDIR=$PKG install
  36. PG_EXTENSIONS=${PG_EXTENSIONS:-"adminpack pgcrypto ltree xml2 postgres_fdw file_fdw hstore citext"}
  37. if [ "x$PG_EXTENSIONS" = "xALL" ];then
  38. cd $SRC/$isim-$surum/contrib
  39. make all
  40. make install-strip DESTDIR=$PKG
  41. else
  42. for ext in $PG_EXTENSIONS; do
  43. cd $SRC/$isim-$surum/contrib/$ext
  44. make
  45. make install-strip DESTDIR=$PKG
  46. done
  47. fi
  48. # logrotate betiği
  49. mkdir -p $PKG/etc/logrotate.d
  50. cat $SRC/$isim.logrotate > $PKG/etc/logrotate.d/$isim
  51. mkdir -p "${PKG}/etc/pam.d"
  52. install -Dm 755 "${SRC}/postgresql-check-db-dir" -t "${PKG}/usr/bin"
  53. install -Dm 755 "${SRC}/postgresql_db_yukselt" -t "${PKG}/usr/bin"
  54. install -Dm 644 "${SRC}/postgresql.pam" "${PKG}/etc/pam.d/postgresql"
  55. cd /sources/milis.git/ayarlar/servisler
  56. make DESTDIR=$PKG kur-$isim
  57. rm -rf $PKG/usr/share/doc
  58. rm -rf $PKG/etc/sysconfig
  59. }