diff options
author | cjep <cjep@pkgsrc.org> | 2003-04-14 18:34:07 +0000 |
---|---|---|
committer | cjep <cjep@pkgsrc.org> | 2003-04-14 18:34:07 +0000 |
commit | f2d4fbd92818c13265c470f0f7b18ebf41a42509 (patch) | |
tree | 75105ab9b2576ebbf0395b49f48fa690509cf5fa /net/qadsl | |
parent | ee97bc0548f5bbb177c798e7280506f6dae4c7b7 (diff) | |
download | pkgsrc-f2d4fbd92818c13265c470f0f7b18ebf41a42509.tar.gz |
Initial import of qADSL 1.2 into the NetBSD packages collection as
net/qadsl.
qADSL is an auto-login client and connection keeper for Telia AB ADSL
and Comhem broadband.
From pkgsrc-wip. Supplied by Ola Eriksson in PR#18480. Thanks!
Diffstat (limited to 'net/qadsl')
-rw-r--r-- | net/qadsl/DESCR | 4 | ||||
-rw-r--r-- | net/qadsl/MESSAGE | 10 | ||||
-rw-r--r-- | net/qadsl/Makefile | 24 | ||||
-rw-r--r-- | net/qadsl/PLIST | 4 | ||||
-rw-r--r-- | net/qadsl/distinfo | 8 | ||||
-rw-r--r-- | net/qadsl/patches/patch-aa | 33 | ||||
-rw-r--r-- | net/qadsl/patches/patch-ab | 12 | ||||
-rw-r--r-- | net/qadsl/patches/patch-ac | 13 | ||||
-rw-r--r-- | net/qadsl/patches/patch-ad | 13 |
9 files changed, 121 insertions, 0 deletions
diff --git a/net/qadsl/DESCR b/net/qadsl/DESCR new file mode 100644 index 00000000000..b5f90929ccc --- /dev/null +++ b/net/qadsl/DESCR @@ -0,0 +1,4 @@ +qADSL is an auto-login client and connection keeper for Telia AB ADSL +and Comhem broadband. It automatically logs in at system startup and +then "forks" a daemon that pings and logs into the login host after a +chosen delay. diff --git a/net/qadsl/MESSAGE b/net/qadsl/MESSAGE new file mode 100644 index 00000000000..e5be856d335 --- /dev/null +++ b/net/qadsl/MESSAGE @@ -0,0 +1,10 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2003/04/14 18:34:07 cjep Exp $ + +Example of the configfile can be found at: + ${PREFIX}/share/examples/qadsl.conf.sample + +Copy this file to ${PKG_SYSCONFDIR}/qadsl.conf and enter your +username and password. + +=========================================================================== diff --git a/net/qadsl/Makefile b/net/qadsl/Makefile new file mode 100644 index 00000000000..478e2c6878e --- /dev/null +++ b/net/qadsl/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/04/14 18:34:08 cjep Exp $ +# + +DISTNAME= qadsl-final-1.2 +PKGNAME= qadsl-1.2 +CATEGORIES= net +MASTER_SITES= http://qba.linuxsweden.nu/code/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://qba.linuxsweden.nu/ +COMMENT= Login software for Swedish Telia ADSL/Comhem cable Internet users + +ALL_TARGET= bsd +MANCOMPRESSED= yes + +MAKE_ENV+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/qadsl ${PREFIX}/sbin + ${INSTALL_DATA} ${WRKSRC}/qadsl.conf \ + ${PREFIX}/share/examples/qadsl.conf.sample + ${INSTALL_MAN} ${WRKSRC}/qadsl.8.gz ${PREFIX}/man/man8 + +.include "../../mk/bsd.pkg.mk" diff --git a/net/qadsl/PLIST b/net/qadsl/PLIST new file mode 100644 index 00000000000..fae757e37cf --- /dev/null +++ b/net/qadsl/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/04/14 18:34:08 cjep Exp $ +share/examples/qadsl.conf.sample +man/man8/qadsl.8.gz +sbin/qadsl diff --git a/net/qadsl/distinfo b/net/qadsl/distinfo new file mode 100644 index 00000000000..e1de3ef28ed --- /dev/null +++ b/net/qadsl/distinfo @@ -0,0 +1,8 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/04/14 18:34:08 cjep Exp $ + +SHA1 (qadsl-final-1.2.tar.gz) = 3ec757d271c14e231d979fd8d3121ee21d8bd201 +Size (qadsl-final-1.2.tar.gz) = 12208 bytes +SHA1 (patch-aa) = 4f9d6e829a7e9e3203de7fa5505b7f4ec0cc20f2 +SHA1 (patch-ab) = 737f0c0ff00dcdd9844837ed47c544beaec60f2b +SHA1 (patch-ac) = be60cd44d541aea80a00026424ff0aa615bda353 +SHA1 (patch-ad) = f610a095c93fea89409af50a908c5f0948f39b85 diff --git a/net/qadsl/patches/patch-aa b/net/qadsl/patches/patch-aa new file mode 100644 index 00000000000..eff7b6e2f33 --- /dev/null +++ b/net/qadsl/patches/patch-aa @@ -0,0 +1,33 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/04/14 18:34:08 cjep Exp $ + +--- Makefile.orig 2001-10-20 14:45:47.000000000 +0100 ++++ Makefile +@@ -2,21 +2,22 @@ + + PROG=qadsl + CONF=qadsl.conf +-MACRO=__OpenBSD__ ++#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/ ++CPATH=${PKG_SYSCONFDIR} ++INSTALL=${PREFIX}/sbin ++MANPATH=${PREFIX}/man/man8 ++CFLAGS+=-D__DEFAULT_CFG_PATH=\"${CPATH}/${CONF}\" + + all:${PROG} + + ${PROG}: +- ${CC} -c ${SRC} ++ ${CC} ${CFLAGS} -c ${SRC} + ${CC} -o ${PROG} ${OBJS} + + bsd: +- ${CC} -D${MACRO} -c ${SRC} ++ ${CC} ${CFLAGS} -c ${SRC} + ${CC} -o ${PROG} ${OBJS} + + clean: diff --git a/net/qadsl/patches/patch-ab b/net/qadsl/patches/patch-ab new file mode 100644 index 00000000000..a6d1ea7fdce --- /dev/null +++ b/net/qadsl/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/04/14 18:34:08 cjep Exp $ + +--- func.c.orig 2001-10-20 11:52:18.000000000 +0100 ++++ func.c +@@ -48,6 +48,6 @@ void url_encode(const char *in, char *ou + + 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" ++ printf("\t-h\t\tPrint this message\n\t-c file\t\tConfigfile to use (Default: " __DEFAULT_CFG_PATH ")\n\t" + "-l\t\tWill try to login\n\t-o\t\tWill try to logout\n"); + } diff --git a/net/qadsl/patches/patch-ac b/net/qadsl/patches/patch-ac new file mode 100644 index 00000000000..c07aa29776e --- /dev/null +++ b/net/qadsl/patches/patch-ac @@ -0,0 +1,13 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/04/14 18:34:08 cjep Exp $ + +--- main.c.orig 2001-10-20 15:29:16.000000000 +0100 ++++ main.c +@@ -32,7 +32,7 @@ int login_sw=0,sockfd,i; + 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"; ++char *conf=__DEFAULT_CFG_PATH; + + int main(int argc, char *argv[]) + { diff --git a/net/qadsl/patches/patch-ad b/net/qadsl/patches/patch-ad new file mode 100644 index 00000000000..5274c121c5b --- /dev/null +++ b/net/qadsl/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2003/04/14 18:34:08 cjep Exp $ + +--- qadsl.h.orig 2001-10-20 11:01:46.000000000 +0100 ++++ qadsl.h +@@ -18,7 +18,7 @@ + #define MAXDATASIZE 4091 + #define MAXLEN 256 + +-#if defined(__OpenBSD__) ++#if defined(__OpenBSD__) || defined(__NetBSD__) + #define TMP_PID "/var/run/qadsl.pid" + #else + #define TMP_PID "/tmp/qadsl.pid" |