mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
Add qadsl 1.2, an auto login/Keep-alive for Telia AB ADSL and COMHEM
Cable internet. PR: 33710 Submitted by: Arne Lundberg <arlu@telia.com>
This commit is contained in:
parent
234fbee30c
commit
e1796893ad
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62090
@ -438,6 +438,7 @@
|
||||
SUBDIR += py-xmlrpc
|
||||
SUBDIR += py-xmlrpclib
|
||||
SUBDIR += py-zsi
|
||||
SUBDIR += qadsl
|
||||
SUBDIR += qtella
|
||||
SUBDIR += queso
|
||||
SUBDIR += radius
|
||||
|
22
net/qadsl/Makefile
Normal file
22
net/qadsl/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
# New ports collection makefile for: qadsl
|
||||
# Date created: 13 December 2001
|
||||
# Whom: Arne Lundberg <arlu@telia.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= qadsl
|
||||
PORTVERSION= 1.2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://qba.linuxsweden.nu/code/
|
||||
DISTNAME= qadsl-final-${PORTVERSION}
|
||||
|
||||
MAINTAINER= arlu@telia.com
|
||||
|
||||
MAN8= qadsl.8
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
post-install:
|
||||
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
1
net/qadsl/distinfo
Normal file
1
net/qadsl/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (qadsl-final-1.2.tar.gz) = 42e25b2a6016ff6d5ffa4f9707ac4614
|
51
net/qadsl/files/patch-Makefile
Normal file
51
net/qadsl/files/patch-Makefile
Normal file
@ -0,0 +1,51 @@
|
||||
*** Makefile.orig Thu Dec 13 21:31:26 2001
|
||||
--- Makefile Thu Dec 13 22:20:45 2001
|
||||
***************
|
||||
*** 5,28 ****
|
||||
MACRO=__OpenBSD__
|
||||
OBJS=main.o netfunc.o conf.o func.o
|
||||
SRC=main.c netfunc.c conf.c func.c
|
||||
! CPATH=/etc/
|
||||
! INSTALL=/usr/local/sbin/
|
||||
! MANPATH=/usr/local/man/man8/
|
||||
|
||||
all:${PROG}
|
||||
|
||||
${PROG}:
|
||||
! ${CC} -c ${SRC}
|
||||
! ${CC} -o ${PROG} ${OBJS}
|
||||
!
|
||||
! bsd:
|
||||
! ${CC} -D${MACRO} -c ${SRC}
|
||||
${CC} -o ${PROG} ${OBJS}
|
||||
|
||||
clean:
|
||||
rm -fr ${PROG} ${OBJS}
|
||||
|
||||
install:
|
||||
! cp ${PROG} ${INSTALL}
|
||||
! cp ${CONF} ${CPATH}
|
||||
cp qadsl.8.gz ${MANPATH}
|
||||
--- 5,26 ----
|
||||
MACRO=__OpenBSD__
|
||||
OBJS=main.o netfunc.o conf.o func.o
|
||||
SRC=main.c netfunc.c conf.c func.c
|
||||
! CPATH=${PREFIX}/etc/
|
||||
! INSTALL=${PREFIX}/sbin/
|
||||
! RC=${PREFIX}/etc/rc.d/
|
||||
! MANPATH=${PREFIX}/man/man8/
|
||||
|
||||
all:${PROG}
|
||||
|
||||
${PROG}:
|
||||
! ${CC} -D${MACRO} -DCONF=\"${CPATH}/${CONF}\" -c ${SRC}
|
||||
${CC} -o ${PROG} ${OBJS}
|
||||
|
||||
clean:
|
||||
rm -fr ${PROG} ${OBJS}
|
||||
|
||||
install:
|
||||
! install ${PROG} ${INSTALL}
|
||||
! cp ${CONF} ${CPATH}/${CONF}.sample
|
||||
cp qadsl.8.gz ${MANPATH}
|
||||
+ cp qadsl.sh ${RC}
|
17
net/qadsl/files/patch-func.c
Normal file
17
net/qadsl/files/patch-func.c
Normal file
@ -0,0 +1,17 @@
|
||||
*** func.c.orig Thu Dec 13 21:45:53 2001
|
||||
--- func.c Thu Dec 13 21:47:55 2001
|
||||
***************
|
||||
*** 48,53 ****
|
||||
|
||||
void usage(char *argv) {
|
||||
printf("Usage: %s [ -h ] [ -c file ] [ -l ] [ -o ]\n", argv);
|
||||
! printf("\t-h\t\tPrint this message\n\t-c file\t\tUse settings from file instead of /etc/qadsl.conf\n\t"
|
||||
"-l\t\tWill try to login\n\t-o\t\tWill try to logout\n");
|
||||
}
|
||||
--- 48,53 ----
|
||||
|
||||
void usage(char *argv) {
|
||||
printf("Usage: %s [ -h ] [ -c file ] [ -l ] [ -o ]\n", argv);
|
||||
! printf("\t-h\t\tPrint this message\n\t-c file\t\tUse settings from file instead of " CONF "\n\t"
|
||||
"-l\t\tWill try to login\n\t-o\t\tWill try to logout\n");
|
||||
}
|
19
net/qadsl/files/patch-main.c
Normal file
19
net/qadsl/files/patch-main.c
Normal file
@ -0,0 +1,19 @@
|
||||
*** main.c.orig Thu Dec 13 21:41:36 2001
|
||||
--- main.c Thu Dec 13 21:47:38 2001
|
||||
***************
|
||||
*** 32,38 ****
|
||||
char send_msg[MAXDATASIZE], get_msg[MAXDATASIZE];
|
||||
char user[MAXLEN], pass[MAXLEN], serv[MAXLEN], deamon_s[MAXLEN], deamon_t[MAXLEN], deamon_d[MAXLEN];
|
||||
|
||||
! char *conf="/etc/qadsl.conf";
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
--- 32,38 ----
|
||||
char send_msg[MAXDATASIZE], get_msg[MAXDATASIZE];
|
||||
char user[MAXLEN], pass[MAXLEN], serv[MAXLEN], deamon_s[MAXLEN], deamon_t[MAXLEN], deamon_d[MAXLEN];
|
||||
|
||||
! char *conf= CONF;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
26
net/qadsl/files/patch-qadsl.sh
Normal file
26
net/qadsl/files/patch-qadsl.sh
Normal file
@ -0,0 +1,26 @@
|
||||
*** /dev/null Thu Dec 13 22:20:21 2001
|
||||
--- qadsl.sh Wed Dec 12 21:05:26 2001
|
||||
***************
|
||||
*** 0 ****
|
||||
--- 1,21 ----
|
||||
+ #!/bin/sh
|
||||
+
|
||||
+ if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
|
||||
+ echo "$0: Cannot determine the PREFIX" >&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+
|
||||
+ case "$1" in
|
||||
+ start)
|
||||
+ [ -x ${PREFIX}/sbin/qadsl ] && ( ${PREFIX}/sbin/qadsl -l & )
|
||||
+ sleep 2
|
||||
+ ;;
|
||||
+ stop)
|
||||
+ killall qadsl && echo -n ' qadsl'
|
||||
+ ;;
|
||||
+ *)
|
||||
+ echo "Usage: `basename $0` {start|stop}" >&2
|
||||
+ ;;
|
||||
+ esac
|
||||
+
|
||||
+ exit 0
|
1
net/qadsl/pkg-comment
Normal file
1
net/qadsl/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Auto login/Keep-alive for Telia AB ADSL and COMHEM Cable internet
|
10
net/qadsl/pkg-descr
Normal file
10
net/qadsl/pkg-descr
Normal file
@ -0,0 +1,10 @@
|
||||
This is a port of qadsl, a small utility to login on the Telia AB ADSL
|
||||
service. It also works fine with COMHEM Cable internet. It has
|
||||
features like keep-alive daemon, login/logout functions. The
|
||||
keep-alive daemon can be configured to either login or to ping your
|
||||
login-server after a chosen delay in minutes.
|
||||
|
||||
WWW: http://qba.linuxsweden.nu
|
||||
|
||||
-- Arne Lundberg
|
||||
arlu@telia.com
|
7
net/qadsl/pkg-message
Normal file
7
net/qadsl/pkg-message
Normal file
@ -0,0 +1,7 @@
|
||||
*********************************************************
|
||||
|
||||
A sample configuration file has been copied to
|
||||
%%PREFIX%%/etc/qadsl.conf.sample. Qadsl will not work without
|
||||
%%PREFIX%%/etc/qadsl.conf.
|
||||
|
||||
*********************************************************
|
3
net/qadsl/pkg-plist
Normal file
3
net/qadsl/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
sbin/qadsl
|
||||
etc/qadsl.conf.sample
|
||||
etc/rc.d/qadsl.sh
|
Loading…
Reference in New Issue
Block a user