Date: Fri, 3 Jun 2005 16:29:16 +0200 (CEST) From: Martin Matuska <martin@matuska.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/81844: [NEW PORT] net/pyicqt 0.6, net/pyaimt 0.5 Message-ID: <20050603142916.718732292B@mail.vx.sk> Resent-Message-ID: <200506031430.j53EU1Si043280@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 81844 >Category: ports >Synopsis: [NEW PORT] net/pyicqt 0.6, net/pyaimt 0.5 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 03 14:30:01 GMT 2005 >Closed-Date: >Last-Modified: >Originator: RebuM >Release: FreeBSD 5.4-RELEASE i386 >Organization: >Environment: System: FreeBSD 5.4-RELEASE i386 >Description: New ports of python jabber transports ICQ and AIM, both are from the same authors and have similiar structure (that's why there's a master port) >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # net/pyaimt # net/pyaimt/Makefile # net/pyicqt # net/pyicqt/Makefile # net/pyicqt/pkg-descr # net/pyicqt/distinfo # net/pyicqt/files # net/pyicqt/files/pkg-install.in # net/pyicqt/files/startup.sh.in # net/pyicqt/files/pkg-deinstall.in # net/pyicqt/files/pkg-message.in # net/pyicqt/pkg-plist # net/pyicqt/pkg-plist.pyaimt # net/pyicqt/pkg-descr.pyaimt # echo c - net/pyaimt mkdir -p net/pyaimt > /dev/null 2>&1 echo x - net/pyaimt/Makefile sed 's/^X//' >net/pyaimt/Makefile << 'END-of-net/pyaimt/Makefile' X# Ports collection makefile for: pyaimt X# Date created: Jun 02, 2005 X# Whom: martin@matuska.org X# X# $FreeBSD$ X# X XPORTNAME= pyaimt XPORTVERSION= 0.5 X XMAINTAINER= martin@matuska.org XCOMMENT= AIM Transport for Jabber X XPLIST= ${PKGDIR}/pkg-plist.${PORTNAME} XDESCR= ${PKGDIR}/pkg-descr.${PORTNAME} X XMASTERDIR= ${.CURDIR}/../pyicqt X X.include "${MASTERDIR}/Makefile" END-of-net/pyaimt/Makefile echo c - net/pyicqt mkdir -p net/pyicqt > /dev/null 2>&1 echo x - net/pyicqt/Makefile sed 's/^X//' >net/pyicqt/Makefile << 'END-of-net/pyicqt/Makefile' X# Ports collection makefile for: pyicqt X# Date created: Jun 02, 2005 X# Whom: martin@matuska.org X# X# $FreeBSD$ X# X XPORTNAME?= pyicqt XPORTVERSION?= 0.6 XCATEGORIES= net python XMASTER_SITES= http://www.blathersource.org/download.php/${PORTNAME:S/t$/-t/}/ XDISTNAME= ${PORTNAME:S/t$/-t/}-${PORTVERSION} X XMAINTAINER= martin@matuska.org XCOMMENT?= ICQ Transport for Jabber X XBUILD_DEPENDS= ${PYTHON_SITELIBDIR}/twisted:${PORTSDIR}/devel/py-twistedCore X XNO_BUILD= yes XUSE_PYTHON= yes XUSE_REINPLACE= yes XUSE_RC_SUBR= yes X X${PORTNAME:U}_USER?= jabber X${PORTNAME:U}_GROUP?= jabber X${PORTNAME:U}_TOPDIR?= jabber X${PORTNAME:U}_DIR?= ${${PORTNAME:U}_TOPDIR}/${PORTNAME} X${PORTNAME:U}_SPOOL?= /var/spool/jabber/${PORTNAME} X# Set to yes for auto UID/GID, else 93 is used for new user/group creation X${PORTNAME:U}_AUTO?= no X X.if(${PORTNAME} == "pyaimt") XPROCNAME=PyAIMt X.else XPROCNAME=PyICQt X.endif X XPLIST_SUB+= RUNDIR=${${PORTNAME:U}_DIR} TOPDIR=${${PORTNAME:U}_TOPDIR} XSUB_LIST+= USER=${${PORTNAME:U}_USER} GROUP=${${PORTNAME:U}_GROUP} \ X RUNDIR=${${PORTNAME:U}_DIR} SPOOLDIR=${${PORTNAME:U}_SPOOL} \ X TOPDIR=${${PORTNAME:U}_TOPDIR} AUTO=${${PORTNAME:U}_AUTO} \ X PROCNAME=${PROCNAME} PORTNAME=${PORTNAME} XSUB_FILES+= pkg-deinstall pkg-install pkg-message startup.sh X XPKGINSTALL= ${WRKDIR}/pkg-install XPKGDEINSTALL= ${WRKDIR}/pkg-deinstall XPKGMESSAGE= ${WRKDIR}/pkg-message X X.include <bsd.port.pre.mk> X Xpre-install: X PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL X Xdo-install: X @${MKDIR} ${PREFIX}/${${PORTNAME:U}_DIR} X @cd ${WRKSRC}/src; ${FIND} . -type d ! -path '.' ! -path '*/.svn*' \ X -exec ${MKDIR} ${PREFIX}/${${PORTNAME:U}_DIR}/{} \; X @cd ${WRKSRC}/src; ${FIND} . -type f ! -path '*/.svn*' \ X -exec ${INSTALL_DATA} ${WRKSRC}/src/{} ${PREFIX}/${${PORTNAME:U}_DIR}/{} \; X X.if !defined (NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for FILE in AUTHORS ChangeLog NEWS README COPYING INSTALL X ${INSTALL_MAN} ${WRKSRC}/${FILE} ${DOCSDIR}/${FILE} X.endfor X.if(${PORTNAME} == "pyicqt") X ${INSTALL_MAN} ${WRKSRC}/TODO ${DOCSDIR}/${FILE} X.endif X.endif X Xpost-install: X ${INSTALL_SCRIPT} ${WRKDIR}/startup.sh ${PREFIX}/etc/rc.d/${PORTNAME}.sh; \ X ${REINPLACE_CMD} -e "s,<spooldir>.*</spooldir>,<spooldir>${${PORTNAME:U}_SPOOL}</spooldir>," \ X -e "s,<pid>.*</pid>,<pid>${${PORTNAME:U}_SPOOL}/${PROCNAME}.pid</pid>," \ X ${WRKSRC}/config_example.xml X ${INSTALL_DATA} ${WRKSRC}/config_example.xml ${PREFIX}/etc/${PORTNAME}.xml.sample X.if !exists(${PREFIX}/etc/${PORTNAME}.xml) X ${INSTALL} -o jabber -g jabber -m 750 ${PREFIX}/etc/${PORTNAME}.xml.sample ${PREFIX}/etc/${PORTNAME}.xml X.endif X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.post.mk> END-of-net/pyicqt/Makefile echo x - net/pyicqt/pkg-descr sed 's/^X//' >net/pyicqt/pkg-descr << 'END-of-net/pyicqt/pkg-descr' XPyICQ-t is an ICQ transport for Jabber written entirely in Python, and using Xthe Twisted framework. It uses the OSCAR protocol to communicate with AOL's Xservers and should work with any Jabber implementation available. X XWWW: http://pyicq-t.blathersource.org/ END-of-net/pyicqt/pkg-descr echo x - net/pyicqt/distinfo sed 's/^X//' >net/pyicqt/distinfo << 'END-of-net/pyicqt/distinfo' XMD5 (pyicq-t-0.6.tar.gz) = 5c6f8cd598465124d886f1c47f88c809 XMD5 (pyaim-t-0.5.tar.gz) = d5902ac0a6857f5377c4cf2cd1e1d155 END-of-net/pyicqt/distinfo echo c - net/pyicqt/files mkdir -p net/pyicqt/files > /dev/null 2>&1 echo x - net/pyicqt/files/pkg-install.in sed 's/^X//' >net/pyicqt/files/pkg-install.in << 'END-of-net/pyicqt/files/pkg-install.in' X#!/bin/sh X# $FreeBSD$ X# X Xif [ "$2" != "PRE-INSTALL" ]; then X exit 0 Xfi X XUSER=%%USER%% XGROUP=%%GROUP%% XSPOOLDIR=%%SPOOLDIR%% XAUTO=%%AUTO%% X Xif [ "x${AUTO}" = "xno" ]; then X UID='-u 93' X GID='-g 93' Xfi X Xif ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then X if pw groupadd ${GROUP} ${GID}; then X echo "Added group \"${GROUP}\"." X else X echo "Adding group \"${GROUP}\" failed..." X exit 1 X fi Xfi X Xif ! pw usershow "${USER}" 2>/dev/null 1>&2; then X if pw useradd ${USER} ${UID} -g ${GROUP} -h - \ X -s "/sbin/nologin" -d "/nonexistent" \ X -c "Jabber Daemon"; \ X then X echo "Added user \"${USER}\"." X else X echo "Adding user \"${USER}\" failed..." X exit 1 X fi Xfi X Xmkdir -p -m 750 ${SPOOLDIR} Xchown ${USER}:${GROUP} ${SPOOLDIR} X Xexit 0 END-of-net/pyicqt/files/pkg-install.in echo x - net/pyicqt/files/startup.sh.in sed 's/^X//' >net/pyicqt/files/startup.sh.in << 'END-of-net/pyicqt/files/startup.sh.in' X#!/bin/sh X# X# $FreeBSD$ X# X X# PROVIDE: %%PORTNAME%% X# REQUIRE: DAEMON X# BEFORE: LOGIN X# KEYWORD: FreeBSD shutdown X# Xprefix=%%PREFIX%% X X# Define these %%PORTNAME%%_* variables in one of these files: X# /etc/rc.conf X# /etc/rc.conf.local X# X# DO NOT CHANGE THESE DEFAULT VALUES HERE X# X%%PORTNAME%%_dir=${%%PORTNAME%%_dir-"${prefix}/%%RUNDIR%%"} X%%PORTNAME%%_conf=${%%PORTNAME%%_conf-"${prefix}/etc/%%PORTNAME%%.xml"} X%%PORTNAME%%_spooldir=${%%PORTNAME%%_spooldir-"%%SPOOLDIR%%"} X%%PORTNAME%%_pid=${%%PORTNAME%%_pid-"${%%PORTNAME%%_spooldir}/%%PROCNAME%%.pid"} X%%PORTNAME%%_enable=${%%PORTNAME%%_enable-"NO"} X%%PORTNAME%%_user=${%%PORTNAME%%_user-"jabber"} X X. %%RC_SUBR%% X Xname="%%PORTNAME%%" Xrcvar=`set_rcvar` Xpidfile="${%%PORTNAME%%_pid}" Xprocname="%%PROCNAME%%" Xcommand="${prefix}/bin/python" Xcommand_args="${%%PORTNAME%%_dir}/main.py -c ${%%PORTNAME%%_conf} -o pid=${pidfile} > /dev/null 2 > /dev/null &" X Xload_rc_config $name Xrun_rc_command "$1" END-of-net/pyicqt/files/startup.sh.in echo x - net/pyicqt/files/pkg-deinstall.in sed 's/^X//' >net/pyicqt/files/pkg-deinstall.in << 'END-of-net/pyicqt/files/pkg-deinstall.in' X#!/bin/sh X# $FreeBSD$ X# X Xif [ "$2" != "POST-DEINSTALL" ]; then X exit 0 Xfi X XUSER=%%USER%% XSPOOLDIR=%%SPOOLDIR%% X Xif pw usershow "${USER}" 2>/dev/null 1>&2; then X echo "To delete Jabber user permanently, use 'pw userdel ${USER}'" Xfi X Xif pw groupshow "${USER}" 2>/dev/null 1>&2; then X echo "To delete Jabber group permanently, use 'pw groupdel ${USER}'" Xfi X Xecho "If you wish to delete data files, remove '%%SPOOLDIR%%' directory." X Xexit 0 END-of-net/pyicqt/files/pkg-deinstall.in echo x - net/pyicqt/files/pkg-message.in sed 's/^X//' >net/pyicqt/files/pkg-message.in << 'END-of-net/pyicqt/files/pkg-message.in' X================================================== XTo invoke %%PROCNAME%% on startup, put the following in X/etc/rc.conf or /etc/rc.conf.local: X X %%PORTNAME%%_enable="YES" X================================================== END-of-net/pyicqt/files/pkg-message.in echo x - net/pyicqt/pkg-plist sed 's/^X//' >net/pyicqt/pkg-plist << 'END-of-net/pyicqt/pkg-plist' X%%RUNDIR%%/webadmin/handler.py X%%RUNDIR%%/webadmin/__init__.py X%%RUNDIR%%/tlib/jabber/jstrports.py X%%RUNDIR%%/tlib/jabber/client.py X%%RUNDIR%%/tlib/jabber/__init__.py X%%RUNDIR%%/tlib/jabber/component.py X%%RUNDIR%%/tlib/jabber/jid.py X%%RUNDIR%%/tlib/countrycodes.py X%%RUNDIR%%/tlib/xmlstream.py X%%RUNDIR%%/tlib/langcodes.py X%%RUNDIR%%/tlib/__init__.py X%%RUNDIR%%/tlib/domish.py X%%RUNDIR%%/tlib/oscar.py X%%RUNDIR%%/tlib/socks5.py X%%RUNDIR%%/tlib/sockserror.py X%%RUNDIR%%/legacy/__init__.py X%%RUNDIR%%/legacy/glue.py X%%RUNDIR%%/legacy/icqt.py X%%RUNDIR%%/config.py X%%RUNDIR%%/stats.py X%%RUNDIR%%/utils.py X%%RUNDIR%%/disco.py X%%RUNDIR%%/session.py X%%RUNDIR%%/xdb.py X%%RUNDIR%%/lang.py X%%RUNDIR%%/register.py X%%RUNDIR%%/jabw.py X%%RUNDIR%%/main.py X%%RUNDIR%%/misciq.py X%%RUNDIR%%/debug.py X%%RUNDIR%%/xmlconfig.py X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog X%%PORTDOCS%%%%DOCSDIR%%/NEWS X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/COPYING X%%PORTDOCS%%%%DOCSDIR%%/INSTALL X%%PORTDOCS%%%%DOCSDIR%%/TODO X%%PORTDOCS%%@dirrm %%DOCSDIR%% Xetc/pyicqt.xml.sample X@dirrm %%RUNDIR%%/webadmin X@dirrm %%RUNDIR%%/tlib/jabber X@dirrm %%RUNDIR%%/tlib X@dirrm %%RUNDIR%%/legacy X@dirrm %%RUNDIR%% X@unexec rmdir %D/%%TOPDIR%% 2>/dev/null || true END-of-net/pyicqt/pkg-plist echo x - net/pyicqt/pkg-plist.pyaimt sed 's/^X//' >net/pyicqt/pkg-plist.pyaimt << 'END-of-net/pyicqt/pkg-plist.pyaimt' X%%RUNDIR%%/webadmin/handler.py X%%RUNDIR%%/webadmin/__init__.py X%%RUNDIR%%/tlib/jabber/jstrports.py X%%RUNDIR%%/tlib/jabber/client.py X%%RUNDIR%%/tlib/jabber/__init__.py X%%RUNDIR%%/tlib/jabber/component.py X%%RUNDIR%%/tlib/jabber/jid.py X%%RUNDIR%%/tlib/socks5.py X%%RUNDIR%%/tlib/xmlstream.py X%%RUNDIR%%/tlib/__init__.py X%%RUNDIR%%/tlib/domish.py X%%RUNDIR%%/tlib/oscar.py X%%RUNDIR%%/tlib/sockserror.py X%%RUNDIR%%/legacy/__init__.py X%%RUNDIR%%/legacy/aimt.py X%%RUNDIR%%/legacy/glue.py X%%RUNDIR%%/groupchat.py X%%RUNDIR%%/stats.py X%%RUNDIR%%/utils.py X%%RUNDIR%%/disco.py X%%RUNDIR%%/config.py X%%RUNDIR%%/xdb.py X%%RUNDIR%%/lang.py X%%RUNDIR%%/jabw.py X%%RUNDIR%%/session.py X%%RUNDIR%%/register.py X%%RUNDIR%%/main.py X%%RUNDIR%%/misciq.py X%%RUNDIR%%/debug.py X%%RUNDIR%%/xmlconfig.py X%%RUNDIR%%/exception.py Xetc/pyaimt.xml.sample X@dirrm %%RUNDIR%%/tlib/jabber X@dirrm %%RUNDIR%%/tlib X@dirrm %%RUNDIR%%/webadmin X@dirrm %%RUNDIR%%/legacy X@dirrm %%RUNDIR%% X%%PORTDOCS%%%%DOCSDIR%%/AUTHORS X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog X%%PORTDOCS%%%%DOCSDIR%%/NEWS X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/COPYING X%%PORTDOCS%%%%DOCSDIR%%/INSTALL X%%PORTDOCS%%@dirrm %%DOCSDIR%% X@unexec rmdir %D/%%TOPDIR%% 2>/dev/null || true END-of-net/pyicqt/pkg-plist.pyaimt echo x - net/pyicqt/pkg-descr.pyaimt sed 's/^X//' >net/pyicqt/pkg-descr.pyaimt << 'END-of-net/pyicqt/pkg-descr.pyaimt' XPyAIM-t is an AIM transport for Jabber written entirely in Python, and using Xthe Twisted framework. It uses the OSCAR protocol to communicate with AOL's Xservers and should work with any Jabber implementation available. X XWWW: http://pyaim-t.blathersource.org/ END-of-net/pyicqt/pkg-descr.pyaimt exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050603142916.718732292B>