2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: locate/updatedb birleştirilmiş uygulaması
|
|
|
|
|
# Url: https://fedorahosted.org/mlocate/
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2017-02-13 12:38:29 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=mlocate
|
|
|
|
|
surum=0.26
|
|
|
|
|
devir=1
|
2017-02-13 12:38:29 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
kaynak=(https://fedorahosted.org/releases/m/l/mlocate/mlocate-${surum}.tar.xz
|
2017-02-13 12:38:29 +01:00
|
|
|
|
updatedb.conf)
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cd ${isim}-$surum
|
2017-02-13 12:38:29 +01:00
|
|
|
|
sed -i '/^groupname /s/mlocate/locate/' Makefile.in
|
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR="${PKG}" install
|
|
|
|
|
|
|
|
|
|
chgrp 21 "${PKG}/usr/bin/locate"
|
|
|
|
|
chmod 2755 "${PKG}/usr/bin/locate"
|
|
|
|
|
ln -s locate "${PKG}/usr/bin/slocate"
|
|
|
|
|
|
|
|
|
|
install -dm755 "${PKG}/var/lib"
|
|
|
|
|
install -dm750 -g21 "${PKG}/var/lib/locate"
|
|
|
|
|
|
|
|
|
|
install -Dm644 ../updatedb.conf "${PKG}/etc/updatedb.conf"
|
|
|
|
|
}
|