1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

This is new port for AquaGatekeeper by The Aqua Group.

It can be used as H.323 gatekeeper, IP-to-IP voice gateway
or proxy. It can be used to pass voice traffic from private
networks to the Internet and vice versa when runs on the NAT
box.It provides billing information and
can optionally use RADUIS.

PR:		58833
Submitted by:	Eugene Grosbein <eugen@grosbein.pp.ru>
This commit is contained in:
Kirill Ponomarev 2003-11-02 17:37:15 +00:00
parent 85ac5c06a6
commit 15c908ce36
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92854
17 changed files with 537 additions and 0 deletions

View File

@ -0,0 +1,53 @@
# New ports collection makefile for: AquaGatekeeper
# Date created: 2 November 2003
# Whom: Eugene Grosbein <eugen@grosbein.pp.ru>
#
# $FreeBSD$
#
PORTNAME= AquaGatekeeper
PORTVERSION= 1.17
CATEGORIES= net
MASTER_SITES= ftp://ftp.aqua.comptek.ru/pub/GateKeeper/ \
ftp://www.kuzbass.ru/pub/FreeBSD/ports/distfiles/
DISTNAME= AquaGatekeeper117FreeBSD
EXTRACT_SUFX= .tgz
MAINTAINER= eugen@grosbein.pp.ru
COMMENT= Aqua H323 Gatekeeper and proxy
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
ONLY_FOR_ARCHS= i386
NO_PACKAGE= "No commercial redistribution"
NO_CDROM= "No commercial redistribution"
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
IS_INTERACTIVE= yes
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/AquaGatekeeper ${PREFIX}/bin/
@${INSTALL_SCRIPT} ${FILESDIR}/agk.sh.sample ${PREFIX}/etc/rc.d/
@${INSTALL_DATA} ${WRKSRC}/Config/AquaGatekeeper.cfg ${PREFIX}/etc/AquaGatekeeper.cfg.sample
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/Config/Example.cfg ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@for docfile in ${WRKSRC}/Help/*; \
do ${INSTALL_MAN} $$docfile ${DOCSDIR}; \
done
.endif
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${SED} "s'%%PREFIX%%'${PREFIX}'" < pkg-message
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000 || ${OSVERSION} < 400000
BROKEN= "Supported only on 4.x systems"
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1 @@
MD5 (AquaGatekeeper117FreeBSD.tgz) = 68fded95233caff1cc05bbac953cd8b7

View File

@ -0,0 +1,37 @@
#!/bin/sh
PREFIX=$(expr `realpath $0` : "\(/.*\)/etc/rc\.d/`basename $0`\$")
PROG=$PREFIX/bin/AquaGatekeeper
CFG=$PREFIX/etc/agk.cfg
TIMEOUT=30
case "$1" in
start)
shift
su -m agk -c "[ -x $PROG -a -r $CFG ] &&
echo -n ' AquaGatekeeper' && $PROG -d --configuration=$CFG $@"
;;
stop)
shift
signal=-TERM
[ -n "$1" ] && signal="$1"
killall $signal AquaGatekeeper
[ $signal != -2 -a $signal != -INT ] && exit 0
i=1
while [ $i -le $TIMEOUT ]
do
ps -axc | grep -q AquaGatekeeper || break
i=$(($i+1))
sleep 1
done
;;
restart)
`realpath $0` stop -INT
`realpath $0` start
;;
*)
echo "Usage: `basename $0` {start|stop|restart}" >&2
;;
esac
exit 0

View File

@ -0,0 +1,65 @@
#!/bin/sh
USER=agk
GROUP=agk
ask() {
local question default answer
question=$1
default=$2
if [ -z "${PACKAGE_BUILDING}" ]; then
read -p "${question} [${default}]? " answer
fi
if [ x${answer} = x ]; then
answer=${default}
fi
echo ${answer}
}
yesno() {
local dflt question answer
question=$1
dflt=$2
while :; do
answer=$(ask "${question}" "${dflt}")
case "${answer}" in
[Yy]*) return 0;;
[Nn]*) return 1;;
esac
echo "Please answer yes or no."
done
}
delete_account() {
local u g
u=$1
g=$2
if yesno "Do you want me to remove group \"${g}\"" y; then
pw groupdel -n ${g}
echo "Done."
fi
if yesno "Do you want me to remove user \"${u}\"" y; then
pw userdel -n ${u}
echo "Done."
fi
}
[ "$2" = DEINSTALL ] || exit 0
export PATH=/bin:/usr/bin:/usr/sbin
if ps -axc | grep -q AquaGatekeeper; then
if yesno "There are some AquaGatekeeper processes running. Shall I kill them" y
then
killall AquaGatekeeper
sleep 2
else
echo "OK ... I hope you know what you are doing."
fi
fi
delete_account ${USER} ${GROUP}
exit 0

View File

@ -0,0 +1,12 @@
Aqua Gatekeeper is H.323 gatekeeper and proxy by Aqua Project Group.
It is compatible with many hardware/software like Cisco H.323 gateways and
Microsoft NetMeeting 3.01 for Windows 2000 and later.
This port presents Aqua Gatekeeper Startup Edition.
It is not a free software but may be used free of charge.
The Aqua Gatekeeper Startup Edition is limited to 30 concurrent calls.
WWW: http://www.aqua.comptek.ru/man/voip/gatekeeper/index.htm
- Grosbein
eugen@grosbein.pp.ru

View File

@ -0,0 +1,80 @@
#!/bin/sh
USER=agk
UID=172
GROUP=${USER}
GID=${UID}
ask() {
local question default answer
question=$1
default=$2
if [ -z "${PACKAGE_BUILDING}" ]; then
read -p "${question} [${default}]? " answer
fi
if [ x${answer} = x ]; then
answer=${default}
fi
echo ${answer}
}
yesno() {
local dflt question answer
question=$1
dflt=$2
while :; do
answer=$(ask "${question}" "${dflt}")
case "${answer}" in
[Yy]*) return 0;;
[Nn]*) return 1;;
esac
echo "Please answer yes or no."
done
}
make_account() {
local u g uid gid gcos
u=$1
uid=$2
g=$3
gid=$4
gcos=$5
if pw group show "${g}" >/dev/null 2>&1; then
echo "You already have a group \"${g}\", so I will use it."
else
echo "You need a group \"${g}\"."
if which -s pw && yesno "Would you like me to create it" y; then
pw groupadd -n ${g} -g ${gid} || exit
echo "Done."
else
echo "Please create it, and try again."
if ! grep -q "^${u}:" /etc/passwd; then
echo "While you're at it, please create a user \"${u}\" too,"
echo "with a default group of \"${g}\"."
fi
exit 1
fi
fi
if pw user show "${u}" >/dev/null 2>&1; then
echo "You already have a user \"${u}\", so I will use it."
else
echo "You need a user \"${u}\"."
if which -s pw && yesno "Would you like me to create it" y; then
pw useradd -n ${u} -u ${uid} -g ${g} -h - -d /nonexistent \
-s /nonexistent -c "${gcos}" || exit
echo "Done."
else
echo "Please create it, and try again."
exit 1
fi
fi
}
[ "$2" = POST-INSTALL ] || exit 0
make_account ${USER} ${UID} ${GROUP} ${GID} "AquaGateKeeper"

View File

@ -0,0 +1,5 @@
****************************************************************************
Please read documentation located in %%PREFIX%%/share/doc/AquaGatekeeper
You will need to write configuration file to run the Gatekeeper.
Some examples are in %%PREFIX%%/share/examples/AquaGatekeeper
****************************************************************************

View File

@ -0,0 +1,15 @@
bin/AquaGatekeeper
etc/rc.d/agk.sh.sample
etc/AquaGatekeeper.cfg.sample
%%PORTDOCS%%%%DOCSDIR%%/AquaGatekeeper.htm
%%PORTDOCS%%%%DOCSDIR%%/AquaGatekeeperMonitor.chm
%%PORTDOCS%%%%DOCSDIR%%/CommandLineOptions.htm
%%PORTDOCS%%%%DOCSDIR%%/ConfigSyntax.htm
%%PORTDOCS%%%%DOCSDIR%%/License.rtf
%%PORTDOCS%%%%DOCSDIR%%/LicenseRus.rtf
%%PORTDOCS%%%%DOCSDIR%%/OperationPrinciples.htm
%%PORTDOCS%%%%DOCSDIR%%/RevisionHistory.htm
%%PORTDOCS%%%%DOCSDIR%%/default.css
%%EXAMPLESDIR%%/Example.cfg
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%

View File

@ -0,0 +1,53 @@
# New ports collection makefile for: AquaGatekeeper
# Date created: 2 November 2003
# Whom: Eugene Grosbein <eugen@grosbein.pp.ru>
#
# $FreeBSD$
#
PORTNAME= AquaGatekeeper
PORTVERSION= 1.17
CATEGORIES= net
MASTER_SITES= ftp://ftp.aqua.comptek.ru/pub/GateKeeper/ \
ftp://www.kuzbass.ru/pub/FreeBSD/ports/distfiles/
DISTNAME= AquaGatekeeper117FreeBSD
EXTRACT_SUFX= .tgz
MAINTAINER= eugen@grosbein.pp.ru
COMMENT= Aqua H323 Gatekeeper and proxy
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
ONLY_FOR_ARCHS= i386
NO_PACKAGE= "No commercial redistribution"
NO_CDROM= "No commercial redistribution"
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
IS_INTERACTIVE= yes
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/AquaGatekeeper ${PREFIX}/bin/
@${INSTALL_SCRIPT} ${FILESDIR}/agk.sh.sample ${PREFIX}/etc/rc.d/
@${INSTALL_DATA} ${WRKSRC}/Config/AquaGatekeeper.cfg ${PREFIX}/etc/AquaGatekeeper.cfg.sample
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/Config/Example.cfg ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@for docfile in ${WRKSRC}/Help/*; \
do ${INSTALL_MAN} $$docfile ${DOCSDIR}; \
done
.endif
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${SED} "s'%%PREFIX%%'${PREFIX}'" < pkg-message
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 500000 || ${OSVERSION} < 400000
BROKEN= "Supported only on 4.x systems"
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1 @@
MD5 (AquaGatekeeper117FreeBSD.tgz) = 68fded95233caff1cc05bbac953cd8b7

View File

@ -0,0 +1,37 @@
#!/bin/sh
PREFIX=$(expr `realpath $0` : "\(/.*\)/etc/rc\.d/`basename $0`\$")
PROG=$PREFIX/bin/AquaGatekeeper
CFG=$PREFIX/etc/agk.cfg
TIMEOUT=30
case "$1" in
start)
shift
su -m agk -c "[ -x $PROG -a -r $CFG ] &&
echo -n ' AquaGatekeeper' && $PROG -d --configuration=$CFG $@"
;;
stop)
shift
signal=-TERM
[ -n "$1" ] && signal="$1"
killall $signal AquaGatekeeper
[ $signal != -2 -a $signal != -INT ] && exit 0
i=1
while [ $i -le $TIMEOUT ]
do
ps -axc | grep -q AquaGatekeeper || break
i=$(($i+1))
sleep 1
done
;;
restart)
`realpath $0` stop -INT
`realpath $0` start
;;
*)
echo "Usage: `basename $0` {start|stop|restart}" >&2
;;
esac
exit 0

View File

@ -0,0 +1,65 @@
#!/bin/sh
USER=agk
GROUP=agk
ask() {
local question default answer
question=$1
default=$2
if [ -z "${PACKAGE_BUILDING}" ]; then
read -p "${question} [${default}]? " answer
fi
if [ x${answer} = x ]; then
answer=${default}
fi
echo ${answer}
}
yesno() {
local dflt question answer
question=$1
dflt=$2
while :; do
answer=$(ask "${question}" "${dflt}")
case "${answer}" in
[Yy]*) return 0;;
[Nn]*) return 1;;
esac
echo "Please answer yes or no."
done
}
delete_account() {
local u g
u=$1
g=$2
if yesno "Do you want me to remove group \"${g}\"" y; then
pw groupdel -n ${g}
echo "Done."
fi
if yesno "Do you want me to remove user \"${u}\"" y; then
pw userdel -n ${u}
echo "Done."
fi
}
[ "$2" = DEINSTALL ] || exit 0
export PATH=/bin:/usr/bin:/usr/sbin
if ps -axc | grep -q AquaGatekeeper; then
if yesno "There are some AquaGatekeeper processes running. Shall I kill them" y
then
killall AquaGatekeeper
sleep 2
else
echo "OK ... I hope you know what you are doing."
fi
fi
delete_account ${USER} ${GROUP}
exit 0

View File

@ -0,0 +1,12 @@
Aqua Gatekeeper is H.323 gatekeeper and proxy by Aqua Project Group.
It is compatible with many hardware/software like Cisco H.323 gateways and
Microsoft NetMeeting 3.01 for Windows 2000 and later.
This port presents Aqua Gatekeeper Startup Edition.
It is not a free software but may be used free of charge.
The Aqua Gatekeeper Startup Edition is limited to 30 concurrent calls.
WWW: http://www.aqua.comptek.ru/man/voip/gatekeeper/index.htm
- Grosbein
eugen@grosbein.pp.ru

View File

@ -0,0 +1,80 @@
#!/bin/sh
USER=agk
UID=172
GROUP=${USER}
GID=${UID}
ask() {
local question default answer
question=$1
default=$2
if [ -z "${PACKAGE_BUILDING}" ]; then
read -p "${question} [${default}]? " answer
fi
if [ x${answer} = x ]; then
answer=${default}
fi
echo ${answer}
}
yesno() {
local dflt question answer
question=$1
dflt=$2
while :; do
answer=$(ask "${question}" "${dflt}")
case "${answer}" in
[Yy]*) return 0;;
[Nn]*) return 1;;
esac
echo "Please answer yes or no."
done
}
make_account() {
local u g uid gid gcos
u=$1
uid=$2
g=$3
gid=$4
gcos=$5
if pw group show "${g}" >/dev/null 2>&1; then
echo "You already have a group \"${g}\", so I will use it."
else
echo "You need a group \"${g}\"."
if which -s pw && yesno "Would you like me to create it" y; then
pw groupadd -n ${g} -g ${gid} || exit
echo "Done."
else
echo "Please create it, and try again."
if ! grep -q "^${u}:" /etc/passwd; then
echo "While you're at it, please create a user \"${u}\" too,"
echo "with a default group of \"${g}\"."
fi
exit 1
fi
fi
if pw user show "${u}" >/dev/null 2>&1; then
echo "You already have a user \"${u}\", so I will use it."
else
echo "You need a user \"${u}\"."
if which -s pw && yesno "Would you like me to create it" y; then
pw useradd -n ${u} -u ${uid} -g ${g} -h - -d /nonexistent \
-s /nonexistent -c "${gcos}" || exit
echo "Done."
else
echo "Please create it, and try again."
exit 1
fi
fi
}
[ "$2" = POST-INSTALL ] || exit 0
make_account ${USER} ${UID} ${GROUP} ${GID} "AquaGateKeeper"

View File

@ -0,0 +1,5 @@
****************************************************************************
Please read documentation located in %%PREFIX%%/share/doc/AquaGatekeeper
You will need to write configuration file to run the Gatekeeper.
Some examples are in %%PREFIX%%/share/examples/AquaGatekeeper
****************************************************************************

View File

@ -0,0 +1,15 @@
bin/AquaGatekeeper
etc/rc.d/agk.sh.sample
etc/AquaGatekeeper.cfg.sample
%%PORTDOCS%%%%DOCSDIR%%/AquaGatekeeper.htm
%%PORTDOCS%%%%DOCSDIR%%/AquaGatekeeperMonitor.chm
%%PORTDOCS%%%%DOCSDIR%%/CommandLineOptions.htm
%%PORTDOCS%%%%DOCSDIR%%/ConfigSyntax.htm
%%PORTDOCS%%%%DOCSDIR%%/License.rtf
%%PORTDOCS%%%%DOCSDIR%%/LicenseRus.rtf
%%PORTDOCS%%%%DOCSDIR%%/OperationPrinciples.htm
%%PORTDOCS%%%%DOCSDIR%%/RevisionHistory.htm
%%PORTDOCS%%%%DOCSDIR%%/default.css
%%EXAMPLESDIR%%/Example.cfg
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%

View File

@ -4,6 +4,7 @@
SUBDIR += 3proxy
SUBDIR += 44bsd-rdist
SUBDIR += 6tunnel
SUBDIR += AquaGatekeeper
SUBDIR += DarwinStreamingServer
SUBDIR += GeoIP
SUBDIR += NeTraMet