blob: 4c8bee2816188961c9be84bde1c36f148771d10d (
plain) (
blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# New ports collection makefile for: jabberd
# Date created: 29 December 2003
# Whom: Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= jabberd
PORTVERSION= 2.0.1
CATEGORIES= net
MASTER_SITES= http://www.jabberstudio.org/files/jabberd2/
DISTNAME= ${PORTNAME}-2.0s1
DIST_SUBDIR= jabber
MAINTAINER= demon@FreeBSD.org
COMMENT= Online presence and instant messaging server
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
GNU_CONFIGURE= yes
USE_OPENSSL= yes
CONFIGURE_ARGS= --localstatedir=/var \
--with-libiconv-prefix=${LOCALBASE} \
--with-openssl=${OPENSSLBASE} \
--enable-storage='${STORAGE}' \
--enable-authreg='${AUTHREG}'
STORAGE+= fs
AUTHREG+= anon pipe
.if !defined(WITHOUT_DEBUG)
CONFIGURE_ARGS+=--enable-debug
.endif
.if defined(WITH_POSTGRESQL)
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql-client
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}/include:${LOCALBASE}/lib
STORAGE+= pgsql
AUTHREG+= pgsql
.endif
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}/include/mysql:${LOCALBASE}/lib/mysql
STORAGE+= mysql
AUTHREG+= mysql
.endif
.if defined(WITH_BDB)
LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41
CONFIGURE_ARGS+=--with-berkeley-db=${LOCALBASE}/include/db41:${LOCALBASE}/lib
STORAGE+= db
AUTHREG+= db
.endif
.if defined(WITH_LDAP)
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}/include:${LOCALBASE}/lib
AUTHREG+= ldap
.endif
MAN8= c2s.8 jabberd.8 resolver.8 router.8 s2s.8 sm.8
pre-everything::
@${ECHO}
@${ECHO} "You can build Jabber with the following options:"
@${ECHO} "WITH_POSTGRESQL use PostgreSQL for storage and authentication"
@${ECHO} "WITH_BDB use Berkeley DB for storage and authentication"
@${ECHO} "WITH_MYSQL use MySQL for storage and authentication"
@${ECHO} "WITH_LDAP use LDAP for authentication"
@${ECHO}
pre-install:
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
${INSTALL_DATA} ${FILESDIR}/jabberd.sh ${PREFIX}/etc/rc.d/jabberd.sh-dist
@if [ ! -f ${PREFIX}/etc/rc.d/jabberd.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/jabberd.sh startup file."; \
${INSTALL_SCRIPT} ${FILESDIR}/jabberd.sh ${PREFIX}/etc/rc.d/jabberd.sh; \
fi
@${CHOWN} -R jabber:jabber ${PREFIX}/etc/jabberd
@${FIND} ${PREFIX}/etc/jabberd -type d | ${XARGS} ${CHMOD} 750
@${FIND} ${PREFIX}/etc/jabberd -type f | ${XARGS} ${CHMOD} 660
@${MKDIR} ${PREFIX}/share/jabberd
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.mysql ${PREFIX}/share/jabberd
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.pgsql ${PREFIX}/share/jabberd
.include <bsd.port.mk>
|