View | Details | Raw Unified | Return to bug 154282
Collapse All | Expand All

(-)Makefile (-3 / +3 lines)
Lines 6-15 Link Here
6
#
6
#
7
7
8
PORTNAME=	${UPPORTNAME:L}
8
PORTNAME=	${UPPORTNAME:L}
9
PORTVERSION=	7.07
9
PORTVERSION=	8.01
10
CATEGORIES=	finance
10
CATEGORIES=	finance
11
MASTER_SITES=	SF/${PORTNAME}/OTS_2009/v${PORTVERSION}
11
MASTER_SITES=	SF/${PORTNAME}/OTS_2010/v${PORTVERSION}
12
DISTNAME=	${UPPORTNAME}2009_${PORTVERSION}
12
DISTNAME=	${UPPORTNAME}2010_${PORTVERSION}
13
EXTRACT_SUFX=	.tgz
13
EXTRACT_SUFX=	.tgz
14
14
15
MAINTAINER=	jhein@symmetricom.com
15
MAINTAINER=	jhein@symmetricom.com
(-)distinfo (-3 / +2 lines)
Lines 1-3 Link Here
1
MD5 (OpenTaxSolver2009_7.07.tgz) = 179e21c4264b59d230dc2fe9557c0d4b
1
SHA256 (OpenTaxSolver2010_8.01.tgz) = 1933f649cfcded1673d846b59067ff5e830e22f9d679ee2b3574bc2cfffa79c4
2
SHA256 (OpenTaxSolver2009_7.07.tgz) = 40d9268d1e896f7cfaf04b05c96b5b64652abf7458be6f35c152953778e2e01f
2
SIZE (OpenTaxSolver2010_8.01.tgz) = 417378
3
SIZE (OpenTaxSolver2009_7.07.tgz) = 431773
(-)pkg-plist (-28 / +26 lines)
Lines 1-46 Link Here
1
bin/ots_gui
1
bin/ots_gui
2
bin/taxsolve_CA_540_2009
2
bin/taxsolve_CA_540_2010
3
bin/taxsolve_MA_1_2009
3
bin/taxsolve_NC_D400_2010
4
bin/taxsolve_NC_D400_2009
4
bin/taxsolve_NJ_1040_2010
5
bin/taxsolve_NJ_1040_2009
5
bin/taxsolve_OH_IT1040_2010
6
bin/taxsolve_NY_IT201_2009
6
bin/taxsolve_PA_40_2010
7
bin/taxsolve_OH_IT1040_2009
7
bin/taxsolve_US_1040_2010
8
bin/taxsolve_PA_40_2009
8
bin/taxsolve_US_1040_Sched_C_2010
9
bin/taxsolve_US_1040_2009
9
bin/taxsolve_VA_760_2010
10
bin/taxsolve_US_1040_Sched_C_2009
11
bin/taxsolve_VA_760_2009
12
share/ots/otslogo.ppm
10
share/ots/otslogo.ppm
13
share/ots/examples_and_templates/CA_540/CA_540_2009_example.dat
11
share/ots/examples_and_templates/CA_540/CA_540_2010_example.dat
14
share/ots/examples_and_templates/CA_540/CA_540_2009_template.dat
12
share/ots/examples_and_templates/CA_540/CA_540_2010_template.dat
15
share/ots/examples_and_templates/CA_540/README_CA_540.txt
13
share/ots/examples_and_templates/CA_540/README_CA_540.txt
16
share/ots/examples_and_templates/MA_1/README_MA_1.txt
14
share/ots/examples_and_templates/MA_1/README_MA_1.txt
17
share/ots/examples_and_templates/MA_1/ma_1_2009_example.dat
15
share/ots/examples_and_templates/MA_1/ma_1_2010_example.dat
18
share/ots/examples_and_templates/MA_1/ma_1_2009_template.dat
16
share/ots/examples_and_templates/MA_1/ma_1_2010_template.dat
19
share/ots/examples_and_templates/NC_D400/NC_400_2009_example.dat
17
share/ots/examples_and_templates/NC_D400/NC_400_2010_example.dat
20
share/ots/examples_and_templates/NC_D400/NC_400_2009_template.dat
18
share/ots/examples_and_templates/NC_D400/NC_400_2010_template.dat
21
share/ots/examples_and_templates/NC_D400/README_NC_400.txt
19
share/ots/examples_and_templates/NC_D400/README_NC_400.txt
22
share/ots/examples_and_templates/NJ_1040/NJ_1040_2009_example.dat
20
share/ots/examples_and_templates/NJ_1040/NJ_1040_2010_example.dat
23
share/ots/examples_and_templates/NJ_1040/NJ_1040_2009_template.dat
21
share/ots/examples_and_templates/NJ_1040/NJ_1040_2010_template.dat
24
share/ots/examples_and_templates/NJ_1040/README_NJ_1040.txt
22
share/ots/examples_and_templates/NJ_1040/README_NJ_1040.txt
25
share/ots/examples_and_templates/NY_IT201/NY_IT201_2009_example.dat
23
share/ots/examples_and_templates/NY_IT201/NY_IT201_2010_example.dat
26
share/ots/examples_and_templates/NY_IT201/NY_IT201_2009_template.dat
24
share/ots/examples_and_templates/NY_IT201/NY_IT201_2010_template.dat
27
share/ots/examples_and_templates/NY_IT201/README_NY_IT201.txt
25
share/ots/examples_and_templates/NY_IT201/README_NY_IT201.txt
28
share/ots/examples_and_templates/OH_IT1040/OH_IT1040_2009_example.dat
26
share/ots/examples_and_templates/OH_IT1040/OH_IT1040_2010_example.dat
29
share/ots/examples_and_templates/OH_IT1040/OH_IT1040_2009_template.dat
27
share/ots/examples_and_templates/OH_IT1040/OH_IT1040_2010_template.dat
30
share/ots/examples_and_templates/OH_IT1040/README_OH_IT1040.txt
28
share/ots/examples_and_templates/OH_IT1040/README_OH_IT1040.txt
31
share/ots/examples_and_templates/PA_40/PA_40_2009_example.dat
29
share/ots/examples_and_templates/PA_40/PA_40_2010_example.dat
32
share/ots/examples_and_templates/PA_40/PA_40_2009_template.dat
30
share/ots/examples_and_templates/PA_40/PA_40_2010_template.dat
33
share/ots/examples_and_templates/PA_40/README_PA_40.txt
31
share/ots/examples_and_templates/PA_40/README_PA_40.txt
34
share/ots/examples_and_templates/US_1040/README_US_1040.txt
32
share/ots/examples_and_templates/US_1040/README_US_1040.txt
35
share/ots/examples_and_templates/US_1040/US_1040_example.dat
33
share/ots/examples_and_templates/US_1040/US_1040_example.dat
36
share/ots/examples_and_templates/US_1040/US_1040_template.dat
34
share/ots/examples_and_templates/US_1040/US_1040_template.dat
37
share/ots/examples_and_templates/US_1040_Sched_C/8829_template.dat
35
share/ots/examples_and_templates/US_1040_Sched_C/8829_template.dat
38
share/ots/examples_and_templates/US_1040_Sched_C/README_US_1040_Sched_C.txt
36
share/ots/examples_and_templates/US_1040_Sched_C/README_US_1040_Sched_C.txt
39
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2009_example.dat
37
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2010_example.dat
40
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2009_template.dat
38
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2010_template.dat
41
share/ots/examples_and_templates/VA_760/README_VA_760.txt
39
share/ots/examples_and_templates/VA_760/README_VA_760.txt
42
share/ots/examples_and_templates/VA_760/VA_760_2009_example.dat
40
share/ots/examples_and_templates/VA_760/VA_760_2010_example.dat
43
share/ots/examples_and_templates/VA_760/VA_760_2009_template.dat
41
share/ots/examples_and_templates/VA_760/VA_760_2010_template.dat
44
@dirrm share/ots/examples_and_templates/VA_760
42
@dirrm share/ots/examples_and_templates/VA_760
45
@dirrm share/ots/examples_and_templates/US_1040_Sched_C
43
@dirrm share/ots/examples_and_templates/US_1040_Sched_C
46
@dirrm share/ots/examples_and_templates/US_1040
44
@dirrm share/ots/examples_and_templates/US_1040
(-)files/patch-src-GUI-ots_gui.c (-15 / +15 lines)
Lines 1-15 Link Here
1
--- src/GUI/ots_gui.c.orig	2010-03-02 06:46:32.000000000 -0700
1
--- src/GUI/ots_gui.c.orig	2011-01-16 10:31:20.000000000 -0700
2
+++ src/GUI/ots_gui.c	2010-03-08 17:55:11.000000000 -0700
2
+++ src/GUI/ots_gui.c	2011-01-24 14:49:02.000000000 -0700
3
@@ -638,7 +638,7 @@
3
@@ -664,7 +664,7 @@
4
  /* Now create enough tabbed-panels to hold all the lines. */
5
   npanels = nlines / lines_per_page + 1;
4
   npanels = nlines / lines_per_page + 1;
5
   if (npanels < 2) npanels = 2;
6
   panelnames = (char **)malloc( (npanels+1) * sizeof(char *));
6
   panelnames = (char **)malloc( (npanels+1) * sizeof(char *));
7
-  for (j=0; j<npanels; j++) {panelnames[j] = (char *)malloc(30); sprintf( panelnames[j], "Page %d ", j+1); }
7
-  for (j=0; j<npanels; j++) {panelnames[j] = (char *)malloc(30); sprintf( panelnames[j], "Page %d ", j+1); }
8
+  for (j=0; j<npanels; j++) {panelnames[j] = (char *)malloc(30); snprintf(panelnames[j], sizeof(panelnames[j]), "Page %d ", j+1); }
8
+  for (j=0; j<npanels; j++) {panelnames[j] = (char *)malloc(30); snprintf(panelnames[j], sizeof(panelnames[j]), "Page %d ", j+1); }
9
   Panels = Otk_Tabbed_Panel_New( main_panel, npanels, panelnames, Otk_LightGray, 1, 1, 98, 98, 5 );
9
   Panels = Otk_Tabbed_Panel_New( main_panel, npanels, panelnames, Otk_LightGray, 1, 1, 98, 98, 5 );
10
   TabbedPanel = Panels;
10
   TabbedPanel = Panels;
11
 
11
 
12
@@ -698,7 +698,7 @@
12
@@ -724,7 +724,7 @@
13
      switch (entry->kind)
13
      switch (entry->kind)
14
       {
14
       {
15
        case VKIND_FLOAT:  // printf("Formbox: '%s'\n", messg);
15
        case VKIND_FLOAT:  // printf("Formbox: '%s'\n", messg);
Lines 18-24 Link Here
18
 		pos_x = leftmargin;
18
 		pos_x = leftmargin;
19
 		leftmargin = leftmargin + box_width + 1.5;
19
 		leftmargin = leftmargin + box_width + 1.5;
20
 		pos_y = (float)linenum * 9.0 + 6.5;
20
 		pos_y = (float)linenum * 9.0 + 6.5;
21
@@ -986,9 +986,9 @@
21
@@ -1048,9 +1048,9 @@
22
    return;   
22
    return;   
23
   }
23
   }
24
  if (PLATFORM_KIND==Posix_Platform)
24
  if (PLATFORM_KIND==Posix_Platform)
Lines 30-36 Link Here
30
 
30
 
31
  printf("Invoking '%s'\n", cmd );
31
  printf("Invoking '%s'\n", cmd );
32
  system(cmd);	/* Invoke the TaxSolver. */
32
  system(cmd);	/* Invoke the TaxSolver. */
33
@@ -1022,7 +1022,7 @@
33
@@ -1086,7 +1086,7 @@
34
 
34
 
35
 void togprntcmd_in(void *x)
35
 void togprntcmd_in(void *x)
36
 { 
36
 { 
Lines 39-45 Link Here
39
  Otk_Modify_Text( printerformbox, printer_command );
39
  Otk_Modify_Text( printerformbox, printer_command );
40
 }
40
 }
41
 
41
 
42
@@ -1030,7 +1030,7 @@
42
@@ -1094,7 +1094,7 @@
43
 { char tmpstr[MaxFname];
43
 { char tmpstr[MaxFname];
44
   int k;
44
   int k;
45
  predict_output_filename(wrkingfname,tmpstr);
45
  predict_output_filename(wrkingfname,tmpstr);
Lines 48-54 Link Here
48
  Otk_Modify_Text( printerformbox, printer_command );
48
  Otk_Modify_Text( printerformbox, printer_command );
49
 }
49
 }
50
 
50
 
51
@@ -1058,7 +1058,7 @@
51
@@ -1122,7 +1122,7 @@
52
  Otk_Add_BoundingBox( printpopup, Otk_Blue, 1.0, 18.0, 16.0, 63.0, 47.0 );
52
  Otk_Add_BoundingBox( printpopup, Otk_Blue, 1.0, 18.0, 16.0, 63.0, 47.0 );
53
 
53
 
54
  if (working_file==0) strcpy(wrkingfname,filename_dat); else strcpy(wrkingfname,working_file);
54
  if (working_file==0) strcpy(wrkingfname,filename_dat); else strcpy(wrkingfname,working_file);
Lines 57-63 Link Here
57
 
57
 
58
  OtkMakeTextLabel( printpopup, "Print Command:", Otk_Black, /*scale=*/ 1.5, /*weight=*/ 1, /*x=*/ 4, /*y=*/ 57 );
58
  OtkMakeTextLabel( printpopup, "Print Command:", Otk_Black, /*scale=*/ 1.5, /*weight=*/ 1, /*x=*/ 4, /*y=*/ 57 );
59
  printerformbox = OtkMakeTextFormBox( printpopup, printer_command, 60,  28.5, 55, 68, 18, acceptprinter_command2, 0 );
59
  printerformbox = OtkMakeTextFormBox( printpopup, printer_command, 60,  28.5, 55, 68, 18, acceptprinter_command2, 0 );
60
@@ -1117,15 +1117,15 @@
60
@@ -1181,15 +1181,15 @@
61
    if (k>0) k--;
61
    if (k>0) k--;
62
    while ((k>0) && (tmpstr[k]!=slashchr)) k--;
62
    while ((k>0) && (tmpstr[k]!=slashchr)) k--;
63
    if (tmpstr[k]==slashchr)  tmpstr[k+1] = '\0';
63
    if (tmpstr[k]==slashchr)  tmpstr[k+1] = '\0';
Lines 65-71 Link Here
65
-   sprintf(directory_dat,"%sexamples_and_templates%c", tmpstr, slashchr);
65
-   sprintf(directory_dat,"%sexamples_and_templates%c", tmpstr, slashchr);
66
+   else  {snprintf(tmpstr, sizeof(tmpstr), ".%c", slashchr);}
66
+   else  {snprintf(tmpstr, sizeof(tmpstr), ".%c", slashchr);}
67
+   snprintf(directory_dat, sizeof(directory_dat), "%sexamples_and_templates%c", tmpstr, slashchr);
67
+   snprintf(directory_dat, sizeof(directory_dat), "%sexamples_and_templates%c", tmpstr, slashchr);
68
    Otk_Browse_Files( "Select TaxSolver:", MaxFname, directory_dat, wildcards_dat, taxsolvestrng, open_taxfile );
68
    Otk_Browse_Files( "Select TaxForm:", MaxFname, directory_dat, wildcards_dat, taxsolvestrng, open_taxfile );
69
    return;
69
    return;
70
   }
70
   }
71
  else
71
  else
Lines 76-82 Link Here
76
    printf("Setting Tax Program to be: '%s'\n", tmpstr);
76
    printf("Setting Tax Program to be: '%s'\n", tmpstr);
77
    taxsolvecmd = strdup(tmpstr);
77
    taxsolvecmd = strdup(tmpstr);
78
    strcpy(taxsolvestrng,tmpstr);
78
    strcpy(taxsolvestrng,tmpstr);
79
@@ -1136,8 +1136,8 @@
79
@@ -1200,8 +1200,8 @@
80
    if (k>0) k--;
80
    if (k>0) k--;
81
    while ((k>0) && (tmpstr[k]!=slashchr)) k--;
81
    while ((k>0) && (tmpstr[k]!=slashchr)) k--;
82
    if (tmpstr[k]==slashchr)  tmpstr[k+1] = '\0';
82
    if (tmpstr[k]==slashchr)  tmpstr[k+1] = '\0';
Lines 85-93 Link Here
85
+   else  {snprintf(tmpstr, sizeof(tmpstr), ".%c", slashchr);}
85
+   else  {snprintf(tmpstr, sizeof(tmpstr), ".%c", slashchr);}
86
+   snprintf(directory_dat, sizeof(directory_dat), "%sexamples_and_templates%c", tmpstr, slashchr);
86
+   snprintf(directory_dat, sizeof(directory_dat), "%sexamples_and_templates%c", tmpstr, slashchr);
87
 
87
 
88
    sel = strstr( strg, "_2009" );
88
    sel = strstr( strg, "_2010" );
89
    sel[0] = '\0';
89
    sel[0] = '\0';
90
@@ -1208,7 +1208,7 @@
90
@@ -1272,7 +1272,7 @@
91
    {printf("Unknown command-line parameter '%s'\n", argv[argn]); /* exit(1); */ }
91
    {printf("Unknown command-line parameter '%s'\n", argv[argn]); /* exit(1); */ }
92
   argn = argn + 1;
92
   argn = argn + 1;
93
  }
93
  }
Lines 96-102 Link Here
96
  invocation_path = strdup(argv[0]);
96
  invocation_path = strdup(argv[0]);
97
  k = strlen(invocation_path)-1;
97
  k = strlen(invocation_path)-1;
98
  while ((k>0) && (invocation_path[k]!=slashchr)) k--;
98
  while ((k>0) && (invocation_path[k]!=slashchr)) k--;
99
@@ -1234,7 +1234,7 @@
99
@@ -1298,7 +1298,7 @@
100
  main_panel = 
100
  main_panel = 
101
  OtkMakePanel( bckgrnd, Otk_Raised, Otk_LightGray, 1, 7.5, 98, 87 );	/* Main Panel. */
101
  OtkMakePanel( bckgrnd, Otk_Raised, Otk_LightGray, 1, 7.5, 98, 87 );	/* Main Panel. */
102
  Otk_SetBorderThickness( main_panel, 0.25 );
102
  Otk_SetBorderThickness( main_panel, 0.25 );

Return to bug 154282