summaryrefslogtreecommitdiff
path: root/databases/lbdb/Makefile
blob: d78157b9e52220b868946ed126b5f0000d01eed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $NetBSD: Makefile,v 1.39 2021/05/24 19:49:29 wiz Exp $

DISTNAME=		lbdb_0.48.1
PKGNAME=		${DISTNAME:S/_/-/}
PKGREVISION=		3
CATEGORIES=		databases
MASTER_SITES=		http://www.spinnaker.de/lbdb/download/

MAINTAINER=		tonio@NetBSD.org
HOMEPAGE=		https://www.spinnaker.de/lbdb/
COMMENT=		The little brother's database
LICENSE=		gnu-gpl-v2

DEPENDS+=		p5-perl-ldap>=0.20:../../databases/p5-perl-ldap

GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake perl:run

GNU_CONFIGURE_LIBSUBDIR=	../libexec/lbdb
CONFIGURE_ARGS+=		--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=		--enable-lbdb_dotlock
CONFIGURE_ARGS+=		--without-getent
CONFIGURE_ARGS+=		--without-evolution-addressbook-export
CONFIGURE_ARGS+=		--without-pgp
CONFIGURE_ARGS+=		--without-pgpk

CONFIGURE_ENV+=		SH=${TOOLS_SH}
CONFIGURE_ENV+=		AWK=${TOOLS_AWK}
CONFIGURE_ENV+=		ac_cv_path_TAC=NONE

.include "options.mk"

WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}

EGDIR=			${PREFIX}/share/examples/lbdb
CONF_FILES+=		${EGDIR}/lbdb.rc ${PKG_SYSCONFDIR}/lbdb.rc
CONF_FILES+=		${EGDIR}/lbdb_ldap.rc ${PKG_SYSCONFDIR}/lbdb_ldap.rc

PLIST_VARS+=		finger
.if ${OPSYS} != "SunOS" || exists(/usr/bin/finger)
PLIST.finger=		yes
.endif

PLIST_VARS+=		yp
.if ${OPSYS} != "Interix" && exists(/usr/bin/yppasswd)
PLIST.yp=		yes
.endif

INSTALL_MAKE_FLAGS+=	install_prefix=${DESTDIR}

.include "../../mk/bsd.pkg.mk"