aboutsummaryrefslogtreecommitdiff
path: root/mail/ftrack
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2005-08-19 13:01:21 +0000
committerMax Khon <fjoe@FreeBSD.org>2005-08-19 13:01:21 +0000
commit4095d64e48aec625508ea39f50ba631d2ce0844d (patch)
tree5e36b7fb493bf9e617fcba74e23b444f7e8c26d5 /mail/ftrack
parente7b6980a72f58625c1e3f55f229926b171f0cb62 (diff)
downloadports-4095d64e48aec625508ea39f50ba631d2ce0844d.tar.gz
ports-4095d64e48aec625508ea39f50ba631d2ce0844d.zip
Notes
Diffstat (limited to 'mail/ftrack')
-rw-r--r--mail/ftrack/Makefile13
-rw-r--r--mail/ftrack/files/patch-MakeFiles-FreeBSD-Makefile6
-rw-r--r--mail/ftrack/files/patch-hpp-a_list.hpp10
-rw-r--r--mail/ftrack/files/patch-hpp-ustr.hpp20
-rw-r--r--mail/ftrack/files/patch-src-help.cpp13
-rw-r--r--mail/ftrack/files/patch-src-parsetpl.cpp11
-rw-r--r--mail/ftrack/files/patch-src-scd_do.cpp18
-rw-r--r--mail/ftrack/files/patch-src::ftrack.cpp15
8 files changed, 87 insertions, 19 deletions
diff --git a/mail/ftrack/Makefile b/mail/ftrack/Makefile
index f377a97e4215..10f7d82751cc 100644
--- a/mail/ftrack/Makefile
+++ b/mail/ftrack/Makefile
@@ -8,7 +8,7 @@
PORTNAME= ftrack
PORTVERSION= 3.1
PORTEPOCH= 1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= mail
MASTER_SITES= http://ufm.kgb.ru/files/ \
http://forsite.ibch.ru/ports/
@@ -25,20 +25,13 @@ USE_GMAKE= yes
ALL_TARGET= ftrack
MAKEFILE= ${WRKSRC}/MakeFiles/FreeBSD/Makefile
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
-USE_GCC= 2.95
USE_PERL5= yes
PORTDOCS= ftrack.faq readme report.err
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 504001
-BROKEN= "Does not compile on FreeBSD >= 5.x"
-.endif
-
pre-patch:
${REINPLACE_CMD} -e "s@-I../../hpp -I../../.. -O3@-Ihpp -I${LOCALBASE}/include ${CFLAGS}@g; \
- s@../../src/@src/@g; s@g\+\+@${CC}@g; \
+ s@../../src/@src/@g; \
s@-L../../../smapi -lsmapibsd@-L${LOCALBASE}/lib -lsmapi@g" ${WRKSRC}/MakeFiles/FreeBSD/Makefile
${REINPLACE_CMD} -e "s@ftrack.cfg@${PREFIX}/etc/ftrack/ftrack.cfg@g" ${WRKSRC}/hpp/constant.hpp
.for DIR in MakeFiles/FreeBSD src hpp doc/eng samples/tpl
@@ -69,4 +62,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/doc/eng/* ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/mail/ftrack/files/patch-MakeFiles-FreeBSD-Makefile b/mail/ftrack/files/patch-MakeFiles-FreeBSD-Makefile
index 0eb3c63258a1..242f0b62d8b0 100644
--- a/mail/ftrack/files/patch-MakeFiles-FreeBSD-Makefile
+++ b/mail/ftrack/files/patch-MakeFiles-FreeBSD-Makefile
@@ -1,7 +1,7 @@
---- MakeFiles/FreeBSD/Makefile.orig Thu Jan 6 13:36:31 2005
-+++ MakeFiles/FreeBSD/Makefile Thu Jan 6 13:38:14 2005
+--- MakeFiles/FreeBSD/Makefile.orig Fri Aug 19 17:20:22 2005
++++ MakeFiles/FreeBSD/Makefile Fri Aug 19 17:20:23 2005
@@ -1,5 +1,4 @@
--CC= gcc295
+-CC= cc
-CFLAGS= -Wall -W -fno-rtti `perl -MExtUtils::Embed -e ccopts`
+CFLAGS+=-Wall -W -fno-rtti `perl -MExtUtils::Embed -e ccopts`
CDEFS= -DUNIX
diff --git a/mail/ftrack/files/patch-hpp-a_list.hpp b/mail/ftrack/files/patch-hpp-a_list.hpp
index 528200a73946..d6aaead17917 100644
--- a/mail/ftrack/files/patch-hpp-a_list.hpp
+++ b/mail/ftrack/files/patch-hpp-a_list.hpp
@@ -1,5 +1,5 @@
---- hpp/a_list.hpp.orig Tue Oct 28 04:01:58 2003
-+++ hpp/a_list.hpp Tue Oct 28 04:02:41 2003
+--- hpp/a_list.hpp.orig Fri Aug 19 17:20:23 2005
++++ hpp/a_list.hpp Fri Aug 19 17:47:38 2005
@@ -173,8 +173,8 @@
protected:
@@ -20,12 +20,14 @@
Elem *p;
ElemPtr(Elem *e) { p = e; }
protected:
-@@ -294,7 +294,7 @@
+@@ -294,8 +294,8 @@
public:
class ElemPtr : public BiList<T>::ElemPtr {
public:
- ElemPtr(BiList<T>::ElemPtr &e) : BiList<T>::ElemPtr(e){}
+- T* operator->() { return operator T*(); }
+ ElemPtr(typename BiList<T>::ElemPtr &e) : BiList<T>::ElemPtr(e){}
- T* operator->() { return operator T*(); }
++ T* operator->() { return BiList<T>::ElemPtr::operator T*(); }
};
ElemPtr AddToBegin( T &t ) {
+ return (ElemPtr)BiList<T>::AddToBegin(t);
diff --git a/mail/ftrack/files/patch-hpp-ustr.hpp b/mail/ftrack/files/patch-hpp-ustr.hpp
new file mode 100644
index 000000000000..b189a97f2b7d
--- /dev/null
+++ b/mail/ftrack/files/patch-hpp-ustr.hpp
@@ -0,0 +1,20 @@
+--- hpp/ustr.hpp.orig Fri Aug 19 17:22:08 2005
++++ hpp/ustr.hpp Fri Aug 19 17:22:52 2005
+@@ -24,7 +24,9 @@
+
+ #include <stddef.h>
+ #include <ctype.h>
+-#include <iostream.h>
++#include <iostream>
++
++using namespace std;
+
+ class Str {
+ private:
+@@ -81,4 +83,4 @@
+
+
+
+-#endif
+\ No newline at end of file
++#endif
diff --git a/mail/ftrack/files/patch-src-help.cpp b/mail/ftrack/files/patch-src-help.cpp
new file mode 100644
index 000000000000..3de99b7b6bf2
--- /dev/null
+++ b/mail/ftrack/files/patch-src-help.cpp
@@ -0,0 +1,13 @@
+--- src/help.cpp.orig Fri Aug 19 17:58:00 2005
++++ src/help.cpp Fri Aug 19 17:59:15 2005
+@@ -1,7 +1,9 @@
+ #include <stdio.h>
+ #include "constant.hpp"
+ #include "help.hpp"
+-#include <iostream.h>
++#include <iostream>
++
++using namespace std;
+
+ void Hello(void) {
+ cout << "\nFTrack " << FVersion << " " << Copyright << "\n";
diff --git a/mail/ftrack/files/patch-src-parsetpl.cpp b/mail/ftrack/files/patch-src-parsetpl.cpp
new file mode 100644
index 000000000000..052f2623c600
--- /dev/null
+++ b/mail/ftrack/files/patch-src-parsetpl.cpp
@@ -0,0 +1,11 @@
+--- src/parsetpl.cpp.orig Fri Aug 19 17:49:03 2005
++++ src/parsetpl.cpp Fri Aug 19 17:50:18 2005
+@@ -880,7 +880,7 @@
+
+ // First - replace all \r to \n
+
+- while ((tmt = strchr(Body,'\r')) != NULL) {
++ while ((tmt = strchr((char *) Body,'\r')) != NULL) {
+ *tmt = '\n';
+ }
+
diff --git a/mail/ftrack/files/patch-src-scd_do.cpp b/mail/ftrack/files/patch-src-scd_do.cpp
new file mode 100644
index 000000000000..7464b0a0deda
--- /dev/null
+++ b/mail/ftrack/files/patch-src-scd_do.cpp
@@ -0,0 +1,18 @@
+--- src/scd_do.cpp.orig Fri Aug 19 17:50:40 2005
++++ src/scd_do.cpp Fri Aug 19 17:51:06 2005
+@@ -472,7 +472,7 @@
+ return FALSE;
+ }
+ CHP = 16101;
+- while ((tmt = strchr(_Tpl->Body,'\n')) != NULL) *tmt = '\r';
++ while ((tmt = strchr((char *) _Tpl->Body,'\n')) != NULL) *tmt = '\r';
+ tmt = m._Body;
+ CHP = 16102;
+ m._Body = (char *) malloc(((tmt != NULL) ? strlen(tmt) : 0) + strlen(_Tpl->Body) + 1);
+@@ -787,4 +787,4 @@
+ return TRUE;
+ }
+
+-#endif
+\ No newline at end of file
++#endif
diff --git a/mail/ftrack/files/patch-src::ftrack.cpp b/mail/ftrack/files/patch-src::ftrack.cpp
index 1a476d9ed684..0177d5af32ec 100644
--- a/mail/ftrack/files/patch-src::ftrack.cpp
+++ b/mail/ftrack/files/patch-src::ftrack.cpp
@@ -1,5 +1,16 @@
---- src/ftrack.cpp.orig Fri Apr 26 20:59:40 2002
-+++ src/ftrack.cpp Wed Jan 5 21:39:27 2005
+--- src/ftrack.cpp.orig Fri Aug 19 17:58:00 2005
++++ src/ftrack.cpp Fri Aug 19 17:59:25 2005
+@@ -42,8 +42,8 @@
+ #include "parsetpl.hpp"
+ #include "tmstamp.hpp"
+ #include "script.hpp"
+-#include <iostream.h>
+-#include <fstream.h>
++#include <iostream>
++#include <fstream>
+ #include <smapi/msgapi.h>
+
+ static struct utimbuf ut;
@@ -53,7 +53,7 @@
// Signals catch functions
// --------------------------------------------------------------------