aboutsummaryrefslogtreecommitdiff
path: root/news/inn/files
diff options
context:
space:
mode:
authorDima Panov <fluffy@FreeBSD.org>2012-06-27 12:26:11 +0000
committerDima Panov <fluffy@FreeBSD.org>2012-06-27 12:26:11 +0000
commite46de722045c7edb44089d06800151db9d601910 (patch)
tree36e25766ac3bb99523007d76c093c865dca2ba26 /news/inn/files
parent3cd5f2def12fa348c979ddf8b631f5885a9fecfc (diff)
Notes
Diffstat (limited to 'news/inn/files')
-rw-r--r--news/inn/files/extra-patch-scripts_innreport.in18
-rw-r--r--news/inn/files/extra-patch-scripts_innreport_inn.pm11
-rw-r--r--news/inn/files/patch-configure63
3 files changed, 51 insertions, 41 deletions
diff --git a/news/inn/files/extra-patch-scripts_innreport.in b/news/inn/files/extra-patch-scripts_innreport.in
new file mode 100644
index 000000000000..a1573a52a5dc
--- /dev/null
+++ b/news/inn/files/extra-patch-scripts_innreport.in
@@ -0,0 +1,18 @@
+--- scripts/innreport.in.orig 2012-03-14 01:02:54.000000000 +0800
++++ scripts/innreport.in 2012-03-14 01:21:13.000000000 +0800
+@@ -674,7 +674,6 @@
+
+ # $[ ... The index of the first element in an array, and of the first
+ # character in a substring. Default is 0.
+- local $[ = 0;
+
+ # The 2 dates are near. The range is less than a few days that's why we
+ # can cheat to determine the order. It is only important if one date
+@@ -791,7 +790,6 @@
+
+ # Compare 2 filenames
+ sub filenamecmp {
+- local $[ = 0;
+ my ($la, $lb) = ($a, $b);
+ my ($ya) = $la =~ m/news-notice\.(\d+)\./o;
+ $ya += 100 if $ya < 90; # Try to pacify the year 2000 !
diff --git a/news/inn/files/extra-patch-scripts_innreport_inn.pm b/news/inn/files/extra-patch-scripts_innreport_inn.pm
new file mode 100644
index 000000000000..bbb4de57967a
--- /dev/null
+++ b/news/inn/files/extra-patch-scripts_innreport_inn.pm
@@ -0,0 +1,11 @@
+--- scripts/innreport_inn.pm.orig 2012-03-14 01:09:58.000000000 +0800
++++ scripts/innreport_inn.pm 2012-03-14 01:17:41.000000000 +0800
+@@ -2197,7 +2197,7 @@
+ # Compare 2 dates (+hour)
+ sub datecmp {
+ # ex: "May 12 06" for May 12, 6:00am
+- local($[) = 0;
++
+ # The 2 dates are near. The range is less than a few days that's why we
+ # can cheat to determine the order. It is only important if one date
+ # is in January and the other in December.
diff --git a/news/inn/files/patch-configure b/news/inn/files/patch-configure
index 0eed46af6376..a88a6aaa8058 100644
--- a/news/inn/files/patch-configure
+++ b/news/inn/files/patch-configure
@@ -1,42 +1,23 @@
---- configure.orig 2008-06-30 04:56:57.000000000 +1100
-+++ configure 2008-08-18 12:35:35.000000000 +1100
-@@ -7535,36 +7535,9 @@
- done
- done
+--- configure.orig 2010-03-25 06:10:36.000000000 +1000
++++ configure 2012-06-27 21:44:02.000000000 +1100
+@@ -15762,7 +15762,7 @@
+ echo $ECHO_N "checking for Berkeley DB location... $ECHO_C" >&6; }
+ if test x"$DB_DIR" = xyes ; then
+ for dir in $prefix /usr/local /usr ; do
+- if test -f "$dir/include/db.h" ; then
++ if test -f "$dir/include/${DB_VER}/db.h" ; then
+ DB_DIR=$dir
+ break
+ fi
+@@ -15773,9 +15773,9 @@
+ echo "$as_me: error: cannot find Berkeley DB" >&2;}
+ { (exit 1); exit 1; }; }
+ else
+- DB_CPPFLAGS="-I$DB_DIR/include"
++ DB_CPPFLAGS="-I$DB_DIR/include/${DB_VER}"
+ DB_LDFLAGS="-L$DB_DIR/lib"
+- DB_LIBS="-ldb"
++ DB_LIBS="-l${DB_LIB}"
+ { echo "$as_me:$LINENO: result: $DB_DIR" >&5
+ echo "${ECHO_T}$DB_DIR" >&6; }
fi
-- if test x"$BERKELEY_DB_DIR" = xyes ; then
-- for v in db46 db45 db44 db43 db42 db41 db4 db3 db2 ; do
-- if test -d "/usr/local/include/$v" ; then
-- BERKELEY_DB_LDFLAGS="-L/usr/local/lib"
-- BERKELEY_DB_CFLAGS="-I/usr/local/include/$v"
-- BERKELEY_DB_LIB="-l$v"
-- echo "$ac_t""FreeBSD locations" 1>&6
-- break
-- fi
-- done
-- if test x"$BERKELEY_DB_LIB" = x ; then
-- for v in db44 db43 db42 db41 db4 db3 db2 ; do
-- if test -d "/usr/include/$v" ; then
-- BERKELEY_DB_CFLAGS="-I/usr/include/$v"
-- BERKELEY_DB_LIB="-l$v"
-- echo "$ac_t""Linux locations" 1>&6
-- break
-- fi
-- done
-- if test x"$BERKELEY_DB_LIB" = x ; then
-- BERKELEY_DB_LIB=-ldb
-- echo "$ac_t""trying -ldb" 1>&6
-- fi
-- fi
-- else
-- BERKELEY_DB_LDFLAGS="-L$BERKELEY_DB_DIR/lib"
-- BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include"
-- BERKELEY_DB_LIB="-ldb"
-- echo "$ac_t""$BERKELEY_DB_DIR" 1>&6
-- fi
-+ BERKELEY_DB_LDFLAGS="-L$BERKELEY_DB_DIR/lib"
-+ BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include/${DB_VER}"
-+ BERKELEY_DB_LIB="-l${DB_LIB}"
- cat >> confdefs.h <<\EOF
- #define USE_BERKELEY_DB 1
- EOF