32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
![]() |
# Description: locate ported from OpenBSD
|
||
|
# URL: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/locate/
|
||
|
# Maintainer: Han Boetes <han@mijncomputer.nl>
|
||
|
# Packager: Han Boetes <han@mijncomputer.nl>
|
||
|
# Depends on:
|
||
|
|
||
|
name=bsd_locate
|
||
|
version=1.1
|
||
|
release=2
|
||
|
source="http://www.xs4all.nl/~hanb/software/$name-$version.tar.gz"
|
||
|
|
||
|
build() {
|
||
|
cd $name-$version
|
||
|
|
||
|
gcc $CFLAGS -I. -DMMAP util.c locate.c -o locate
|
||
|
gcc $CFLAGS -I. locate.bigram.c -o locate.bigram
|
||
|
gcc $CFLAGS -I. locate.code.c -o locate.code
|
||
|
|
||
|
install -D -m 755 locate $PKG/usr/bin/locate
|
||
|
install -D -m 755 locate.bigram $PKG/usr/sbin/locate.bigram
|
||
|
install -D -m 755 locate.code $PKG/usr/sbin/locate.code
|
||
|
install -D -m 755 updatedb.sh $PKG/usr/sbin/locate.updatedb
|
||
|
install -D -m 755 mklocatedb.sh $PKG/usr/sbin/locate.mklocatedb
|
||
|
install -D -m 755 concatdb.sh $PKG/usr/sbin/locate.concatdb
|
||
|
install -D -m 755 locate.cron $PKG/etc/cron/weekly/locate
|
||
|
install -D -m 644 locate.rc $PKG/etc/locate.rc
|
||
|
install -D -m 644 locate.1 $PKG/usr/man/man1/locate.1
|
||
|
install -D -m 644 locate.updatedb.8 $PKG/usr/man/man8/locate.updatedb.8
|
||
|
install -m 755 -d $PKG/var/db/
|
||
|
touch $PKG/var/db/locate.database
|
||
|
}
|