aboutsummaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2007-09-07 11:13:10 +0800
committeredwin <edwin@FreeBSD.org>2007-09-07 11:13:10 +0800
commit9521d8201036a38d1135e4bd331edeadb3eb5b78 (patch)
tree8135d2c0d5dc087a59a64dddeb1b492b20695031 /net-im
parentffaa3235fc488299711d9b34983a9a80f0e664e6 (diff)
downloadfreebsd-ports-gnome-9521d8201036a38d1135e4bd331edeadb3eb5b78.tar.gz
freebsd-ports-gnome-9521d8201036a38d1135e4bd331edeadb3eb5b78.tar.zst
freebsd-ports-gnome-9521d8201036a38d1135e4bd331edeadb3eb5b78.zip
New port: net-im/iserverd - Groupware ICQ server clone
Groupware ICQ server clone. WWW: http://iserverd.khstu.ru/ - Alexander V. Shutko PR: ports/114017 Submitted by: "Denis Rahmangulov" <danfocus@gmail.com>
Diffstat (limited to 'net-im')
-rw-r--r--net-im/Makefile1
-rw-r--r--net-im/iserverd/Makefile57
-rw-r--r--net-im/iserverd/distinfo3
-rw-r--r--net-im/iserverd/files/iserverd.in37
-rw-r--r--net-im/iserverd/files/patch-configure86
-rw-r--r--net-im/iserverd/files/patch-script__Makefile.in49
-rw-r--r--net-im/iserverd/pkg-descr5
-rw-r--r--net-im/iserverd/pkg-install38
-rw-r--r--net-im/iserverd/pkg-plist63
9 files changed, 339 insertions, 0 deletions
diff --git a/net-im/Makefile b/net-im/Makefile
index 7d03cf93f5c9..4a2c1250c865 100644
--- a/net-im/Makefile
+++ b/net-im/Makefile
@@ -50,6 +50,7 @@
SUBDIR += icqlib
SUBDIR += icqnd
SUBDIR += imcom
+ SUBDIR += iserverd
SUBDIR += jabber.el
SUBDIR += jabberd
SUBDIR += jabber
diff --git a/net-im/iserverd/Makefile b/net-im/iserverd/Makefile
new file mode 100644
index 000000000000..dd45ce8d9c9e
--- /dev/null
+++ b/net-im/iserverd/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: iserverd
+# Date created: Sun Jun 10 17:51:00 GMT 2007
+# Whom: Denis Rakhmangulov <danfocus@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= iserverd
+PORTVERSION= 2.5.5
+CATEGORIES= net-im
+MASTER_SITES= http://iserverd.khstu.ru/download/
+DISTNAME= IServerd-stable
+
+MAINTAINER= danfocus@gmail.com
+COMMENT= Groupware ICQ server clone
+
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+USE_PGSQL= YES
+GNU_CONFIGURE= YES
+USE_RC_SUBR= iserverd
+
+OPTIONS= KQUEUE "Use kqueue(2) instead of poll(2)" on \
+ DEBUG "Enable debugging symbols" off
+
+CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE} \
+ --with-bindir=${PREFIX}/bin \
+ --with-etcdir=${PREFIX}/etc/iserverd \
+ --with-vardir=/var/run/iserverd \
+ --with-mandir=${PREFIX}/man \
+ --with-sbindir=${PREFIX}/bin \
+ --with-logdir=/var/log/iserverd \
+
+.if defined(WITH_DEBUG)
+CONFIGURE_ARGS+=--enable-debug
+.endif
+.if defined(WITH_KQUEUE)
+CONFIGURE_ARGS+=--with-kqueue
+.endif
+
+MAN1= db_convert.1
+MAN5= iserv.conf.5 v3_proto.conf.5 v5_proto.conf.5
+MAN8= iserverd.8
+
+post-install:
+ @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @${CHMOD} 644 ${PREFIX}/etc/iserverd/iserv.conf.default
+ @${CHMOD} 644 ${PREFIX}/etc/iserverd/aim_proto.conf
+ @${CHMOD} 644 ${PREFIX}/etc/iserverd/actions.conf.default
+ @${CHMOD} 644 ${PREFIX}/etc/iserverd/v3_proto.conf.default
+ @${CHMOD} 644 ${PREFIX}/etc/iserverd/v5_proto.conf.default
+ @${CHMOD} 644 ${PREFIX}/etc/iserverd/v7_proto.conf.default
+ @${CHMOD} 644 ${PREFIX}/etc/iserverd/texts/*
+ @${CHMOD} 644 ${PREFIX}/etc/iserverd/translate/*
+ @${CHOWN} -R iserv /var/log/iserverd
+ @${CHOWN} -R iserv /var/run/iserverd
+
+.include <bsd.port.mk>
diff --git a/net-im/iserverd/distinfo b/net-im/iserverd/distinfo
new file mode 100644
index 000000000000..beed81425bee
--- /dev/null
+++ b/net-im/iserverd/distinfo
@@ -0,0 +1,3 @@
+MD5 (IServerd-stable.tar.gz) = 039945afa1130c19aa72a208404ab543
+SHA256 (IServerd-stable.tar.gz) = 06b70bbe3a72646dba936698398385179b72222358ce70338e39de6ef56631e3
+SIZE (IServerd-stable.tar.gz) = 623450
diff --git a/net-im/iserverd/files/iserverd.in b/net-im/iserverd/files/iserverd.in
new file mode 100644
index 000000000000..0cebf64d44f8
--- /dev/null
+++ b/net-im/iserverd/files/iserverd.in
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+# PROVIDE: iserverd
+# REQUIRE: LOGIN postgresql
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable iserverd:
+#
+# iserverd_enable="YES"
+#
+
+name=iserverd
+prefix=%%PREFIX%%
+
+. %%RC_SUBR%%
+
+load_rc_config $name
+
+# set defaults
+iserverd_enable=${iserverd_enable:-"NO"}
+iserverd_user=iserv
+
+rcvar=`set_rcvar`
+command=${prefix}/bin/iserverd
+command_args="-o"
+
+pidfile="/var/run/iserverd/iserverd.pid"
+
+start_cmd=iserverd_start
+
+iserverd_start()
+{
+ su -l ${iserverd_user} -c "exec ${command} ${command_args}"
+ echo "Starting iserverd."
+}
+
+run_rc_command "$1"
diff --git a/net-im/iserverd/files/patch-configure b/net-im/iserverd/files/patch-configure
new file mode 100644
index 000000000000..04b8dcd09e4e
--- /dev/null
+++ b/net-im/iserverd/files/patch-configure
@@ -0,0 +1,86 @@
+--- configure.orig Tue Mar 13 08:22:41 2007
++++ configure Sun Jun 17 17:46:40 2007
+@@ -7712,7 +7712,7 @@
+
+
+
+-for ac_header in netinet/in.h netdb.h net/if.h sys/un.h syslog.h
++for ac_header in netinet/in.h netdb.h sys/un.h syslog.h
+ do
+ as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ if eval "test \"\${$as_ac_Header+set}\" = set"; then
+@@ -8011,6 +8011,74 @@
+ fi
+
+ done
++
++
++
++
++for ac_header in net/if.h
++do
++as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
++echo "$as_me:$LINENO: checking for $ac_header" >&5
++echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
++if eval "test \"\${$as_ac_Header+set}\" = set"; then
++ echo $ECHO_N "(cached) $ECHO_C" >&6
++else
++ cat >conftest.$ac_ext <<_ACEOF
++/* confdefs.h. */
++_ACEOF
++cat confdefs.h >>conftest.$ac_ext
++cat >>conftest.$ac_ext <<_ACEOF
++/* end confdefs.h. */
++#if HAVE_SYS_SOCKET_H
++# include <sys/socket.h>
++#endif
++
++
++#include <$ac_header>
++_ACEOF
++rm -f conftest.$ac_objext
++if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
++ (eval $ac_compile) 2>conftest.er1
++ ac_status=$?
++ grep -v '^ *+' conftest.er1 >conftest.err
++ rm -f conftest.er1
++ cat conftest.err >&5
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); } &&
++ { ac_try='test -z "$ac_c_werror_flag"
++ || test ! -s conftest.err'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; } &&
++ { ac_try='test -s conftest.$ac_objext'
++ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
++ (eval $ac_try) 2>&5
++ ac_status=$?
++ echo "$as_me:$LINENO: \$? = $ac_status" >&5
++ (exit $ac_status); }; }; then
++ eval "$as_ac_Header=yes"
++else
++ echo "$as_me: failed program was:" >&5
++sed 's/^/| /' conftest.$ac_ext >&5
++
++eval "$as_ac_Header=no"
++fi
++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
++fi
++echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
++echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
++if test `eval echo '${'$as_ac_Header'}'` = yes; then
++ cat >>confdefs.h <<_ACEOF
++#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
++_ACEOF
++
++fi
++
++done
++
++
+
+
+
diff --git a/net-im/iserverd/files/patch-script__Makefile.in b/net-im/iserverd/files/patch-script__Makefile.in
new file mode 100644
index 000000000000..20a1b4143c2d
--- /dev/null
+++ b/net-im/iserverd/files/patch-script__Makefile.in
@@ -0,0 +1,49 @@
+--- script/Makefile.in.orig Fri Sep 7 12:56:01 2007
++++ script/Makefile.in Fri Sep 7 12:56:53 2007
+@@ -20,9 +20,6 @@
+ DB_SCRIPT = icquser
+ DB_SUPP = icquser.sql
+
+-ALL_SCRIPT = iserverd.sh \
+- iserverd.sh.asp
+-
+ all:
+ @echo "Nothing to do in scripts"
+
+@@ -30,12 +27,6 @@
+ @echo "Cleaning in scripts"
+
+ distclean:
+- @list='$(ALL_SCRIPT)'; for p in $$list; do \
+- if test -f $$p; then \
+- echo "Deleting script $$p"; \
+- rm -rf $$p ; \
+- else :; fi ; \
+- done
+ @list='$(BIN_SCRIPT)'; for p in $$list; do \
+ if test -f $$p; then \
+ echo "Deleting script $$p"; \
+@@ -51,12 +42,6 @@
+ @echo "Deleting Makefile"; rm -rf Makefile
+
+ install:
+- @list='$(ALL_SCRIPT)'; for p in $$list; do \
+- if test -f $$p; then \
+- echo " $(INSTALL_SCRIPT) $$p $(ETC_DIR)/`echo $$p|sed '$(transform)'`"; \
+- $(INSTALL_SCRIPT) $$p $(ETC_DIR)/`echo $$p|sed '$(transform)'`; \
+- else :; fi; \
+- done
+ $(mkinstalldirs) $(BIN_DIR);
+ @list='$(BIN_SCRIPT)'; for p in $$list; do \
+ if test -f $$p; then \
+@@ -79,10 +64,6 @@
+ done
+
+ uninstall:
+- @list='$(ALL_SCRIPT)'; for p in $$list; do \
+- rm -f $(ETC_DIR)/`echo $$p|sed '$(transform)'`; \
+- echo " rm -f $(ETC_DIR)/$$p"; \
+- done;
+ @list='$(BIN_SCRIPT)'; for p in $$list; do \
+ rm -f $(BIN_DIR)/`echo $$p|sed '$(transform)'`; \
+ echo " rm -f $(BIN_DIR)/$$p"; \
diff --git a/net-im/iserverd/pkg-descr b/net-im/iserverd/pkg-descr
new file mode 100644
index 000000000000..8a2fcab5c3cd
--- /dev/null
+++ b/net-im/iserverd/pkg-descr
@@ -0,0 +1,5 @@
+Groupware ICQ server clone.
+
+WWW: http://iserverd.khstu.ru/
+
+- Alexander V. Shutko
diff --git a/net-im/iserverd/pkg-install b/net-im/iserverd/pkg-install
new file mode 100644
index 000000000000..3863f3f36a22
--- /dev/null
+++ b/net-im/iserverd/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+#
+# $FREEBSD$
+#
+PATH=/bin:/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=iserv
+ GROUP=${USER}
+ UID=911
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/spool/iserv -m -s /bin/sh -c "iserverd user"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+ ;;
+esac
diff --git a/net-im/iserverd/pkg-plist b/net-im/iserverd/pkg-plist
new file mode 100644
index 000000000000..b1f4090ddb12
--- /dev/null
+++ b/net-im/iserverd/pkg-plist
@@ -0,0 +1,63 @@
+bin/broadcast
+bin/convert_db.sh
+bin/db_check
+bin/db_convert
+bin/db_manage.sh
+bin/disconnect
+bin/iserverd
+bin/online_cnt.cgi
+bin/post_mess.cgi
+bin/server_status
+bin/users_cnt.cgi
+bin/webpager
+etc/iserverd/actions.conf.default
+etc/iserverd/aim_proto.conf
+etc/iserverd/db/icquser
+etc/iserverd/db/icquser.sql
+etc/iserverd/iserv.conf.default
+etc/iserverd/texts/adm_notes.rus
+etc/iserverd/texts/adm_notes.txt
+etc/iserverd/texts/post_reg_auto.rus
+etc/iserverd/texts/post_reg_auto.txt
+etc/iserverd/texts/post_reg_man.rus
+etc/iserverd/texts/post_reg_man.txt
+etc/iserverd/texts/reg_mess.ptt
+etc/iserverd/translate/ASCII
+etc/iserverd/translate/CP437
+etc/iserverd/translate/CP850
+etc/iserverd/translate/DANISH
+etc/iserverd/translate/DEC_MCS
+etc/iserverd/translate/DG_MCS
+etc/iserverd/translate/DUTCH
+etc/iserverd/translate/FINNISH
+etc/iserverd/translate/FRENCH
+etc/iserverd/translate/FRENCH_CANADIAN
+etc/iserverd/translate/GERMAN
+etc/iserverd/translate/HP_MCS
+etc/iserverd/translate/IRV
+etc/iserverd/translate/ITALIAN
+etc/iserverd/translate/JIS
+etc/iserverd/translate/MACINTOSH
+etc/iserverd/translate/NEXT
+etc/iserverd/translate/NORWEGIAN_1
+etc/iserverd/translate/NORWEGIAN_2
+etc/iserverd/translate/POLISH
+etc/iserverd/translate/POLISH_NOPL
+etc/iserverd/translate/PORTUGUESE
+etc/iserverd/translate/PORTUGUESE_COM
+etc/iserverd/translate/RUSSIAN
+etc/iserverd/translate/RUSSIAN_ALT
+etc/iserverd/translate/RUSSIAN_WIN
+etc/iserverd/translate/SPANISH
+etc/iserverd/translate/SWEDISH
+etc/iserverd/translate/SWEDISH_NAMES
+etc/iserverd/translate/SWISS
+etc/iserverd/translate/UKRAINIAN_WIN
+etc/iserverd/v3_proto.conf.default
+etc/iserverd/v5_proto.conf.default
+etc/iserverd/v7_proto.conf.default
+@unexec echo "Warning: If you will *NOT* use this package anymore, please remove the iserverd user manually."
+@dirrm etc/iserverd/translate
+@dirrm etc/iserverd/texts
+@dirrm etc/iserverd/db
+@dirrmtry etc/iserverd