mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Update to 0.22.8.7
PR: ports/67367 Submitted by: Andrey Slusar <vasallia@ukr.net>
This commit is contained in:
parent
2010fa9471
commit
a76fdec1c5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=110400
@ -6,22 +6,47 @@
|
||||
#
|
||||
|
||||
PORTNAME= bforce
|
||||
PORTVERSION= 0.22.7.5
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 0.22.8.7
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= http://kst.spb.ru/bforce/
|
||||
PKGNAMESUFFIX= -kst
|
||||
DISTNAME= bforce-0.22.7.kst5
|
||||
DISTNAME= ${PORTNAME}-0.22.8.kst7
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Simple ifcico like Fidonet technology mailer
|
||||
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
CONFIGDIR= /etc/fido/bforce
|
||||
|
||||
FIXME= include/bforce.h include/util.h include/logger.h \
|
||||
bforce/bforce.c bforce/conf_proc.c bforce/conf_read.c bforce/daemon.c \
|
||||
bforce/daemon_branch.c bforce/daemon_call.c bforce/daemon_lines.c \
|
||||
bforce/expression.y bforce/freq_proc.c bforce/freq_wazoo.c bforce/io_modem.c \
|
||||
bforce/io_tcpip.c bforce/io_unix_lock.c bforce/io_unix_modem.c \
|
||||
bforce/io_unix_tio.c bforce/io_unix_tty.c bforce/logger.c bforce/nodelist.c \
|
||||
bforce/os_unix.c bforce/outb_sysqueue.c bforce/prot_common.c bforce/prot_binkp.c \
|
||||
bforce/prot_binkp_misc.c bforce/prot_hydra.c bforce/prot_zmmisc.c \
|
||||
bforce/prot_zmrecv.c bforce/prot_zmsend.c bforce/prot_yoohoo.c \
|
||||
bforce/prot_yoohoo_api.c bforce/prot_emsi.c bforce/prot_emsi_misc.c \
|
||||
bforce/prot_emsi_api.c bforce/sess_call.c bforce/sess_answ.c bforce/sess_init.c \
|
||||
bforce/sess_main.c bforce/u_misc.c bforce/u_time.c bforce/u_recode.c \
|
||||
bforce/u_plock.c bfutil/bfindex.c
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/source
|
||||
|
||||
pre-configure:
|
||||
${MKDIR} ${WRKSRC}/bin
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,/etc/bforce,${CONFIGDIR},g' ${WRKSRC}/Makefile.in
|
||||
.for i in ${FIXME}
|
||||
@${REINPLACE_CMD} -e 's,log(,bf_log(,g' ${WRKSRC}/${i}
|
||||
.endfor
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/etc/bforce
|
||||
${INSTALL_DATA} ${WRKSRC}/../examples/bforce.conf ${PREFIX}/etc/bforce/bforce.conf.sample
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (bforce-0.22.7.kst5.tar.bz2) = 6a5b9b0be70d23e9720787e4aa6c8f4e
|
||||
SIZE (bforce-0.22.7.kst5.tar.bz2) = 217436
|
||||
MD5 (bforce-0.22.8.kst7.tar.bz2) = 2c6f0f8581fec231c6a7d3a3dcfe06a2
|
||||
SIZE (bforce-0.22.8.kst7.tar.bz2) = 217675
|
||||
|
26
comms/bforce-kst/files/patch-bforce.c
Normal file
26
comms/bforce-kst/files/patch-bforce.c
Normal file
@ -0,0 +1,26 @@
|
||||
--- bforce/bforce.c Thu Nov 21 23:22:55 2002
|
||||
+++ bforce/bforce.c Sat Apr 3 21:47:04 2004
|
||||
@@ -414,12 +419,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
- if( (rc = log_open(log_getfilename(LOG_FILE_SESSION), NULL, NULL)) )
|
||||
+/* if( (rc = log_open(log_getfilename(LOG_FILE_SESSION), NULL, NULL)) )
|
||||
{
|
||||
log("can't continue without logging");
|
||||
gotoexit(BFERR_FATALERROR);
|
||||
}
|
||||
-
|
||||
+*/
|
||||
/* Process primary config file */
|
||||
if( opts.confname && *opts.confname )
|
||||
rc = conf_readconf(opts.confname, 0);
|
||||
@@ -433,7 +438,7 @@
|
||||
(void)conf_readconf(opts.incname, 1);
|
||||
|
||||
/* Reopen log file if it was defined in config */
|
||||
- if( log_reopen(log_getfilename(LOG_FILE_SESSION), NULL, NULL) )
|
||||
+ if( log_open(log_getfilename(LOG_FILE_SESSION), NULL, NULL) )
|
||||
{
|
||||
log("can't continue without logging");
|
||||
gotoexit(BFERR_FATALERROR);
|
33
comms/bforce-kst/files/patch-config.h.in
Normal file
33
comms/bforce-kst/files/patch-config.h.in
Normal file
@ -0,0 +1,33 @@
|
||||
--- include/config.h.in Thu Aug 30 16:33:52 2001
|
||||
+++ include/config.h.in Wed Sep 10 15:36:53 2003
|
||||
@@ -84,7 +84,7 @@
|
||||
#undef HAVE_STATFS
|
||||
|
||||
/* Define if you have the statvfs function. */
|
||||
-#undef HAVE_STATVFS
|
||||
+// #undef HAVE_STATVFS
|
||||
|
||||
/* Define if you have the strcasecmp function. */
|
||||
#undef HAVE_STRCASECMP
|
||||
@@ -123,10 +123,10 @@
|
||||
#undef HAVE_SYS_SELECT_H
|
||||
|
||||
/* Define if you have the <sys/statfs.h> header file. */
|
||||
-#undef HAVE_SYS_STATFS_H
|
||||
+// #undef HAVE_SYS_STATFS_H
|
||||
|
||||
/* Define if you have the <sys/statvfs.h> header file. */
|
||||
-#undef HAVE_SYS_STATVFS_H
|
||||
+// #undef HAVE_SYS_STATVFS_H
|
||||
|
||||
/* Define if you have the <sys/termiox.h> header file. */
|
||||
#undef HAVE_SYS_TERMIOX_H
|
||||
@@ -135,7 +135,7 @@
|
||||
#undef HAVE_SYS_TIME_H
|
||||
|
||||
/* Define if you have the <sys/vfs.h> header file. */
|
||||
-#undef HAVE_SYS_VFS_H
|
||||
+// #undef HAVE_SYS_VFS_H
|
||||
|
||||
/* Define if you have the <termios.h> header file. */
|
||||
#undef HAVE_TERMIOS_H
|
29
comms/bforce-kst/files/patch-expression.y
Normal file
29
comms/bforce-kst/files/patch-expression.y
Normal file
@ -0,0 +1,29 @@
|
||||
--- bforce/expression.y.old Thu Aug 30 16:33:48 2001
|
||||
+++ bforce/expression.y Thu Feb 6 23:38:32 2003
|
||||
@@ -52,6 +52,7 @@
|
||||
#include "logger.h"
|
||||
#include "session.h"
|
||||
#include "nodelist.h"
|
||||
+#include "io.h"
|
||||
|
||||
static struct tm *now = NULL;
|
||||
static int expr_result = 0;
|
||||
@@ -205,6 +206,7 @@
|
||||
{
|
||||
$$ = expr_check_logic($1, OR, $3);
|
||||
}
|
||||
+ ;
|
||||
%%
|
||||
|
||||
#include "expression_lex.c"
|
||||
@@ -329,6 +331,10 @@
|
||||
else if( state.modemport && state.modemport->name )
|
||||
{
|
||||
return strstr(state.modemport->name, str) ? 1 : 0;
|
||||
+ }
|
||||
+ else if( isatty(0) )
|
||||
+ {
|
||||
+ return strstr(ttyname(0), str) ? 1 : 0;
|
||||
}
|
||||
|
||||
return -1;
|
26
comms/bforce-kst/files/patch-sess_call.c
Normal file
26
comms/bforce-kst/files/patch-sess_call.c
Normal file
@ -0,0 +1,26 @@
|
||||
--- bforce/sess_call.c.orig Thu Nov 21 23:22:56 2002
|
||||
+++ bforce/sess_call.c Sat May 29 22:37:30 2004
|
||||
@@ -609,10 +609,20 @@
|
||||
|
||||
if( !opts->hiddline )
|
||||
{
|
||||
- if( timevec_isdefined(&state.override.worktime) )
|
||||
- goodtime = timevec_isnow(&state.override.worktime, now);
|
||||
+ if( state.override.sFlags && !nodelist_checkflag(state.override.sFlags, "CM") )
|
||||
+ goodtime = TRUE;
|
||||
else
|
||||
- goodtime = timevec_isnow(&state.node.worktime, now);
|
||||
+ {
|
||||
+ if( timevec_isdefined(&state.override.worktime) )
|
||||
+ goodtime = timevec_isnow(&state.override.worktime, now);
|
||||
+ else
|
||||
+ {
|
||||
+ if( !nodelist_checkflag(state.node.flags, "CM") )
|
||||
+ goodtime = TRUE;
|
||||
+ else
|
||||
+ goodtime = timevec_isnow(&state.node.worktime, now);
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
else
|
||||
goodtime = timevec_isnow(&state.override.worktime, now);
|
Loading…
Reference in New Issue
Block a user