Date: Sat, 11 Sep 2004 22:38:33 +0200 (CEST) From: Fredrik Lindberg <fli-v308@shapeshifter.se> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/71604: Update port: net/qadsl Update to 1.3.3 Message-ID: <20040911203833.92EE540D9@biocandy.shapeshifter.se> Resent-Message-ID: <200409112040.i8BKeQQb038680@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 71604 >Category: ports >Synopsis: Update port: net/qadsl Update to 1.3.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 11 20:40:25 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Fredrik Lindberg >Release: FreeBSD 5.3-BETA1 i386 >Organization: >Environment: System: FreeBSD biocandy.shapeshifter.se 5.3-BETA1 FreeBSD 5.3-BETA1 #5: Fri Aug 20 23:56:28 CEST 2004 root@biocandy.shapeshifter.se:/usr/obj/usr/src/sys/BIOCANDY i386 >Description: Update to qadsl 1.3.3. Utility to login on the Telia AB ADSL service. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # qadsl # qadsl/Makefile # qadsl/pkg-descr # qadsl/pkg-message # qadsl/pkg-plist # qadsl/files # qadsl/files/qadsl.sh # qadsl/files/patch-man::qadsl.8 # qadsl/files/patch-man::qadsl.conf.5 # qadsl/files/patch-src::http.c # qadsl/files/patch-src::log.c # qadsl/files/patch-etc::Makefile.in # qadsl/files/patch-src::lock.c # qadsl/distinfo # echo c - qadsl mkdir -p qadsl > /dev/null 2>&1 echo x - qadsl/Makefile sed 's/^X//' >qadsl/Makefile << 'END-of-qadsl/Makefile' X# New ports collection makefile for: qadsl X# Date created: 13 December 2001 X# Whom: Arne Lundberg <arlu@telia.com> X# X# $FreeBSD: ports/net/qadsl/Makefile,v 1.4 2003/11/03 01:18:42 edwin Exp $ X# X XPORTNAME= qadsl XPORTVERSION= 1.3.3 XCATEGORIES= net XMASTER_SITES= http://savannah.gnu.org/download/alive/ XDISTNAME= qadsl-${PORTVERSION} X XMAINTAINER= arlu@telia.com XCOMMENT= Auto login/Keep-alive for Telia AB ADSL, COMHEM Cable and Tiscali Internet. X XUSE_RC_SUBR= yes XRC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} X XGNU_CONFIGURE= yes XCONFIGURE_ARGS+= \ X --with-global-cfg=${PREFIX}/etc/qadsl.conf \ X --with-pidfile=/var/run/qadsl.pid X XMAN8= qadsl.8 XMAN5= qadsl.conf.5 X Xpost-extract: X @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ X ${FILESDIR}/qadsl.sh > ${WRKSRC}/qadsl.sh X @${CAT} ${WRKSRC}/etc/qadsl.conf > ${WRKSRC}/etc/qadsl.conf.sample X Xpost-install: X ${INSTALL_SCRIPT} ${WRKSRC}/qadsl.sh ${PREFIX}/etc/rc.d/qadsl.sh X @${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-qadsl/Makefile echo x - qadsl/pkg-descr sed 's/^X//' >qadsl/pkg-descr << 'END-of-qadsl/pkg-descr' Xqadsl (GNU Alive) is a small utility to login on the Telia AB ADSL service. XIt also works fine with COMHEM Cable internet and Tiscali Internet services. XIt features a keep-alive daemon with login/logout functions. The daemon Xperiodically connects to the ISP to ensure you are not logged out. X XWWW: http://savannah.gnu.org/projects/alive X X-- Arne Lundberg Xarlu@telia.com END-of-qadsl/pkg-descr echo x - qadsl/pkg-message sed 's/^X//' >qadsl/pkg-message << 'END-of-qadsl/pkg-message' X X********************************************************* X XA sample configuration file has been copied to X%%PREFIX%%/etc/qadsl.conf.sample. Xqadsl (GNU Alive) will NOT work Xwithout a valid %%PREFIX%%/etc/qadsl.conf. X X********************************************************* X X===> COMPATIBILITY NOTE: X Configuration file from qadsl 1.2 and below X are not compatible with qadsl 1.3.3 or after. X Make sure to edit your configuration properly. X X===> BE CAREFULL HOW TO BOOT on 1.3.3 or after: X To run qadsl from startup, add qadsl_enable="YES" X in your /etc/rc.conf. X END-of-qadsl/pkg-message echo x - qadsl/pkg-plist sed 's/^X//' >qadsl/pkg-plist << 'END-of-qadsl/pkg-plist' Xsbin/qadsl Xetc/qadsl.conf.sample Xetc/rc.d/qadsl.sh Xinfo/qadsl.info END-of-qadsl/pkg-plist echo c - qadsl/files mkdir -p qadsl/files > /dev/null 2>&1 echo x - qadsl/files/qadsl.sh sed 's/^X//' >qadsl/files/qadsl.sh << 'END-of-qadsl/files/qadsl.sh' X#!/bin/sh X X# PROVIDE: qadsl X# REQUIRE: NETWORK X# BEFORE: DAEMON SERVERS LOGIN X# KEYWORD: FreeBSD shutdown X X# X# Add the following lines to /etc/rc.conf to enable qadsl: X# X#qadsl_enable="YES" X# X# Configuration flags can be set with qadsl_flags="" X# X# See qadsl(8) for flags. X# X# DO NOT CHANGE THESE DEFAULT VALUES HERE X# X X# Default flags Xqadsl_enable=${qadsl_enable-"NO"} Xqadsl_flags=${qadsl_flags-"-l"} Xqadsl_pidfile=${qadsl_pidfile-"/var/run/qadsl.pid"} X X. %%RC_SUBR%% X Xname="qadsl" Xrcvar=`set_rcvar` Xcommand=%%PREFIX%%/sbin/qadsl Xload_rc_config $name X Xpidfile=${qadsl_pidfile} Xrequired_files=%%PREFIX%%/etc/qadsl.conf X Xqadsl_flags="${qadsl_flags} -p ${qadsl_pidfile}" X Xrun_rc_command "$1" END-of-qadsl/files/qadsl.sh echo x - qadsl/files/patch-man::qadsl.8 sed 's/^X//' >qadsl/files/patch-man::qadsl.8 << 'END-of-qadsl/files/patch-man::qadsl.8' X*** man/qadsl.8.orig Mon Jun 28 23:24:05 2004 X--- man/qadsl.8 Sat Sep 11 17:38:11 2004 X*************** X*** 59,65 **** X Use settings from X .I file X insted of default X! .I /etc/qadsl.conf X or X .I $HOME/.qadslrc X X--- 59,65 ---- X Use settings from X .I file X insted of default X! .I /usr/local/etc/qadsl.conf X or X .I $HOME/.qadslrc X X*************** X*** 112,118 **** X X .SH FILES X .TP X! .I /etc/qadsl.conf X Usually the location of a system wide qadsl configuration file. X .TP X .I $HOME/.qadslrc X--- 112,118 ---- X X .SH FILES X .TP X! .I /usr/local/etc/qadsl.conf X Usually the location of a system wide qadsl configuration file. X .TP X .I $HOME/.qadslrc END-of-qadsl/files/patch-man::qadsl.8 echo x - qadsl/files/patch-man::qadsl.conf.5 sed 's/^X//' >qadsl/files/patch-man::qadsl.conf.5 << 'END-of-qadsl/files/patch-man::qadsl.conf.5' X*** man/qadsl.conf.5.orig Mon Jun 28 23:24:55 2004 X--- man/qadsl.conf.5 Sat Sep 11 17:38:16 2004 X*************** X*** 29,35 **** X .SH NAME X qadsl.conf \- qadsl configuration file X .SH DESCRIPTION X! \fBqadsl.conf\fP is usually found in /etc/qadsl.conf and contains X username, password and login server information for your Internet X connection. X X--- 29,35 ---- X .SH NAME X qadsl.conf \- qadsl configuration file X .SH DESCRIPTION X! \fBqadsl.conf\fP is usually found in /usr/local/etc/qadsl.conf and contains X username, password and login server information for your Internet X connection. X END-of-qadsl/files/patch-man::qadsl.conf.5 echo x - qadsl/files/patch-src::http.c sed 's/^X//' >qadsl/files/patch-src::http.c << 'END-of-qadsl/files/patch-src::http.c' X*** src/http.c.orig Tue Jun 29 23:59:57 2004 X--- src/http.c Sat Sep 11 22:19:22 2004 X*************** X*** 27,33 **** X #include "config.h" X #endif X X! #include <alloca.h> X #include <netdb.h> X #include <netinet/in.h> X #include <stdio.h> X--- 27,33 ---- X #include "config.h" X #endif X X! #include <sys/types.h> X #include <netdb.h> X #include <netinet/in.h> X #include <stdio.h> X*************** X*** 278,284 **** X + strlen (config->password_key) + strlen (config->password) X + strlen (config->login_string_footer) + strlen ("Plus approximately 10%"); X X! temp = (char *) alloca (length); X if (!temp) X { X close (config->sockfd); X--- 278,284 ---- X + strlen (config->password_key) + strlen (config->password) X + strlen (config->login_string_footer) + strlen ("Plus approximately 10%"); X X! temp = (char *) malloc(length); X if (!temp) X { X close (config->sockfd); X*************** X*** 299,305 **** X X DEBUG ("Login string: %s", temp); X X! login_string = (char *) alloca (length); X if (!login_string) X { X close (config->sockfd); X--- 299,305 ---- X X DEBUG ("Login string: %s", temp); X X! login_string = (char *) malloc(length); X if (!login_string) X { X close (config->sockfd); END-of-qadsl/files/patch-src::http.c echo x - qadsl/files/patch-src::log.c sed 's/^X//' >qadsl/files/patch-src::log.c << 'END-of-qadsl/files/patch-src::log.c' X*** src/log.c.orig Thu Jun 10 21:11:46 2004 X--- src/log.c Sat Sep 11 17:42:44 2004 X*************** X*** 21,28 **** X #include "config.h" X #endif X X- #include <alloca.h> X #include <stdio.h> X #include <stdarg.h> X #include <string.h> X #include <syslog.h> X--- 21,28 ---- X #include "config.h" X #endif X X #include <stdio.h> X+ #include <stdlib.h> X #include <stdarg.h> X #include <string.h> X #include <syslog.h> X*************** X*** 100,106 **** X char *str; X va_list ap; X X! str = alloca (MAXDATASIZE); /* XXX - What is this, a hardcoded value?! */ X va_start (ap, fmt); X len = vsnprintf (str, MAXDATASIZE, fmt, ap); X if (len >= 0) X--- 100,106 ---- X char *str; X va_list ap; X X! str = malloc(MAXDATASIZE); /* XXX - What is this, a hardcoded value?! */ X va_start (ap, fmt); X len = vsnprintf (str, MAXDATASIZE, fmt, ap); X if (len >= 0) END-of-qadsl/files/patch-src::log.c echo x - qadsl/files/patch-etc::Makefile.in sed 's/^X//' >qadsl/files/patch-etc::Makefile.in << 'END-of-qadsl/files/patch-etc::Makefile.in' X*** etc.orig/Makefile.in Sat Sep 11 19:01:40 2004 X--- etc/Makefile.in Sat Sep 11 19:01:59 2004 X*************** X*** 134,141 **** X sharedstatedir = @sharedstatedir@ X sysconfdir = @sysconfdir@ X target_alias = @target_alias@ X! sysconf_DATA = qadsl.conf X! EXTRA_DIST = qadsl.conf X all: all-am X X .SUFFIXES: X--- 134,141 ---- X sharedstatedir = @sharedstatedir@ X sysconfdir = @sysconfdir@ X target_alias = @target_alias@ X! sysconf_DATA = qadsl.conf.sample X! EXTRA_DIST = qadsl.conf.sample X all: all-am X X .SUFFIXES: END-of-qadsl/files/patch-etc::Makefile.in echo x - qadsl/files/patch-src::lock.c sed 's/^X//' >qadsl/files/patch-src::lock.c << 'END-of-qadsl/files/patch-src::lock.c' X*** src/lock.c.orig Sat Mar 13 23:39:41 2004 X--- src/lock.c Sat Sep 11 22:05:09 2004 X*************** X*** 153,159 **** X */ X X pid_t X! lock_read (char **file) X { X int fd, fallback; X FILE *fp; X--- 153,159 ---- X */ X X pid_t X! lock_read (char *file) X { X int fd, fallback; X FILE *fp; X*************** X*** 165,175 **** X fallback = 0; X do X { X! fd = open(*file, O_RDONLY); X if (-1 == fd) X { X! *file = fallback_pid_files [fallback++]; X! if (NULL == *file) X { X /* This makes us depend on procps and coreutils in GNU/Linux X * but only coreutils in GNU/Hurd. X--- 165,175 ---- X fallback = 0; X do X { X! fd = open(file, O_RDONLY); X if (-1 == fd) X { X! file = fallback_pid_files [fallback++]; X! if (NULL == file) X { X /* This makes us depend on procps and coreutils in GNU/Linux X * but only coreutils in GNU/Hurd. END-of-qadsl/files/patch-src::lock.c echo x - qadsl/distinfo sed 's/^X//' >qadsl/distinfo << 'END-of-qadsl/distinfo' XMD5 (qadsl-1.3.3.tar.gz) = 68657b0c0c35ee700bdf353508a5cb1d XSIZE (qadsl-1.3.3.tar.gz) = 275860 END-of-qadsl/distinfo exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040911203833.92EE540D9>