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

(-)Makefile (-1 / +2 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	${UPPORTNAME:L}
8
PORTNAME=	${UPPORTNAME:L}
9
PORTVERSION=	7.00
9
PORTVERSION=	7.05
10
PORTREVISION=	0
10
CATEGORIES=	finance
11
CATEGORIES=	finance
11
MASTER_SITES=	SF/${PORTNAME}/OTS_2009/v${PORTVERSION}
12
MASTER_SITES=	SF/${PORTNAME}/OTS_2009/v${PORTVERSION}
12
DISTNAME=	${UPPORTNAME}2009_${PORTVERSION}
13
DISTNAME=	${UPPORTNAME}2009_${PORTVERSION}
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (OpenTaxSolver2009_7.00.tgz) = 4609c4d030c3daaa502b36bc11559d63
1
MD5 (OpenTaxSolver2009_7.05.tgz) = fe924f3b3a8b33309ca6e01b1acaf940
2
SHA256 (OpenTaxSolver2009_7.00.tgz) = ecda7974e7de8c1a1fc0eeb119196287767a3e9bbfe0531a44870e66cdc9d94c
2
SHA256 (OpenTaxSolver2009_7.05.tgz) = 5c63b7f63a4648651e314538e3a86e94ab784d7336e6421023fe3d375acb3d42
3
SIZE (OpenTaxSolver2009_7.00.tgz) = 349182
3
SIZE (OpenTaxSolver2009_7.05.tgz) = 431651
(-)pkg-plist (+39 lines)
Lines 1-8 Link Here
1
bin/ots_gui
1
bin/ots_gui
2
bin/taxsolve_CA_540_2009
2
bin/taxsolve_CA_540_2009
3
bin/taxsolve_MA_1_2009
4
bin/taxsolve_NC_D400_2009
5
bin/taxsolve_NJ_1040_2009
6
bin/taxsolve_NY_IT201_2009
7
bin/taxsolve_OH_IT1040_2009
8
bin/taxsolve_PA_40_2009
3
bin/taxsolve_US_1040_2009
9
bin/taxsolve_US_1040_2009
4
bin/taxsolve_US_1040_Sched_C_2009
10
bin/taxsolve_US_1040_Sched_C_2009
11
bin/taxsolve_VA_760_2009
5
share/ots/otslogo.ppm
12
share/ots/otslogo.ppm
13
share/ots/examples_and_templates/CA_540/CA_540_2009_example.dat
14
share/ots/examples_and_templates/CA_540/CA_540_2009_template.dat
15
share/ots/examples_and_templates/CA_540/README_CA_540.txt
16
share/ots/examples_and_templates/MA_1/README_MA_1.txt
17
share/ots/examples_and_templates/MA_1/ma_1_2009_example.dat
18
share/ots/examples_and_templates/MA_1/ma_1_2009_template.dat
19
share/ots/examples_and_templates/NC_D400/NC_400_2009_example.dat
20
share/ots/examples_and_templates/NC_D400/NC_400_2009_template.dat
21
share/ots/examples_and_templates/NC_D400/README_NC_400.txt
22
share/ots/examples_and_templates/NJ_1040/NJ_1040_2008_example.dat
23
share/ots/examples_and_templates/NJ_1040/NJ_1040_2008_template.dat
24
share/ots/examples_and_templates/NJ_1040/README_NJ_1040.txt
25
share/ots/examples_and_templates/NY_IT201/NY_IT201_2008_example.dat
26
share/ots/examples_and_templates/NY_IT201/NY_IT201_2008_template.dat
27
share/ots/examples_and_templates/NY_IT201/README_NY_IT201.txt
28
share/ots/examples_and_templates/OH_IT1040/OH_IT1040_2009_example.dat
29
share/ots/examples_and_templates/OH_IT1040/OH_IT1040_2009_template.dat
30
share/ots/examples_and_templates/OH_IT1040/README_OH_IT1040.txt
31
share/ots/examples_and_templates/PA_40/PA_40_2008_example.dat
32
share/ots/examples_and_templates/PA_40/PA_40_2008_template.dat
33
share/ots/examples_and_templates/PA_40/README_PA_40.txt
6
share/ots/examples_and_templates/US_1040/README_US_1040.txt
34
share/ots/examples_and_templates/US_1040/README_US_1040.txt
7
share/ots/examples_and_templates/US_1040/US_1040_example.dat
35
share/ots/examples_and_templates/US_1040/US_1040_example.dat
8
share/ots/examples_and_templates/US_1040/US_1040_template.dat
36
share/ots/examples_and_templates/US_1040/US_1040_template.dat
Lines 10-16 share/ots/examples_and_templates/US_1040 Link Here
10
share/ots/examples_and_templates/US_1040_Sched_C/README_US_1040_Sched_C.txt
38
share/ots/examples_and_templates/US_1040_Sched_C/README_US_1040_Sched_C.txt
11
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2009_example.dat
39
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2009_example.dat
12
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2009_template.dat
40
share/ots/examples_and_templates/US_1040_Sched_C/US_1040Sched_C_2009_template.dat
41
share/ots/examples_and_templates/VA_760/README_VA_760.txt
42
share/ots/examples_and_templates/VA_760/VA_760_2009_example.dat
43
share/ots/examples_and_templates/VA_760/VA_760_2009_template.dat
44
@dirrm share/ots/examples_and_templates/VA_760
13
@dirrm share/ots/examples_and_templates/US_1040_Sched_C
45
@dirrm share/ots/examples_and_templates/US_1040_Sched_C
14
@dirrm share/ots/examples_and_templates/US_1040
46
@dirrm share/ots/examples_and_templates/US_1040
47
@dirrm share/ots/examples_and_templates/PA_40
48
@dirrm share/ots/examples_and_templates/OH_IT1040
49
@dirrm share/ots/examples_and_templates/NY_IT201
50
@dirrm share/ots/examples_and_templates/NJ_1040
51
@dirrm share/ots/examples_and_templates/NC_D400
52
@dirrm share/ots/examples_and_templates/MA_1
53
@dirrm share/ots/examples_and_templates/CA_540
15
@dirrm share/ots/examples_and_templates
54
@dirrm share/ots/examples_and_templates
16
@dirrm share/ots
55
@dirrm share/ots
(-)files/patch-src-GUI-ots_gui.c (-10 / +86 lines)
Lines 1-28 Link Here
1
--- src/GUI/ots_gui.c.orig	2008-02-10 12:57:32.000000000 -0700
1
--- src/GUI/ots_gui.c.orig	2010-03-02 06:46:32.000000000 -0700
2
+++ src/GUI/ots_gui.c	2008-02-19 18:17:30.000000000 -0700
2
+++ src/GUI/ots_gui.c	2010-03-08 17:55:11.000000000 -0700
3
@@ -1026,7 +1026,7 @@
3
@@ -638,7 +638,7 @@
4
  /* Now create enough tabbed-panels to hold all the lines. */
5
   npanels = nlines / lines_per_page + 1;
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); }
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 );
10
   TabbedPanel = Panels;
11
 
12
@@ -698,7 +698,7 @@
13
      switch (entry->kind)
14
       {
15
        case VKIND_FLOAT:  // printf("Formbox: '%s'\n", messg);
16
-		sprintf(messg, "%12.2f", entry->value ); 
17
+		snprintf(messg, sizeof(messg), "%12.2f", entry->value ); 
18
 		pos_x = leftmargin;
19
 		leftmargin = leftmargin + box_width + 1.5;
20
 		pos_y = (float)linenum * 9.0 + 6.5;
21
@@ -986,9 +986,9 @@
22
    return;   
23
   }
24
  if (PLATFORM_KIND==Posix_Platform)
25
-  sprintf(cmd,"%s %s &", taxsolvecmd, working_file );
26
+  snprintf(cmd, sizeof(cmd), "%s %s &", taxsolvecmd, working_file );
27
  else
28
-  sprintf(cmd,"%s %s", taxsolvecmd, working_file );
29
+  snprintf(cmd, sizeof(cmd), "%s %s", taxsolvecmd, working_file );
30
 
31
  printf("Invoking '%s'\n", cmd );
32
  system(cmd);	/* Invoke the TaxSolver. */
33
@@ -1022,7 +1022,7 @@
34
 
35
 void togprntcmd_in(void *x)
36
 { 
37
- sprintf(printer_command,"%s %s", base_printer_command, wrkingfname);
38
+ snprintf(printer_command, sizeof(printer_command), "%s %s", base_printer_command, wrkingfname);
39
  Otk_Modify_Text( printerformbox, printer_command );
40
 }
41
 
42
@@ -1030,7 +1030,7 @@
43
 { char tmpstr[MaxFname];
44
   int k;
45
  predict_output_filename(wrkingfname,tmpstr);
46
- sprintf(printer_command,"%s %s", base_printer_command, tmpstr);
47
+ snprintf(printer_command, sizeof(printer_command), "%s %s", base_printer_command, tmpstr);
48
  Otk_Modify_Text( printerformbox, printer_command );
49
 }
50
 
51
@@ -1058,7 +1058,7 @@
52
  Otk_Add_BoundingBox( printpopup, Otk_Blue, 1.0, 18.0, 16.0, 63.0, 47.0 );
53
 
54
  if (working_file==0) strcpy(wrkingfname,filename_dat); else strcpy(wrkingfname,working_file);
55
- sprintf(printer_command,"%s %s", base_printer_command, wrkingfname);
56
+ snprintf(printer_command, sizeof(printer_command), "%s %s", base_printer_command, wrkingfname);
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 );
60
@@ -1117,15 +1117,15 @@
61
    if (k>0) k--;
62
    while ((k>0) && (tmpstr[k]!=slashchr)) k--;
63
    if (tmpstr[k]==slashchr)  tmpstr[k+1] = '\0';
64
-   else  {sprintf(tmpstr,".%c", slashchr);}
65
-   sprintf(directory_dat,"%sexamples_and_templates%c", tmpstr, slashchr);
66
+   else  {snprintf(tmpstr, sizeof(tmpstr), ".%c", 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 );
69
    return;
4
   }
70
   }
5
  else
71
  else
6
   {
72
   {
73
    selected_other = 0;
7
-   sprintf(tmpstr,"%s%s", invocation_path, strg);
74
-   sprintf(tmpstr,"%s%s", invocation_path, strg);
8
+   snprintf(tmpstr, sizeof(tmpstr), "%s%s", invocation_path, strg);
75
+   snprintf(tmpstr, sizeof(tmpstr), "%s%s", invocation_path, strg);
9
    printf("Setting Tax Program to be: '%s'\n", tmpstr);
76
    printf("Setting Tax Program to be: '%s'\n", tmpstr);
10
    taxsolvecmd = strdup(tmpstr);
77
    taxsolvecmd = strdup(tmpstr);
11
    strcpy(taxsolvestrng,tmpstr);
78
    strcpy(taxsolvestrng,tmpstr);
12
@@ -1037,8 +1037,8 @@
79
@@ -1136,8 +1136,8 @@
13
    if (k>0) k--;
80
    if (k>0) k--;
14
    while ((k>0) && (tmpstr[k]!=slashchr)) k--;
81
    while ((k>0) && (tmpstr[k]!=slashchr)) k--;
15
    if (tmpstr[k]==slashchr)  tmpstr[k+1] = '\0';
82
    if (tmpstr[k]==slashchr)  tmpstr[k+1] = '\0';
16
-   else  {sprintf(tmpstr,".%c", slashchr);}
83
-   else  {sprintf(tmpstr,".%c", slashchr);}
17
-   sprintf(directory_dat,"%sexamples_and_templates%c", tmpstr, slashchr);
84
-   sprintf(directory_dat,"%sexamples_and_templates%c", tmpstr, slashchr);
18
+   else  {snprintf(tmpstr, sizeof(tmpstr), ".%c", slashchr);}
85
+   else  {snprintf(tmpstr, sizeof(tmpstr), ".%c", slashchr);}
19
+   snprintf(directory_dat, sizeof(directory_dat), "%sexamples_and_templates%c", "%%PREFIX%%/share/ots/", slashchr);
86
+   snprintf(directory_dat, sizeof(directory_dat), "%sexamples_and_templates%c", tmpstr, slashchr);
20
    /* CA_540  MA_1  NC_400  NJ_1040  NY_IT201  OH_1040  PA_40  US_1040  US_1040_Sched_C  VA_760 */
87
 
21
    if (strstr(strg,"CA_540")) strcat(directory_dat,"CA_540"); else
88
    sel = strstr( strg, "_2009" );
22
    if (strstr(strg,"MA_1")) strcat(directory_dat,"MA_1"); else
89
    sel[0] = '\0';
23
@@ -1118,7 +1118,7 @@
90
@@ -1208,7 +1208,7 @@
91
    {printf("Unknown command-line parameter '%s'\n", argv[argn]); /* exit(1); */ }
92
   argn = argn + 1;
93
  }
94
- sprintf(vrsnmssg,"OTS GUI v%1.2f", version);  printf("%s\n\n",vrsnmssg);
95
+ snprintf(vrsnmssg, sizeof(vrsnmssg), "OTS GUI v%1.2f", version);  printf("%s\n\n",vrsnmssg);
96
  invocation_path = strdup(argv[0]);
97
  k = strlen(invocation_path)-1;
98
  while ((k>0) && (invocation_path[k]!=slashchr)) k--;
99
@@ -1234,7 +1234,7 @@
24
  main_panel = 
100
  main_panel = 
25
  OtkMakePanel( OtkOuterWindow, 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. */
26
  Otk_SetBorderThickness( main_panel, 0.25 );
102
  Otk_SetBorderThickness( main_panel, 0.25 );
27
- sprintf(tmpstr,"%s..%csrc%cGUI%cotslogo.ppm", invocation_path, slashchr, slashchr, slashchr );
103
- sprintf(tmpstr,"%s..%csrc%cGUI%cotslogo.ppm", invocation_path, slashchr, slashchr, slashchr );
28
+ snprintf(tmpstr, sizeof(tmpstr), "%%PREFIX%%/share/ots/otslogo.ppm");
104
+ snprintf(tmpstr, sizeof(tmpstr), "%%PREFIX%%/share/ots/otslogo.ppm");
(-)files/patch-src-Makefile.unix (-18 lines)
Removed Link Here
1
--- src/Makefile.unix.orig	2010-01-05 22:20:59.000000000 -0700
2
+++ src/Makefile.unix	2010-01-25 12:12:00.000000000 -0700
3
@@ -20,6 +20,7 @@
4
 
5
 all: ../bin/taxsolve_US_1040_2009 \
6
      ../bin/taxsolve_US_1040_Sched_C_2009 \
7
+     ../bin/taxsolve_CA_540_2009 
8
 #     ../bin/taxsolve_NC_D400_2009 \
9
 #     ../bin/taxsolve_NJ_1040_2009 \
10
 #     ../bin/taxsolve_PA_40_2009 \
11
@@ -28,7 +29,6 @@
12
 #     ../bin/taxsolve_NY_IT201_2009 \
13
 #     ../bin/taxsolve_MA_1_2009 \
14
 #     ../bin/taxsolve_US_8829 \
15
-     ../bin/taxsolve_CA_540_2009 
16
 
17
 
18
 ../bin/taxsolve_US_1040_2009:         taxsolve_US_1040_2009.c          $(OBJS)

Return to bug 144569