From owner-freebsd-ports Thu Jan 13 12:20:27 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id A108C1512E for ; Thu, 13 Jan 2000 12:20:15 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA93357; Thu, 13 Jan 2000 12:20:15 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from wizard.vlink.ru (wizard.vlink.ru [195.9.70.254]) by hub.freebsd.org (Postfix) with ESMTP id 36DA71568B for ; Thu, 13 Jan 2000 12:13:03 -0800 (PST) (envelope-from dsh@wizard.vlink.ru) Received: by wizard.vlink.ru (Postfix, from userid 1000) id CB6633C102; Thu, 13 Jan 2000 23:12:55 +0300 (MSK) Message-Id: <20000113201255.CB6633C102@wizard.vlink.ru> Date: Thu, 13 Jan 2000 23:12:55 +0300 (MSK) From: dsh@wizard.vlink.ru Reply-To: dsh@wizard.vlink.ru To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/16103: New FreeBSD port for qico Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 16103 >Category: ports >Synopsis: New FreeBSD port for qico >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jan 13 12:20:15 PST 2000 >Closed-Date: >Last-Modified: >Originator: Denis Shaposhnikov >Release: FreeBSD 3.4-RELEASE i386 >Organization: >Environment: >Description: Features: * Support for EMSI, ZModem, ZedZap, Hydra * Support for 4D Binkley-style, Amiga-style outbound, fileboxes * Daemon mode for outgoing calls * Substs with support for hidden-lines * Support for session time limit * Support for minimum connect speed limit and so on. WWW: http://www.ruxy.org.ru/~aaz >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: # # qico/ # qico/pkg # qico/pkg/PLIST # qico/pkg/COMMENT # qico/pkg/DESCR # qico/files # qico/files/md5 # qico/patches # qico/patches/patch-aa # qico/patches/patch-ab # qico/patches/patch-ac # qico/patches/patch-ad # qico/patches/patch-ae # qico/patches/patch-af # qico/Makefile # echo c - qico/ mkdir -p qico/ > /dev/null 2>&1 echo c - qico/pkg mkdir -p qico/pkg > /dev/null 2>&1 echo x - qico/pkg/PLIST sed 's/^X//' >qico/pkg/PLIST << 'END-of-qico/pkg/PLIST' Xetc/qico.conf.sample Xlibexec/qico Xshare/doc/qico/README.ru END-of-qico/pkg/PLIST echo x - qico/pkg/COMMENT sed 's/^X//' >qico/pkg/COMMENT << 'END-of-qico/pkg/COMMENT' XFTN compatible mailer. END-of-qico/pkg/COMMENT echo x - qico/pkg/DESCR sed 's/^X//' >qico/pkg/DESCR << 'END-of-qico/pkg/DESCR' XFeatures: X X * Support for EMSI, ZModem, ZedZap, Hydra X * Support for 4D Binkley-style, Amiga-style outbound, fileboxes X * Daemon mode for outgoing calls X * Substs with support for hidden-lines X * Support for session time limit X * Support for minimum connect speed limit X Xand so on. X XWWW: http://www.ruxy.org.ru/~aaz X X-- Denis Shaposhnikov Xdsh@vlink.ru END-of-qico/pkg/DESCR echo c - qico/files mkdir -p qico/files > /dev/null 2>&1 echo x - qico/files/md5 sed 's/^X//' >qico/files/md5 << 'END-of-qico/files/md5' XMD5 (qico-0.44a.tar.gz) = c23fcab68f7e97285761574c39883c05 END-of-qico/files/md5 echo c - qico/patches mkdir -p qico/patches > /dev/null 2>&1 echo x - qico/patches/patch-aa sed 's/^X//' >qico/patches/patch-aa << 'END-of-qico/patches/patch-aa' X--- CONFIG.orig Mon Jan 3 23:27:07 2000 X+++ CONFIG Thu Jan 13 13:07:00 2000 X@@ -9,7 +9,7 @@ X X # default config (can be overridden with -I) X #CONF = /opt/qico/etc/qico.conf X-CONF = /etc/ftn/qico.conf X+CONF = ${PREFIX}/etc/qico.conf X X # owner X OWNER = news X@@ -20,7 +20,7 @@ X PERM = 00600 X X # lock dir X-DEFS += -DLOCK_DIR=\"/var/lock\" X+DEFS += -DLOCK_DIR=\"/var/spool/lock\" X X # tmp dir X DEFS += -DTMP_DIR=\"/tmp\" X@@ -38,7 +38,7 @@ X DEFS += -DSTS_EXT=\"qst\" X X # enable qcc features (for building this you must have ncurses-4.2+) X-MORDA = 1 X+#MORDA = 1 X X # enable process title (you can see it in ps(1) output) X DEFS += -DPROCTITLE X@@ -48,16 +48,13 @@ X X # some defines (usually you don't need to change it) X DEFS += -DMAX_PATH=256 -DMAX_NODELIST=32 -DMAX_STRING=256 \ X- -DDEF_PERM=0664 -DDIR_PERM=0775 -DMAX_QUEUE=256 -DTCP_SPEED=115200 \ X+ -DDEF_PERM=0600 -DDIR_PERM=0755 -DMAX_QUEUE=256 -DTCP_SPEED=115200 \ X -DNL_RECS=1000 -DCONFIG=\"$(CONF)\" X X ############################################################################## X ### OS depended settings ##################################################### X ############################################################################## X # i'll make configure soon... X-SHELL = /bin/sh X-CC = gcc X-AWK = awk X INSTALL = install X LEX = flex X YACC = bison -y X@@ -67,4 +64,4 @@ X #LIBS=-lresolv X X # comment it out, if you don't have /usr/include/langinfo.h (for old FreeBSDs) X-DEFS += -DHAS_LANGINFO_H X+#DEFS += -DHAS_LANGINFO_H END-of-qico/patches/patch-aa echo x - qico/patches/patch-ab sed 's/^X//' >qico/patches/patch-ab << 'END-of-qico/patches/patch-ab' X--- Makefile.orig Mon Jan 3 23:27:07 2000 X+++ Makefile Thu Jan 13 11:25:20 2000 X@@ -5,8 +5,6 @@ X X DIRS = src X X-CC = gcc X-AWK = awk X INSTALL = install X X DIST = qico-$(VERSION).tar.gz END-of-qico/patches/patch-ab echo x - qico/patches/patch-ac sed 's/^X//' >qico/patches/patch-ac << 'END-of-qico/patches/patch-ac' X--- src/Makefile.orig Mon Jan 3 23:27:06 2000 X+++ src/Makefile Thu Jan 13 11:23:27 2000 X@@ -14,12 +14,12 @@ X #DEFS += -DY_DEBUG X X DEFS += -DSHELL=\"$(SHELL)\" X-CFLAGS = $(DEFS) -Wall -m486 -D_GNU_SOURCE=1 -D_BSD_SOURCE=1 X+CFLAGS += $(DEFS) X ifeq (1,$(STRIP)) X IFLAGS = -s X else X-LFLAGS += -g X-CFLAGS += -g X+LFLAGS += # -g X+CFLAGS += # -g X endif X #DLIBS = -lccmalloc -ldl X LIBS += END-of-qico/patches/patch-ac echo x - qico/patches/patch-ad sed 's/^X//' >qico/patches/patch-ad << 'END-of-qico/patches/patch-ad' X--- src/qconf.x.orig Mon Jan 3 23:27:07 2000 X+++ src/qconf.x Thu Jan 13 15:52:05 2000 X@@ -51,3 +51,4 @@ X mapout,C_STR,char *,0,NULL X mapin,C_STR,char *,0,NULL X minspeed,C_INT,int,0,"0" X+pid,C_PATH,char *,0,PID_FILE END-of-qico/patches/patch-ad echo x - qico/patches/patch-ae sed 's/^X//' >qico/patches/patch-ae << 'END-of-qico/patches/patch-ae' X--- src/main.c.orig Mon Jan 3 23:27:06 2000 X+++ src/main.c Thu Jan 13 22:54:13 2000 X@@ -88,7 +88,7 @@ X log_done(); X tty_close(); X qipc_done(); X- unlink(PID_FILE); X+ unlink(cfgs(CFG_PID)); X abort(); X } X X@@ -158,7 +158,7 @@ X signal(SIGCHLD, sigchild); X signal(SIGHUP, sighup); X X- if(!lockpid(PID_FILE)) { X+ if(!lockpid(cfgs(CFG_PID))) { X log("another daemon exists or can't create pid file!"); X stopit(1); X } X@@ -341,7 +341,7 @@ X X void killdaemon(int sig) X { X- FILE *f=fopen(PID_FILE, "rt"); X+ FILE *f=fopen(cfgs(CFG_PID), "rt"); X pid_t pid; X if(!f) { X fprintf(stderr, "can't open pid file - no daemon killed!\n"); X@@ -493,15 +493,15 @@ X daemon=2; X break; X case 'q': X- killdaemon(SIGTERM); X- exit(0); X+ daemon = -2; X+ break; X case 'R': X- killdaemon(SIGHUP); X- exit(0); X+ daemon = -3; X+ break; X } X } X X- if(!hostname && daemon<0) usage(argv[0]); X+ if(!hostname && daemon == -1) usage(argv[0]); X X getsysinfo(); X if(!readconfig(configname)) { X@@ -509,6 +509,18 @@ X configname); X exit(EXC_BADCONFIG); X } X+ X+ switch (daemon) { X+ case -2: X+ killdaemon(SIGTERM); X+ exit(0); X+ /* NOTREACHED */ X+ case -3: X+ killdaemon(SIGHUP); X+ exit(0); X+ /* NOTREACHED */ X+ } X+ X psubsts=parsesubsts(cfgfasl(CFG_SUBST)); X #ifdef C_DEBUG X dumpconfig(); END-of-qico/patches/patch-ae echo x - qico/patches/patch-af sed 's/^X//' >qico/patches/patch-af << 'END-of-qico/patches/patch-af' X--- qico.conf.orig Mon Jan 3 23:27:07 2000 X+++ qico.conf Thu Jan 13 16:03:37 2000 X@@ -141,6 +141,9 @@ X # long name fileboxes base directory X #longboxpath /var/spool/ftn/box X X+# pid file for daemon mode X+#pid /var/run/qico.pid X+ X ############################################################################### X ### modem and dialing parameters ############################################## X ############################################################################### END-of-qico/patches/patch-af echo x - qico/Makefile sed 's/^X//' >qico/Makefile << 'END-of-qico/Makefile' X# New ports collection makefile for: qico X# Version required: 0.44a X# Date created: 13 Jan 2000 X# Whom: Denis Shaposhnikov X# X# $Id$ X# X XDISTNAME= qico-0.44a XCATEGORIES= comms XMASTER_SITES= ftp://www.ruxy.org.ru/~aaz/qico/ X XMAINTAINER= dsh@vlink.ru X XUSE_GMAKE= yes XMAKE_ENV+= SH=${SH} AWK=${AWK} X Xdo-install: X ${INSTALL_DATA} ${WRKSRC}/qico.conf ${PREFIX}/etc/qico.conf.sample X ${INSTALL_PROGRAM} ${WRKSRC}/src/qico ${PREFIX}/libexec X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/qico X ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/qico/README.ru X.endif X X.include END-of-qico/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message