--- slocate-2.7-r1.ebuild.orig 2003-04-13 19:56:11.000000000 -0700 +++ slocate-2.7-r1.ebuild 2003-04-13 20:12:23.000000000 -0700 @@ -17,43 +17,31 @@ 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 install for this package is blocked by sandbox -# dobin slocate dosym slocate /usr/bin/locate dosym slocate /usr/bin/updatedb fperms 0755 /etc/cron.daily/slocate -# -# dosym slocate.1.gz /usr/share/man/man1/locate.1.gz -# keepdir /var/lib/slocate - # If this file doesn't exist, the first run of updatedb will create # it anyway. But doing this shuts it up. - if [ ! -f ${ROOT}/var/lib/slocate/slocate.db ] - then + if [ ! -f ${ROOT}/var/lib/slocate/slocate.db ] ; then touch ${D}/var/lib/slocate/slocate.db fi dodoc INSTALL LICENSE COPYING AUTHORS NEWS README ChangeLog - # man page fixing rm -rf ${D}/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 - doins updatedb.conf + doins ${FILESDIR}/updatedb.conf fperms 0644 /etc/updatedb.conf - - dodoc ${FILESDIR}/updatedb.conf } pkg_postinst() { @@ -72,7 +60,6 @@ ewarn "/etc/cron.daily/slocate.cron the .cron is no longer" ewarn "in the filename" echo - einfo "Please note that the /etc/updatedb.conf file is EMPTY" - einfo "There is a sample configuration file in" - einfo "/usr/share/doc/${PF}" + einfo "Note that the /etc/updatedb.conf file is generic" + einfo "Please customize it to your system requirements" }