Package-Name: textutils
Homepage: http://www.gnu.org/software/textutils/
Source: gnu:///textutils/textutils-(\d+.\d+(.\d+)?).tar.gz $1
Repack:
	tar xzvfp "$(SOURCE)"
Compile:
	cp -p AUTHORS COPYING ChangeLog* NEWS README THANKS TODO "$(PREFIX)/"
	$(MAKE) -f ../Makefile configure
	$(MAKE)
	$(MAKE) install
Install:
	$(MAKE) instbin BIN="cat cksum comm csplit cut expand fmt fold head join md5sum nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc"
	ln -fs /usr/bin/cat /bin/
	$(MAKE) instlocale FILE=textutils
	$(MAKE) instman SECTION=1 MAN="cat cksum comm csplit cut expand fmt fold head join md5sum nl od paste pr ptx sha1sum sort split sum tac tail tr tsort unexpand uniq wc"
Patch: <<EOT
--- src/cat.c.old	2002-07-02 14:15:06 +0900
+++ src/cat.c	2003-05-14 17:38:35 +0900
@@ -550,9 +550,11 @@
   };
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/cksum.c.old	2002-07-02 14:15:06 +0900
+++ src/cksum.c	2003-05-14 17:38:35 +0900
@@ -300,9 +300,11 @@
   int errors = 0;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/csplit.c.old	2002-07-02 14:15:06 +0900
+++ src/csplit.c	2003-05-14 17:38:35 +0900
@@ -1368,9 +1368,11 @@
 #endif
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/cut.c.old	2002-07-02 14:15:06 +0900
+++ src/cut.c	2003-05-14 17:38:35 +0900
@@ -596,9 +596,11 @@
   int delim_specified = 0;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/expand.c.old	2002-07-02 14:15:06 +0900
+++ src/expand.c	2003-05-14 17:38:35 +0900
@@ -344,9 +344,11 @@
   tab_list = NULL;
   first_free_tab = 0;
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/fmt.c.old	2002-07-02 14:15:06 +0900
+++ src/fmt.c	2003-05-14 17:38:35 +0900
@@ -320,9 +320,11 @@
   int optchar;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/fold.c.old	2002-07-02 14:15:06 +0900
+++ src/fold.c	2003-05-14 17:38:35 +0900
@@ -239,9 +239,11 @@
   int errs = 0;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/head.c.old	2002-07-02 14:15:06 +0900
+++ src/head.c	2003-05-14 17:38:35 +0900
@@ -282,9 +282,11 @@
   int count_lines = 1;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/md5sum.c.old	2002-07-02 14:15:06 +0900
+++ src/md5sum.c	2003-05-14 17:38:35 +0900
@@ -504,9 +504,11 @@
 
   /* Setting values of global variables.  */
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/nl.c.old	2002-07-02 14:15:06 +0900
+++ src/nl.c	2003-05-14 17:38:35 +0900
@@ -463,9 +463,11 @@
   size_t len;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/od.c.old	2002-07-02 14:15:06 +0900
+++ src/od.c	2003-05-14 17:38:35 +0900
@@ -1630,9 +1630,11 @@
   uintmax_t pseudo_start IF_LINT (= 0);
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/paste.c.old	2002-07-02 14:15:06 +0900
+++ src/paste.c	2003-05-14 17:38:35 +0900
@@ -432,9 +432,11 @@
   char default_delims[2], zero_delims[3];
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/pr.c.old	2002-07-02 14:15:06 +0900
+++ src/pr.c	2003-05-14 17:38:35 +0900
@@ -861,9 +861,11 @@
 			       : COMMON_SHORT_OPTIONS "S:");
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/ptx.c.old	2002-01-22 20:02:17 +0900
+++ src/ptx.c	2003-05-14 17:38:35 +0900
@@ -1952,9 +1952,11 @@
   /* Decode program options.  */
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/split.c.old	2002-07-02 14:15:06 +0900
+++ src/split.c	2003-05-14 17:38:35 +0900
@@ -374,9 +374,11 @@
   int digits_optind = 0;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/sum.c.old	2002-07-02 14:15:06 +0900
+++ src/sum.c	2003-05-14 17:38:35 +0900
@@ -221,9 +221,11 @@
   int (*sum_func) PARAMS ((const char *, int)) = bsd_sum_file;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/tac.c.old	2002-07-02 14:15:06 +0900
+++ src/tac.c	2003-05-14 17:38:35 +0900
@@ -610,9 +610,11 @@
   int have_read_stdin = 0;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/tail.c.old	2002-07-29 17:40:21 +0900
+++ src/tail.c	2003-05-14 17:38:35 +0900
@@ -1589,9 +1589,11 @@
   int i;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/tr.c.old	2002-07-02 14:15:06 +0900
+++ src/tr.c	2003-05-14 17:38:35 +0900
@@ -1795,9 +1795,11 @@
   struct Spec_list *s2 = &buf2;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/tsort.c.old	2002-07-02 14:15:06 +0900
+++ src/tsort.c	2003-05-14 17:38:35 +0900
@@ -548,9 +548,11 @@
   int opt;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/unexpand.c.old	2002-07-02 14:15:48 +0900
+++ src/unexpand.c	2003-05-14 17:38:35 +0900
@@ -409,9 +409,11 @@
   bool obsolete_tablist = false;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/uniq.c.old	2002-07-02 14:15:06 +0900
+++ src/uniq.c	2003-05-14 17:38:35 +0900
@@ -396,9 +396,11 @@
 
   file[0] = file[1] = "-";
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
--- src/wc.c.old	2002-07-02 14:15:06 +0900
+++ src/wc.c	2003-05-14 17:38:35 +0900
@@ -523,9 +523,11 @@
   int nfiles;
 
   program_name = argv[0];
+#if defined(ENABLE_NLS)
   setlocale (LC_ALL, "");
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
+#endif
 
   atexit (close_stdout);
 
EOT

/bin/cat
/pkg/textutils/
/usr/bin/cat
/usr/bin/cksum
/usr/bin/comm
/usr/bin/csplit
/usr/bin/cut
/usr/bin/expand
/usr/bin/fmt
/usr/bin/fold
/usr/bin/head
/usr/bin/join
/usr/bin/md5sum
/usr/bin/nl
/usr/bin/od
/usr/bin/paste
/usr/bin/pr
/usr/bin/ptx
/usr/bin/sha1sum
/usr/bin/sort
/usr/bin/split
/usr/bin/sum
/usr/bin/tac
/usr/bin/tail
/usr/bin/tr
/usr/bin/tsort
/usr/bin/unexpand
/usr/bin/uniq
/usr/bin/wc
/usr/info/textutils.info*.gz
/usr/man/man1/cat.1.gz
/usr/man/man1/cksum.1.gz
/usr/man/man1/comm.1.gz
/usr/man/man1/csplit.1.gz
/usr/man/man1/cut.1.gz
/usr/man/man1/expand.1.gz
/usr/man/man1/fmt.1.gz
/usr/man/man1/fold.1.gz
/usr/man/man1/head.1.gz
/usr/man/man1/join.1.gz
/usr/man/man1/md5sum.1.gz
/usr/man/man1/nl.1.gz
/usr/man/man1/od.1.gz
/usr/man/man1/paste.1.gz
/usr/man/man1/pr.1.gz
/usr/man/man1/ptx.1.gz
/usr/man/man1/sha1sum.1.gz
/usr/man/man1/sort.1.gz
/usr/man/man1/split.1.gz
/usr/man/man1/sum.1.gz
/usr/man/man1/tac.1.gz
/usr/man/man1/tail.1.gz
/usr/man/man1/tr.1.gz
/usr/man/man1/tsort.1.gz
/usr/man/man1/unexpand.1.gz
/usr/man/man1/uniq.1.gz
/usr/man/man1/wc.1.gz
/usr/share/locale/*/LC_MESSAGES/
