Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Apr 2004 03:51:04 +0300
From:      Andrey Slusar <vasallia@ukr.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/65102: [NEW PORT] comms/bforce-kst-devel: Development version of bforce-Fido-ip mailer
Message-ID:  <E1B9ZNI-0002jd-QX@santinel.home.ua>
Resent-Message-ID: <200404030100.i3310cDN089488@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         65102
>Category:       ports
>Synopsis:       [NEW PORT] comms/bforce-kst-devel: Development version of bforce-Fido-ip mailer
>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:   Fri Apr 02 17:00:37 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Slusar
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Sat Apr 3 01:27:44 EEST 2004 root@santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386


	
>Description:
	Development version of comms/bforce-kst - Fido mailer, supporting modem and tcp/ip protocols
>How-To-Repeat:
	
>Fix:

	

--- bforce.port begins here ---
# 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:
#
#	/usr/ports/comms/bforce-kst-devel
#	/usr/ports/comms/bforce-kst-devel/files
#	/usr/ports/comms/bforce-kst-devel/files/patch-conf
#	/usr/ports/comms/bforce-kst-devel/files/patch-log
#	/usr/ports/comms/bforce-kst-devel/files/patch-subst
#	/usr/ports/comms/bforce-kst-devel/Makefile
#	/usr/ports/comms/bforce-kst-devel/pkg-descr
#	/usr/ports/comms/bforce-kst-devel/distinfo
#	/usr/ports/comms/bforce-kst-devel/pkg-plist
#	/usr/ports/comms/bforce-kst-devel/pkg-install
#
echo c - /usr/ports/comms/bforce-kst-devel
mkdir -p /usr/ports/comms/bforce-kst-devel > /dev/null 2>&1
echo c - /usr/ports/comms/bforce-kst-devel/files
mkdir -p /usr/ports/comms/bforce-kst-devel/files > /dev/null 2>&1
echo x - /usr/ports/comms/bforce-kst-devel/files/patch-conf
sed 's/^X//' >/usr/ports/comms/bforce-kst-devel/files/patch-conf << 'END-of-/usr/ports/comms/bforce-kst-devel/files/patch-conf'
X--- include/config.h.in	Thu Aug 30 16:33:52 2001
X+++ include/config.h.in	Wed Sep 10 15:36:53 2003
X@@ -84,7 +84,7 @@
X #undef HAVE_STATFS
X 
X /* Define if you have the statvfs function.  */
X-#undef HAVE_STATVFS
X+// #undef HAVE_STATVFS
X 
X /* Define if you have the strcasecmp function.  */
X #undef HAVE_STRCASECMP
X@@ -123,10 +123,10 @@
X #undef HAVE_SYS_SELECT_H
X 
X /* Define if you have the <sys/statfs.h> header file.  */
X-#undef HAVE_SYS_STATFS_H
X+// #undef HAVE_SYS_STATFS_H
X 
X /* Define if you have the <sys/statvfs.h> header file.  */
X-#undef HAVE_SYS_STATVFS_H
X+// #undef HAVE_SYS_STATVFS_H
X 
X /* Define if you have the <sys/termiox.h> header file.  */
X #undef HAVE_SYS_TERMIOX_H
X@@ -135,7 +135,7 @@
X #undef HAVE_SYS_TIME_H
X 
X /* Define if you have the <sys/vfs.h> header file.  */
X-#undef HAVE_SYS_VFS_H
X+// #undef HAVE_SYS_VFS_H
X 
X /* Define if you have the <termios.h> header file.  */
X #undef HAVE_TERMIOS_H
END-of-/usr/ports/comms/bforce-kst-devel/files/patch-conf
echo x - /usr/ports/comms/bforce-kst-devel/files/patch-log
sed 's/^X//' >/usr/ports/comms/bforce-kst-devel/files/patch-log << 'END-of-/usr/ports/comms/bforce-kst-devel/files/patch-log'
X--- bforce/bforce.c	Thu Nov 21 23:22:55 2002
X+++ bforce/bforce.c	Tue Mar 30 23:09:47 2004
X@@ -414,12 +414,12 @@
X 		}
X 	}
X 	
X-	if( (rc = log_open(log_getfilename(LOG_FILE_SESSION), NULL, NULL)) )
X+/*	if( (rc = log_open(log_getfilename(LOG_FILE_SESSION), NULL, NULL)) )
X 	{
X 		log("can't continue without logging");
X 		gotoexit(BFERR_FATALERROR);
X 	}
X-	
X+*/	
X 	/* Process primary config file */
X 	if( opts.confname && *opts.confname )
X 		rc = conf_readconf(opts.confname, 0);
X@@ -433,7 +433,7 @@
X 		(void)conf_readconf(opts.incname, 1);
X 	
X 	/* Reopen log file if it was defined in config */
X-	if( log_reopen(log_getfilename(LOG_FILE_SESSION), NULL, NULL) )
X+	if( log_open(log_getfilename(LOG_FILE_SESSION), NULL, NULL) )
X 	{
X 		log("can't continue without logging");
X 		gotoexit(BFERR_FATALERROR);
END-of-/usr/ports/comms/bforce-kst-devel/files/patch-log
echo x - /usr/ports/comms/bforce-kst-devel/files/patch-subst
sed 's/^X//' >/usr/ports/comms/bforce-kst-devel/files/patch-subst << 'END-of-/usr/ports/comms/bforce-kst-devel/files/patch-subst'
X--- bforce/sess_call.c	2003-02-06 23:26:50.000000000 +0200
X+++ bforce/sess_call.c	2004-03-25 22:21:39.000000000 +0200
X@@ -601,7 +601,7 @@
X 	/*
X 	 * Is now a working time for that node/line
X 	 */
X-	if( !inet && !opts->force && nodelist_checkflag(state.node.flags, "CM") )
X+	if( !inet && !opts->force)
X 	{
X 		time_t unixtime = time(NULL);
X 		struct tm *now = localtime(&unixtime);
X@@ -609,10 +609,20 @@
X 		
X 		if( !opts->hiddline )
X 		{
X-			if( timevec_isdefined(&state.override.worktime) )
X-				goodtime = timevec_isnow(&state.override.worktime, now);
X+			if( state.override.sFlags && !nodelist_checkflag(state.override.sFlags, "CM") )
X+				goodtime = TRUE;
X 			else
X-				goodtime = timevec_isnow(&state.node.worktime, now);
X+			{
X+				if( timevec_isdefined(&state.override.worktime) )
X+					goodtime = timevec_isnow(&state.override.worktime, now);
X+				else
X+				{
X+					if( !nodelist_checkflag(state.node.flags, "CM") )
X+						goodtime = TRUE;
X+					else
X+						goodtime = timevec_isnow(&state.node.worktime, now);
X+				}
X+			}
X 		}
X 		else
X 			goodtime = timevec_isnow(&state.override.worktime, now);
END-of-/usr/ports/comms/bforce-kst-devel/files/patch-subst
echo x - /usr/ports/comms/bforce-kst-devel/Makefile
sed 's/^X//' >/usr/ports/comms/bforce-kst-devel/Makefile << 'END-of-/usr/ports/comms/bforce-kst-devel/Makefile'
X# New ports collection makefile for:    bforce-devel
X# Date created:         3 Apr 2004
X# Whom:                 Andrey Slusar <vasallia@ukr.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	bforce
XPORTVERSION=	0.22.8.8
XCATEGORIES=	comms
XMASTER_SITES=	http://kst.spb.ru/bforce/
XPKGNAMESUFFIX=  -kst
XDISTNAME=	bforce-0.22.8.kst8
X
XMAINTAINER=	vasallia@ukr.net
XCOMMENT=	Fido-ip Mailer
X
XUSE_BZIP2=      yes
XGNU_CONFIGURE=  yes
XUSE_GMAKE=      yes
X
XCONFLICTS=	bforce-kst-*
X
XBTBASEDIR?=/var/spool/fido/bt
XLOGDIR?=/var/log/fido/bforce
XLOCKDIR?=/var/run/fido/bforce
XBTCONFDIR?=${PREFIX}/etc/fido/bforce
X
XPLIST_SUB=	BTBASEDIR=${BTBASEDIR} \
X		LOGDIR=${LOGDIR} \
X		LOCKDIR=${LOCKDIR} \
X		PREFIX=${PREFIX}
X
XHAS_CONFIGURE=	yes
XCONFIGURE_ARGS+= --sysconfdir=${BTCONFDIR}
X
XWRKSRC=		${WRKDIR}/${DISTNAME}/source
X
Xpost-install:
X	${MKDIR} ${BTCONFDIR}
X.for i in bforce.conf bforce.passwd bforce.subst freq.aliases freq.dirs
X	${INSTALL_DATA} ${WRKSRC}/../examples/${i} ${BTCONFDIR}/${i}.sample
X.endfor
X.for i in bforce bfindex bfstat nlookup
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/${i} ${PREFIX}/bin
X.endfor
X
X.include <bsd.port.mk>
END-of-/usr/ports/comms/bforce-kst-devel/Makefile
echo x - /usr/ports/comms/bforce-kst-devel/pkg-descr
sed 's/^X//' >/usr/ports/comms/bforce-kst-devel/pkg-descr << 'END-of-/usr/ports/comms/bforce-kst-devel/pkg-descr'
XBinkleyForce is a simple ifcico like FTN mailer. It can works via
XTCP/IP as well as on modem links. Look sample configs for more
Xinformation.
END-of-/usr/ports/comms/bforce-kst-devel/pkg-descr
echo x - /usr/ports/comms/bforce-kst-devel/distinfo
sed 's/^X//' >/usr/ports/comms/bforce-kst-devel/distinfo << 'END-of-/usr/ports/comms/bforce-kst-devel/distinfo'
XMD5 (bforce-0.22.8.kst8.tar.bz2) = c5316564b8c67d166cf4e872d519c9b6
END-of-/usr/ports/comms/bforce-kst-devel/distinfo
echo x - /usr/ports/comms/bforce-kst-devel/pkg-plist
sed 's/^X//' >/usr/ports/comms/bforce-kst-devel/pkg-plist << 'END-of-/usr/ports/comms/bforce-kst-devel/pkg-plist'
Xbin/bforce
Xbin/bfindex
Xbin/bfstat
Xbin/nlookup
X%%CONFDIR%%/bforce.conf.sample
X%%CONFDIR%%/bforce.passwd.sample
X%%CONFDIR%%/bforce.subst.sample
X%%CONFDIR%%/freq.aliases.sample
X%%CONFDIR%%/freq.dirs.sample
X@dirrm %%CONFDIR%%
END-of-/usr/ports/comms/bforce-kst-devel/pkg-plist
echo x - /usr/ports/comms/bforce-kst-devel/pkg-install
sed 's/^X//' >/usr/ports/comms/bforce-kst-devel/pkg-install << 'END-of-/usr/ports/comms/bforce-kst-devel/pkg-install'
X#! /bin/sh
X
Xcase $2 in
XPRE-INSTALL)
X	;;
XPOST-INSTALL)
X	BTBASEDIR=${BTBASEDIR:=/var/spool/fido/bt}
X	BTLOGDIR=${LOGDIR:=/var/log/fido/bforce}
X	PREFIX=${PREFIX:=/usr/local}
X	
X	mkdir -p $LOGDIR
X	mkdir -p $BTBASEDIR/in
X	mkdir -p $BTBASEDIR/pin
X	mkdir -p $BTBASEDIR/out
X	;;
X*)
X	echo >&2 "Unknown argument in $0 $@"
X	exit 1
X	;;
Xesac
END-of-/usr/ports/comms/bforce-kst-devel/pkg-install
exit
--- bforce.port ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1B9ZNI-0002jd-QX>