summaryrefslogtreecommitdiff
path: root/sysutils/linrename/files
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/linrename/files')
-rw-r--r--sysutils/linrename/files/patch-lib__nls.h42
-rw-r--r--sysutils/linrename/files/patch-misc-utils__rename.137
-rw-r--r--sysutils/linrename/files/patch-misc-utils__rename.c11
3 files changed, 90 insertions, 0 deletions
diff --git a/sysutils/linrename/files/patch-lib__nls.h b/sysutils/linrename/files/patch-lib__nls.h
new file mode 100644
index 000000000000..e8ef01d418ce
--- /dev/null
+++ b/sysutils/linrename/files/patch-lib__nls.h
@@ -0,0 +1,42 @@
+--- ./lib/nls.h.orig Thu Jul 4 23:03:26 2002
++++ ./lib/nls.h Mon Dec 25 14:54:11 2006
+@@ -1,7 +1,5 @@
+ int main(int argc, char *argv[]);
+
+-#include "../defines.h" /* for HAVE_locale_h */
+-
+ #ifndef PACKAGE
+ #define PACKAGE "util-linux"
+ #endif
+@@ -10,25 +8,12 @@
+ #define LOCALEDIR "/usr/share/locale"
+ #endif
+
+-#ifdef HAVE_locale_h
+-# include <locale.h>
+-#endif
++#include <locale.h>
+
+-#if defined MAY_ENABLE_NLS && !defined DISABLE_NLS
+-# include <libintl.h>
+-# define _(Text) gettext (Text)
+-# ifdef gettext_noop
+-# define N_(String) gettext_noop (String)
+-# else
+-# define N_(String) (String)
+-# endif
++#include <libintl.h>
++#define _(Text) gettext (Text)
++#ifdef gettext_noop
++# define N_(String) gettext_noop (String)
+ #else
+-# undef bindtextdomain
+-# define bindtextdomain(Domain, Directory) /* empty */
+-# undef textdomain
+-# define textdomain(Domain) /* empty */
+-# define _(Text) (Text)
+-# define N_(Text) (Text)
++# define N_(String) (String)
+ #endif
+-
+-
diff --git a/sysutils/linrename/files/patch-misc-utils__rename.1 b/sysutils/linrename/files/patch-misc-utils__rename.1
new file mode 100644
index 000000000000..58de31e772ea
--- /dev/null
+++ b/sysutils/linrename/files/patch-misc-utils__rename.1
@@ -0,0 +1,37 @@
+--- ./misc-utils/rename.1.orig Sun Aug 22 17:14:45 2004
++++ ./misc-utils/rename.1 Mon Dec 25 14:54:11 2006
+@@ -3,11 +3,11 @@
+ .\"
+ .TH RENAME 1 "1 January 2000" "" "Linux Programmer's Manual"
+ .SH NAME
+-rename \- Rename files
++linrename \- Rename files
+ .SH SYNOPSIS
+-.BI rename " from to file..."
++.BI linrename " from to file..."
+ .SH DESCRIPTION
+-.B rename
++.B linrename
+ will rename the specified files by replacing the first occurrence of
+ .I from
+ in their name by
+@@ -19,8 +19,8 @@
+
+ .RS
+ .nf
+-rename foo foo0 foo?
+-rename foo foo0 foo??
++linrename foo foo0 foo?
++linrename foo foo0 foo??
+ .fi
+ .RE
+
+@@ -30,7 +30,7 @@
+ And
+ .RS
+ .nf
+-rename .htm .html *.htm
++linrename .htm .html *.htm
+ .fi
+ .RE
+
diff --git a/sysutils/linrename/files/patch-misc-utils__rename.c b/sysutils/linrename/files/patch-misc-utils__rename.c
new file mode 100644
index 000000000000..de69e27ecd23
--- /dev/null
+++ b/sysutils/linrename/files/patch-misc-utils__rename.c
@@ -0,0 +1,11 @@
+--- ./misc-utils/rename.c.orig Tue May 9 23:39:03 2000
++++ ./misc-utils/rename.c Mon Dec 25 14:54:11 2006
+@@ -19,6 +19,8 @@
+ #include <errno.h>
+ #include "nls.h"
+
++#define util_linux_version "util-linux-2.12r"
++
+ static char *progname;
+
+ static int