mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
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>
This commit is contained in:
parent
9a504743b8
commit
1d45831e07
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198971
@ -50,6 +50,7 @@
|
||||
SUBDIR += icqlib
|
||||
SUBDIR += icqnd
|
||||
SUBDIR += imcom
|
||||
SUBDIR += iserverd
|
||||
SUBDIR += jabber.el
|
||||
SUBDIR += jabberd
|
||||
SUBDIR += jabber
|
||||
|
57
net-im/iserverd/Makefile
Normal file
57
net-im/iserverd/Makefile
Normal file
@ -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>
|
3
net-im/iserverd/distinfo
Normal file
3
net-im/iserverd/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (IServerd-stable.tar.gz) = 039945afa1130c19aa72a208404ab543
|
||||
SHA256 (IServerd-stable.tar.gz) = 06b70bbe3a72646dba936698398385179b72222358ce70338e39de6ef56631e3
|
||||
SIZE (IServerd-stable.tar.gz) = 623450
|
37
net-im/iserverd/files/iserverd.in
Normal file
37
net-im/iserverd/files/iserverd.in
Normal file
@ -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"
|
86
net-im/iserverd/files/patch-configure
Normal file
86
net-im/iserverd/files/patch-configure
Normal file
@ -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
|
||||
+
|
||||
+
|
||||
|
||||
|
||||
|
49
net-im/iserverd/files/patch-script__Makefile.in
Normal file
49
net-im/iserverd/files/patch-script__Makefile.in
Normal file
@ -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"; \
|
5
net-im/iserverd/pkg-descr
Normal file
5
net-im/iserverd/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
Groupware ICQ server clone.
|
||||
|
||||
WWW: http://iserverd.khstu.ru/
|
||||
|
||||
- Alexander V. Shutko
|
38
net-im/iserverd/pkg-install
Normal file
38
net-im/iserverd/pkg-install
Normal file
@ -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
|
63
net-im/iserverd/pkg-plist
Normal file
63
net-im/iserverd/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user