Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Apr 2006 00:08:47 GMT
From:      Mark Starovoytov <mark_sf@kikg.ifmo.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/95844: New port: comms/bforce-ugenk Simple ifcico like Fidonet technology mailer
Message-ID:  <200604160008.k3G08l9j031225@www.freebsd.org>
Resent-Message-ID: <200604160010.k3G0AHYJ089668@freefall.freebsd.org>

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

>Number:         95844
>Category:       ports
>Synopsis:       New port: comms/bforce-ugenk Simple ifcico like Fidonet technology mailer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 16 00:10:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Mark Starovoytov
>Release:        FreeBSD 6.1-RC i386
>Organization:
>Environment:
FreeBSD localhost.localdomain 6.1-RC FreeBSD 6.1-RC #0: Sat Apr 15 00:50:00 MSD 2006 root@:/usr/obj/usr/src/sys/FBSD60vmware i386
>Description:
Port of the newer binkleyforce branch
>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:
#
#	/usr/home/mark/ports/comms/bforce-ugenk/
#	/usr/home/mark/ports/comms/bforce-ugenk/files
#	/usr/home/mark/ports/comms/bforce-ugenk/files/patch-bforce.h
#	/usr/home/mark/ports/comms/bforce-ugenk/files/bforce.sh.in
#	/usr/home/mark/ports/comms/bforce-ugenk/files/patch-config.h.in
#	/usr/home/mark/ports/comms/bforce-ugenk/files/patch-daemon_call.c
#	/usr/home/mark/ports/comms/bforce-ugenk/Makefile
#	/usr/home/mark/ports/comms/bforce-ugenk/distinfo
#	/usr/home/mark/ports/comms/bforce-ugenk/pkg-descr
#	/usr/home/mark/ports/comms/bforce-ugenk/pkg-message
#	/usr/home/mark/ports/comms/bforce-ugenk/pkg-plist
#
echo c - /usr/home/mark/ports/comms/bforce-ugenk/
mkdir -p /usr/home/mark/ports/comms/bforce-ugenk/ > /dev/null 2>&1
echo c - /usr/home/mark/ports/comms/bforce-ugenk/files
mkdir -p /usr/home/mark/ports/comms/bforce-ugenk/files > /dev/null 2>&1
echo x - /usr/home/mark/ports/comms/bforce-ugenk/files/patch-bforce.h
sed 's/^X//' >/usr/home/mark/ports/comms/bforce-ugenk/files/patch-bforce.h << 'END-of-/usr/home/mark/ports/comms/bforce-ugenk/files/patch-bforce.h'
X--- include/bforce.h	2004/12/30 16:01:02	1.1.1.1
X+++ include/bforce.h	2006/01/05 05:12:33	1.2
X@@ -8,7 +8,7 @@
X  *	the Free Software Foundation; either version 2 of the License, or
X  *	(at your option) any later version.
X  *	
X- *	$Id: bforce.h,v 1.1.1.1 2004/12/30 16:01:02 ugenk Exp $
X+ *	$Id: bforce.h,v 1.2 2006/01/05 05:12:33 ugenk Exp $
X  */
X 
X #ifndef _BFORCE_H_
X@@ -39,6 +39,9 @@
X #define BF_MAXDOMAIN		40
X #define BF_MAXADDRSTR		80
X 
X+/* IP-only nodes phone */
X+#define NO_PSTN_PHONE "00-00-000000"
X+
X /*
X  * Maximum length of file name (without path)
X  */
END-of-/usr/home/mark/ports/comms/bforce-ugenk/files/patch-bforce.h
echo x - /usr/home/mark/ports/comms/bforce-ugenk/files/bforce.sh.in
sed 's/^X//' >/usr/home/mark/ports/comms/bforce-ugenk/files/bforce.sh.in << 'END-of-/usr/home/mark/ports/comms/bforce-ugenk/files/bforce.sh.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# PROVIDE: bforce
X# REQUIRE: DAEMON
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable bforce:
X#
X#bforce_enable="YES"
X#
X# See `bforce -h' for flags
X#
X
X. %%RC_SUBR%%
X
Xname="bforce"
Xrcvar="`set_rcvar`"
X
Xcommand="%%PREFIX%%/bin/bforce"
Xpidfile="/var/run/fido/bforce.pid"
Xrequired_files="%%PREFIX%%/etc/fido/bforce/bforce.conf"
X
Xstop_cmd="bforce_stop"
X
Xbforce_stop()
X{
X	echo "Stopping $name."
X	${command} -q
X}
X
X# read settings
Xload_rc_config "$name"
X
X# set default values
X: ${bforce_enable="NO"}
X: ${bforce_flags="-d"}
X: ${bforce_user="uucp"}
X
Xrun_rc_command "$1"
END-of-/usr/home/mark/ports/comms/bforce-ugenk/files/bforce.sh.in
echo x - /usr/home/mark/ports/comms/bforce-ugenk/files/patch-config.h.in
sed 's/^X//' >/usr/home/mark/ports/comms/bforce-ugenk/files/patch-config.h.in << 'END-of-/usr/home/mark/ports/comms/bforce-ugenk/files/patch-config.h.in'
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/home/mark/ports/comms/bforce-ugenk/files/patch-config.h.in
echo x - /usr/home/mark/ports/comms/bforce-ugenk/files/patch-daemon_call.c
sed 's/^X//' >/usr/home/mark/ports/comms/bforce-ugenk/files/patch-daemon_call.c << 'END-of-/usr/home/mark/ports/comms/bforce-ugenk/files/patch-daemon_call.c'
X--- bforce/daemon_call.c	2004/12/30 16:00:47	1.1.1.1
X+++ bforce/daemon_call.c	2006/02/05 22:05:40	1.3
X@@ -8,7 +8,7 @@
X  *	the Free Software Foundation; either version 2 of the License, or
X  *	(at your option) any later version.
X  *	
X- *	$Id: daemon_call.c,v 1.1.1.1 2004/12/30 16:00:47 ugenk Exp $
X+ *	$Id: daemon_call.c,v 1.3 2006/02/05 22:05:40 ugenk Exp $
X  */
X 
X #include "includes.h"
X@@ -93,6 +93,7 @@
X 	setproctitle("bforce calling %s, %s",
X 		ftn_addrstr(abuf, state.node.addr), state.node.phone);
X 	
X+/*	if( ( syst->tcpip ) || (strcmp(state.node.phone,NO_PSTN_PHONE)== 0) ) */
X 	if( syst->tcpip )
X 	{
X 		rc = call_system_tcpip();
END-of-/usr/home/mark/ports/comms/bforce-ugenk/files/patch-daemon_call.c
echo x - /usr/home/mark/ports/comms/bforce-ugenk/Makefile
sed 's/^X//' >/usr/home/mark/ports/comms/bforce-ugenk/Makefile << 'END-of-/usr/home/mark/ports/comms/bforce-ugenk/Makefile'
X# New ports collection makefile for:	bforce-ugenk
X# Date created:		15 Apr 2006
X# Whom:			Mark Starovoytov <mark_sf@kikg.ifmo.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	bforce
XPORTVERSION=	0.22.9.2
X#PORTREVISION=	0
XCATEGORIES=	comms
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	binkforce
XPKGNAMESUFFIX=	-ugenk
XDISTNAME=	${PORTNAME}_0.22.9-2
X
XMAINTAINER=	mark_sf@kikg.ifmo.ru
XCOMMENT=	Simple ifcico like Fidonet technology mailer
X
XCONFLICTS=	bforce-0.22.[0-9]* bforce-kst-0.22.[78].[0-9]*
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--prefix=${PREFIX}
XUSE_GMAKE=	yes
XUSE_RC_SUBR=	bforce.sh
X
XOPTIONS=	USRIF		"Advanced freq manager" off \
X		TIMESYNC	"Script for time synchronization with other nodes" off \
X		SYSLOG		"Logging to syslog (not recommended)" off \
X		BUGGYEMSI	"Buggy EMSI support" off \
X		LOGPASSWD	"Write session password to log" on
X
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XCONTRIBS=	bfha/README bfha/bfha.pl bflan callout.sh outman
XBF_DOCS=	CHANGES CHANGES.kst CHANGES.ugenk COPYING FAQ README README.kst README.ugenk
XBF_CFGS=	bforce.conf bforce.passwd bforce.subst freq.aliases freq.dirs
X
XBF_OWNER?=	uucp
XBF_GROUP?=	news
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_TIMESYNC)
XCONTRIBS+=	timesync.tcl
XRUN_DEPENDS+=	tclsh:${PORTSDIR}/lang/tcl84
XPLIST_SUB+=	WITH_TIMESYNC=""
X.else
XPLIST_SUB+=	WITH_TIMESYNC="@comment "
X.endif
X
X.if defined(WITH_USRIF)
XCONTRIBS+=	u-srif/conf/report.footer u-srif/conf/report.header u-srif/conf/u-srif.aliases \
X		u-srif/conf/u-srif.conf u-srif/conf/u-srif.dirs u-srif/lib/uconfig.py \
X		u-srif/lib/udbase.py u-srif/lib/ufido.py u-srif/lib/unodestat.py \
X		u-srif/lib/utmpl.py u-srif/lib/uutil.py u-srif/u-srif-index.py \
X		u-srif/u-srif-lookup.py u-srif/u-srif.py
XRUN_DEPENDS+=	python:${PORTSDIR}/lang/python
XPLIST_SUB+=	WITH_USRIF=""
X.else
XPLIST_SUB+=	WITH_USRIF="@comment "
X.endif
X
X.if defined(WITH_SYSLOG)
XCONFIGURE_ARGS+=	--enable-syslog
XBF_DOCS+=	SYSLOG
XPLIST_SUB+=	WITH_SYSLOG=""
X.else
XCONFIGURE_ARGS+=	--disable-syslog
XPLIST_SUB+=	WITH_SYSLOG="@comment "
X.endif
X
X.if defined(WITH_BUGGYEMSI)
XCONFIGURE_ARGS+=	--enable-buggy-emsi
X.else
XCONFIGURE_ARGS+=	--disable-buggy-emsi
X.endif
X
X.if defined(WITH_LOGPASSWD)
XCONFIGURE_ARGS+=	--enable-log-passwd
X.else
XCONFIGURE_ARGS+=	--disable-log-passwd
X.endif
X
XWRKSRC=		${WRKDIR}/${PORTNAME}/source
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's,@sysconfdir@,@sysconfdir@/fido/bforce,g' ${WRKSRC}/Makefile.in
X	@${REINPLACE_CMD} -e 's,/var/run/bforce.pid,/var/run/fido/bforce.pid,g' ${WRKSRC}/../examples/bforce.conf
X
Xdo-install:
X	${MKDIR} ${PREFIX}/etc/fido/bforce
X	${CHOWN} ${BF_OWNER}:${BF_GROUP} ${PREFIX}/etc/fido/bforce
X.for i in ${BF_CFGS}
X	${INSTALL} ${COPY} -m 0640 -o ${BF_OWNER} -g ${BF_GROUP} ${WRKSRC}/../examples/${i} ${PREFIX}/etc/fido/bforce/${i}.sample
X.endfor
X
X	${MKDIR} ${DATADIR} ${DATADIR}/bfha
X	${CHOWN} ${BF_OWNER}:${BF_GROUP} ${DATADIR} ${DATADIR}/bfha
X.if defined(WITH_USRIF)
X	${MKDIR} ${DATADIR}/u-srif ${DATADIR}/u-srif/conf ${DATADIR}/u-srif/lib
X	${CHOWN} ${BF_OWNER}:${BF_GROUP} ${DATADIR}/u-srif ${DATADIR}/u-srif/conf ${DATADIR}/u-srif/lib
X.endif
X.for i in ${CONTRIBS}
X	${INSTALL_DATA} ${WRKSRC}/../contrib/${i} ${DATADIR}/${i}
X.endfor
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${CHOWN} ${BF_OWNER}:${BF_GROUP} ${DOCSDIR}
X.for i in ${BF_DOCS}
X	${INSTALL_DATA} ${WRKSRC}/../${i} ${DOCSDIR}
X.endfor
X.endif
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/bforce ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/bfindex ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/bfstat ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/nlookup ${PREFIX}/bin
X	${MKDIR} /var/run/fido
X	${CHOWN} ${BF_OWNER}:${BF_GROUP} /var/run/fido
X
Xpost-install:
X.for i in ${BF_CFGS}
X	@if [ ! -f ${PREFIX}/etc/fido/bforce/${i} ]; then \
X		${CP} -p ${PREFIX}/etc/fido/bforce/${i}.sample ${PREFIX}/etc/fido/bforce/${i} ; \
X	fi
X.endfor
X	@${SED} -e 's|%%PREFIX%%|${PREFIX}|' -e 's|%%CONFIGDIR%%|etc/fido/bforce|' ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-/usr/home/mark/ports/comms/bforce-ugenk/Makefile
echo x - /usr/home/mark/ports/comms/bforce-ugenk/distinfo
sed 's/^X//' >/usr/home/mark/ports/comms/bforce-ugenk/distinfo << 'END-of-/usr/home/mark/ports/comms/bforce-ugenk/distinfo'
XMD5 (bforce_0.22.9-2.tar.gz) = 03c819030e59e5e9c1b68573f3e1f6a1
XSHA256 (bforce_0.22.9-2.tar.gz) = 304993a5b57b7edf506a634965b55f0200153fa6e50d9556f2b0c161d8bd213b
XSIZE (bforce_0.22.9-2.tar.gz) = 321103
END-of-/usr/home/mark/ports/comms/bforce-ugenk/distinfo
echo x - /usr/home/mark/ports/comms/bforce-ugenk/pkg-descr
sed 's/^X//' >/usr/home/mark/ports/comms/bforce-ugenk/pkg-descr << 'END-of-/usr/home/mark/ports/comms/bforce-ugenk/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.
X
XWWW: http://sourceforge.net/projects/binkforce/
END-of-/usr/home/mark/ports/comms/bforce-ugenk/pkg-descr
echo x - /usr/home/mark/ports/comms/bforce-ugenk/pkg-message
sed 's/^X//' >/usr/home/mark/ports/comms/bforce-ugenk/pkg-message << 'END-of-/usr/home/mark/ports/comms/bforce-ugenk/pkg-message'
X**************************************************************
X
XPlease don't forget to edit configuration files, which are
Xlocated in %%PREFIX%%/%%CONFIGDIR%%.
X
X**************************************************************
END-of-/usr/home/mark/ports/comms/bforce-ugenk/pkg-message
echo x - /usr/home/mark/ports/comms/bforce-ugenk/pkg-plist
sed 's/^X//' >/usr/home/mark/ports/comms/bforce-ugenk/pkg-plist << 'END-of-/usr/home/mark/ports/comms/bforce-ugenk/pkg-plist'
Xbin/bforce
Xbin/bfindex
Xbin/bfstat
Xbin/nlookup
X@unexec if cmp -s %D/etc/fido/bforce/bforce.conf.sample %D/etc/fido/bforce/bforce.conf; then rm -f %D/etc/fido/bforce/bforce.conf; fi
Xetc/fido/bforce/bforce.conf.sample
X@unexec if cmp -s %D/etc/fido/bforce/bforce.passwd.sample %D/etc/fido/bforce/bforce.passwd; then rm -f %D/etc/fido/bforce/bforce.passwd; fi
Xetc/fido/bforce/bforce.passwd.sample
X@unexec if cmp -s %D/etc/fido/bforce/bforce.subst.sample %D/etc/fido/bforce/bforce.subst; then rm -f %D/etc/fido/bforce/bforce.subst; fi
Xetc/fido/bforce/bforce.subst.sample
X@unexec if cmp -s %D/etc/fido/bforce/freq.aliases.sample %D/etc/fido/bforce/freq.aliases; then rm -f %D/etc/fido/bforce/freq.aliases; fi
Xetc/fido/bforce/freq.aliases.sample
X@unexec if cmp -s %D/etc/fido/bforce/freq.dirs.sample %D/etc/fido/bforce/freq.dirs; then rm -f %D/etc/fido/bforce/freq.dirs; fi
Xetc/fido/bforce/freq.dirs.sample
X%%DATADIR%%/bfha/README
X%%DATADIR%%/bfha/bfha.pl
X%%DATADIR%%/bflan
X%%DATADIR%%/callout.sh
X%%DATADIR%%/outman
X%%WITH_TIMESYNC%%%%DATADIR%%/timesync.tcl
X%%WITH_USRIF%%%%DATADIR%%/u-srif/conf/report.footer
X%%WITH_USRIF%%%%DATADIR%%/u-srif/conf/report.header
X%%WITH_USRIF%%%%DATADIR%%/u-srif/conf/u-srif.aliases
X%%WITH_USRIF%%%%DATADIR%%/u-srif/conf/u-srif.conf
X%%WITH_USRIF%%%%DATADIR%%/u-srif/conf/u-srif.dirs
X%%WITH_USRIF%%%%DATADIR%%/u-srif/lib/uconfig.py
X%%WITH_USRIF%%%%DATADIR%%/u-srif/lib/udbase.py
X%%WITH_USRIF%%%%DATADIR%%/u-srif/lib/ufido.py
X%%WITH_USRIF%%%%DATADIR%%/u-srif/lib/unodestat.py
X%%WITH_USRIF%%%%DATADIR%%/u-srif/lib/utmpl.py
X%%WITH_USRIF%%%%DATADIR%%/u-srif/lib/uutil.py
X%%WITH_USRIF%%%%DATADIR%%/u-srif/u-srif-index.py
X%%WITH_USRIF%%%%DATADIR%%/u-srif/u-srif-lookup.py
X%%WITH_USRIF%%%%DATADIR%%/u-srif/u-srif.py
X%%PORTDOCS%%%%DOCSDIR%%/CHANGES
X%%PORTDOCS%%%%DOCSDIR%%/CHANGES.kst
X%%PORTDOCS%%%%DOCSDIR%%/CHANGES.ugenk
X%%PORTDOCS%%%%DOCSDIR%%/COPYING
X%%PORTDOCS%%%%DOCSDIR%%/FAQ
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/README.kst
X%%PORTDOCS%%%%DOCSDIR%%/README.ugenk
X%%WITH_SYSLOG%%%%PORTDOCS%%%%DOCSDIR%%/SYSLOG
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@comment # It is a bad idea to delete etc/fido folder which may contain modified configs
X@comment # use @dirrmtry instead - this will delete only empty directories
X@dirrmtry etc/fido/bforce
X@dirrmtry etc/fido
X%%WITH_USRIF%%@dirrm %%DATADIR%%/u-srif/lib
X%%WITH_USRIF%%@dirrm %%DATADIR%%/u-srif/conf
X%%WITH_USRIF%%@dirrm %%DATADIR%%/u-srif
X@dirrm %%DATADIR%%/bfha
X@dirrm %%DATADIR%%
X@comment # remove /var/run/fido if it is empty (not sure if it is correct to do so in all cases)
X@comment @unexec rmdir /var/run/fido 2>/dev/null || true
END-of-/usr/home/mark/ports/comms/bforce-ugenk/pkg-plist
exit


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604160008.k3G08l9j031225>