On Wed, Nov 04, 2009 at 03:49:02PM +0000, Stuart Henderson wrote:
> Since we now have @option always-update I thought it might be useful
> to make an actual package of the pkglocatedb that gets updated
> automatically.
>
> This one is generated from the ports tree (pkg_mklocatedb -p) rather
> than the packages as is the case with the usual pkglocatedb produced
> after a bulk build. Installs to /usr/local/share/pkglocatedb.
>
> Modelled on the sqlports port. Any comments, ok's?
> (Makefile inline for ease of reading, whole port attached but
> it's little more than this).
>
> # $OpenBSD$
>
> COMMENT = database of packages for use with locate(1)
>
> DISTNAME = pkglocatedb-0.0
> DISTFILES =
>
> CATEGORIES = databases
>
> PERMIT_PACKAGE_CDROM = Yes
> PERMIT_PACKAGE_FTP = Yes
> PERMIT_DISTFILES_CDROM =Yes
> PERMIT_DISTFILES_FTP = Yes
>
> do-build:
> pkg_mklocatedb -a -p ${PORTSDIR} > ${WRKBUILD}/pkglocatedb
>
> do-install:
> ${INSTALL_DATA} ${WRKBUILD}/pkglocatedb ${PREFIX}/share
>
> NO_REGRESS = Yes
> NO_CHECKSUM = Yes
>
> .include <bsd.port.mk>
Check with naddy and other porters to avoid duplicate work.
Otherwise, sure, looks cool