1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Fix compatibility with jabber 1.6.0

- Add plist support
- Pass maintainership to submitter

NOTES:  Please read the UPDATING

PR:             109405
Submitted by:   Martin Matuska <martin@matuska.org>
This commit is contained in:
Martin Wilke 2007-02-27 13:14:07 +00:00
parent 6dd93bac13
commit 80b83b4e25
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186115
7 changed files with 81 additions and 53 deletions

View File

@ -6,29 +6,48 @@
PORTNAME= jud
PORTVERSION= 0.5
PORTREVISION= 1
CATEGORIES= net-im
MASTER_SITES= http://jud.jabberstudio.org/ \
http://freebsd.unixfreunde.de/sources/
PKGNAMEPREFIX= jabber-
DIST_SUBDIR= jabber
MAINTAINER= ports@FreeBSD.org
MAINTAINER= martin@matuska.org
COMMENT= Jabber User Directory module
BUILD_DEPENDS= ${LOCALBASE}/sbin/jabberd:${PORTSDIR}/net-im/jabber
LIB_DEPENDS= jabberd.1:${PORTSDIR}/net-im/jabber
WRKSRC= ${WRKDIR}/${PORTNAME}-ansi-c
PLIST_FILES= lib/jabber/jud.so
USE_GMAKE= yes
post-patch:
@echo "${PREFIX}" > ${WRKSRC}/.prefix-freebsd
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/jabber \
-I${LOCALBASE}/include/pth
MAKE_ARGS+= MCFLAGS="-shared" \
LDFLAGS="-L${LOCALBASE}/lib/pth -L${LOCALBASE}/lib/jabber"
SUB_FILES+= pkg-message README.jabberd14
DOCSDIR= ${TARGETDIR}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
.if !defined(NOPORTDOCS)
PKGMESSAGE= ${WRKDIR}/pkg-message
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/jud.so ${PREFIX}/lib/jabber/
${INSTALL_PROGRAM} ${WRKSRC}/jud.so ${TARGETDIR}/lib/jabber/
post-install:
@cat pkg-message
.include <bsd.port.mk>
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKDIR}/README.jabberd14 ${DOCSDIR}
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,38 @@
The sample configuration file for jabberd14 may be located in:
%%TARGETDIR%%/etc/jabber.xml.sample
Please make all necessary changes to your configuration file which may be:
%%TARGETDIR%%/etc/jabber.xml
To activate JUD for your Jabber server, add the following to your configuration file
(around line 921 in the sample configuration file):
-------------------------------------------------------------------------------
<!--
If you want this service to be accessible from other servers,
change 'jud.localhost' to the server's fully qualified domain name!
-->
<service id="jud">
<host>jud.localhost</host>
<load><jud>%%TARGETDIR%%/lib/jabber/jud.so</jud></load>
<jud xmlns="jabber:config:jud">
<vCard>
<FN>Local Organization's User Directory</FN>
<DESC>This service provides a simple user directory service.</DESC>
<URL>http://foo.bar/</URL>
</vCard>
</jud>
</service>
-------------------------------------------------------------------------------
Add this section to the browse area of the jsm service to advertise it to
your users (around line 382 of the sample config):
-------------------------------------------------------------------------------
<item category="directory" type="user" jid="jud.localhost" name="My Organization's User Directory">
<ns>jabber:iq:search</ns>
<ns>jabber:iq:register</ns>
</item>
-------------------------------------------------------------------------------
Be sure to restart your server after reconfiguring.

View File

@ -0,0 +1,10 @@
--- Makefile.orig Wed Feb 21 15:47:45 2007
+++ Makefile Wed Feb 21 15:47:50 2007
@@ -1,7 +1,3 @@
-include ../platform-settings
-
-CFLAGS=$(CCFLAGS) -I../jabberd
-
jud_OBJECTS=jud.o jud_reg.o jud_search.o
all: jud

View File

@ -1,12 +0,0 @@
--- Makefile.orig Wed Nov 12 10:12:20 2003
+++ Makefile Thu Jun 15 21:12:23 2006
@@ -1,6 +1,7 @@
-include ../platform-settings
+INCDIR= ${PREFIX}/include/jabber
+include ${INCDIR}/platform-settings
-CFLAGS=$(CCFLAGS) -I../jabberd
+CFLAGS:=$(CFLAGS) -I${INCDIR}
jud_OBJECTS=jud.o jud_reg.o jud_search.o

View File

@ -0,0 +1,2 @@
You can find a configuration example in:
%%DOCSDIR%%/README.jabberd14

View File

@ -1,32 +0,0 @@
To activate JUD for your Jabber server, add the following (around line 36 in
the sample configuration file) to your configuration file
(${LOCALBASE}/etc/jabber.xml):
<!--
If you want this service to be accessible from other servers,
change 'jud.localhost' to the server's fully qualified domain name!
Also note that ${LOCALBASE} should be changed to your local base
(ex: /usr/local).
-->
<service id="jud">
<host>jud.localhost</host>
<load><jud>${LOCALBASE}/lib/jabber/jud.so</jud></load>
<jud xmlns="jabber:config:jud">
<vCard>
<FN>Local Organization's User Directory</FN>
<DESC>This service provides a simple user directory service.</DESC>
<URL>http://foo.bar/</URL>
</vCard>
</jud>
</service>
Add this section to the browse area of the jsm service to advertise it to
your users (around line 245 of the sample config):
<service type="jud" jid="jud.localhost" name="My Organization's User Directory">
<ns>jabber:iq:search</ns>
<ns>jabber:iq:register</ns>
</service>
Be sure to restart your server after reconfiguring.

View File

@ -0,0 +1,3 @@
lib/jabber/jud.so
%%PORTDOCS%%%%DOCSDIR%%/README.jabberd14
%%PORTDOCS%%@dirrm %%DOCSDIR%%