Date: Thu, 9 Mar 2000 10:40:57 +0300 (MSK) From: dsh@vlink.ru To: FreeBSD-gnats-submit@freebsd.org Subject: ports/17280: update for net/gtic FreeBSD port Message-ID: <20000309074057.2A0029BB95@neva.vlink.ru>
next in thread | raw e-mail | index | archive | help
>Number: 17280 >Category: ports >Synopsis: update for net/gtic FreeBSD port >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: Wed Mar 8 23:50:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Denis Shaposhnikov >Release: FreeBSD 3.4-STABLE i386 >Organization: >Environment: >Description: Add support for amiga style outbound. >How-To-Repeat: >Fix: diff -Nru gtic.orig/Makefile gtic/Makefile --- gtic.orig/Makefile Fri Nov 26 23:20:00 1999 +++ gtic/Makefile Thu Mar 9 10:38:35 2000 @@ -3,7 +3,7 @@ # Date created: 22 August 1999 # Whom: Denis Shaposhnikov <dsh@vlink.ru> # -# $Id$ +# $FreeBSD$ # DISTNAME= gtic-1.3b @@ -13,6 +13,12 @@ MASTER_SITE_SUBDIR= system/fido MAINTAINER= dsh@vlink.ru + +MAKE_ENV+= DEFINES="${DEFINES}" + +.if defined(WITH_AMIGA4D) +DEFINES+= -DAMIGA4D +.endif do-install: ${MKDIR} ${PREFIX}/etc/gtic diff -Nru gtic.orig/patches/patch-aa gtic/patches/patch-aa --- gtic.orig/patches/patch-aa Fri Nov 26 23:20:00 1999 +++ gtic/patches/patch-aa Sun Mar 5 19:42:21 2000 @@ -1,5 +1,5 @@ --- CONFIG.orig Mon Jul 6 16:09:40 1998 -+++ CONFIG Sun Aug 22 14:40:57 1999 ++++ CONFIG Sun Mar 5 19:42:04 2000 @@ -2,7 +2,7 @@ VERSION = "1.3b" @@ -9,7 +9,7 @@ # Path to other configuration files (also see default config file). CONFIGDIR = "/etc/gtic" -@@ -15,10 +15,10 @@ +@@ -15,13 +15,13 @@ GROUP = gtic # Name of C compiler. @@ -21,4 +21,8 @@ +#CFLAGS=-Wall -g # Defines for gtic's sources use. - DEFINES = ${OPTS} -DCONFIG=\"${CONFIG}\" -DVERSION=\"${VERSION}\" +-DEFINES = ${OPTS} -DCONFIG=\"${CONFIG}\" -DVERSION=\"${VERSION}\" ++DEFINES += ${OPTS} -DCONFIG=\"${CONFIG}\" -DVERSION=\"${VERSION}\" + + # Compile-time options. + diff -Nru gtic.orig/patches/patch-ac gtic/patches/patch-ac --- gtic.orig/patches/patch-ac Fri Nov 26 23:20:00 1999 +++ gtic/patches/patch-ac Sun Mar 5 18:58:14 2000 @@ -1,6 +1,52 @@ --- src/toss.c.orig Mon Jul 6 16:04:30 1998 -+++ src/toss.c Sun Sep 12 15:41:01 1999 -@@ -873,7 +873,7 @@ ++++ src/toss.c Sun Mar 5 18:35:41 2000 +@@ -316,11 +316,16 @@ + newtic->areadesc=xstrcpy(acur->desc); + + /* make base of outbound file name */ ++#ifndef AMIGA4D + if(utmp->addr.point!=0) + snprintf(ftmp,sizeof(ftmp)-1,"%04x%04x.pnt/%08x", + utmp->addr.net,utmp->addr.node,utmp->addr.point); + else + snprintf(ftmp,sizeof(ftmp)-1,"%04x%04x",utmp->addr.net,utmp->addr.node); ++#else ++ snprintf(ftmp,sizeof(ftmp)-1,"%d.%d.%d.%d", utmp->addr.zone, ++ utmp->addr.net, utmp->addr.node, utmp->addr.point); ++#endif /* AMIGA4D */ + + /* determine queue directory */ + strcpy(qdir,get_outbound(utmp->addr.zone)); strcat(qdir,"/"); +@@ -342,21 +347,28 @@ + outbound/xxxxyyyy.pnt[/gtic_q]/zzzzzzzz.xlo + */ + strcpy(xlo,get_outbound(utmp->addr.zone)); strcat(xlo,"/"); ++#ifndef AMIGA4D + if(utmp->addr.point!=0) + { + snprintf(ftmp,sizeof(ftmp)-1,"%04x%04x.pnt/", + utmp->addr.net,utmp->addr.node); + strcat(xlo,ftmp); + } ++#endif /* AMIGA4D */ + if(mk_bsy==FALSE) + { + strcat(xlo,"gtic_q/"); + mkdirs(xlo,dirmode(outbound_mode)); + } ++#ifndef AMIGA4D + if(newtic->to.point!=0) + snprintf(ftmp,sizeof(ftmp)-1,"%08x",newtic->to.point); + else + snprintf(ftmp,sizeof(ftmp)-1,"%04x%04x",newtic->to.net,newtic->to.node); ++#else ++ snprintf(ftmp,sizeof(ftmp)-1,"%d.%d.%d.%d", newtic->to.zone, ++ newtic->to.net, newtic->to.node, newtic->to.point); ++#endif /* AMIGA4D */ + if(utmp->flags & USER_HOLD) + strcat(ftmp,".hlo"); + else +@@ -873,7 +885,7 @@ if(announce_f) { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000309074057.2A0029BB95>