From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jun 25 17:30:02 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A874816A482 for ; Mon, 25 Jun 2007 17:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 89C7113C455 for ; Mon, 25 Jun 2007 17:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5PHU2Ii035433 for ; Mon, 25 Jun 2007 17:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5PHU2d7035431; Mon, 25 Jun 2007 17:30:02 GMT (envelope-from gnats) Resent-Date: Mon, 25 Jun 2007 17:30:02 GMT Resent-Message-Id: <200706251730.l5PHU2d7035431@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Denis Rahmangulov" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2EE7816A400 for ; Mon, 25 Jun 2007 17:22:14 +0000 (UTC) (envelope-from danfocus@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.230]) by mx1.freebsd.org (Postfix) with ESMTP id C496013C489 for ; Mon, 25 Jun 2007 17:22:13 +0000 (UTC) (envelope-from danfocus@gmail.com) Received: by nz-out-0506.google.com with SMTP id 34so556741nzf for ; Mon, 25 Jun 2007 10:22:13 -0700 (PDT) Received: by 10.114.78.1 with SMTP id a1mr5605983wab.1182791743721; Mon, 25 Jun 2007 10:15:43 -0700 (PDT) Received: by 10.114.174.10 with HTTP; Mon, 25 Jun 2007 10:15:43 -0700 (PDT) Message-Id: <5f6c9d180706251015u49e2f415q6b8da58ff67b591@mail.gmail.com> Date: Mon, 25 Jun 2007 23:15:43 +0600 From: "Denis Rahmangulov" To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/114017: New port: net-im/iserverd - Groupware ICQ server clone X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 17:30:02 -0000 >Number: 114017 >Category: ports >Synopsis: New port: net-im/iserverd - Groupware ICQ server clone >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jun 25 17:30:02 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Denis Rakhmangulov >Release: FreeBSD 6.2-RELEASE i386 >Organization: Home >Environment: System: FreeBSD freebsd.workgroup 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Sun May 6 11:40:54 YEKST 2007 root@freebsd.workgroup:/usr/src/sys/i386/compile/HOME i386 >Description: New port: net-im/iserverd - Groupware ICQ server clone >How-To-Repeat: none >Fix: For this port uses new UID: iserv (911) and GID: iserv (911) --- iserverd.port begins here --- # 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: # # iserverd # iserverd/Makefile # iserverd/pkg-plist # iserverd/pkg-descr # iserverd/distinfo # iserverd/files # iserverd/files/patch-script_Makefile.in # iserverd/files/iserverd.in # iserverd/files/patch-configure # iserverd/pkg-install # echo c - iserverd mkdir -p iserverd > /dev/null 2>&1 echo x - iserverd/Makefile sed 's/^X//' >iserverd/Makefile << 'END-of-iserverd/Makefile' X# New ports collection makefile for: iserverd X# Date created: Sun Jun 10 17:51:00 GMT 2007 X# Whom: Denis Rakhmangulov X# X# $FreeBSD$ X# X XPORTNAME= iserverd XPORTVERSION= 2.5.5 XCATEGORIES= net-im XMASTER_SITES= http://iserverd.khstu.ru/download/ XDISTNAME= IServerd-stable X XMAINTAINER= danfocus@gmail.com XCOMMENT= Groupware ICQ server clone X XCONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL} XUSE_PGSQL= YES XGNU_CONFIGURE= YES XUSE_RC_SUBR= iserverd X XOPTIONS= KQUEUE "Use kqueue(2) instead of poll(2)" on \ X DEBUG "Enable debugging symbols" off X XCONFIGURE_ARGS+=--with-pgsql=${LOCALBASE} \ X --with-bindir=${PREFIX}/bin \ X --with-etcdir=${PREFIX}/etc/iserverd \ X --with-vardir=/var/run/iserverd \ X --with-mandir=${PREFIX}/man \ X --with-sbindir=${PREFIX}/bin \ X --with-logdir=/var/log/iserverd \ X X.if defined(WITH_DEBUG) XCONFIGURE_ARGS+=--enable-debug X.endif X.if defined(WITH_KQUEUE) XCONFIGURE_ARGS+=--with-kqueue X.endif X XMAN1= db_convert.1 XMAN5= iserv.conf.5 v3_proto.conf.5 v5_proto.conf.5 XMAN8= iserverd.8 X Xpost-install: X.if !defined(PACKAGE_BUILDING) X @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL X.endif X @${CHMOD} 644 ${PREFIX}/etc/iserverd/iserv.conf.default X @${CHMOD} 644 ${PREFIX}/etc/iserverd/aim_proto.conf X @${CHMOD} 644 ${PREFIX}/etc/iserverd/actions.conf.default X @${CHMOD} 644 ${PREFIX}/etc/iserverd/v3_proto.conf.default X @${CHMOD} 644 ${PREFIX}/etc/iserverd/v5_proto.conf.default X @${CHMOD} 644 ${PREFIX}/etc/iserverd/v7_proto.conf.default X @${CHMOD} 644 ${PREFIX}/etc/iserverd/texts/* X @${CHMOD} 644 ${PREFIX}/etc/iserverd/translate/* X @${CHOWN} -R iserv /var/log/iserverd X @${CHOWN} -R iserv /var/run/iserverd X X.include END-of-iserverd/Makefile echo x - iserverd/pkg-plist sed 's/^X//' >iserverd/pkg-plist << 'END-of-iserverd/pkg-plist' Xbin/broadcast Xbin/convert_db.sh Xbin/db_check Xbin/db_convert Xbin/db_manage.sh Xbin/disconnect Xbin/iserverd Xbin/online_cnt.cgi Xbin/post_mess.cgi Xbin/server_status Xbin/users_cnt.cgi Xbin/webpager Xetc/iserverd/actions.conf.default Xetc/iserverd/aim_proto.conf Xetc/iserverd/db/icquser Xetc/iserverd/db/icquser.sql Xetc/iserverd/iserv.conf.default Xetc/iserverd/texts/adm_notes.rus Xetc/iserverd/texts/adm_notes.txt Xetc/iserverd/texts/post_reg_auto.rus Xetc/iserverd/texts/post_reg_auto.txt Xetc/iserverd/texts/post_reg_man.rus Xetc/iserverd/texts/post_reg_man.txt Xetc/iserverd/texts/reg_mess.ptt Xetc/iserverd/translate/ASCII Xetc/iserverd/translate/CP437 Xetc/iserverd/translate/CP850 Xetc/iserverd/translate/DANISH Xetc/iserverd/translate/DEC_MCS Xetc/iserverd/translate/DG_MCS Xetc/iserverd/translate/DUTCH Xetc/iserverd/translate/FINNISH Xetc/iserverd/translate/FRENCH Xetc/iserverd/translate/FRENCH_CANADIAN Xetc/iserverd/translate/GERMAN Xetc/iserverd/translate/HP_MCS Xetc/iserverd/translate/IRV Xetc/iserverd/translate/ITALIAN Xetc/iserverd/translate/JIS Xetc/iserverd/translate/MACINTOSH Xetc/iserverd/translate/NEXT Xetc/iserverd/translate/NORWEGIAN_1 Xetc/iserverd/translate/NORWEGIAN_2 Xetc/iserverd/translate/POLISH Xetc/iserverd/translate/POLISH_NOPL Xetc/iserverd/translate/PORTUGUESE Xetc/iserverd/translate/PORTUGUESE_COM Xetc/iserverd/translate/RUSSIAN Xetc/iserverd/translate/RUSSIAN_ALT Xetc/iserverd/translate/RUSSIAN_WIN Xetc/iserverd/translate/SPANISH Xetc/iserverd/translate/SWEDISH Xetc/iserverd/translate/SWEDISH_NAMES Xetc/iserverd/translate/SWISS Xetc/iserverd/translate/UKRAINIAN_WIN Xetc/iserverd/v3_proto.conf.default Xetc/iserverd/v5_proto.conf.default Xetc/iserverd/v7_proto.conf.default X@unexec echo "Warning: If you will *NOT* use this package anymore, please remove the iserverd user manually." X@dirrm etc/iserverd/translate X@dirrm etc/iserverd/texts X@dirrm etc/iserverd/db X@dirrmtry etc/iserverd END-of-iserverd/pkg-plist echo x - iserverd/pkg-descr sed 's/^X//' >iserverd/pkg-descr << 'END-of-iserverd/pkg-descr' XGroupware ICQ server clone. X XWWW: http://iserverd.khstu.ru/ X X- Alexander V. Shutko END-of-iserverd/pkg-descr echo x - iserverd/distinfo sed 's/^X//' >iserverd/distinfo << 'END-of-iserverd/distinfo' XMD5 (IServerd-stable.tar.gz) = 039945afa1130c19aa72a208404ab543 XSHA256 (IServerd-stable.tar.gz) = 06b70bbe3a72646dba936698398385179b72222358ce70338e39de6ef56631e3 XSIZE (IServerd-stable.tar.gz) = 623450 END-of-iserverd/distinfo echo c - iserverd/files mkdir -p iserverd/files > /dev/null 2>&1 echo x - iserverd/files/patch-script_Makefile.in sed 's/^X//' >iserverd/files/patch-script_Makefile.in << 'END-of-iserverd/files/patch-script_Makefile.in' X--- script/Makefile.in.orig Wed Apr 9 19:01:43 2003 X+++ script/Makefile.in Mon Jun 11 01:35:23 2007 X@@ -20,9 +20,6 @@ X DB_SCRIPT = icquser X DB_SUPP = icquser.sql X X-ALL_SCRIPT = iserverd.sh \ X- iserverd.sh.asp X- X all: X @echo "Nothing to do in scripts" X X@@ -30,12 +27,6 @@ X @echo "Cleaning in scripts" X X distclean: X- @list='$(ALL_SCRIPT)'; for p in $$list; do \ X- if test -f $$p; then \ X- echo "Deleting script $$p"; \ X- rm -rf $$p ; \ X- else :; fi ; \ X- done X @list='$(BIN_SCRIPT)'; for p in $$list; do \ X if test -f $$p; then \ X echo "Deleting script $$p"; \ X@@ -51,12 +42,6 @@ X @echo "Deleting Makefile"; rm -rf Makefile X X install: X- @list='$(ALL_SCRIPT)'; for p in $$list; do \ X- if test -f $$p; then \ X- echo " $(INSTALL_SCRIPT) $$p $(ETC_DIR)/`echo $$p|sed '$(transform)'`"; \ X- $(INSTALL_SCRIPT) $$p $(ETC_DIR)/`echo $$p|sed '$(transform)'`; \ X- else :; fi; \ X- done X $(mkinstalldirs) $(BIN_DIR); X @list='$(BIN_SCRIPT)'; for p in $$list; do \ X if test -f $$p; then \ X@@ -79,10 +64,6 @@ X done X X uninstall: X- @list='$(ALL_SCRIPT)'; for p in $$list; do \ X- rm -f $(ETC_DIR)/`echo $$p|sed '$(transform)'`; \ X- echo " rm -f $(ETC_DIR)/$$p"; \ X- done; X @list='$(BIN_SCRIPT)'; for p in $$list; do \ X rm -f $(BIN_DIR)/`echo $$p|sed '$(transform)'`; \ X echo " rm -f $(BIN_DIR)/$$p"; \ END-of-iserverd/files/patch-script_Makefile.in echo x - iserverd/files/iserverd.in sed 's/^X//' >iserverd/files/iserverd.in << 'END-of-iserverd/files/iserverd.in' X#!/bin/sh X X# PROVIDE: iserverd X# REQUIRE: LOGIN postgresql X# KEYWORD: shutdown X# X# Add the following line to /etc/rc.conf to enable iserverd: X# X# iserverd_enable="YES" X# X Xname=iserverd Xprefix=%%PREFIX%% X X. %%RC_SUBR%% X Xload_rc_config $name X X# set defaults Xiserverd_enable=${iserverd_enable:-"NO"} Xiserverd_user=iserv X Xrcvar=`set_rcvar` Xcommand=${prefix}/bin/iserverd Xcommand_args="-o" X Xpidfile="/var/run/iserverd/iserverd.pid" X Xstart_cmd=iserverd_start X Xiserverd_start() X{ X su -l ${iserverd_user} -c "exec ${command} ${command_args}" X echo "Starting iserverd." X} X Xrun_rc_command "$1" END-of-iserverd/files/iserverd.in echo x - iserverd/files/patch-configure sed 's/^X//' >iserverd/files/patch-configure << 'END-of-iserverd/files/patch-configure' X--- configure.orig Tue Mar 13 08:22:41 2007 X+++ configure Sun Jun 17 17:46:40 2007 X@@ -7712,7 +7712,7 @@ X X X X-for ac_header in netinet/in.h netdb.h net/if.h sys/un.h syslog.h X+for ac_header in netinet/in.h netdb.h sys/un.h syslog.h X do X as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` X if eval "test \"\${$as_ac_Header+set}\" = set"; then X@@ -8011,6 +8011,74 @@ X fi X X done X+ X+ X+ X+ X+for ac_header in net/if.h X+do X+as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` X+echo "$as_me:$LINENO: checking for $ac_header" >&5 X+echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 X+if eval "test \"\${$as_ac_Header+set}\" = set"; then X+ echo $ECHO_N "(cached) $ECHO_C" >&6 X+else X+ cat >conftest.$ac_ext <<_ACEOF X+/* confdefs.h. */ X+_ACEOF X+cat confdefs.h >>conftest.$ac_ext X+cat >>conftest.$ac_ext <<_ACEOF X+/* end confdefs.h. */ X+#if HAVE_SYS_SOCKET_H X+# include X+#endif X+ X+ X+#include <$ac_header> X+_ACEOF X+rm -f conftest.$ac_objext X+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 X+ (eval $ac_compile) 2>conftest.er1 X+ ac_status=$? X+ grep -v '^ *+' conftest.er1 >conftest.err X+ rm -f conftest.er1 X+ cat conftest.err >&5 X+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 X+ (exit $ac_status); } && X+ { ac_try='test -z "$ac_c_werror_flag" X+ || test ! -s conftest.err' X+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 X+ (eval $ac_try) 2>&5 X+ ac_status=$? X+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 X+ (exit $ac_status); }; } && X+ { ac_try='test -s conftest.$ac_objext' X+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 X+ (eval $ac_try) 2>&5 X+ ac_status=$? X+ echo "$as_me:$LINENO: \$? = $ac_status" >&5 X+ (exit $ac_status); }; }; then X+ eval "$as_ac_Header=yes" X+else X+ echo "$as_me: failed program was:" >&5 X+sed 's/^/| /' conftest.$ac_ext >&5 X+ X+eval "$as_ac_Header=no" X+fi X+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext X+fi X+echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 X+echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 X+if test `eval echo '${'$as_ac_Header'}'` = yes; then X+ cat >>confdefs.h <<_ACEOF X+#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 X+_ACEOF X+ X+fi X+ X+done X+ X+ X X X END-of-iserverd/files/patch-configure echo x - iserverd/pkg-install sed 's/^X//' >iserverd/pkg-install << 'END-of-iserverd/pkg-install' X#!/bin/sh X# X# $FREEBSD$ X# XPATH=/bin:/usr/sbin X Xcase $2 in XPOST-INSTALL) X USER=iserv X GROUP=${USER} X UID=911 X GID=${UID} X X if pw group show "${GROUP}" 2>/dev/null; then X echo "You already have a group \"${GROUP}\", so I will use it." X else X if pw groupadd ${GROUP} -g ${GID}; then X echo "Added group \"${GROUP}\"." X else X echo "Adding group \"${GROUP}\" failed..." X exit 1 X fi X fi X X if pw user show "${USER}" 2>/dev/null; then X echo "You already have a user \"${USER}\", so I will use it." X else X if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ X -d /var/spool/iserv -m -s /bin/sh -c "iserverd user" X then X echo "Added user \"${USER}\"." X else X echo "Adding user \"${USER}\" failed..." X exit 1 X fi X fi X ;; Xesac END-of-iserverd/pkg-install exit --- iserverd.port ends here --- >Release-Note: >Audit-Trail: >Unformatted: ---------- Forwarded message ---------- From: Denis Rahmangulov Date: 25.06.2007 23:09 Subject: To: FreeBSD-gnats-submit@freebsd.org