|
|
| |
dodir /usr/share/man/man1 | dodir /usr/share/man/man1 |
| |
sed -i -e "/groupadd/s/^/#/;/chown.*slocate/s/^/#/" Makefile |
sed -i -e "/groupadd/s/^/#/;/chown.*slocate/s/^/#/" Makefile || die |
make DESTDIR=${D} install || die | make DESTDIR=${D} install || die |
| |
# make install for this package is blocked by sandbox | # make install for this package is blocked by sandbox |
# dobin slocate |
|
dosym slocate /usr/bin/locate | dosym slocate /usr/bin/locate |
dosym slocate /usr/bin/updatedb | dosym slocate /usr/bin/updatedb |
fperms 0755 /etc/cron.daily/slocate | fperms 0755 /etc/cron.daily/slocate |
# |
|
# dosym slocate.1.gz /usr/share/man/man1/locate.1.gz |
|
# |
|
keepdir /var/lib/slocate | keepdir /var/lib/slocate |
| |
|
|
# If this file doesn't exist, the first run of updatedb will create | # If this file doesn't exist, the first run of updatedb will create |
# it anyway. But doing this shuts it up. | # it anyway. But doing this shuts it up. |
if [ ! -f ${ROOT}/var/lib/slocate/slocate.db ] |
if [ ! -f ${ROOT}/var/lib/slocate/slocate.db ] ; then |
then |
|
touch ${D}/var/lib/slocate/slocate.db | touch ${D}/var/lib/slocate/slocate.db |
fi | fi |
| |
dodoc INSTALL LICENSE COPYING AUTHORS NEWS README ChangeLog | dodoc INSTALL LICENSE COPYING AUTHORS NEWS README ChangeLog |
| |
|
|
# man page fixing | # man page fixing |
rm -rf ${D}/usr/share/man/man1/locate.1.gz | rm -rf ${D}/usr/share/man/man1/locate.1.gz |
dosym slocate.1.gz /usr/share/man/man1/locate.1.gz | dosym slocate.1.gz /usr/share/man/man1/locate.1.gz |
| |
| |
# Make a fake updatedb.conf file, to shut slocate up |
|
echo "# There is a sample config file in :" > updatedb.conf |
|
echo "# /usr/share/doc/${PF}/updatedb.conf.gz" >> updatedb.conf |
|
insinto /etc | insinto /etc |
doins updatedb.conf |
doins ${FILESDIR}/updatedb.conf |
fperms 0644 /etc/updatedb.conf | fperms 0644 /etc/updatedb.conf |
|
|
dodoc ${FILESDIR}/updatedb.conf |
|
} | } |
| |
pkg_postinst() { | pkg_postinst() { |
|
|
ewarn "/etc/cron.daily/slocate.cron the .cron is no longer" | ewarn "/etc/cron.daily/slocate.cron the .cron is no longer" |
ewarn "in the filename" | ewarn "in the filename" |
echo | echo |
einfo "Please note that the /etc/updatedb.conf file is EMPTY" |
einfo "Note that the /etc/updatedb.conf file is generic" |
einfo "There is a sample configuration file in" |
einfo "Please customize it to your system requirements" |
einfo "/usr/share/doc/${PF}" |
|
} | } |