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/patches | |
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/patches')
-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 |
4 files changed, 71 insertions, 0 deletions
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" |