mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
- Fix compatibility with jabber 1.6.0
- Add plist support - Pass maintainership to submitter NOTES: Please read the UPDATING PR: 109404 Submitted by: Martin Matuska <martin@matuska.org>
This commit is contained in:
parent
80b83b4e25
commit
7e0f6ddec5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186116
@ -6,29 +6,46 @@
|
||||
|
||||
PORTNAME= conference
|
||||
PORTVERSION= 0.4.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net-im
|
||||
MASTER_SITES= http://freebsd.unixfreunde.de/sources/
|
||||
PKGNAMEPREFIX= jabber-
|
||||
DIST_SUBDIR= jabber
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= martin@matuska.org
|
||||
COMMENT= Jabber Conferencing module
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/sbin/jabberd:${PORTSDIR}/net-im/jabber
|
||||
LIB_DEPENDS= jabberd.1:${PORTSDIR}/net-im/jabber
|
||||
|
||||
PLIST_FILES= lib/jabber/conference.so
|
||||
USE_GMAKE= yes
|
||||
|
||||
CONFIGURE_ARGS+= --with-jabberd=${PREFIX}/include/jabber
|
||||
CFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/jabber \
|
||||
-I${LOCALBASE}/include/pth
|
||||
|
||||
post-patch:
|
||||
@echo "${PREFIX}" > ${WRKSRC}/.prefix-freebsd
|
||||
MAKE_ARGS+= MCFLAGS="-shared" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib/pth -L${LOCALBASE}/lib/jabber"
|
||||
|
||||
SUB_FILES+= pkg-message README.jabberd14
|
||||
DOCSDIR= ${TARGETDIR}/share/examples/${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}/conference.so ${PREFIX}/lib/jabber/
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/conference.so ${TARGETDIR}/lib/jabber/
|
||||
|
||||
post-install:
|
||||
@cat pkg-message
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${WRKDIR}/README.jabberd14 ${DOCSDIR}
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,9 @@
|
||||
The sample configuration file for jabberd14 may be located in:
|
||||
%%TARGETDIR%%/etc/jabber.xml.sample
|
||||
|
||||
Please make necessary changes to your configuration file which may be:
|
||||
%%TARGETDIR%%/etc/jabber.xml
|
||||
|
||||
NOTE: if you want this service to be accessible from other servers,
|
||||
change any 'conference.localhost' or 'private.localhost' listed below
|
||||
to a fully qualified domain name! Please make sure that your directives
|
||||
@ -5,11 +11,12 @@ NOTE: if you want this service to be accessible from other servers,
|
||||
|
||||
Conference can be configured as a private conferencing server (no browse,
|
||||
all rooms locked up). Add the following to make a private conferencing
|
||||
server (around line 446 in the sample configuration file):
|
||||
server (around line 921 in the sample configuration file):
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
<service id='private.localhost'>
|
||||
<load><conference>${PREFIX}/lib/jabber/conference.so</conference></load>
|
||||
<conference xmlns="jabberd:config:conference">
|
||||
<load><conference>%%TARGETDIR%%/lib/jabber/conference.so</conference></load>
|
||||
<conference xmlns="jabber:config:conference">
|
||||
<private/>
|
||||
<history>30</history>
|
||||
<vCard>
|
||||
@ -25,20 +32,23 @@ server (around line 446 in the sample configuration file):
|
||||
</conference>
|
||||
</service>
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Add this section to the browse area of the jsm service to advertise it
|
||||
to your users (around line 246 of the sample config file):
|
||||
to your users (around line 382 of the sample config file):
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
<conference type="private" jid="private.localhost" name="Private Conferencing"/>
|
||||
<item category="conference" type="text" jid="private.localhost" name="Private Conferencing"/>
|
||||
|
||||
|
||||
Conference can ALSO be configured as a public chatroom server (add this
|
||||
around line 446 in the sample config file):
|
||||
-------------------------------------------------------------------------------
|
||||
Conference can ALSO be configured as a public chatroom server
|
||||
(add this around line 921 in the sample config file):
|
||||
|
||||
(NOTE: don't forget to change the secret and note that this is transmitted
|
||||
in plain text.)
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
<service id='conference.localhost'>
|
||||
<load><conference>${PREFIX}/lib/jabber/conference.so</conference></load>
|
||||
<load><conference>%%TARGETDIR%%/lib/jabber/conference.so</conference></load>
|
||||
<conference xmlns="jabber:config:conference">
|
||||
<public/>
|
||||
<vCard>
|
||||
@ -68,8 +78,12 @@ around line 446 in the sample config file):
|
||||
</conference>
|
||||
</service>
|
||||
|
||||
Add this section to the browse area of the jsm service to advertise it
|
||||
-------------------------------------------------------------------------------
|
||||
Add this section to the browse area of the jsm service to advertise it
|
||||
to your users (around line 246 of the sample configuration file):
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
<conference type="public" jid="conference.localhost" name="Public Chatrooms"/>
|
||||
<item category="conference" type="text" jid="conference.localhost" name="Public Chatrooms"/>
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Be sure to restart your server after reconfiguring.
|
10
net-im/jabber-conference/files/patch-Makefile
Normal file
10
net-im/jabber-conference/files/patch-Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
--- Makefile.orig Wed Feb 21 15:43:41 2007
|
||||
+++ Makefile Wed Feb 21 15:44:15 2007
|
||||
@@ -1,7 +1,3 @@
|
||||
-include ../platform-settings
|
||||
-
|
||||
-CFLAGS:=$(CFLAGS) -I../jabberd
|
||||
-
|
||||
conference_OBJECTS=conference.o conference_room.o conference_user.o
|
||||
|
||||
all: conference
|
@ -1,12 +0,0 @@
|
||||
--- Makefile.orig Mon Apr 15 00:17:50 2002
|
||||
+++ Makefile Mon Apr 15 00:18:33 2002
|
||||
@@ -1,6 +1,7 @@
|
||||
-include ../platform-settings
|
||||
+INCDIR= ${PREFIX}/include/jabber
|
||||
+include ${INCDIR}/platform-settings
|
||||
|
||||
-CFLAGS:=$(CFLAGS) -I../jabberd
|
||||
+CFLAGS:=$(CFLAGS) -I${INCDIR}
|
||||
|
||||
conference_OBJECTS=conference.o conference_room.o conference_user.o
|
||||
|
2
net-im/jabber-conference/files/pkg-message.in
Normal file
2
net-im/jabber-conference/files/pkg-message.in
Normal file
@ -0,0 +1,2 @@
|
||||
You can find a configuration example in:
|
||||
%%DOCSDIR%%/README.jabberd14
|
3
net-im/jabber-conference/pkg-plist
Normal file
3
net-im/jabber-conference/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
lib/jabber/conference.so
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.jabberd14
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user