60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2005/05/24 10:31:00 rillig Exp $
|
|
|
|
DISTNAME= man-db_${VERSION}.orig
|
|
PKGNAME= man-db-${VERSION}
|
|
PKGREVISION= 1
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
|
CATEGORIES= misc
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/m/man-db/}
|
|
|
|
MAINTAINER= reed@reedmedia.net
|
|
HOMEPAGE= http://www.chiark.greenend.org.uk/~cjwatson/code/man-db/
|
|
COMMENT= Manual pager and related man page utilities
|
|
|
|
CONFLICTS+= man-[0-9]*
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} != "NetBSD"
|
|
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_PKGLOCALEDIR= YES
|
|
GNU_CONFIGURE= YES
|
|
USE_TOOLS+= gmake
|
|
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
|
|
|
|
USE_DB185= YES
|
|
.include "../../mk/bdb.buildlink3.mk"
|
|
.if ${BDB_TYPE} != "native"
|
|
CONFIGURE_ARGS+= --with-db=${BDB_TYPE}
|
|
.endif
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|