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:
parent
6dd93bac13
commit
80b83b4e25
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186115
@ -6,29 +6,48 @@
|
|||||||
|
|
||||||
PORTNAME= jud
|
PORTNAME= jud
|
||||||
PORTVERSION= 0.5
|
PORTVERSION= 0.5
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= net-im
|
CATEGORIES= net-im
|
||||||
MASTER_SITES= http://jud.jabberstudio.org/ \
|
MASTER_SITES= http://jud.jabberstudio.org/ \
|
||||||
http://freebsd.unixfreunde.de/sources/
|
http://freebsd.unixfreunde.de/sources/
|
||||||
PKGNAMEPREFIX= jabber-
|
PKGNAMEPREFIX= jabber-
|
||||||
DIST_SUBDIR= jabber
|
DIST_SUBDIR= jabber
|
||||||
|
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= martin@matuska.org
|
||||||
COMMENT= Jabber User Directory module
|
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
|
WRKSRC= ${WRKDIR}/${PORTNAME}-ansi-c
|
||||||
|
|
||||||
PLIST_FILES= lib/jabber/jud.so
|
|
||||||
USE_GMAKE= yes
|
USE_GMAKE= yes
|
||||||
|
|
||||||
post-patch:
|
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/jabber \
|
||||||
@echo "${PREFIX}" > ${WRKSRC}/.prefix-freebsd
|
-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:
|
do-install:
|
||||||
${INSTALL_DATA} ${WRKSRC}/jud.so ${PREFIX}/lib/jabber/
|
${INSTALL_PROGRAM} ${WRKSRC}/jud.so ${TARGETDIR}/lib/jabber/
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@cat pkg-message
|
.if !defined(NOPORTDOCS)
|
||||||
|
@${MKDIR} ${DOCSDIR}
|
||||||
.include <bsd.port.mk>
|
@${INSTALL_DATA} ${WRKDIR}/README.jabberd14 ${DOCSDIR}
|
||||||
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
.endif
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
38
net-im/jabber-jud/files/README.jabberd14.in
Normal file
38
net-im/jabber-jud/files/README.jabberd14.in
Normal 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.
|
10
net-im/jabber-jud/files/patch-Makefile
Normal file
10
net-im/jabber-jud/files/patch-Makefile
Normal 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
|
@ -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
|
|
||||||
|
|
2
net-im/jabber-jud/files/pkg-message.in
Normal file
2
net-im/jabber-jud/files/pkg-message.in
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
You can find a configuration example in:
|
||||||
|
%%DOCSDIR%%/README.jabberd14
|
@ -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.
|
|
3
net-im/jabber-jud/pkg-plist
Normal file
3
net-im/jabber-jud/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
lib/jabber/jud.so
|
||||||
|
%%PORTDOCS%%%%DOCSDIR%%/README.jabberd14
|
||||||
|
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user