Also, developer used some of my patches that I submitted to him, so they can be removed now.
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2003/10/01 23:52:50 jeremy-c-reed Exp $
|
|
|
|
DISTNAME= man-db-${VERSION}
|
|
CATEGORIES= misc
|
|
MASTER_SITES= http://savannah.nongnu.org/download/man-db/stable.pkg/${VERSION}/
|
|
|
|
MAINTAINER= reed@reedmedia.net
|
|
HOMEPAGE= http://www.chiark.greenend.org.uk/~cjwatson/code/man-db/
|
|
COMMENT= Manual pager and related man page utilities
|
|
|
|
.if !exists(/usr/bin/nroff)
|
|
DEPENDS+= groff-[0-9]*:../../textproc/groff
|
|
.endif
|
|
|
|
.if !exists(/usr/bin/yacc)
|
|
BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
|
|
.endif
|
|
|
|
VERSION= 2.4.2
|
|
|
|
MAN_DB_CAT_DIR?= /var/cache/man
|
|
|
|
# for modifying cat and database files
|
|
MAN_DB_USER?= man-db
|
|
PKG_USERS= ${MAN_DB_USER}:${ROOT_GROUP}::man-db\\ user:${MAN_DB_CAT_DIR}
|
|
USE_PKGINSTALL= YES
|
|
|
|
USE_BUILDLINK2= YES
|
|
USE_PKGLOCALEDIR= YES
|
|
GNU_CONFIGURE= YES
|
|
USE_GMAKE= YES
|
|
MAKEFILE= GNUmakefile
|
|
CONFIGURE_ARGS+= --mandir=${PREFIX}/man
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --enable-setuid=${MAN_DB_USER}
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/man-db/man_db.conf ${PKG_SYSCONFDIR}/man_db.conf
|
|
|
|
OWN_DIRS_PERMS= ${MAN_DB_CAT_DIR} ${MAN_DB_USER} ${ROOT_GROUP} 2755
|
|
|
|
MESSAGE_SUBST+= MAN_DB_USER=${MAN_DB_USER}
|
|
|
|
pre-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/man-db
|
|
${INSTALL_DATA} ${WRKSRC}/src/man_db.conf ${PREFIX}/share/examples/man-db
|
|
|
|
.include "../../databases/db/buildlink2.mk"
|
|
.include "../../devel/gettext-lib/buildlink2.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|