Lines 6-23
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= jabberd |
8 |
PORTNAME= jabberd |
9 |
PORTVERSION= 2.0.11 |
9 |
PORTVERSION= 2.1.10 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= net-im |
10 |
CATEGORIES= net-im |
12 |
MASTER_SITES= http://jabberstudio.rediris.es/jabberd2/ \ |
11 |
MASTER_SITES= http://ftp.xiaoka.com/jabberd2/releases/ |
13 |
http://jabberstudio.2nw.net/jabberd2/ |
|
|
14 |
DISTNAME= ${PORTNAME}-${PORTVERSION:R}s${PORTVERSION:E} |
15 |
DIST_SUBDIR= jabber |
12 |
DIST_SUBDIR= jabber |
16 |
|
13 |
|
17 |
MAINTAINER= kirk@strauser.com |
14 |
MAINTAINER= mm@FreeBSD.org |
18 |
COMMENT= Online presence and instant messaging server |
15 |
COMMENT= Online presence and instant messaging server |
19 |
|
16 |
|
20 |
LIB_DEPENDS= idn.16:${PORTSDIR}/dns/libidn |
17 |
LIB_DEPENDS= idn.16:${PORTSDIR}/dns/libidn \ |
|
|
18 |
gsasl.10:${PORTSDIR}/security/gsasl |
21 |
|
19 |
|
22 |
OPTIONS= POSTGRESQL "Use PostgreSQL for storage and authentication" off \ |
20 |
OPTIONS= POSTGRESQL "Use PostgreSQL for storage and authentication" off \ |
23 |
MYSQL "Use MySQL for storage and authentication" off \ |
21 |
MYSQL "Use MySQL for storage and authentication" off \ |
Lines 26-44
Link Here
|
26 |
SQLITE "Use SQLITE3 for storage" off \ |
24 |
SQLITE "Use SQLITE3 for storage" off \ |
27 |
PAM "Use PAM for authentication" off \ |
25 |
PAM "Use PAM for authentication" off \ |
28 |
PIPE "Enable pipe auth/reg support" off \ |
26 |
PIPE "Enable pipe auth/reg support" off \ |
29 |
AVATAR "Enable avatar support in vCard" off \ |
27 |
ANON "Enable anonymous auth/reg support" off \ |
30 |
DEBUG "Compile with debug information" on |
28 |
DEBUG "Compile with debug information" on |
31 |
|
29 |
|
32 |
GNU_CONFIGURE= yes |
30 |
GNU_CONFIGURE= yes |
33 |
USE_OPENSSL= yes |
31 |
USE_OPENSSL= yes |
34 |
USE_ICONV= yes |
32 |
USE_ICONV= yes |
35 |
USE_RC_SUBR= jabberd.sh |
33 |
USE_RC_SUBR= jabberd |
|
|
34 |
USE_LDCONFIG= ${TARGETDIR}/lib/jabberd |
36 |
CONFIGURE_ARGS= --localstatedir=/var \ |
35 |
CONFIGURE_ARGS= --localstatedir=/var \ |
|
|
36 |
--sysconfdir=${PREFIX}/etc/jabberd \ |
37 |
--enable-ssl \ |
37 |
--enable-ssl \ |
38 |
--with-extra-include-path=${LOCALBASE}/include${EIP} \ |
38 |
--with-extra-include-path="${LOCALBASE}/include ${EIP}" \ |
39 |
--with-extra-library-path=${LOCALBASE}/lib${ELP} \ |
39 |
--with-extra-library-path="${LOCALBASE}/lib ${ELP}" \ |
40 |
--enable-fs |
40 |
--enable-fs |
41 |
|
41 |
|
|
|
42 |
JABBER_USER= jabber |
43 |
JABBER_UID= 93 |
44 |
JABBER_GROUP= ${JABBER_USER} |
45 |
JABBER_GID= ${JABBER_UID} |
46 |
JABBER_ETCDIR= "${TARGETDIR}/etc/jabberd" |
47 |
JABBER_RUNDIR= "/var/jabberd" |
48 |
|
49 |
SUB_LIST+= JABBER_USER=${JABBER_USER} JABBER_UID=${JABBER_UID} \ |
50 |
JABBER_GROUP=${JABBER_GROUP} JABBER_GID=${JABBER_GID} \ |
51 |
JABBER_ETCDIR="${JABBER_ETCDIR}" \ |
52 |
JABBER_RUNDIR="${JABBER_RUNDIR}" |
53 |
|
54 |
SUB_FILES+= pkg-install pkg-deinstall |
55 |
|
56 |
PORTDOCS= * |
57 |
|
58 |
DOCFILES= AUTHORS BUGS COPYING ChangeLog INSTALL NEWS PROTOCOL README \ |
59 |
TODO UPGRADE |
60 |
|
42 |
.include <bsd.port.pre.mk> |
61 |
.include <bsd.port.pre.mk> |
43 |
|
62 |
|
44 |
.if defined(WITH_DEBUG) |
63 |
.if defined(WITH_DEBUG) |
Lines 48-62
Link Here
|
48 |
.if defined(WITH_POSTGRESQL) |
67 |
.if defined(WITH_POSTGRESQL) |
49 |
USE_PGSQL= yes |
68 |
USE_PGSQL= yes |
50 |
CONFIGURE_ARGS+=--enable-pgsql |
69 |
CONFIGURE_ARGS+=--enable-pgsql |
|
|
70 |
PLIST_SUB+= SUB_PGSQL="" |
51 |
.else |
71 |
.else |
52 |
CONFIGURE_ARGS+=--disable-pgsql |
72 |
CONFIGURE_ARGS+=--disable-pgsql |
|
|
73 |
PLIST_SUB+= SUB_PGSQL="@comment " |
53 |
.endif |
74 |
.endif |
54 |
|
75 |
|
55 |
.if defined(WITH_SQLITE) |
76 |
.if defined(WITH_SQLITE) |
56 |
CONFIGURE_ARGS+=--enable-sqlite |
77 |
CONFIGURE_ARGS+=--enable-sqlite |
57 |
LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3 |
78 |
LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3 |
|
|
79 |
PLIST_SUB+= SUB_SQLITE="" |
58 |
.else |
80 |
.else |
59 |
CONFIGURE_ARGS+=--disable-sqlite |
81 |
CONFIGURE_ARGS+=--disable-sqlite |
|
|
82 |
PLIST_SUB+= SUB_SQLITE="@comment " |
60 |
.endif |
83 |
.endif |
61 |
|
84 |
|
62 |
.if defined(WITH_MYSQL) |
85 |
.if defined(WITH_MYSQL) |
Lines 64-117
Link Here
|
64 |
CONFIGURE_ARGS+=--enable-mysql |
87 |
CONFIGURE_ARGS+=--enable-mysql |
65 |
EIP+=:${LOCALBASE}/include/mysql |
88 |
EIP+=:${LOCALBASE}/include/mysql |
66 |
ELP+=:${LOCALBASE}/lib/mysql |
89 |
ELP+=:${LOCALBASE}/lib/mysql |
|
|
90 |
PLIST_SUB+= SUB_MYSQL="" |
67 |
.else |
91 |
.else |
68 |
CONFIGURE_ARGS+=--disable-mysql |
92 |
CONFIGURE_ARGS+=--disable-mysql |
|
|
93 |
PLIST_SUB+= SUB_MYSQL="@comment " |
69 |
.endif |
94 |
.endif |
70 |
|
95 |
|
71 |
.if defined(WITH_BDB) |
96 |
.if defined(WITH_BDB) |
72 |
USE_BDB= yes |
97 |
USE_BDB= yes |
73 |
WANT_BDB_VER= 43 |
|
|
74 |
CONFIGURE_ARGS+=--enable-db |
98 |
CONFIGURE_ARGS+=--enable-db |
75 |
CONFIGURE_ARGS+=--oldincludedir=/nonexistant |
99 |
CONFIGURE_ARGS+=--oldincludedir=/nonexistant |
76 |
EIP+=:${BDB_INCLUDE_DIR} |
100 |
EIP+=:${BDB_INCLUDE_DIR} |
77 |
ELP+=:${BDB_LIB_DIR} |
101 |
ELP+=:${BDB_LIB_DIR} |
|
|
102 |
PLIST_SUB+= SUB_BDB="" |
78 |
.else |
103 |
.else |
79 |
CONFIGURE_ARGS+=--disable-db |
104 |
CONFIGURE_ARGS+=--disable-db |
|
|
105 |
PLIST_SUB+= SUB_BDB="@comment " |
80 |
.endif |
106 |
.endif |
81 |
|
107 |
|
82 |
.if defined(WITH_LDAP) |
108 |
.if defined(WITH_LDAP) |
83 |
USE_OPENLDAP= yes |
109 |
USE_OPENLDAP= yes |
84 |
CONFIGURE_ARGS+=--enable-ldap |
110 |
CONFIGURE_ARGS+=--enable-ldap |
|
|
111 |
PLIST_SUB+= SUB_LDAP="" |
85 |
.else |
112 |
.else |
86 |
CONFIGURE_ARGS+=--disable-ldap |
113 |
CONFIGURE_ARGS+=--disable-ldap |
|
|
114 |
PLIST_SUB+= SUB_LDAP="@comment " |
87 |
.endif |
115 |
.endif |
88 |
|
116 |
|
89 |
.if defined(WITH_PAM) |
117 |
.if defined(WITH_PAM) |
90 |
CONFIGURE_ARGS+=--enable-pam |
118 |
CONFIGURE_ARGS+=--enable-pam |
|
|
119 |
PLIST_SUB+= SUB_PAM="" |
91 |
.else |
120 |
.else |
92 |
CONFIGURE_ARGS+=--disable-pam |
121 |
CONFIGURE_ARGS+=--disable-pam |
|
|
122 |
PLIST_SUB+= SUB_PAM="@comment " |
93 |
.endif |
123 |
.endif |
94 |
|
124 |
|
95 |
.if defined(WITH_PIPE) |
125 |
.if defined(WITH_PIPE) |
96 |
CONFIGURE_ARGS+=--enable-pipe |
126 |
CONFIGURE_ARGS+=--enable-pipe |
|
|
127 |
PLIST_SUB+= SUB_PIPE="" |
128 |
.else |
129 |
PLIST_SUB+= SUB_PIPE="@comment " |
97 |
.endif |
130 |
.endif |
98 |
|
131 |
|
99 |
.if defined(WITH_AVATAR) |
132 |
.if defined(WITH_ANON) |
100 |
PATCH_SITES+= http://www.deepdarc.com/ |
133 |
CONFIGURE_ARGS+=--enable-anon |
101 |
PATCHFILES+= vcard-avatar.diff |
134 |
PLIST_SUB+= SUB_ANON="" |
|
|
135 |
.else |
136 |
PLIST_SUB+= SUB_ANON="@comment " |
102 |
.endif |
137 |
.endif |
103 |
|
138 |
|
104 |
MAN8= c2s.8 jabberd.8 resolver.8 router.8 s2s.8 sm.8 |
139 |
MAN8= c2s.8 jabberd.8 resolver.8 router.8 s2s.8 sm.8 |
105 |
|
140 |
|
106 |
pre-install: |
|
|
107 |
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
108 |
|
109 |
post-install: |
141 |
post-install: |
110 |
@${CHOWN} -R jabber:jabber ${PREFIX}/etc/jabberd |
142 |
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
|
|
143 |
@${CHOWN} -R ${JABBER_USER}:${JABBER_GROUP} ${PREFIX}/etc/jabberd |
111 |
@${FIND} ${PREFIX}/etc/jabberd -type d | ${XARGS} ${CHMOD} 750 |
144 |
@${FIND} ${PREFIX}/etc/jabberd -type d | ${XARGS} ${CHMOD} 750 |
112 |
@${FIND} ${PREFIX}/etc/jabberd -type f | ${XARGS} ${CHMOD} 660 |
145 |
@${FIND} ${PREFIX}/etc/jabberd -type f | ${XARGS} ${CHMOD} 660 |
113 |
@${MKDIR} ${DATADIR} |
146 |
.if !defined(NOPORTDOCS) |
114 |
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.mysql ${DATADIR} |
147 |
@${MKDIR} ${DOCSDIR} |
115 |
@${INSTALL_DATA} ${WRKSRC}/tools/db-setup.pgsql ${DATADIR} |
148 |
.for FILE in ${DOCFILES} |
|
|
149 |
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} |
150 |
.endfor |
151 |
.for FILE in db-setup.mysql db-setup.pgsql db-setup.sqlite |
152 |
@${INSTALL_DATA} ${WRKSRC}/tools/${FILE} ${DOCSDIR} |
153 |
.endfor |
154 |
.endif |
116 |
|
155 |
|
117 |
.include <bsd.port.post.mk> |
156 |
.include <bsd.port.post.mk> |