moved everything into trunk/ subdirectory, as a preparation for the conversion to git
This commit is contained in:
		
							parent
							
								
									df41424518
								
							
						
					
					
						commit
						52d584b8fb
					
				
					 48 changed files with 0 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								trunk/net-im/palaver/files/palaver-confd
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								trunk/net-im/palaver/files/palaver-confd
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | |||
| # location of the configuration file | ||||
| CONFIG=/etc/jabber/palaver.conf | ||||
							
								
								
									
										24
									
								
								trunk/net-im/palaver/files/palaver-initd
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								trunk/net-im/palaver/files/palaver-initd
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,24 @@ | |||
| #!/sbin/runscript | ||||
| # Copyright 1999-2012 Gentoo Foundation | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| # $Header: $ | ||||
| 
 | ||||
| depend() { | ||||
| 	need net | ||||
| 	use jabber-server | ||||
| } | ||||
| 
 | ||||
| start() { | ||||
| 	ebegin "Starting Palaver MUC service" | ||||
| 	source ${CONFIG} | ||||
| 	start-stop-daemon --start --pidfile /var/run/jabber/palaver.pid -u jabber -g jabber \ | ||||
| 		--exec /usr/bin/twistd -- -l $LOG/palaver.log --pidfile /var/run/jabber/palaver.pid \ | ||||
| 		palaver --jid=$JID --rhost=$RHOST --rport=$RPORT --secret=$SECRET --spool=$SPOOL | ||||
| 	eend $? | ||||
| } | ||||
| 
 | ||||
| stop() { | ||||
| 	ebegin "Stopping Palaver MUC service" | ||||
| 	start-stop-daemon --stop --quiet --pidfile /var/run/jabber/palaver.pid | ||||
| 	eend $? | ||||
| } | ||||
							
								
								
									
										6
									
								
								trunk/net-im/palaver/files/palaver.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								trunk/net-im/palaver/files/palaver.conf
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| JID=conference.example.com | ||||
| RHOST=localhost | ||||
| RPORT=5347 | ||||
| SECRET=password | ||||
| SPOOL=/var/spool/jabber/ | ||||
| LOG=/var/log/jabber/ | ||||
							
								
								
									
										41
									
								
								trunk/net-im/palaver/files/palaver_plugin.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								trunk/net-im/palaver/files/palaver_plugin.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,41 @@ | |||
| from zope.interface import implements | ||||
| from twisted.python import usage | ||||
| from twisted.plugin import IPlugin | ||||
| from twisted.application.service import IServiceMaker | ||||
| 
 | ||||
| # Due to the directory layout, and the fact that plugin directories aren't | ||||
| # modules (no __init__.py), this file is named something other than palaver.py, | ||||
| # to ensure that this import pulls in the right module. | ||||
| import palaver | ||||
| 
 | ||||
| class Options(usage.Options): | ||||
|     optParameters = [ | ||||
|         ('jid', None, None), | ||||
|         ('rhost', None, None), | ||||
|         ('rport', None, None), | ||||
|         ('secret', None, None), | ||||
|         ('backend', None, 'dir'), | ||||
|         ('spool', None, None), | ||||
|         ('admin', None, 1), | ||||
|         ('create', None, 1), | ||||
|         ('dbname', None, 'muc'), | ||||
|         ('dbuser', None, 'muc'), | ||||
|         ('dbhostname', None, None), | ||||
|         ('log', 'l', './html/logs/'), | ||||
|         ('config', 'c', 'config.xml'), | ||||
|     ] | ||||
| 
 | ||||
|     optFlags = [ | ||||
|         ('verbose', 'v', 'Show traffic'), | ||||
|     ] | ||||
| 
 | ||||
| class ServiceFactory(object): | ||||
|     implements(IServiceMaker, IPlugin) | ||||
|     tapname = "palaver" | ||||
|     description = "A multi-user chat xmpp/jabber component." | ||||
|     options = Options | ||||
| 
 | ||||
|     def makeService(self, options): | ||||
|         return palaver.makeService(options) | ||||
| 
 | ||||
| service = ServiceFactory() | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue