summaryrefslogtreecommitdiff
path: root/chat/gale/Makefile
blob: 60f54c6e4ca25a9a74dbcd7e911c635ca0c3213b (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
52
53
54
55
# $NetBSD: Makefile,v 1.16 2003/07/21 16:34:31 martti Exp $
#

DISTNAME=	gale-0.99a
PKGREVISION=	2
CATEGORIES=	chat
MASTER_SITES=	http://download.gale.org/

MAINTAINER=	lukem@NetBSD.org
HOMEPAGE=	http://gale.org
COMMENT=	Secure instant messaging system

USE_BUILDLINK2=		YES
USE_PKGINSTALL=		YES
USE_GNU_READLINE=	# needs rl_named_function()
USE_LIBTOOL=		YES
LTCONFIG_OVERRIDE=	${WRKSRC}/ltconfig ${WRKSRC}/liboopltconfig

GNU_CONFIGURE= 		YES
CONFIGURE_ARGS=		--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ENV+=		PROG_GLIB_CONFIG="${GLIB_CONFIG}"

CPPFLAGS+=		-I${BUILDLINK_PREFIX.rsaref}/include/rsaref
CPPFLAGS+=		-I${BUILDLINK_PREFIX.libwww}/include/w3c-libwww

PKG_SYSCONFSUBDIR?=	gale
EGDIR=			${PREFIX}/share/examples/${PKGBASE}

PKG_GROUPS=		gale
PKG_USERS=		gale:gale

SUPPORT_FILES=		${EGDIR}/COPYING ${PKG_SYSCONFDIR}/gale/COPYING
SUPPORT_FILES+=		${EGDIR}/ROOT ${PKG_SYSCONFDIR}/gale/auth/trusted/ROOT
OWN_DIRS=		${PKG_SYSCONFDIR}
OWN_DIRS+=		${PKG_SYSCONFDIR}/auth
OWN_DIRS+=		${PKG_SYSCONFDIR}/auth/private
OWN_DIRS+=		${PKG_SYSCONFDIR}/auth/trusted
OWN_DIRS_PERMS=		${PKG_SYSCONFDIR}/auth/cache			\
			${SHAREOWN} ${SHAREGRP} 0777
OWN_DIRS_PERMS+=	${PKG_SYSCONFDIR}/auth/local			\
			${SHAREOWN} ${SHAREGRP} 1777

post-install:
	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/kutils/ROOT ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/COPYING ${EGDIR}

.include "../../devel/boehm-gc/buildlink2.mk"
.include "../../devel/glib/buildlink2.mk"
.include "../../devel/readline/buildlink2.mk"
.include "../../net/adns/buildlink2.mk"
.include "../../security/rsaref/buildlink2.mk"
.include "../../www/libwww/buildlink2.mk"

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