talimat 718 B

1234567891011121314151617181920212223242526272829
  1. # Description= locate/updatedb birleştirilmiş uygulaması
  2. # Url= https://fedorahosted.org/mlocate/
  3. # Packager: milisarge
  4. # Depends on:
  5. name=mlocate
  6. version=0.26
  7. release=1
  8. source=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-${version}.tar.xz
  9. updatedb.conf)
  10. build() {
  11. cd ${name}-$version
  12. sed -i '/^groupname /s/mlocate/locate/' Makefile.in
  13. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
  14. make
  15. make DESTDIR="${PKG}" install
  16. chgrp 21 "${PKG}/usr/bin/locate"
  17. chmod 2755 "${PKG}/usr/bin/locate"
  18. ln -s locate "${PKG}/usr/bin/slocate"
  19. install -dm755 "${PKG}/var/lib"
  20. install -dm750 -g21 "${PKG}/var/lib/locate"
  21. install -Dm644 ../updatedb.conf "${PKG}/etc/updatedb.conf"
  22. }