summaryrefslogtreecommitdiff
path: root/biology/nut/patches/patch-ab
diff options
context:
space:
mode:
authorgarbled <garbled@pkgsrc.org>2000-01-11 02:56:33 +0000
committergarbled <garbled@pkgsrc.org>2000-01-11 02:56:33 +0000
commitca40abfb5a42b7773d5fff4cc65265e7a0d98f42 (patch)
tree915a18f4fb730f0d7d47d7f5bfb5c0633b1481e5 /biology/nut/patches/patch-ab
parent2259fe94f260d44c734926e2f2b7f1c9baa27623 (diff)
downloadpkgsrc-ca40abfb5a42b7773d5fff4cc65265e7a0d98f42.tar.gz
Initial import of nut program.
record what you eat and analyze your meals.
Diffstat (limited to 'biology/nut/patches/patch-ab')
-rw-r--r--biology/nut/patches/patch-ab24
1 files changed, 24 insertions, 0 deletions
diff --git a/biology/nut/patches/patch-ab b/biology/nut/patches/patch-ab
new file mode 100644
index 00000000000..a95de4bd21d
--- /dev/null
+++ b/biology/nut/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/01/11 02:56:33 garbled Exp $
+--- db.c.orig Mon Jan 10 15:24:03 2000
++++ db.c Mon Jan 10 15:42:12 2000
+@@ -32,6 +32,11 @@
+ #else
+ char nutdir1[]=NUTDIR ;
+ #endif
++#ifndef DBDIR
++char nutdir2[]=".nutdb";
++#else
++char nutdir2[]=DBDIR ;
++#endif
+
+ char rawfoodfile1[] = "abbrev.txt";
+ char rawnutfoodfile1[] = "nutfood.txt";
+@@ -454,7 +459,7 @@
+
+ void make_filenames(void)
+ {
+-sprintf(rawfoodfile,"%s/%s/%s",getenv("HOME"),nutdir1,rawfoodfile1);
++sprintf(rawfoodfile,"%s/%s",nutdir2,rawfoodfile1);
+ sprintf(rawnutfoodfile,"%s/%s/%s",getenv("HOME"),nutdir1,rawnutfoodfile1);
+ sprintf(foodfile,"%s/%s/%s",getenv("HOME"),nutdir1,foodfile1);
+ sprintf(mealfile,"%s/%s/%s",getenv("HOME"),nutdir1,mealfile1);