FreeBSD Bugzilla – Attachment 18858 Details for
Bug 33710
New port: Autologin program for Telia ADSL service
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.shar
file.shar (text/plain), 5.73 KB, created by
Arne Lundberg
on 2002-01-08 21:20:01 UTC
(
hide
)
Description:
file.shar
Filename:
MIME Type:
Creator:
Arne Lundberg
Created:
2002-01-08 21:20:01 UTC
Size:
5.73 KB
patch
obsolete
># 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: ># ># . ># ./Makefile ># ./distinfo ># ./files ># ./files/patch-Makefile ># ./files/patch-main.c ># ./files/patch-func.c ># ./files/patch-qadsl.sh ># ./pkg-comment ># ./pkg-descr ># ./pkg-message ># ./pkg-plist ># >echo c - . >mkdir -p . > /dev/null 2>&1 >echo x - ./Makefile >sed 's/^X//' >./Makefile << 'END-of-./Makefile' >X# New ports collection makefile for: qadsl >X# Date created: 13 December 2001 >X# Whom: Arne Lundberg <arlu@telia.com> >X# >X# $FreeBSD$ >X# >X >XPORTNAME= qadsl >XPORTVERSION= 1.2 >XCATEGORIES= net >XMASTER_SITES= http://qba.linuxsweden.nu/code/ >XDISTNAME= qadsl-final-1.2 >X >XMAINTAINER= arlu@telia.com >X >XMAN8= qadsl.8 >XMANCOMPRESSED= yes >X >Xpost-install: >X @${CAT} ${PKGMESSAGE} | ${SED} -e 's,%%PREFIX%%,${PREFIX},g' >X >X.include <bsd.port.mk> >END-of-./Makefile >echo x - ./distinfo >sed 's/^X//' >./distinfo << 'END-of-./distinfo' >XMD5 (qadsl-final-1.2.tar.gz) = 42e25b2a6016ff6d5ffa4f9707ac4614 >END-of-./distinfo >echo c - ./files >mkdir -p ./files > /dev/null 2>&1 >echo x - ./files/patch-Makefile >sed 's/^X//' >./files/patch-Makefile << 'END-of-./files/patch-Makefile' >X*** Makefile.orig Thu Dec 13 21:31:26 2001 >X--- Makefile Thu Dec 13 22:20:45 2001 >X*************** >X*** 5,28 **** >X MACRO=__OpenBSD__ >X OBJS=main.o netfunc.o conf.o func.o >X SRC=main.c netfunc.c conf.c func.c >X! CPATH=/etc/ >X! INSTALL=/usr/local/sbin/ >X! MANPATH=/usr/local/man/man8/ >X >X all:${PROG} >X >X ${PROG}: >X! ${CC} -c ${SRC} >X! ${CC} -o ${PROG} ${OBJS} >X! >X! bsd: >X! ${CC} -D${MACRO} -c ${SRC} >X ${CC} -o ${PROG} ${OBJS} >X >X clean: >X rm -fr ${PROG} ${OBJS} >X >X install: >X! cp ${PROG} ${INSTALL} >X! cp ${CONF} ${CPATH} >X cp qadsl.8.gz ${MANPATH} >X--- 5,26 ---- >X MACRO=__OpenBSD__ >X OBJS=main.o netfunc.o conf.o func.o >X SRC=main.c netfunc.c conf.c func.c >X! CPATH=${PREFIX}/etc/ >X! INSTALL=${PREFIX}/sbin/ >X! RC=${PREFIX}/etc/rc.d/ >X! MANPATH=${PREFIX}/man/man8/ >X >X all:${PROG} >X >X ${PROG}: >X! ${CC} -D${MACRO} -DCONF=\"${CPATH}/${CONF}\" -c ${SRC} >X ${CC} -o ${PROG} ${OBJS} >X >X clean: >X rm -fr ${PROG} ${OBJS} >X >X install: >X! install ${PROG} ${INSTALL} >X! cp ${CONF} ${CPATH}/${CONF}.sample >X cp qadsl.8.gz ${MANPATH} >X+ cp qadsl.sh ${RC} >END-of-./files/patch-Makefile >echo x - ./files/patch-main.c >sed 's/^X//' >./files/patch-main.c << 'END-of-./files/patch-main.c' >X*** main.c.orig Thu Dec 13 21:41:36 2001 >X--- main.c Thu Dec 13 21:47:38 2001 >X*************** >X*** 32,38 **** >X char send_msg[MAXDATASIZE], get_msg[MAXDATASIZE]; >X char user[MAXLEN], pass[MAXLEN], serv[MAXLEN], deamon_s[MAXLEN], deamon_t[MAXLEN], deamon_d[MAXLEN]; >X >X! char *conf="/etc/qadsl.conf"; >X >X int main(int argc, char *argv[]) >X { >X--- 32,38 ---- >X char send_msg[MAXDATASIZE], get_msg[MAXDATASIZE]; >X char user[MAXLEN], pass[MAXLEN], serv[MAXLEN], deamon_s[MAXLEN], deamon_t[MAXLEN], deamon_d[MAXLEN]; >X >X! char *conf= CONF; >X >X int main(int argc, char *argv[]) >X { >END-of-./files/patch-main.c >echo x - ./files/patch-func.c >sed 's/^X//' >./files/patch-func.c << 'END-of-./files/patch-func.c' >X*** func.c.orig Thu Dec 13 21:45:53 2001 >X--- func.c Thu Dec 13 21:47:55 2001 >X*************** >X*** 48,53 **** >X >X void usage(char *argv) { >X printf("Usage: %s [ -h ] [ -c file ] [ -l ] [ -o ]\n", argv); >X! printf("\t-h\t\tPrint this message\n\t-c file\t\tUse settings from file instead of /etc/qadsl.conf\n\t" >X "-l\t\tWill try to login\n\t-o\t\tWill try to logout\n"); >X } >X--- 48,53 ---- >X >X void usage(char *argv) { >X printf("Usage: %s [ -h ] [ -c file ] [ -l ] [ -o ]\n", argv); >X! printf("\t-h\t\tPrint this message\n\t-c file\t\tUse settings from file instead of " CONF "\n\t" >X "-l\t\tWill try to login\n\t-o\t\tWill try to logout\n"); >X } >END-of-./files/patch-func.c >echo x - ./files/patch-qadsl.sh >sed 's/^X//' >./files/patch-qadsl.sh << 'END-of-./files/patch-qadsl.sh' >X*** /dev/null Thu Dec 13 22:20:21 2001 >X--- qadsl.sh Wed Dec 12 21:05:26 2001 >X*************** >X*** 0 **** >X--- 1,21 ---- >X+ #!/bin/sh >X+ >X+ if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then >X+ echo "$0: Cannot determine the PREFIX" >&2 >X+ exit 1 >X+ fi >X+ >X+ case "$1" in >X+ start) >X+ [ -x ${PREFIX}/sbin/qadsl ] && ( ${PREFIX}/sbin/qadsl -l & ) >X+ sleep 2 >X+ ;; >X+ stop) >X+ killall qadsl && echo -n ' qadsl' >X+ ;; >X+ *) >X+ echo "Usage: `basename $0` {start|stop}" >&2 >X+ ;; >X+ esac >X+ >X+ exit 0 >END-of-./files/patch-qadsl.sh >echo x - ./pkg-comment >sed 's/^X//' >./pkg-comment << 'END-of-./pkg-comment' >XAuto login/Keep-alive for Telia AB ADSL and COMHEM Cable internet >END-of-./pkg-comment >echo x - ./pkg-descr >sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr' >XThis is a port of qadsl, a small utility to login on the Telia AB ADSL >Xservice. It also works fine with COMHEM Cable internet. It has >Xfeatures like keep-alive daemon, login/logout functions. The >Xkeep-alive daemon can be configured to either login or to ping your >Xlogin-server after a chosen delay in minutes. >X >XWWW: http://qba.linuxsweden.nu >X >X-- Arne Lundberg >Xarlu@telia.com >END-of-./pkg-descr >echo x - ./pkg-message >sed 's/^X//' >./pkg-message << 'END-of-./pkg-message' >X********************************************************* >X >XA sample configuration file has been copied to >X%%PREFIX%%/etc/qadsl.conf.sample. Qadsl will not work without >X%%PREFIX%%/etc/qadsl.conf. >X >X********************************************************* >END-of-./pkg-message >echo x - ./pkg-plist >sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist' >Xsbin/qadsl >Xetc/qadsl.conf.sample >Xetc/rc.d/qadsl.sh >END-of-./pkg-plist >exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 33710
: 18858