diff options
author | Will Andrews <will@FreeBSD.org> | 2001-03-10 18:56:51 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2001-03-10 18:56:51 +0000 |
commit | 3db916d092dfad9343ef1470d99eeec806cda3b5 (patch) | |
tree | 2c82308e8c148a764ff802db344f5674e96a2f90 /mail | |
parent | upgrade to 0.7.2 (diff) |
Add ftrack 3.01, a FTN Messages tracker.
PR: 23711
Submitted by: Sergey Samoyloff <gonza@techline.ru>
Notes
Notes:
svn path=/head/; revision=39448
Diffstat (limited to 'mail')
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/ftrack/Makefile | 46 | ||||
-rw-r--r-- | mail/ftrack/distinfo | 1 | ||||
-rw-r--r-- | mail/ftrack/files/patch-hpp::constant.hpp | 11 | ||||
-rw-r--r-- | mail/ftrack/files/patch-hpp::ufmtypes.h | 11 | ||||
-rw-r--r-- | mail/ftrack/files/patch-src::outbound.cpp | 20 | ||||
-rw-r--r-- | mail/ftrack/files/patch-src::utils.cpp | 19 | ||||
-rw-r--r-- | mail/ftrack/pkg-comment | 1 | ||||
-rw-r--r-- | mail/ftrack/pkg-descr | 20 | ||||
-rw-r--r-- | mail/ftrack/pkg-plist | 13 |
10 files changed, 143 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 181222a9f6e2..b529febc50a5 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -33,6 +33,7 @@ SUBDIR += ezmlm-web SUBDIR += faces SUBDIR += fetchmail + SUBDIR += ftrack SUBDIR += gbuffy SUBDIR += gensig SUBDIR += gkrellmmailwatch diff --git a/mail/ftrack/Makefile b/mail/ftrack/Makefile new file mode 100644 index 000000000000..5a22b73e237d --- /dev/null +++ b/mail/ftrack/Makefile @@ -0,0 +1,46 @@ +# New ports collection makefile for: ftrack +# Date created: Thu Dec 21 14:20:49 MSK 2000 +# Whom: Sergey Samoyloff <gonza@techline.ru> +# +# $FreeBSD$ +# + +PORTNAME= ftrack +PORTVERSION= 3.01 +CATEGORIES= mail +MASTER_SITES= http://ufm.kgb.ru/FTrack/ftpdir/3.01/ +DISTNAME= ftr${PORTVERSION:S/.//g}s + +MAINTAINER= gonza@techline.ru + +BUILD_DEPENDS= ${LOCALBASE}/lib/libsmapi.a:${PORTSDIR}/mail/smapi + +USE_ZIP= yes +USE_GMAKE= yes +ALL_TARGET= ftrack +MAKEFILE= ${WRKSRC}/MakeFiles/FreeBSD/Makefile +EXTRACT_AFTER_ARGS= -d ${WRKSRC} + +pre-patch: + ${PERL} -pi -e "s@-I../../hpp -I../../.. -O3@-Ihpp -I${LOCALBASE}/include ${CFLAGS}@g; \ + s@../../src/@src/@g; s@g\+\+@${CC}@g; \ + s@-L../smapi -lsmapibsd@-L${LOCALBASE}/lib -lsmapi@g" ${WRKSRC}/MakeFiles/FreeBSD/Makefile +.for DIR in MakeFiles/FreeBSD src hpp doc/eng samples/tpl + ${PERL} -pi -e 's!\r!!' ${WRKSRC}/${DIR}/* +.endfor + +pre-configure: + ${CP} ${WRKSRC}/MakeFiles/FreeBSD/Makefile ${WRKSRC} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/ftrack ${PREFIX}/sbin + ${MKDIR} ${PREFIX}/etc/ftrack + ${INSTALL_DATA} ${WRKSRC}/samples/node.cfg ${PREFIX}/etc/ftrack/ftrack.cfg-dist + ${MKDIR} ${PREFIX}/share/doc/ftrack + ${INSTALL_DATA} ${WRKSRC}/doc/eng/* ${PREFIX}/share/doc/ftrack + ${INSTALL_DATA} ${WRKSRC}/samples/tpl/* ${PREFIX}/etc/ftrack +.for FILE in alt2koi.tbl koi2alt.tbl + ${INSTALL_DATA} ${WRKSRC}/samples/${FILE} ${PREFIX}/etc/ftrack +.endfor + +.include <bsd.port.mk> diff --git a/mail/ftrack/distinfo b/mail/ftrack/distinfo new file mode 100644 index 000000000000..7a243e6c3379 --- /dev/null +++ b/mail/ftrack/distinfo @@ -0,0 +1 @@ +MD5 (ftr301s.zip) = 377ffe4c0bc1c28de114055c61e9f982 diff --git a/mail/ftrack/files/patch-hpp::constant.hpp b/mail/ftrack/files/patch-hpp::constant.hpp new file mode 100644 index 000000000000..a81a04cc7a6f --- /dev/null +++ b/mail/ftrack/files/patch-hpp::constant.hpp @@ -0,0 +1,11 @@ +--- hpp/constant.hpp.orig Wed Sep 20 14:46:48 2000 ++++ hpp/constant.hpp Wed Sep 20 14:47:01 2000 +@@ -30,7 +30,7 @@ + #define PATHDELIMS "/" + #define PATHDELIMC '/' + #endif +-#define FVersion "3.01"OsType ++#define FVersion "3.01" + #define RevisionHI 3 + #define RevisionLO 1 + #define FTrackProductLo 0xff diff --git a/mail/ftrack/files/patch-hpp::ufmtypes.h b/mail/ftrack/files/patch-hpp::ufmtypes.h new file mode 100644 index 000000000000..1885dbbc641a --- /dev/null +++ b/mail/ftrack/files/patch-hpp::ufmtypes.h @@ -0,0 +1,11 @@ +--- hpp/ufmtypes.h.orig Fri Apr 14 19:13:02 2000 ++++ hpp/ufmtypes.h Sun May 21 17:07:16 2000 +@@ -1,7 +1,7 @@ + #ifndef _UFMTYPES_H_ + #define _UFMTYPES_H + +-#include "smapi/typedefs.h" ++#include <smapi/typedefs.h> + + typedef unsigned int uint; + typedef unsigned char uchar; diff --git a/mail/ftrack/files/patch-src::outbound.cpp b/mail/ftrack/files/patch-src::outbound.cpp new file mode 100644 index 000000000000..4f892c570a9e --- /dev/null +++ b/mail/ftrack/files/patch-src::outbound.cpp @@ -0,0 +1,20 @@ +--- src/outbound.cpp.orig Sun May 21 18:09:12 2000 ++++ src/outbound.cpp Tue May 23 12:43:00 2000 +@@ -373,7 +373,7 @@ + fclose (fh); + unlink(TmtName); + +- bfh = open(BsyName,O_CREAT | O_EXCL,0666); ++ bfh = open(BsyName,O_CREAT | O_EXCL,0640); + if (bfh == -1) { + return FALSE; + } +@@ -858,7 +858,7 @@ + } + fclose (fh); + unlink(TmtName); +- bfh = open(Buff,O_CREAT | O_EXCL,0666); ++ bfh = open(Buff,O_CREAT | O_EXCL,0640); + if (bfh == -1) { + Log.Level(LOGW) << "Packet " << Name << " is locked." << EOL; + return TRUE; diff --git a/mail/ftrack/files/patch-src::utils.cpp b/mail/ftrack/files/patch-src::utils.cpp new file mode 100644 index 000000000000..9f8364ebbcf8 --- /dev/null +++ b/mail/ftrack/files/patch-src::utils.cpp @@ -0,0 +1,19 @@ +--- src/utils.cpp.orig Tue May 16 22:33:14 2000 ++++ src/utils.cpp Tue Jun 27 20:57:09 2000 +@@ -22,6 +22,7 @@ + #include <ctype.h> + #ifdef __FreeBSD__ + # include <stdlib.h> ++# include <sys/syslimits.h> + #else + # include <malloc.h> + #endif +@@ -144,7 +145,7 @@ + // Open file and create path if need. + char *tmt; + char Buff[1024]; +- umask(0); ++ umask(022); + strcpy(Buff,Name); + tmt = strrchr(Buff,PATHDELIMC); + if (tmt != NULL) { diff --git a/mail/ftrack/pkg-comment b/mail/ftrack/pkg-comment new file mode 100644 index 000000000000..775f70b7d11a --- /dev/null +++ b/mail/ftrack/pkg-comment @@ -0,0 +1 @@ +FTN Messages tracker diff --git a/mail/ftrack/pkg-descr b/mail/ftrack/pkg-descr new file mode 100644 index 000000000000..a6a0c9b4402f --- /dev/null +++ b/mail/ftrack/pkg-descr @@ -0,0 +1,20 @@ +FTN Messages tracker + +What is this program for, +It is so called netmail "tracker". It's puprose is to process netmail on +netmail hubs, though it can be useful for an ordinary node. + +How does it work, +It takes a letter, compares it with a mask and, if comparison was +successful, it executes corresponding operation with this letter. + +Guarantees, +This product is Freeware. It is distributed in accordance to principle +As Is, and I can't provide any guarantee. The only thing I promise is +to correct founded mistakes more or less regulary and to produce new +versions. + +WWW: http://ufm.kgb.ru/ + +-- Sergey Samoyloff +gonza@techline.ru diff --git a/mail/ftrack/pkg-plist b/mail/ftrack/pkg-plist new file mode 100644 index 000000000000..14f15ce58688 --- /dev/null +++ b/mail/ftrack/pkg-plist @@ -0,0 +1,13 @@ +etc/ftrack/ftrack.cfg-dist +etc/ftrack/audit.tpl +etc/ftrack/badfrom.tpl +etc/ftrack/badto.tpl +etc/ftrack/loop.tpl +etc/ftrack/alt2koi.tbl +etc/ftrack/koi2alt.tbl +sbin/ftrack +share/doc/ftrack/ftrack.faq +share/doc/ftrack/readme +share/doc/ftrack/report.err +@dirrm etc/ftrack +@dirrm share/doc/ftrack |