2006-10-29 09:32:37 +01:00
|
|
|
# $NetBSD: Makefile,v 1.18 2006/10/29 08:32:47 shattered Exp $
|
2003-08-20 10:55:21 +02:00
|
|
|
|
2004-05-21 09:27:32 +02:00
|
|
|
DISTNAME= man-db_${VERSION}.orig
|
|
|
|
PKGNAME= man-db-${VERSION}
|
2005-02-02 08:12:38 +01:00
|
|
|
PKGREVISION= 1
|
2003-08-20 10:55:21 +02:00
|
|
|
CATEGORIES= misc
|
2004-05-21 09:27:32 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/m/man-db/}
|
2003-08-20 10:55:21 +02:00
|
|
|
|
2003-08-29 17:34:31 +02:00
|
|
|
MAINTAINER= reed@reedmedia.net
|
2003-08-20 10:55:21 +02:00
|
|
|
HOMEPAGE= http://www.chiark.greenend.org.uk/~cjwatson/code/man-db/
|
2003-10-02 01:52:50 +02:00
|
|
|
COMMENT= Manual pager and related man page utilities
|
2003-08-20 10:55:21 +02:00
|
|
|
|
2005-02-02 08:12:38 +01:00
|
|
|
CONFLICTS+= man-[0-9]*
|
|
|
|
|
2005-10-10 16:00:12 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
|
|
|
2004-05-21 09:27:32 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} != "NetBSD"
|
2003-08-20 10:55:21 +02:00
|
|
|
DEPENDS+= groff-[0-9]*:../../textproc/groff
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !exists(/usr/bin/yacc)
|
2006-10-29 09:32:37 +01:00
|
|
|
BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison
|
2003-08-20 10:55:21 +02:00
|
|
|
.endif
|
|
|
|
|
2003-10-02 01:52:50 +02:00
|
|
|
VERSION= 2.4.2
|
2003-08-20 10:55:21 +02:00
|
|
|
|
2003-08-21 09:33:42 +02:00
|
|
|
MAN_DB_CAT_DIR?= /var/cache/man
|
|
|
|
|
2003-08-20 10:55:21 +02:00
|
|
|
# for modifying cat and database files
|
|
|
|
MAN_DB_USER?= man-db
|
2005-08-23 13:49:43 +02:00
|
|
|
PKG_USERS= ${MAN_DB_USER}:${ROOT_GROUP}::man-db\ user:${MAN_DB_CAT_DIR}
|
2003-08-20 10:55:21 +02:00
|
|
|
|
|
|
|
USE_PKGLOCALEDIR= YES
|
|
|
|
GNU_CONFIGURE= YES
|
2005-05-24 12:29:21 +02:00
|
|
|
USE_TOOLS+= gmake
|
2006-09-09 04:49:32 +02:00
|
|
|
MAKE_FILE= GNUmakefile
|
2003-08-20 10:55:21 +02:00
|
|
|
CONFIGURE_ARGS+= --mandir=${PREFIX}/man
|
2005-12-05 23:27:44 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --enable-setuid=${MAN_DB_USER:Q}
|
2003-08-20 10:55:21 +02:00
|
|
|
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/man-db/man_db.conf ${PKG_SYSCONFDIR}/man_db.conf
|
|
|
|
|
2003-10-02 01:52:50 +02:00
|
|
|
OWN_DIRS_PERMS= ${MAN_DB_CAT_DIR} ${MAN_DB_USER} ${ROOT_GROUP} 2755
|
2003-08-21 09:33:42 +02:00
|
|
|
|
|
|
|
MESSAGE_SUBST+= MAN_DB_USER=${MAN_DB_USER}
|
|
|
|
|
2003-08-20 10:55:21 +02:00
|
|
|
pre-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/man-db
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/man_db.conf ${PREFIX}/share/examples/man-db
|
|
|
|
|
2004-05-21 09:27:32 +02:00
|
|
|
USE_DB185= YES
|
|
|
|
.include "../../mk/bdb.buildlink3.mk"
|
|
|
|
.if ${BDB_TYPE} != "native"
|
2005-12-05 23:27:44 +01:00
|
|
|
CONFIGURE_ARGS+= --with-db=${BDB_TYPE:Q}
|
2004-05-21 09:27:32 +02:00
|
|
|
.endif
|
2003-08-20 10:55:21 +02:00
|
|
|
|
2004-05-21 09:27:32 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2003-08-20 10:55:21 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|