tizen 2.3.1 release tizen_2.3.1 submit/tizen_2.3.1/20150915.075522 tizen_2.3.1_release
authorjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 13:06:59 +0000 (22:06 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Tue, 8 Sep 2015 13:06:59 +0000 (22:06 +0900)
packaging/coreutils-6.9-smack.patch [new file with mode: 0644]
packaging/coreutils.changes [deleted file]
packaging/coreutils.spec [deleted file]
packaging/mktemp-1.5.tar.gz [changed mode: 0644->0755]
packaging/tizen-coreutils.manifest [new file with mode: 0644]
packaging/tizen-coreutils.spec

diff --git a/packaging/coreutils-6.9-smack.patch b/packaging/coreutils-6.9-smack.patch
new file mode 100644 (file)
index 0000000..f24d06e
--- /dev/null
@@ -0,0 +1,928 @@
+diff -Nuarp tizen-coreutils/src/copy.c tizen-coreutils-smack/src/copy.c
+--- tizen-coreutils/src/copy.c 2012-11-30 11:18:57.473521424 +0200
++++ tizen-coreutils-smack/src/copy.c   2012-11-30 11:26:01.601502515 +0200
+@@ -53,6 +53,7 @@
+ #include "utimens.h"
+ #include "xreadlink.h"
+ #include "yesno.h"
++#include "smack.h"
+ #ifndef HAVE_FCHOWN
+ # define HAVE_FCHOWN false
+@@ -570,6 +574,28 @@ copy_reg (char const *src_name, char con
+       }
+     }
++  if (x->preserve_context)
++    {
++      char src_context[SMACK_LABELLEN];
++      char dst_context[SMACK_LABELLEN];
++
++      if (smack_of_fd (source_desc, src_context, SMACK_LABELLEN) < 0)
++        {
++          if (x->require_preserve)
++            ; //fail silently now // return_val = false;
++        }
++      else if (smack_of_fd (dest_desc, dst_context, SMACK_LABELLEN) < 0)
++        {
++          if (x->require_preserve)
++            ; //fail silently now // return_val = false;
++        }
++      else if (strcmp(src_context, dst_context))
++        {
++          if (smack_to_fd(dest_desc, src_context) < 0 && x->require_preserve)
++            ; //fail silently now // return_val = false;
++        }
++    }
++
+ close_src_and_dst_desc:
+   if (close (dest_desc) < 0)
+     {
+diff -Nuarp tizen-coreutils/src/copy.h tizen-coreutils-smack/src/copy.h
+--- tizen-coreutils/src/copy.h 2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/copy.h   2012-11-30 11:20:39.837516860 +0200
+@@ -128,6 +128,10 @@ struct cp_options
+   bool preserve_mode;
+   bool preserve_timestamps;
++  /* If true, attempt to give the copies the original files'
++     security context. */
++  bool preserve_context;
++
+   /* Enabled for mv, and for cp by the --preserve=links option.
+      If true, attempt to preserve in the destination files any
+      logical hard links between the source files.  If used with cp's
+diff -Nuarp tizen-coreutils/src/cp.c tizen-coreutils-smack/src/cp.c
+--- tizen-coreutils/src/cp.c   2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/cp.c     2012-11-30 11:20:39.837516860 +0200
+@@ -35,6 +35,7 @@
+ #include "stat-time.h"
+ #include "utimens.h"
+ #include "acl.h"
++#include "smack.h"
+ #define ASSIGN_BASENAME_STRDUPA(Dest, File_name)      \
+   do                                                  \
+@@ -191,7 +192,7 @@ Mandatory arguments to long options are
+   -p                           same as --preserve=mode,ownership,timestamps\n\
+       --preserve[=ATTR_LIST]   preserve the specified attributes (default:\n\
+                                  mode,ownership,timestamps), if possible\n\
+-                                 additional attributes: links, all\n\
++                                 additional attributes: links, context, all\n\
+ "), stdout);
+       fputs (_("\
+       --no-preserve=ATTR_LIST  don't preserve the specified attributes\n\
+@@ -317,6 +318,27 @@ re_protect (char const *const_dst_name,
+           }
+       }
++      if (x->preserve_context)
++        {
++          char src_context[SMACK_LABELLEN];
++          char dst_context[SMACK_LABELLEN];
++
++          if (smack_of_file (src_name, src_context, SMACK_LABELLEN) < 0 ||
++              smack_of_file (dst_name, dst_context, SMACK_LABELLEN) < 0)
++            {
++            ; //error (0, errno, _("failed to preserve context for %s"),
++              //     quote (dst_name));
++            //return false;
++            }
++          if (strcmp (src_context, dst_context) &&
++              smack_to_file (dst_name, src_context) < 0)
++            {
++            ; //error (0, errno, _("failed to preserve context for %s"),
++              //     quote (dst_name));
++            //return false;
++            }
++        }
++
+       if (x->preserve_ownership)
+       {
+         if (chown (dst_name, src_sb.st_uid, src_sb.st_gid) != 0
+@@ -749,6 +771,7 @@ cp_option_init (struct cp_options *x)
+   x->preserve_links = false;
+   x->preserve_mode = false;
+   x->preserve_timestamps = false;
++  x->preserve_context = false;
+   x->require_preserve = false;
+   x->recursive = false;
+@@ -777,18 +800,19 @@ decode_preserve_arg (char const *arg, st
+       PRESERVE_TIMESTAMPS,
+       PRESERVE_OWNERSHIP,
+       PRESERVE_LINK,
++      PRESERVE_CONTEXT,
+       PRESERVE_ALL
+     };
+   static enum File_attribute const preserve_vals[] =
+     {
+       PRESERVE_MODE, PRESERVE_TIMESTAMPS,
+-      PRESERVE_OWNERSHIP, PRESERVE_LINK, PRESERVE_ALL
++      PRESERVE_OWNERSHIP, PRESERVE_LINK, PRESERVE_CONTEXT, PRESERVE_ALL
+     };
+   /* Valid arguments to the `--preserve' option. */
+   static char const* const preserve_args[] =
+     {
+       "mode", "timestamps",
+-      "ownership", "links", "all", NULL
++      "ownership", "links", "context", "all", NULL
+     };
+   ARGMATCH_VERIFY (preserve_args, preserve_vals);
+@@ -824,11 +848,16 @@ decode_preserve_arg (char const *arg, st
+         x->preserve_links = on_off;
+         break;
++      case PRESERVE_CONTEXT:
++        x->preserve_context = on_off;
++        break;
++
+       case PRESERVE_ALL:
+         x->preserve_mode = on_off;
+         x->preserve_timestamps = on_off;
+         x->preserve_ownership = on_off;
+         x->preserve_links = on_off;
++        x->preserve_context = on_off;
+         break;
+       default:
+@@ -885,6 +914,8 @@ main (int argc, char **argv)
+         x.preserve_ownership = true;
+         x.preserve_mode = true;
+         x.preserve_timestamps = true;
++          /* Context preservation may be draconian */
++        x.preserve_context = true;
+         x.require_preserve = true;
+         x.recursive = true;
+         break;
+diff -Nuarp tizen-coreutils/src/id.c tizen-coreutils-smack/src/id.c
+--- tizen-coreutils/src/id.c   2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/id.c     2012-11-30 11:20:39.837516860 +0200
+@@ -29,6 +29,7 @@
+ #include "system.h"
+ #include "error.h"
+ #include "quote.h"
++#include "smack.h"
+ /* The official name of this program (e.g., no `g' prefix).  */
+ #define PROGRAM_NAME "id"
+@@ -40,6 +41,7 @@ int getugroups ();
+ static void print_user (uid_t uid);
+ static void print_group (gid_t gid);
+ static void print_group_list (const char *username);
++static void print_context (void);
+ static void print_full_info (const char *username);
+ /* The name this program was run with. */
+@@ -52,11 +54,15 @@ static bool use_name = false;
+ static uid_t ruid, euid;
+ static gid_t rgid, egid;
++/* The security "context" to print. */
++static char context[SMACK_LABELLEN];
++
+ /* True unless errors have been encountered.  */
+ static bool ok = true;
+ static struct option const longopts[] =
+ {
++  {"context", no_argument, NULL, 'Z'},
+   {"group", no_argument, NULL, 'g'},
+   {"groups", no_argument, NULL, 'G'},
+   {"name", no_argument, NULL, 'n'},
+@@ -80,6 +86,7 @@ usage (int status)
+ Print information for USERNAME, or the current user.\n\
+ \n\
+   -a              ignore, for compatibility with other versions\n\
++  -Z, --context   print only the security context\n\
+   -g, --group     print only the effective group ID\n\
+   -G, --groups    print all group IDs\n\
+   -n, --name      print a name instead of a number, for -ugG\n\
+@@ -102,6 +109,8 @@ main (int argc, char **argv)
+ {
+   int optc;
++  /* If true, output only the security context. -Z */
++  bool just_context = false;
+   /* If true, output the list of all group IDs. -G */
+   bool just_group_list = false;
+   /* If true, output only the group ID(s). -g */
+@@ -119,13 +128,16 @@ main (int argc, char **argv)
+   atexit (close_stdout);
+-  while ((optc = getopt_long (argc, argv, "agnruG", longopts, NULL)) != -1)
++  while ((optc = getopt_long (argc, argv, "agnruGZ", longopts, NULL)) != -1)
+     {
+       switch (optc)
+       {
+       case 'a':
+         /* Ignore -a, for compatibility with SVR4.  */
+         break;
++      case 'Z':
++        just_context = true;
++        break;
+       case 'g':
+         just_group = true;
+         break;
+@@ -148,8 +160,8 @@ main (int argc, char **argv)
+       }
+     }
+-  if (just_user + just_group + just_group_list > 1)
+-    error (EXIT_FAILURE, 0, _("cannot print only user and only group"));
++  if (just_user + just_group + just_group_list + just_context > 1)
++    error (EXIT_FAILURE, 0, _("cannot print multiple exclusive fields"));
+   if (just_user + just_group + just_group_list == 0 && (use_real | use_name))
+     error (EXIT_FAILURE, 0,
+@@ -183,6 +195,8 @@ main (int argc, char **argv)
+     print_group (use_real ? rgid : egid);
+   else if (just_group_list)
+     print_group_list (argv[optind]);
++  else if (just_context)
++    print_context ();
+   else
+     print_full_info (argv[optind]);
+   putchar ('\n');
+@@ -324,6 +338,18 @@ print_group_list (const char *username)
+ #endif /* HAVE_GETGROUPS */
+ }
++/* Print the security context. */
++
++static void
++print_context (void)
++{
++
++  if (smack_of_proc(-1, context, sizeof (context)) < 1 || strlen(context) < 1)
++    printf ("<secuirty context is unavailable>");
++  else
++    printf ("%s", context);
++}
++
+ /* Print all of the info about the user's user and group IDs. */
+ static void
+@@ -385,4 +411,7 @@ print_full_info (const char *username)
+     free (groups);
+   }
+ #endif /* HAVE_GETGROUPS */
++
++  if (smack_of_proc(-1, context, sizeof (context)) > 0 && strlen(context) > 0)
++    printf (" context=\"%s\"", context);
+ }
+diff -Nuarp tizen-coreutils/src/install.c tizen-coreutils-smack/src/install.c
+--- tizen-coreutils/src/install.c      2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/install.c        2012-11-30 11:20:39.837516860 +0200
+@@ -39,6 +39,7 @@
+ #include "stat-time.h"
+ #include "utimens.h"
+ #include "xstrtol.h"
++#include "smack.h"
+ /* The official name of this program (e.g., no `g' prefix).  */
+ #define PROGRAM_NAME "install"
+@@ -115,6 +116,9 @@ static mode_t dir_mode = DEFAULT_MODE;
+    or S_ISGID bits.  */
+ static mode_t dir_mode_bits = CHMOD_MODE_BITS;
++/* The security context to give all files. */
++static char *context;
++
+ /* If true, strip executable files after copying them. */
+ static bool strip_files;
+@@ -124,6 +128,7 @@ static bool dir_arg;
+ static struct option const long_options[] =
+ {
+   {"backup", optional_argument, NULL, 'b'},
++  {"context", required_argument, NULL, 'Z'},
+   {"directory", no_argument, NULL, 'd'},
+   {"group", required_argument, NULL, 'g'},
+   {"mode", required_argument, NULL, 'm'},
+@@ -155,6 +160,7 @@ cp_option_init (struct cp_options *x)
+   x->preserve_links = false;
+   x->preserve_mode = false;
+   x->preserve_timestamps = false;
++  x->preserve_context = false;
+   x->require_preserve = false;
+   x->recursive = false;
+   x->sparse_mode = SPARSE_AUTO;
+@@ -243,7 +249,7 @@ main (int argc, char **argv)
+      we'll actually use backup_suffix_string.  */
+   backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX");
+-  while ((optc = getopt_long (argc, argv, "bcsDdg:m:o:pt:TvS:", long_options,
++  while ((optc = getopt_long (argc, argv, "bcsDdg:m:o:pt:TvS:Z:", long_options,
+                             NULL)) != -1)
+     {
+       switch (optc)
+@@ -305,6 +311,9 @@ main (int argc, char **argv)
+       case 'T':
+         no_target_directory = true;
+         break;
++      case 'Z':
++        context = optarg;
++        break;
+       case_GETOPT_HELP_CHAR;
+       case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS);
+       default:
+@@ -520,6 +529,8 @@ change_attributes (char const *name)
+     error (0, errno, _("cannot change ownership of %s"), quote (name));
+   else if (chmod (name, mode) != 0)
+     error (0, errno, _("cannot change permissions of %s"), quote (name));
++  else if (context && smack_to_file (name, context) < 0)
++   ; // error (0, errno, _("cannot change security context of %s"), quote (name));
+   else
+     return true;
+@@ -686,6 +697,7 @@ Mandatory arguments to long options are
+   -t, --target-directory=DIRECTORY  copy all SOURCE arguments into DIRECTORY\n\
+   -T, --no-target-directory  treat DEST as a normal file\n\
+   -v, --verbose       print the name of each directory as it is created\n\
++  -Z, --context=CONTEXT  set the security context on all destination files\n\
+ "), stdout);
+       fputs (HELP_OPTION_DESCRIPTION, stdout);
+       fputs (VERSION_OPTION_DESCRIPTION, stdout);
+diff -Nuarp tizen-coreutils/src/ls.c tizen-coreutils-smack/src/ls.c
+--- tizen-coreutils/src/ls.c   2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/ls.c     2012-11-30 11:20:39.841516860 +0200
+@@ -104,6 +104,7 @@
+ #include "wcwidth.h"
+ #include "xstrtol.h"
+ #include "xreadlink.h"
++#include "smack.h"
+ #define PROGRAM_NAME (ls_mode == LS_LS ? "ls" \
+                     : (ls_mode == LS_MULTI_COL \
+@@ -177,6 +178,9 @@ struct fileinfo
+     /* For long listings, true if the file has an access control list.  */
+     bool have_acl;
+ #endif
++
++    /* Security context */
++    char context[SMACK_LABELLEN];
+   };
+ #if USE_ACL
+@@ -339,6 +343,7 @@ static int nlink_width;
+ static int owner_width;
+ static int group_width;
+ static int author_width;
++static int context_width;
+ static int major_device_number_width;
+ static int minor_device_number_width;
+ static int file_size_width;
+@@ -434,6 +439,10 @@ static bool print_owner = true;
+ static bool print_author;
++/* True means to display the security context.  */
++
++static bool print_context;
++
+ /* True means to display group information.  -G and -o turn this off.  */
+ static bool print_group = true;
+@@ -1514,7 +1523,7 @@ decode_switches (int argc, char **argv)
+   }
+   while ((c = getopt_long (argc, argv,
+-                         "abcdfghiklmnopqrstuvw:xABCDFGHI:LNQRST:UX1",
++                         "abcdfghiklmnopqrstuvw:xABCDFGHI:LNQRST:UXZ1",
+                          long_options, NULL)) != -1)
+     {
+       switch (c)
+@@ -1717,6 +1726,10 @@ decode_switches (int argc, char **argv)
+         sort_type_specified = true;
+         break;
++      case 'Z':
++          print_context = true;
++        break;
++
+       case '1':
+         /* -1 has no effect after -l.  */
+         if (format != long_format)
+@@ -2574,6 +2587,7 @@ gobble_file (char const *name, enum file
+       /* Command line dereferences are already taken care of by the above
+        assertion that the inode number is not yet known.  */
+       || (print_inode && inode == NOT_AN_INODE_NUMBER)
++      || print_context
+       || (format_needs_type
+         && (type == unknown || command_line_arg
+             /* --indicator-style=classify (aka -F)
+@@ -2605,6 +2619,7 @@ gobble_file (char const *name, enum file
+       switch (dereference)
+       {
+       case DEREF_ALWAYS:
++          err = smack_of_file_follow(absolute_name, f->context, SMACK_LABELLEN);
+         err = stat (absolute_name, &f->stat);
+         break;
+@@ -2613,6 +2628,8 @@ gobble_file (char const *name, enum file
+         if (command_line_arg)
+           {
+             bool need_lstat;
++              err = smack_of_file_follow(absolute_name, f->context,
++                                         SMACK_LABELLEN);
+             err = stat (absolute_name, &f->stat);
+             if (dereference == DEREF_COMMAND_LINE_ARGUMENTS)
+@@ -2631,6 +2648,7 @@ gobble_file (char const *name, enum file
+           }
+       default: /* DEREF_NEVER */
++          err = smack_of_file(absolute_name, f->context, SMACK_LABELLEN);
+         err = lstat (absolute_name, &f->stat);
+         break;
+       }
+@@ -2738,6 +2756,13 @@ gobble_file (char const *name, enum file
+           author_width = len;
+       }
++      if (print_context)
++      {
++        int len = strlen (f->context);
++        if (context_width < len)
++          context_width = len;
++      }
++
+       {
+       char buf[INT_BUFSIZE_BOUND (uintmax_t)];
+       int len = strlen (umaxtostr (f->stat.st_nlink, buf));
+@@ -3463,7 +3488,7 @@ print_long_format (const struct fileinfo
+   DIRED_INDENT ();
+-  if (print_owner | print_group | print_author)
++  if (print_owner | print_group | print_author | print_context)
+     {
+       DIRED_FPUTS (buf, stdout, p - buf);
+@@ -3476,6 +3501,9 @@ print_long_format (const struct fileinfo
+       if (print_author)
+       format_user (f->stat.st_author, author_width, f->stat_ok);
++      if (print_context)
++        format_user_or_group(f->context, 0, context_width);
++
+       p = buf;
+     }
+@@ -3812,6 +3840,9 @@ print_file_name_and_frills (const struct
+           human_readable (ST_NBLOCKS (f->stat), buf, human_output_opts,
+                           ST_NBLOCKSIZE, output_block_size));
++  if (print_context)
++    printf ("%*s ", format == with_commas ? 0 : context_width, f->context);
++
+   print_name_with_quoting (f->name, FILE_OR_LINK_MODE (f), f->linkok,
+                          f->stat_ok, f->filetype, NULL);
+@@ -3975,6 +4006,9 @@ length_of_file_name_and_frills (const st
+                                         output_block_size))
+               : block_size_width);
++  if (print_context)
++    len += 1 + (format == with_commas ? strlen (f->context) : context_width);
++
+   quote_name (NULL, f->name, filename_quoting_options, &name_width);
+   len += name_width;
+@@ -4403,6 +4437,7 @@ Mandatory arguments to long options are
+   -w, --width=COLS           assume screen width instead of current value\n\
+   -x                         list entries by lines instead of by columns\n\
+   -X                         sort alphabetically by entry extension\n\
++  -Z                         print the security context\n\
+   -1                         list one file per line\n\
+ "), stdout);
+       fputs (HELP_OPTION_DESCRIPTION, stdout);
+diff -Nuarp tizen-coreutils/src/mkdir.c tizen-coreutils-smack/src/mkdir.c
+--- tizen-coreutils/src/mkdir.c        2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/mkdir.c  2012-11-30 11:20:39.841516860 +0200
+@@ -29,6 +29,7 @@
+ #include "modechange.h"
+ #include "quote.h"
+ #include "savewd.h"
++#include "smack.h"
+ /* The official name of this program (e.g., no `g' prefix).  */
+ #define PROGRAM_NAME "mkdir"
+@@ -40,6 +41,7 @@ char *program_name;
+ static struct option const longopts[] =
+ {
++  {"context", required_argument, NULL, 'Z'},
+   {"mode", required_argument, NULL, 'm'},
+   {"parents", no_argument, NULL, 'p'},
+   {"verbose", no_argument, NULL, 'v'},
+@@ -65,9 +67,10 @@ Create the DIRECTORY(ies), if they do no
+ Mandatory arguments to long options are mandatory for short options too.\n\
+ "), stdout);
+       fputs (_("\
+-  -m, --mode=MODE   set file mode (as in chmod), not a=rwx - umask\n\
+-  -p, --parents     no error if existing, make parent directories as needed\n\
+-  -v, --verbose     print a message for each created directory\n\
++  -Z, --context=CONTEXT  set security context\n\
++  -m, --mode=MODE      set file mode (as in chmod), not a=rwx - umask\n\
++  -p, --parents        no error if existing, make parent directories as needed\n\
++  -v, --verbose        print a message for each created directory\n\
+ "), stdout);
+       fputs (HELP_OPTION_DESCRIPTION, stdout);
+       fputs (VERSION_OPTION_DESCRIPTION, stdout);
+@@ -92,6 +95,9 @@ struct mkdir_options
+   /* File mode bits affected by MODE.  */
+   mode_t mode_bits;
++  /* Security context.  */
++  char *context;
++
+   /* If not null, format to use when reporting newly made directories.  */
+   char const *created_directory_format;
+ };
+@@ -101,6 +107,17 @@ static void
+ announce_mkdir (char const *dir, void *options)
+ {
+   struct mkdir_options const *o = options;
++
++  if (o->context) {
++  char *sep = strrchr(dir, '/');
++  int res = 0;
++  if ((sep != NULL) && (strlen(sep) != strlen(dir)))
++    res = smack_to_file (sep + 1, o->context);
++  else 
++    res = smack_to_file (dir, o->context);
++  if (res < 0)
++    ; // error (0, errno, _("setting directory context failed"));
++  }
+   if (o->created_directory_format)
+     error (0, 0, o->created_directory_format, quote (dir));
+ }
+@@ -144,6 +155,7 @@ main (int argc, char **argv)
+   options.make_ancestor_function = NULL;
+   options.mode = S_IRWXUGO;
+   options.mode_bits = 0;
++  options.context = NULL;
+   options.created_directory_format = NULL;
+   initialize_main (&argc, &argv);
+@@ -154,10 +166,13 @@ main (int argc, char **argv)
+   atexit (close_stdout);
+-  while ((optc = getopt_long (argc, argv, "pm:v", longopts, NULL)) != -1)
++  while ((optc = getopt_long (argc, argv, "Z:pm:v", longopts, NULL)) != -1)
+     {
+       switch (optc)
+       {
++      case 'Z':
++        options.context = optarg;
++        break;
+       case 'p':
+         options.make_ancestor_function = make_ancestor;
+         break;
+diff -Nuarp tizen-coreutils/src/mkfifo.c tizen-coreutils-smack/src/mkfifo.c
+--- tizen-coreutils/src/mkfifo.c       2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/mkfifo.c 2012-11-30 11:20:39.841516860 +0200
+@@ -26,6 +26,7 @@
+ #include "error.h"
+ #include "modechange.h"
+ #include "quote.h"
++#include "smack.h"
+ /* The official name of this program (e.g., no `g' prefix).  */
+ #define PROGRAM_NAME "mkfifo"
+@@ -37,6 +38,7 @@ char *program_name;
+ static struct option const longopts[] =
+ {
++  {"context", required_argument, NULL, 'Z'},
+   {"mode", required_argument, NULL, 'm'},
+   {GETOPT_HELP_OPTION_DECL},
+   {GETOPT_VERSION_OPTION_DECL},
+@@ -60,7 +62,10 @@ Create named pipes (FIFOs) with the give
+ Mandatory arguments to long options are mandatory for short options too.\n\
+ "), stdout);
+       fputs (_("\
+-  -m, --mode=MODE   set file permission bits to MODE, not a=rw - umask\n\
++  -Z, --context=CONTEXT   set security context to CONTEXT\n\
++"), stdout);
++      fputs (_("\
++  -m, --mode=MODE         set file permission bits to MODE, not a=rw - umask\n\
+ "), stdout);
+       fputs (HELP_OPTION_DESCRIPTION, stdout);
+       fputs (VERSION_OPTION_DESCRIPTION, stdout);
+@@ -73,6 +78,7 @@ int
+ main (int argc, char **argv)
+ {
+   mode_t newmode;
++  char const *specified_context = NULL;
+   char const *specified_mode = NULL;
+   int exit_status = EXIT_SUCCESS;
+   int optc;
+@@ -85,10 +91,13 @@ main (int argc, char **argv)
+   atexit (close_stdout);
+-  while ((optc = getopt_long (argc, argv, "m:", longopts, NULL)) != -1)
++  while ((optc = getopt_long (argc, argv, "Z:m:", longopts, NULL)) != -1)
+     {
+       switch (optc)
+       {
++      case 'Z':
++        specified_context = optarg;
++        break;
+       case 'm':
+         specified_mode = optarg;
+         break;
+@@ -119,11 +128,17 @@ main (int argc, char **argv)
+     }
+   for (; optind < argc; ++optind)
+-    if (mkfifo (argv[optind], newmode) != 0)
+-      {
+-      error (0, errno, _("cannot create fifo %s"), quote (argv[optind]));
+-      exit_status = EXIT_FAILURE;
+-      }
++    {
++      if (mkfifo (argv[optind], newmode) != 0)
++        {
++        error (0, errno, _("cannot create fifo %s"), quote (argv[optind]));
++        exit_status = EXIT_FAILURE;
++        }
++      if (specified_context &&
++          smack_to_file(argv[optind], specified_context) < 0)
++       ;// error (0, errno, _("context assignment of %s to %s failed"),
++       //        argv[optind], quote (specified_context));
++    }
+   exit (exit_status);
+ }
+diff -Nuarp tizen-coreutils/src/mknod.c tizen-coreutils-smack/src/mknod.c
+--- tizen-coreutils/src/mknod.c        2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/mknod.c  2012-11-30 11:20:39.841516860 +0200
+@@ -27,6 +27,7 @@
+ #include "modechange.h"
+ #include "quote.h"
+ #include "xstrtol.h"
++#include "smack.h"
+ /* The official name of this program (e.g., no `g' prefix).  */
+ #define PROGRAM_NAME "mknod"
+@@ -38,6 +39,7 @@ char *program_name;
+ static struct option const longopts[] =
+ {
++  {"context", required_argument, NULL, 'Z'},
+   {"mode", required_argument, NULL, 'm'},
+   {GETOPT_HELP_OPTION_DECL},
+   {GETOPT_VERSION_OPTION_DECL},
+@@ -62,7 +64,10 @@ Create the special file NAME of the give
+ Mandatory arguments to long options are mandatory for short options too.\n\
+ "), stdout);
+       fputs (_("\
+-  -m, --mode=MODE   set file permission bits to MODE, not a=rw - umask\n\
++  -Z, --context=CONTEXT set file security context to CONTEXT\n\
++"), stdout);
++      fputs (_("\
++  -m, --mode=MODE       set file permission bits to MODE, not a=rw - umask\n\
+ "), stdout);
+       fputs (HELP_OPTION_DESCRIPTION, stdout);
+       fputs (VERSION_OPTION_DESCRIPTION, stdout);
+@@ -88,6 +93,7 @@ int
+ main (int argc, char **argv)
+ {
+   mode_t newmode;
++  char const *specified_context = NULL;
+   char const *specified_mode = NULL;
+   int optc;
+   int expected_operands;
+@@ -101,10 +107,13 @@ main (int argc, char **argv)
+   atexit (close_stdout);
+-  while ((optc = getopt_long (argc, argv, "m:", longopts, NULL)) != -1)
++  while ((optc = getopt_long (argc, argv, "Z:m:", longopts, NULL)) != -1)
+     {
+       switch (optc)
+       {
++      case 'Z':
++        specified_context = optarg;
++        break;
+       case 'm':
+         specified_mode = optarg;
+         break;
+@@ -217,5 +226,9 @@ main (int argc, char **argv)
+       usage (EXIT_FAILURE);
+     }
++  if (specified_context && smack_to_file (argv[optind], specified_context) < 0)
++    ; //error (0, errno, _("context assignment to %s failed"),
++    //       quote (specified_context));
++
+   exit (EXIT_SUCCESS);
+ }
+diff -Nuarp tizen-coreutils/src/mv.c tizen-coreutils-smack/src/mv.c
+--- tizen-coreutils/src/mv.c   2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/mv.c     2012-11-30 11:20:39.841516860 +0200
+@@ -32,6 +32,7 @@
+ #include "filenamecat.h"
+ #include "quote.h"
+ #include "remove.h"
++#include "smack.h"
+ /* The official name of this program (e.g., no `g' prefix).  */
+ #define PROGRAM_NAME "mv"
+@@ -126,6 +127,7 @@ cp_option_init (struct cp_options *x)
+   x->preserve_links = true;
+   x->preserve_mode = true;
+   x->preserve_timestamps = true;
++  x->preserve_context = true;
+   x->require_preserve = false;  /* FIXME: maybe make this an option */
+   x->recursive = true;
+   x->sparse_mode = SPARSE_AUTO;  /* FIXME: maybe make this an option */
+diff -Nuarp tizen-coreutils/src/smack.h tizen-coreutils-smack/src/smack.h
+--- tizen-coreutils/src/smack.h        1970-01-01 02:00:00.000000000 +0200
++++ tizen-coreutils-smack/src/smack.h  2012-11-30 11:20:39.841516860 +0200
+@@ -0,0 +1,135 @@
++/* smack.h - Simplified Mandatory Access Control Kernel
++
++   Copyright (C) 2010 Free Software Foundation, Inc.
++
++   This program is free software; you can redistribute it and/or modify
++   it under the terms of the GNU General Public License as published by
++   the Free Software Foundation; either version 2, or (at your option)
++   any later version.
++
++   This program is distributed in the hope that it will be useful,
++   but WITHOUT ANY WARRANTY; without even the implied warranty of
++   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++   GNU General Public License for more details.
++
++   You should have received a copy of the GNU General Public License
++   along with this program; if not, write to the Free Software Foundation,
++   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
++
++   Written by Casey Schaufler.  */
++
++#include <sys/types.h>
++#include <sys/stat.h>
++#include <sys/xattr.h>
++#include <unistd.h>
++
++#define SMACK_PATHTEXTSIZE 80
++#define SMACK_LABELLEN 256
++#define SMACK_PROC_FMT "/proc/%s/attr/current"
++#define SMACK_CHECK_PATH "/smack/load"
++#define SMACK_ATTRNAME "security.SMACK64"
++
++static inline int
++smack_enabled(void)
++{
++  int i;
++  struct stat buf;
++
++  i = stat(SMACK_CHECK_PATH, &buf);
++
++  if (i < 0)
++    return 0;
++
++  return 1;
++}
++
++static inline int
++smack_of_file(const char *path, char *result, int rlen)
++{
++  int i;
++
++  i = lgetxattr(path, SMACK_ATTRNAME, result, rlen);
++  if (i < 0)
++    return i;
++
++  if (i < rlen)
++    result[i] = '\0';
++
++  return i;
++}
++
++static inline int
++smack_of_file_follow(const char *path, char *result, int rlen)
++{
++  int i;
++
++  i = getxattr(path, SMACK_ATTRNAME, result, rlen);
++  if (i < 0)
++    return i;
++
++  if (i < rlen)
++    result[i] = '\0';
++
++  return i;
++}
++
++static inline int
++smack_of_fd(int fd, char *result, int rlen)
++{
++  int i;
++
++  i = fgetxattr(fd, SMACK_ATTRNAME, result, rlen);
++  if (i < 0)
++    return i;
++
++  if (i < rlen)
++    result[i] = '\0';
++
++  return i;
++}
++
++static inline int
++smack_to_fd(int fd, char *smack)
++{
++  return fsetxattr(fd, SMACK_ATTRNAME, smack, strlen(smack), 0);
++}
++
++static inline int
++smack_to_file(const char *path, char *smack)
++{
++  return lsetxattr(path, SMACK_ATTRNAME, smack, strlen(smack), 0);
++}
++
++static inline int
++smack_of_proc(pid_t pid, char *result, int rlen)
++{
++  int fd;
++  int red;
++  char *cp = "self";
++  char pidtext[SMACK_PATHTEXTSIZE];
++  char path[SMACK_PATHTEXTSIZE];
++
++  if (pid > 0)
++    {
++      sprintf(pidtext, "%d", pid);
++      cp = pidtext;
++    }
++
++  if (strlen(cp) + strlen(SMACK_PROC_FMT) >= SMACK_PATHTEXTSIZE)
++    return -1;
++
++  sprintf(path, SMACK_PROC_FMT, cp);
++  fd = open(path, O_RDONLY);
++  if (fd < 0)
++    return fd;
++
++  red = read(fd, result, rlen);
++  close(fd);
++
++  if (red >= 0 && red < rlen)
++    result[red] = '\0';
++  if ((cp = index (result, '\n')) != NULL)
++    *cp = '\0';
++
++  return strlen (result);
++}
+diff -Nuarp tizen-coreutils/src/stat.c tizen-coreutils-smack/src/stat.c
+--- tizen-coreutils/src/stat.c 2012-11-30 10:11:38.000000000 +0200
++++ tizen-coreutils-smack/src/stat.c   2012-11-30 11:20:39.845516860 +0200
+@@ -68,6 +68,7 @@
+ #include "stat-time.h"
+ #include "strftime.h"
+ #include "xreadlink.h"
++#include "smack.h"
+ #define alignof(type) offsetof (struct { char c; type x; }, x)
+@@ -270,6 +271,8 @@ human_fstype (STRUCT_STATVFS const *stat
+       return "squashfs";
+     case S_MAGIC_SYSFS: /* 0x62656572 */
+       return "sysfs";
++    case S_MAGIC_SMACK: /* 0x43415D53 */
++      return "smack";
+ # elif __GNU__
+     case FSTYPE_UFS:
+       return "ufs";
+@@ -595,6 +598,14 @@ print_stat (char *pformat, size_t prefix
+       else
+       out_uint (pformat, prefix_len, statbuf->st_ctime);
+       break;
++    case 'C':
++      {
++        char context[SMACK_LABELLEN];
++
++        if (smack_of_file(filename, context, SMACK_LABELLEN) > 0)
++          out_string(pformat, prefix_len, context);
++      }
++      break;
+     default:
+       fputc ('?', stdout);
+       break;
+@@ -855,6 +866,7 @@ The valid format sequences for files (wi
+   %B   The size in bytes of each block reported by %b\n\
+ "), stdout);
+       fputs (_("\
++  %C   Security context\n\
+   %d   Device number in decimal\n\
+   %D   Device number in hex\n\
+   %f   Raw mode in hex\n\
diff --git a/packaging/coreutils.changes b/packaging/coreutils.changes
deleted file mode 100644 (file)
index 1bf3ce5..0000000
+++ /dev/null
@@ -1,1085 +0,0 @@
-* Sun May 22 2011 Anas Nashif <anas.nashif@intel.com> - 6.9
-- Split docs and translations
-
-* Wed Mar 30 2011 Peter J Zhu <peter.j.zhu@intel.com> - 6.9
-- Rmove smack support
-
-* Thu Mar 24 2011 Yan Li <yan.i.li@intel.com> - 6.9
-- Use %install_info (BMC#10344)
-
-* Wed Jan 26 2011 Casey Schaufler <casey.schaufler@nokia.com> - 6.9
-- Add basic Smack support for id and ls
-- Security context preservation in copy utilities
-- Added patch:
-  coreutils-6.9-smack.patch
-
-* Fri Dec 24 2010 Yan Li <yan.i.li@intel.com> - 6.9
-- Downgrade to version 6.9 (BMC#11589):
-  - Build with new Automake and Autoconf
-  - Disable runuser since it needs autoreconf, which relies on
-    autobuild that is missing from
-    MeeGo. coreutils-5.2.1-runuser.patch has to be preserved otherwise
-    patches following can't apply.
-
-* Wed Jan 27 2010 Passion Zhao <passion.zhao@intel.com> - 8.4
-- Update to 8.4
-
-* Mon Dec 21 2009 Passion Zhao <passion.zhao@intel.com> - 8.2
-- Update to 8.2, which also fix CVE-2009-4135: unsafe temporary directory location use
-
-* Wed Dec 09 2009 Yin Kangkai <kangkai.yin@intel.com> - 7.5-1
-- Rename HARDLINK to MULTIHARDLINK in DIR_COLORS*
-
-* Mon Aug 31 2009 Passion Zhao <passion.zhao@intel.com> - 7.5-1
-- Upgrade to 7.5, rebase some patches:
-  coreutils-5.2.1-runuser.patch
-  coreutils-6.10-configuration.patch
-  coreutils-i18n.patch
-
-* Sun Aug 16 2009 Anas Nashif <anas.nashif@intel.com> - 7.4
-- Update to 7.4
-
-* Sun Aug 16 2009 Anas Nashif <anas.nashif@intel.com> - 7.4
-- Update to 7.4
-
-* Thu Jul 16 2009 Peter Zhu <peter.j.zhu@intel.com> 7.0
-- Get it build with 2.6.30 kernel-hearders
-
-* Tue Mar 17 2009 Anas Nashif <anas.nashif@intel.com> 7.0
-- Do not split doc package
-
-* Thu Dec 18 2008 Anas Nashif <anas.nashif@intel.com> 7.0
-- Replace  mktemp with /bin/mktemp
-
-* Wed Dec 17 2008 Anas Nashif <anas.nashif@intel.com> 7.0
-- Add defattr to doc sub-package
-
-* Thu Dec 04 2008 Ondrej Vasik <ovasik@redhat.com> - 7.0-5
-- fix info documentation for expr command as well(#474434)
-
-* Thu Dec 04 2008 Ondrej Vasik <ovasik@redhat.com> - 7.0-4
-- fixed syntax error w/ "expr" command using negative
-  string/integer as first (i.e expr -125) - due to
-  complexity of changes used diff against upstream git-head
-  (#474434)
-- enable total-awk test again (and skip it when df not working)
-
-* Tue Nov 25 2008 Ondrej Vasik <ovasik@redhat.com> - 7.0-3
-- package summary tuning
-
-* Fri Nov 21 2008 Ondrej Vasik <ovasik@redhat.com> - 7.0-2
-- added requirements for util-linux-ng >= 2.14
-  because of file conflict in update from F-8/F-9(#472445)
-- some sed cleanup, df totaltests patch changes (not working
-  correctly yet :( )
-
-* Wed Nov 12 2008 Ondrej Vasik <ovasik@redhat.com> - 7.0-1
-- new upstream release
-- modification/removal of related patches
-- use automake 1.10.1 instead of 1.10a
-- temporarily skip df --total tests (failures),
-  timeout-paramaters (failure on ppc64)
-
-* Mon Nov 03 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-17
-- Requires: ncurses (#469277)
-
-* Wed Oct 21 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-16
-- make possible to disable capability in ls due to
-  performance impact when not cached(#467508)
-- do not patch generated manpages - generate them at build
-  time
-- do not mistakenly display -g and -G runuser option in su
-  --help output
-
-* Mon Oct 13 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-15
-- fix several date issues(e.g. countable dayshifts, ignoring
-  some cases of relative offset, locales conversions...)
-- clarify ls exit statuses documentation (#446294)
-
-* Sun Oct 12 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-14
-- cp -Z now correctly separated in man page (#466646)
-- cp -Z works again (#466653)
-- make preservation of SELinux CTX non-mandatory for
-  preserve=all cp option
-
-* Wed Oct 08 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-13
-- remove unimplemented (never accepted by upstream) option
-  for chcon changes only. Removed from help and man.
-- remove ugly lzma hack as lzma is now supported by setup
-  macro
-
-* Mon Oct 06 2008 Jarod Wilson <jarod@redhat.com> - 6.12-12
-- fix up potential test failures when building in certain
-  slightly quirky environments (part of bz#442352)
-
-* Mon Oct 06 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-11
-- added requires for libattr (#465569)
-
-* Mon Sep 29 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-10
-- seq should no longer fail to display final number of some
-  float usages of seq with utf8 locales(#463556)
-
-* Wed Aug 13 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-9
-- mention that DISPLAY and XAUTHORITY envvars are preserved
-  for pam_xauth in su -l (#450505)
-
-* Mon Aug 04 2008 Kamil Dudka <kdudka@redhat.com> - 6.12-8
-- ls -U1 now uses constant memory
-
-* Wed Jul 24 2008 Kamil Dudka <kdudka@redhat.com> - 6.12-7
-- dd: iflag=fullblock now read full blocks if possible
-  (#431997, #449263)
-- ls: --color now highlights files with capabilities (#449985)
-
-* Wed Jul 16 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-6
-- Get rid off fuzz in patches
-
-* Fri Jul 04 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-5
-- fix authors for basename and echo
-- fix who info pages, print last runlevel only for printable
-  chars
-
-* Mon Jun 16 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-4
-- print verbose output of chcon with newline after each 
-  message (#451478)
-
-* Fri Jun 06 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-3
-- workaround for koji failures(#449910, #442352) now 
-  preserves timestamps correctly - fallback to supported
-  functions, added test case
-- runuser binary is no longer doubled in /usr/bin/runuser
-
-* Wed Jun 04 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-2
-- workaround for strange koji failures(#449910,#442352)
-- fixed ls -ZC segfault(#449866, introduced by 6.10-1 
-  SELinux patch reworking) 
-
-* Mon Jun 02 2008 Ondrej Vasik <ovasik@redhat.com> - 6.12-1
-- New upstream release 6.12, adapted patches
-
-* Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 6.11-5
-- fix SHA256/SHA512 to work on sparc
-
-* Tue May 20 2008 Ondrej Vasik <ovasik@redhat.com> - 6.11-4
-- fixed a HUGE memory leak in install binary(#447410)
-
-* Mon May 19 2008 Ondrej Vasik <ovasik@redhat.com> - 6.11-3
-- added arch utility (from util-linux-ng)
-- do not show executable file types without executable bit
-  in colored ls as executable
-
-* Wed Apr 23 2008 Ondrej Vasik <ovasik@redhat.com> - 6.11-2
-- Do not show misleading scontext in id command when user
-  is specified (#443485)
-- Avoid possible test failures on non-english locales
-
-* Mon Apr 21 2008 Ondrej Vasik <ovasik@redhat.com> - 6.11-1
-- New upstream release 6.11 
-- removed accepted patches + few minor patch changes
-
-* Fri Apr 18 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-21
-- fix wrong checksum line handling in sha1sum -c 
-  command(#439531)
-
-* Tue Apr 15 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-20
-- fix possible segfault in sha1sum/md5sum command
-
-* Mon Apr 14 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-19
-- fix possible build-failure typo in i18n patch(#442205)
-
-* Mon Apr  7 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-18
-- fix colorls.sh syntax with Zsh (#440652)
-- mention that cp -a includes -c option + mention cp -c 
-  option in manpages (#440056)
-- fix typo in runuser manpages (#439410)
-
-* Sat Mar 29 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-17
-- better workaround of glibc getoptc change(factor test)
-- don't segfault mknod, mkfifo with invalid-selinux-context
-
-* Thu Mar 27 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-16
-- keep LS_COLORS when USER_LS_COLORS defined
-- someupstream fixes:
-- mkdir -Z invalid-selinux-context dir no longer segfaults
-- ptx with odd number of backslashes no longer leads to buffer
-  overflow
-- paste -d'\' file" no longer ovveruns memory
-
-* Wed Mar 26 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-15
-- covered correct handling for some test conditions failures
-  e.g. root build+selinux active and not running mcstrans(d)
-  or selinux enforcing (#436717)
-
-* Wed Mar 19 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-14
-- mv: never unlink a destination file before calling rename
-  (upstream, #438076)
-
-* Mon Mar 17 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-13
-- disable echo option separator behavior(added by #431005,
-  request for removal #437653 + upstream)
-- temporarily disabled longoptions change until full 
-  clarification upstreamery (#431005)
-
-* Tue Mar 11 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-12
-- fixed harmless double close of stdout in dd(#436368)
-
-* Thu Mar  6 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-11
-- fixed broken order of params in stat(#435669)
-
-* Tue Mar  4 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-10
-- colorls.csh missing doublequotes (#435789)
-- fixed possibility to localize verbose outputs
-
-* Mon Mar  3 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-9
-- consolidation of verbose output to stdout (upstream)
-
-* Mon Feb 18 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-8
-- use default security context in install - broken by 
-  coreutils-6.10 update(#319231)
-- some sh/csh scripts optimalizations(by ville.skytta@iki.fi,
-  - #433189, #433190)
-
-* Mon Feb 11 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-7
-- keep old csh/sh usermodified colorls shell scripts
-  but use the new ones(#432154)
-
-* Thu Feb  7 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-6
-- better 256-color support in colorls shell scripts
-- color tuning(based on feedback in #429121)
-
-* Mon Feb  4 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-5
-- enabled 256-color support in colorls shell scripts(#429121)
-- fixed syntax error in csh script(#431315)
-
-* Thu Jan 31 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-4
-- forgotten return in colorls.sh change
-
-* Thu Jan 31 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-3
-- fix unability of echo to display certain strings(added --
-  separator, #431005)
-- do not require only one long_opt for certain commands 
-  e.g. sleep, yes - but use first usable (#431005)
-- do not override userspecified LS_COLORS variable, but
-  use it for colored ls(#430827)
-- discard errors from dircolors to /dev/null + some tuning 
-  of lscolor sh/csh scripts(#430823)
-- do not consider files with SELinux security context as
-  files having ACL in ls long format(#430779)
-
-* Mon Jan 28 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-2
-- some manpages improvements(#406981,#284881)
-- fix non-versioned obsoletes of mktemp(#430407)
-
-* Fri Jan 25 2008 Ondrej Vasik <ovasik@redhat.com> - 6.10-1
-- New upstream release(changed %%prep because of lack of lzma
-  support in %%setup macro)
-- License GPLv3+
-- removed patches cp-i-u,du-ls-upstream,statsecuritycontext,
-  futimens,getdateYYYYMMDD,ls-x
-- modified patches to be compilable after upstream changes
-- selinux patch reworked to have backward compatibility with
-  F8(cp,ls and stat behaviour differ from upstream in SELinux
-  options)
-- su-l/runuser-l pam file usage a bit documented(#368721)
-- more TERMs for DIR_COLORS, added colors for audio files,
-  more image/compress file types(taken from upstream 
-  dircolors.hin)
-- new file DIR_COLORS.256color which takes advantage from 
-  256color term types-not really used yet(#429121)
-
-* Wed Jan 16 2008 Ondrej Vasik <ovasik@redhat.com> - 6.9-17
-- added several missing colored TERMs(including rxvt-unicode,
-  screen-256color and xterm-256color) to DIR_COLORS and
-  DIR_COLORS.xterm(#239266) 
-
-* Wed Dec 05 2007 Ondrej Vasik <ovasik@redhat.com> - 6.9-16
-- fix displaying of security context in stat(#411181)
-
-* Thu Nov 29 2007 Ondrej Vasik <ovasik@redhat.com> - 6.9-15
-- completed fix of wrong colored broken symlinks in ls(#404511)
-
-* Fri Nov 23 2007 Ondrej Vasik <ovasik@redhat.com> - 6.9-14
-- fixed bug in handling YYYYMMDD date format with relative
-  signed offset(#377821)
-
-* Tue Nov 13 2007 Ondrej Vasik <ovasik@redhat.com> - 6.9-13
-- fixed bug in selinux patch which caused bad preserving
-  of security context in install(#319231)
-
-* Fri Nov 02 2007 Ondrej Vasik <ovasik@redhat.com> - 6.9-12
-- added some upstream supported dircolors TERMs(#239266)
-- fixed du output for unaccesible dirs(#250089)
-- a bit of upstream tunning for symlinks
-
-* Tue Oct 30 2007 Ondrej Vasik <ovasik@redhat.com> - 6.9-11
-- allow cp -a to rewrite file on different filesystem(#219900)
-  (based on upstream patch)
-
-* Mon Oct 29 2007 Ondrej Vasik <ovasik@redhat.com> - 6.9-10
-- modified coreutils-i18n.patch because of sort -R in
-  a non C locales(fix by Andreas Schwab) (#249315)
-
-* Mon Oct 29 2007 Ondrej Vasik <ovasik@redhat.com> - 6.9-9
-- applied upstream patch for runuser to coreutils-selinux.patch(#232652)
-- License tag to GPLv2+
-
-* Thu Oct 25 2007 Ondrej Vasik <ovasik@redhat.com> - 6.9-8
-- applied upstream patch for cp and mv(#248591)
-
-* Thu Aug 23 2007 Pete Graner <pgraner@redhat.com> - 6.9-7
-- Fix typo in spec file. (CVS merge conflict leftovers)
-
-* Thu Aug 23 2007 Pete Graner <pgraner@redhat.com> - 6.9-6
-- Remove --all-name from spec file its now provided in the upstream rpm's find-lang.sh
-- Rebuild
-
-* Tue Aug 14 2007 Tim Waugh <twaugh@redhat.com> 6.9-5
-- Don't generate runuser.1 since we ship a complete manpage for it
-  (bug #241662).
-
-* Wed Jul  4 2007 Tim Waugh <twaugh@redhat.com> 6.9-4
-- Use hard links instead of symbolic links for LC_TIME files (bug #246729).
-
-* Wed Jun 13 2007 Tim Waugh <twaugh@redhat.com> 6.9-3
-- Fixed 'ls -x' output (bug #240298).
-- Disambiguate futimens() from the glibc implementation (bug #242321).
-
-* Mon Apr 02 2007 Karsten Hopp <karsten@redhat.com> 6.9-2
-- /bin/mv in %%post requires libselinux
-
-* Mon Mar 26 2007 Tim Waugh <twaugh@redhat.com> 6.9-1
-- 6.9.
-
-* Fri Mar  9 2007 Tim Waugh <twaugh@redhat.com>
-- Better install-info scriptlets (bug #225655).
-
-* Thu Mar  1 2007 Tim Waugh <twaugh@redhat.com> 6.8-1
-- 6.8+, in preparation for 6.9.
-
-* Thu Feb 22 2007 Tim Waugh <twaugh@redhat.com> 6.7-9
-- Use sed instead of perl for text replacement (bug #225655).
-- Use install-info scriptlets from the guidelines (bug #225655).
-
-* Tue Feb 20 2007 Tim Waugh <twaugh@redhat.com> 6.7-8
-- Don't mark profile scripts as config files (bug #225655).
-- Avoid extra directory separators (bug #225655).
-
-* Mon Feb 19 2007 Tim Waugh <twaugh@redhat.com> 6.7-7
-- Better Obsoletes/Provides versioning (bug #225655).
-- Use better defattr (bug #225655).
-- Be info file compression tolerant (bug #225655).
-- Moved changelog compression to %%install (bug #225655).
-- Prevent upstream changes being masked (bug #225655).
-- Added a comment (bug #225655).
-- Use install -p for non-compiled files (bug #225655).
-- Use sysconfdir macro for /etc (bug #225655).
-- Use Requires(pre) etc for install-info (bug #225655).
-
-* Fri Feb 16 2007 Tim Waugh <twaugh@redhat.com> 6.7-6
-- Provide version for stat (bug #225655).
-- Fixed permissions on profile scripts (bug #225655).
-
-* Wed Feb 14 2007 Tim Waugh <twaugh@redhat.com> 6.7-5
-- Removed unnecessary stuff in pre scriptlet (bug #225655).
-- Prefix sources with 'coreutils-' (bug #225655).
-- Avoid %%makeinstall (bug #225655).
-
-* Tue Feb 13 2007 Tim Waugh <twaugh@redhat.com> 6.7-4
-- Ship COPYING file (bug #225655).
-- Use datadir and infodir macros in %%pre scriptlet (bug #225655).
-- Use spaces not tabs (bug #225655).
-- Fixed build root.
-- Change prereq to requires (bug #225655).
-- Explicitly version some obsoletes tags (bug #225655).
-- Removed obsolete pl translation fix.
-
-* Mon Jan 22 2007 Tim Waugh <twaugh@redhat.com> 6.7-3
-- Make scriptlet unconditionally succeed (bug #223681).
-
-* Fri Jan 19 2007 Tim Waugh <twaugh@redhat.com> 6.7-2
-- Build does not require libtermcap-devel.
-
-* Tue Jan  9 2007 Tim Waugh <twaugh@redhat.com> 6.7-1
-- 6.7.  No longer need sort-compatibility, rename, newhashes, timestyle,
-  acl, df-cifs, afs or autoconf patches.
-
-* Tue Jan  2 2007 Tim Waugh <twaugh@redhat.com>
-- Prevent 'su --help' showing runuser-only options such as --group.
-
-* Fri Nov 24 2006 Tim Waugh <twaugh@redhat.com> 5.97-16
-- Unbreak id (bug #217177).
-
-* Thu Nov 23 2006 Tim Waugh <twaugh@redhat.com> 5.97-15
-- Fixed stat's 'C' format specifier (bug #216676).
-- Misleading 'id -Z root' error message (bug #211089).
-
-* Fri Nov 10 2006 Tim Waugh <twaugh@redhat.com> 5.97-14
-- Clarified runcon man page (bug #213846).
-
-* Tue Oct 17 2006 Tim Waugh <twaugh@redhat.com> 5.97-13
-- Own LC_TIME locale directories (bug #210751).
-
-* Wed Oct  4 2006 Tim Waugh <twaugh@redhat.com> 5.97-12
-- Fixed 'cp -Z' when destination exists, again (bug #189967).
-
-* Thu Sep 28 2006 Tim Waugh <twaugh@redhat.com> 5.97-11
-- Back-ported rename patch (bug #205744).
-
-* Tue Sep 12 2006 Tim Waugh <twaugh@redhat.com> 5.97-10
-- Ignore 'cifs' filesystems for 'df -l' (bug #183703).
-- Include -g/-G in runuser man page (part of bug #199344).
-- Corrected runuser man page (bug #200620).
-
-* Thu Aug 24 2006 Tim Waugh <twaugh@redhat.com> 5.97-9
-- Fixed warnings in pam, i18n, sysinfo, selinux and acl patches (bug #203166).
-
-* Wed Aug 23 2006 Tim Waugh <twaugh@redhat.com> 5.97-8
-- Don't chdir until after PAM bits in su (bug #197659).
-
-* Tue Aug 15 2006 Tim Waugh <twaugh@redhat.com> 5.97-7
-- Fixed 'sort -b' multibyte problem (bug #199986).
-
-* Fri Jul 21 2006 Tim Waugh <twaugh@redhat.com> 5.97-6
-- Added runuser '-g' and '-G' options (bug #199344).
-- Added su '--session-command' option (bug #199066).
-
-* Tue Jul 18 2006 Tomas Mraz <tmraz@redhat.com> 5.97-5
-- 'include' su and runuser scripts in su-l and runuser-l scripts
-
-* Thu Jul 13 2006 David Howells <dhowells@redhat.com> 5.97-4
-- split the PAM scripts for "su -l"/"runuser -l" from that of normal "su" and
-  "runuser" (#198639)
-- add keyinit instructions to PAM scripts
-
-* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.97-3.1
-- rebuild
-
-* Tue Jul 11 2006 Tomas Mraz <tmraz@redhat.com> 5.97-3
-- allow root to su to expired user (#152420)
-
-* Thu Jun 29 2006 Tim Waugh <twaugh@redhat.com> 5.97-2
-- Allow 'sort +1 -2' (patch from upstream).
-
-* Sun Jun 25 2006 Tim Waugh <twaugh@redhat.com> 5.97-1
-- 5.97.  No longer need tempname or tee patches, or pl translation.
-
-* Sun Jun 25 2006 Tim Waugh <twaugh@redhat.com> 5.96-4
-- Include new hashes (bug #196369).  Patch from upstream.
-- Build at -O1 on s390 for the moment (bug #196369).
-
-* Fri Jun  9 2006 Tim Waugh <twaugh@redhat.com>
-- Fix large file support for temporary files.
-
-* Mon Jun  5 2006 Tim Waugh <twaugh@redhat.com> 5.96-3
-- Fixed Polish translation.
-
-* Mon May 22 2006 Tim Waugh <twaugh@redhat.com> 5.96-2
-- 5.96.  No longer need proc patch.
-
-* Fri May 19 2006 Tim Waugh <twaugh@redhat.com>
-- Fixed pr properly in multibyte locales (bug #192381).
-
-* Tue May 16 2006 Tim Waugh <twaugh@redhat.com> 5.95-3
-- Upstream patch to fix cp -p when proc is not mounted (bug #190601).
-- BuildRequires libacl-devel.
-
-* Mon May 15 2006 Tim Waugh <twaugh@redhat.com>
-- Fixed pr in multibyte locales (bug #189663).
-
-* Mon May 15 2006 Tim Waugh <twaugh@redhat.com> 5.95-2
-- 5.95.
-
-* Wed Apr 26 2006 Tim Waugh <twaugh@redhat.com> 5.94-4
-- Avoid redeclared 'tee' function.
-- Fix 'cp -Z' when the destination exists (bug #189967).
-
-* Thu Apr 20 2006 Tim Waugh <twaugh@redhat.com> 5.94-3
-- Make 'ls -Z' output more consistent with other output formats.
-
-* Fri Mar 24 2006 Tim Waugh <twaugh@redhat.com> 5.94-2
-- 5.94.
-
-* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.93-7.2
-- bump again for double-long bug on ppc(64)
-
-* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.93-7.1
-- rebuilt for new gcc4.1 snapshot and glibc changes
-
-* Mon Jan 23 2006 Tim Waugh <twaugh@redhat.com>
-- Fixed chcon(1) bug reporting address (bug #178523).
-
-* Thu Jan  5 2006 Tim Waugh <twaugh@redhat.com> 5.93-7
-- Don't suppress chown/chgrp errors in install(1) (bug #176708).
-
-* Mon Jan  2 2006 Dan Walsh <dwalsh@redhat.com> 5.93-6
-- Remove pam_selinux.so from su.pamd, not needed for targeted and Strict/MLS 
-  will have to newrole before using.
-
-* Fri Dec 23 2005 Tim Waugh <twaugh@redhat.com> 5.93-5
-- Fix "sort -n" (bug #176468).
-
-* Fri Dec 16 2005 Tim Waugh <twaugh@redhat.com>
-- Explicitly set default POSIX2 version during configure stage.
-
-* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
-- rebuilt
-
-* Fri Dec  2 2005 Tim Waugh <twaugh@redhat.com>
-- Parametrize SELinux (bug #174067).
-- Fix runuser.pamd (bug #173807).
-
-* Thu Nov 25 2005 Tim Waugh <twaugh@redhat.com> 5.93-4
-- Rebuild to pick up new glibc *at functions.
-- Apply runuser PAM patch from bug #173807.  Ship runuser PAM file.
-
-* Tue Nov 14 2005 Dan Walsh <dwalsh@redhat.com> 5.93-3
-- Remove multiple from su.pamd
-
-* Mon Nov 14 2005 Tim Waugh <twaugh@redhat.com> 5.93-2
-- Call setsid() in su under some circumstances (bug #173008).
-- Prevent runuser operating when setuid (bug #173113).
-
-* Tue Nov  8 2005 Tim Waugh <twaugh@redhat.com> 5.93-1
-- 5.93.
-- No longer need alt-md5sum-binary, dircolors, mkdir, mkdir2 or tac patches.
-
-* Fri Oct 28 2005 Tim Waugh <twaugh@redhat.com> 5.92-1
-- Finished porting i18n patch to sort.c.
-- Fixed for sort-mb-tests (avoid +n syntax).
-
-* Fri Oct 28 2005 Tim Waugh <twaugh@redhat.com> 5.92-0.2
-- Fix chgrp basic test.
-- Include md5sum patch from ALT.
-
-* Mon Oct 24 2005 Tim Waugh <twaugh@redhat.com> 5.92-0.1
-- 5.92.
-- No longer need afs, dircolors, utmp, gcc4, brokentest, dateseconds,
-  chown, rmaccess, copy, stale-utmp, no-sign-extend, fchown patches.
-- Updated acl, dateman, pam, langinfo, i18n, getgrouplist, selinux patches.
-- Dropped printf-ll, allow_old_options, jday, zh_CN patches.
-- NOTE: i18n patch not ported for sort(1) yet.
-
-* Fri Sep 30 2005 Tomas Mraz <tmraz@redhat.com> - 5.2.1-56
-- use include instead of pam_stack in pam config
-
-* Fri Sep 9 2005 Dan Walsh <dwalsh@redhat.com> 5.2.1-55
-- Reverse change to use raw functions
-
-* Thu Sep  8 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-54
-- Explicit setuid bit for /bin/su in file manifest (bug #167745).
-
-* Tue Sep 6 2005 Dan Walsh <dwalsh@redhat.com> 5.2.1-53
-- Allow id to run even when SELinux security context can not be run
-- Change chcon to use raw functions.
-
-* Thu Jun 28 2005 Tim Waugh <twaugh@redhat.com>
-- Corrected comments in DIR_COLORS.xterm (bug #161711).
-
-* Wed Jun 22 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-52
-- Fixed stale-utmp patch so that 'who -r' and 'who -b' work
-  again (bug #161264).
-
-* Fri Jun 17 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-51
-- Use upstream hostid fix.
-
-* Thu Jun 16 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-50
-- Don't display the sign-extended part of the host id (bug #160078).
-
-* Tue May 31 2005 Dan Walsh <dwalsh@redhat.com> 5.2.1-49
-- Eliminate bogus "can not preserve context" message when moving files.
-
-* Wed May 25 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-48
-- Prevent buffer overflow in who(1) (bug #158405).
-
-* Fri May 20 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-47
-- Better error checking in the pam patch (bug #158189).
-
-* Mon May 16 2005 Dan Walsh <dwalsh@redhat.com> 5.2.1-46
-- Fix SELinux patch to better handle MLS integration
-
-* Mon May 16 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-45
-- Applied Russell Coker's selinux changes (bug #157856).
-
-* Fri Apr  8 2005 Tim Waugh <twaugh@redhat.com>
-- Fixed pam patch from Steve Grubb (bug #154946).
-- Use better upstream patch for "stale utmp".
-
-* Tue Mar 29 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-44
-- Added "stale utmp" patch from upstream.
-
-* Thu Mar 24 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-43
-- Removed patch that adds -C option to install(1).
-
-* Wed Mar 14 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-42
-- Fixed pam patch.
-- Fixed broken configure test.
-- Fixed build with GCC 4 (bug #151045).
-
-* Wed Feb  9 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-41
-- Jakub Jelinek's sort -t multibyte fixes (bug #147567).
-
-* Sat Feb  5 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-40
-- Undo last change (bug #145266).
-
-* Fri Feb  4 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-38
-- Special case for ia32e in uname (bug #145266).
-
-* Thu Jan 13 2005 Tim Waugh <twaugh@redhat.com> 5.2.1-37
-- Fixed zh_CN translation (bug #144845).  Patch from Mitrophan Chin.
-
-* Mon Dec 28 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-36
-- Fix to only setdefaultfilecon if not overridden by command line
-
-* Mon Dec 27 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-35
-- Change install to restorecon if it can
-
-* Wed Dec 15 2004 Tim Waugh <twaugh@redhat.com>
-- Fixed small bug in i18n patch.
-
-* Mon Dec  6 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-34
-- Don't set fs uid until after pam_open_session (bug #77791).
-
-* Thu Nov 25 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-33
-- Fixed colorls.csh (bug #139988).  Patch from Miloslav Trmac.
-
-* Mon Nov  8 2004 Tim Waugh <twaugh@redhat.com>
-- Updated URL (bug #138279).
-
-* Mon Oct 25 2004 Steve Grubb <sgrubb@redhat.com> 5.2.1-32
-- Handle the return code of function calls in runcon.
-
-* Mon Oct 18 2004 Tim Waugh <twaugh@redhat.com>
-- Prevent compiler warning in coreutils-i18n.patch (bug #136090).
-
-* Tue Oct  5 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-31
-- getgrouplist() patch from Ulrich Drepper.
-- The selinux patch should be applied last.
-
-* Mon Oct  4 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-30
-- Mv runuser to /sbin
-
-* Mon Oct  4 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-28
-- Fix runuser man page.
-
-* Mon Oct  4 2004 Tim Waugh <twaugh@redhat.com>
-- Fixed build.
-
-* Fri Sep 24 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-26
-- Add runuser as similar to su, but only runable by root
-
-* Fri Sep 24 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-25
-- chown(1) patch from Ulrich Drepper.
-
-* Tue Sep 14 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-24
-- SELinux patch fix: don't display '(null)' if getfilecon() fails
-  (bug #131196).
-
-* Fri Aug 20 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-23
-- Fixed colorls.csh quoting (bug #102412).
-- Fixed another join LSB test failure (bug #121153).
-
-* Mon Aug 16 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-22
-- Fixed sort -t LSB test failure (bug #121154).
-- Fixed join LSB test failure (bug #121153).
-
-* Wed Aug 11 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-21
-- Apply upstream patch to fix 'cp -a' onto multiply-linked files (bug #128874).
-- SELinux patch fix: don't error out if lgetfilecon() returns ENODATA.
-
-* Tue Aug 10 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-20
-- Added 'konsole' TERM to DIR_COLORS (bug #129544).
-
-* Wed Aug  4 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-19
-- Added 'gnome' TERM to DIR_COLORS (bug #129112).
-- Worked around a bash bug #129128.
-- Fixed an i18n patch bug in cut (bug #129114).
-
-* Tue Aug  3 2004 Tim Waugh <twaugh@redhat.com>
-- Fixed colorls.{sh,csh} so that the l. and ll aliases are always defined
-  (bug #128948).
-
-* Tue Jul 13 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-18
-- Fixed field extraction in sort (bug #127694).
-
-* Fri Jun 25 2004 Tim Waugh <twaugh@redhat.com>
-- Added 'TERM screen.linux' to DIR_COLORS (bug #78816).
-
-* Wed Jun 23 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-17
-- Move pam-xauth to after pam-selinux
-
-* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
-- rebuilt
-
-* Mon Jun  7 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-15
-- Fix ls -Z (bug #125447).
-
-* Fri Jun  4 2004 Tim Waugh <twaugh@redhat.com>
-- Build requires bison (bug #125290).
-
-* Fri Jun  4 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-14
-- Fix selinux patch causing problems with ls --format=... (bug #125238).
-
-* Thu Jun 3 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-13
-- Change su to use pam_selinux open and pam_selinux close
-
-* Wed Jun  2 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-12
-- Don't call access() on symlinks about to be removed (bug #124699).
-
-* Wed Jun  2 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-11
-- Fix ja translation (bug #124862).
-
-* Tue May 18 2004 Jeremy Katz <katzj@redhat.com> 5.2.1-10
-- rebuild
-
-* Mon May 17 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-9
-- Mention pam in the info for su (bug #122592).
-- Remove wheel group rant again (bug #122886).
-- Change default behaviour for chgrp/chown (bug #123263).  Patch from
-  upstream.
-
-* Mon May 17 2004 Thomas Woerner <twoerner@redhat.com> 5.2.1-8
-- compiling su PIE
-
-* Wed May 12 2004 Tim Waugh <twaugh@redhat.com>
-- Build requires new versions of autoconf and automake (bug #123098).
-
-* Tue May  4 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-7
-- Fix join -t (bug #122435).
-
-* Tue Apr 20 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-6
-- Fix 'ls -Z' displaying users/groups if stat() failed (bug #121292).
-
-* Fri Apr 9 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-5
-- Add ls -LZ fix
-- Fix chcon to handle "."
-
-* Wed Mar 17 2004 Tim Waugh <twaugh@redhat.com>
-- Apply upstream fix for non-zero seconds for --date="10:00 +0100".
-
-* Tue Mar 16 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-3
-- If preserve fails, report as warning unless user requires preserve
-
-* Tue Mar 16 2004 Dan Walsh <dwalsh@redhat.com> 5.2.1-2
-- Make mv default to preserve on context
-
-* Sat Mar 13 2004 Tim Waugh <twaugh@redhat.com> 5.2.1-1
-- 5.2.1.
-
-* Fri Mar 12 2004 Tim Waugh <twaugh@redhat.com> 5.2.0-9
-- Add '-Z' to 'ls --help' output (bug #118108).
-
-* Fri Mar  5 2004 Tim Waugh <twaugh@redhat.com>
-- Fix deref-args test case for rebuilding under SELinux (bug #117556).
-
-* Wed Feb 25 2004 Tim Waugh <twaugh@redhat.com> 5.2.0-8
-- kill(1) offloaded to util-linux altogether.
-
-* Tue Feb 24 2004 Tim Waugh <twaugh@redhat.com> 5.2.0-7
-- Ship the real '[', not a symlink.
-
-* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com> 5.2.0-6
-- Apply Paul Eggert's chown patch (bug #116536).
-- Merged chdir patch into pam patch where it belongs.
-
-* Mon Feb 23 2004 Tim Waugh <twaugh@redhat.com> 5.2.0-5
-- Fixed i18n patch bug causing sort -M not to work (bug #116575).
-
-* Sat Feb 21 2004 Tim Waugh <twaugh@redhat.com> 5.2.0-4
-- Reinstate kill binary, just not its man page (bug #116463).
-
-* Sat Feb 21 2004 Tim Waugh <twaugh@redhat.com> 5.2.0-3
-- Updated ls-stat patch.
-
-* Fri Feb 20 2004 Dan Walsh <dwalsh@redhat.com> 5.2.0-2
-- fix chcon to ignore . and .. directories for recursing
-
-* Fri Feb 20 2004 Tim Waugh <twaugh@redhat.com> 5.2.0-1
-- Patch ls so that failed stat() is handled gracefully (Ulrich Drepper).
-- 5.2.0.
-
-* Thu Feb 19 2004 Tim Waugh <twaugh@redhat.com>
-- More AFS patch tidying.
-
-* Wed Feb 18 2004 Dan Walsh <dwalsh@redhat.com> 5.1.3-0.2
-- fix chcon to handle -h qualifier properly, eliminate potential crash 
-
-* Wed Feb 18 2004 Tim Waugh <twaugh@redhat.com>
-- Stop 'sort -g' leaking memory (i18n patch bug #115620).
-- Don't ship kill, since util-linux already does.
-- Tidy AFS patch.
-
-* Mon Feb 16 2004 Tim Waugh <twaugh@redhat.com> 5.1.3-0.1
-- 5.1.3.
-- Patches ported forward or removed.
-
-* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 5.0-40
-- rebuilt
-
-* Tue Jan  20 2004 Dan Walsh <dwalsh@redhat.com> 5.0-39
-- Change /etc/pam.d/su to remove preservuser and add multiple
-
-* Tue Jan  20 2004 Dan Walsh <dwalsh@redhat.com> 5.0-38
-- Change is_selinux_enabled to is_selinux_enabled > 0
-
-* Tue Jan  20 2004 Dan Walsh <dwalsh@redhat.com> 5.0-37
-- Add pam_selinux to pam file to allow switching of roles within selinux
-
-* Fri Jan 16 2004 Tim Waugh <twaugh@redhat.com>
-- The textutils-2.0.17-mem.patch is no longer needed.
-
-* Thu Jan 15 2004 Tim Waugh <twaugh@redhat.com> 5.0-36
-- Fixed autoconf test causing builds to fail.
-
-* Tue Dec  9 2003 Dan Walsh <dwalsh@redhat.com> 5.0-35
-- Fix copying to non xattr files
-
-* Thu Dec  4 2003 Tim Waugh <twaugh@redhat.com> 5.0-34.sel
-- Fix column widths problems in ls.
-
-* Tue Dec  2 2003 Tim Waugh <twaugh@redhat.com> 5.0-33.sel
-- Speed up md5sum by disabling speed-up asm.
-
-* Wed Nov 19 2003 Dan Walsh <dwalsh@redhat.com> 5.0-32.sel
-- Try again
-
-* Wed Nov 19 2003 Dan Walsh <dwalsh@redhat.com> 5.0-31.sel
-- Fix move on non SELinux kernels
-
-* Fri Nov 14 2003 Tim Waugh <twaugh@redhat.com> 5.0-30.sel
-- Fixed useless acl dependencies (bug #106141).
-
-* Fri Oct 24 2003 Dan Walsh <dwalsh@redhat.com> 5.0-29.sel
-- Fix id -Z
-
-* Tue Oct 21 2003 Dan Walsh <dwalsh@redhat.com> 5.0-28.sel
-- Turn on SELinux
-- Fix chcon error handling
-
-* Wed Oct 15 2003 Dan Walsh <dwalsh@redhat.com> 5.0-28
-- Turn off SELinux
-
-* Mon Oct 13 2003 Dan Walsh <dwalsh@redhat.com> 5.0-27.sel
-- Turn on SELinux
-
-* Mon Oct 13 2003 Dan Walsh <dwalsh@redhat.com> 5.0-27
-- Turn off SELinux
-
-* Mon Oct 13 2003 Dan Walsh <dwalsh@redhat.com> 5.0-26.sel
-- Turn on SELinux
-
-* Sun Oct 12 2003 Florian La Roche <Florian.LaRoche@redhat.de>
-- allow compiling without pam support
-
-* Fri Oct 10 2003 Tim Waugh <twaugh@redhat.com> 5.0-23
-- Make split(1) handle large files (bug #106700).
-
-* Thu Oct  9 2003 Dan Walsh <dwalsh@redhat.com> 5.0-22
-- Turn off SELinux
-
-* Wed Oct  8 2003 Dan Walsh <dwalsh@redhat.com> 5.0-21.sel
-- Cleanup SELinux patch
-
-* Fri Oct  3 2003 Tim Waugh <twaugh@redhat.com> 5.0-20
-- Restrict ACL support to only those programs needing it (bug #106141).
-- Fix default PATH for LSB (bug #102567).
-
-* Thu Sep 11 2003 Dan Walsh <dwalsh@redhat.com> 5.0-19
-- Turn off SELinux
-
-* Wed Sep 10 2003 Dan Walsh <dwalsh@redhat.com> 5.0-18.sel
-- Turn on SELinux
-
-* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 5.0-17
-- Turn off SELinux
-
-* Tue Sep 2 2003 Dan Walsh <dwalsh@redhat.com> 5.0-16.sel
-- Only call getfilecon if the user requested it.
-- build with selinux
-
-* Wed Aug 20 2003 Tim Waugh <twaugh@redhat.com> 5.0-14
-- Documentation fix (bug #102697).
-
-* Tue Aug 12 2003 Tim Waugh <twaugh@redhat.com> 5.0-13
-- Made su use pam again (oops).
-- Fixed another i18n bug causing sort --month-sort to fail.
-- Don't run dubious stty test, since it fails when backgrounded
-  (bug #102033).
-- Re-enable make check.
-
-* Fri Aug  8 2003 Tim Waugh <twaugh@redhat.com> 5.0-12
-- Don't run 'make check' for this build (build environment problem).
-- Another uninitialized variable in i18n (from bug #98683).
-
-* Wed Aug 6 2003 Dan Walsh <dwalsh@redhat.com> 5.0-11
-- Internationalize runcon
-- Update latest chcon from NSA
-
-* Wed Jul 30 2003 Tim Waugh <twaugh@redhat.com>
-- Re-enable make check.
-
-* Wed Jul 30 2003 Tim Waugh <twaugh@redhat.com> 5.0-9
-- Don't run 'make check' for this build (build environment problem).
-
-* Mon Jul 28 2003 Tim Waugh <twaugh@redhat.com> 5.0-8
-- Actually use the ACL patch (bug #100519).
-
-* Wed Jul 18 2003 Dan Walsh <dwalsh@redhat.com> 5.0-7
-- Convert to SELinux
-
-* Mon Jun  9 2003 Tim Waugh <twaugh@redhat.com>
-- Removed samefile patch.  Now the test suite passes.
-
-* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
-- rebuilt
-
-* Wed May 28 2003 Tim Waugh <twaugh@redhat.com> 5.0-5
-- Both kon and kterm support colours (bug #83701).
-- Fix 'ls -l' alignment in zh_CN locale (bug #88346).
-
-* Mon May 12 2003 Tim Waugh <twaugh@redhat.com> 5.0-4
-- Prevent file descriptor leakage in du (bug #90563).
-- Build requires recent texinfo (bug #90439).
-
-* Wed Apr 30 2003 Tim Waugh <twaugh@redhat.com> 5.0-3
-- Allow obsolete options unless POSIXLY_CORRECT is set.
-
-* Sat Apr 12 2003 Tim Waugh <twaugh@redhat.com>
-- Fold bug was introduced by i18n patch; fixed there instead.
-
-* Fri Apr 11 2003 Matt Wilson <msw@redhat.com> 5.0-2
-- fix segfault in fold (#88683)
-
-* Sat Apr  5 2003 Tim Waugh <twaugh@redhat.com> 5.0-1
-- 5.0.
-
-* Mon Mar 24 2003 Tim Waugh <twaugh@redhat.com>
-- Use _smp_mflags.
-
-* Mon Mar 24 2003 Tim Waugh <twaugh@redhat.com> 4.5.11-2
-- Remove overwrite patch.
-- No longer seem to need nolibrt, errno patches.
-
-* Thu Mar 20 2003 Tim Waugh <twaugh@redhat.com>
-- No longer seem to need danglinglink, prompt, lug, touch_errno patches.
-
-* Thu Mar 20 2003 Tim Waugh <twaugh@redhat.com> 4.5.11-1
-- 4.5.11.
-- Use packaged readlink.
-
-* Wed Mar 19 2003 Tim Waugh <twaugh@redhat.com> 4.5.10-1
-- 4.5.10.
-- Update lug, touch_errno, acl, utmp, printf-ll, i18n, test-bugs patches.
-- Drop fr_fix, LC_TIME, preserve, regex patches.
-
-* Wed Mar 12 2003 Tim Waugh <twaugh@redhat.com> 4.5.3-21
-- Fixed another i18n patch bug (bug #82032).
-
-* Tue Mar 11 2003 Tim Waugh <twaugh@redhat.com> 4.5.3-20
-- Fix sort(1) efficiency in multibyte encoding (bug #82032).
-
-* Tue Feb 18 2003 Tim Waugh <twaugh@redhat.com> 4.5.3-19
-- Ship readlink(1) (bug #84200).
-
-* Thu Feb 13 2003 Tim Waugh <twaugh@redhat.com> 4.5.3-18
-- Deal with glibc < 2.2 in %%pre scriplet (bug #84090).
-
-* Wed Feb 12 2003 Tim Waugh <twaugh@redhat.com> 4.5.3-16
-- Require glibc >= 2.2 (bug #84090).
-
-* Tue Feb 11 2003 Bill Nottingham <notting@redhat.com> 4.5.3-15
-- fix group (#84095)
-
-* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 4.5.3-14
-- rebuilt
-
-* Thu Jan 16 2003 Tim Waugh <twaugh@redhat.com>
-- Fix rm(1) man page.
-
-* Thu Jan 16 2003 Tim Waugh <twaugh@redhat.com> 4.5.3-13
-- Fix re_compile_pattern check.
-- Fix su hang (bug #81653).
-
-* Tue Jan 14 2003 Tim Waugh <twaugh@redhat.com> 4.5.3-11
-- Fix memory size calculation.
-
-* Tue Dec 17 2002 Tim Waugh <twaugh@redhat.com> 4.5.3-10
-- Fix mv error message (bug #79809).
-
-* Mon Dec 16 2002 Tim Powers <timp@redhat.com> 4.5.3-9
-- added PreReq on grep
-
-* Fri Dec 13 2002 Tim Waugh <twaugh@redhat.com>
-- Fix cp --preserve with multiple arguments.
-
-* Thu Dec 12 2002 Tim Waugh <twaugh@redhat.com> 4.5.3-8
-- Turn on colorls for screen (bug #78816).
-
-* Mon Dec  9 2002 Tim Waugh <twaugh@redhat.com> 4.5.3-7
-- Fix mv (bug #79283).
-- Add patch27 (nogetline).
-
-* Sun Dec  1 2002 Tim Powers <timp@redhat.com> 4.5.3-6
-- use the su.pamd from sh-utils since it works properly with multilib systems
-
-* Fri Nov 29 2002 Tim Waugh <twaugh@redhat.com> 4.5.3-5
-- Fix test suite quoting problems.
-
-* Fri Nov 29 2002 Tim Waugh <twaugh@redhat.com> 4.5.3-4
-- Fix scriplets.
-- Fix i18n patch so it doesn't break uniq.
-- Fix several other patches to either make the test suite pass or
-  not run the relevant tests.
-- Run 'make check'.
-- Fix file list.
-
-* Thu Nov 28 2002 Tim Waugh <twaugh@redhat.com> 4.5.3-3
-- Adapted for Red Hat Linux.
-- Self-host for help2man.
-- Don't ship readlink just yet (maybe later).
-- Merge patches from fileutils and sh-utils (textutils ones are already
-  merged it seems).
-- Keep the binaries where the used to be (in particular, id and stat).
-
-* Sun Nov 17 2002 Stew Benedict <sbenedict@mandrakesoft.com> 4.5.3-2mdk
-- LI18NUX/LSB compliance (patch800)
-- Installed (but unpackaged) file(s) - /usr/share/info/dir
-
-* Thu Oct 31 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.3-1mdk
-- new release
-- rediff patch 180
-- merge patch 150 into 180
-
-* Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-6mdk
-- move su back to /bin
-
-* Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-5mdk
-- patch 0 : lg locale is illegal and must be renamed lug (pablo)
-
-* Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-4mdk
-- fix conflict with procps
-
-* Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-3mdk
-- patch 105 : fix install -s
-
-* Mon Oct 14 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-2mdk
-- fix build
-- don't chmode two times su
-- build with large file support
-- fix description
-- various spec cleanups
-- fix chroot installation
-- fix missing /bin/env
-- add old fileutils, sh-utils & textutils ChangeLogs
-
-* Fri Oct 11 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 4.5.2-1mdk
-- initial release (merge fileutils, sh-utils & textutils)
-- obsoletes/provides: sh-utils/fileutils/textutils
-- fileutils stuff go in 1xx range
-- sh-utils stuff go in 7xx range
-- textutils stuff go in 5xx range
-- drop obsoletes patches 1, 2, 10 (somes files're gone but we didn't ship
-  most of them)
-- rediff patches 103, 105, 111, 113, 180, 706
-- temporary disable patch 3 & 4
-- fix fileutils url
-
diff --git a/packaging/coreutils.spec b/packaging/coreutils.spec
deleted file mode 100644 (file)
index f6f43a7..0000000
+++ /dev/null
@@ -1,250 +0,0 @@
-%define nopam 1
-
-Summary: The GNU core utilities: a set of tools commonly used in shell scripts
-Name:    coreutils
-Version: 6.9
-Release: 9
-License: GPLv2+
-Epoch: 1
-Group:   System Environment/Base
-Url:     http://www.gnu.org/software/coreutils/
-Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.bz2
-Source1:  mktemp-1.5.tar.gz
-Source101:  coreutils-DIR_COLORS
-Source102:  coreutils-DIR_COLORS.xterm
-Source105:  coreutils-colorls.sh
-Source106:  coreutils-colorls.csh
-Source200:  coreutils-su.pamd
-Source202:  coreutils-su-l.pamd
-
-# From upstream
-Patch1: coreutils-futimens.patch
-Patch2: coreutils-ls-x.patch
-Patch3: coreutils-6.9-cp-i-u.patch
-
-# Our patches
-Patch100: coreutils-chgrp.patch
-
-# sh-utils
-Patch703: sh-utils-2.0.11-dateman.patch
-Patch704: sh-utils-1.16-paths.patch
-# RMS will never accept the PAM patch because it removes his historical
-# rant about Twenex and the wheel group, so we'll continue to maintain
-# it here indefinitely.
-Patch706: coreutils-pam.patch
-Patch713: coreutils-4.5.3-langinfo.patch
-Patch715: coreutils-4.5.3-sysinfo.patch
-
-# (sb) lin18nux/lsb compliance
-Patch800: coreutils-i18n.patch
-
-Patch900: coreutils-setsid.patch
-Patch907: coreutils-5.2.1-runuser.patch
-Patch908: coreutils-getgrouplist.patch
-Patch912: coreutils-overflow.patch
-Patch915: coreutils-split-pam.patch
-Patch916: coreutils-getfacl-exit-code.patch
-
-Patch1001: mktemp-1.5-build.patch
-
-BuildRequires: libacl-devel
-BuildRequires: bison
-BuildRequires: autoconf >= 2.58
-BuildRequires: automake >= 1.10
-%{?!nopam:BuildRequires: pam-devel}
-
-%{?!nopam:Requires: pam >= 0.66-12}
-
-Provides: mktemp
-
-%description
-These are the GNU core utilities.  This package is the combination of
-the old GNU fileutils, sh-utils, and textutils packages.
-
-%prep
-%setup -q -b 1
-
-# From upstream
-%patch1 -p1 -b .futimens
-%patch2 -p1 -b .ls-x
-%patch3 -p1 -b .cp-i-u
-
-# Our patches
-%patch100 -p1 -b .chgrp
-
-# sh-utils
-%patch703 -p1 -b .dateman
-%patch704 -p1 -b .paths
-%{?!nopam:%patch706 -p1 -b .pam}
-%patch713 -p1 -b .langinfo
-%patch715 -p1 -b .sysinfo
-
-# li18nux/lsb
-%patch800 -p1 -b .i18n
-
-# Coreutils
-#%patch900 -p1 -b .setsid
-#%patch907 -p1 -b .runuser
-%patch908 -p1 -b .getgrouplist
-%patch912 -p1 -b .overflow
-#%patch915 -p1 -b .splitl
-%patch916 -p1 -b .getfacl-exit-code
-
-sed -i -e 's/basic-1//g' tests/stty/Makefile*
-
-chmod a+x tests/sort/sort-mb-tests
-chmod a+x tests/ls/x-option
-
-%build
-pushd ../mktemp-1.5
-patch -p1 < %{PATCH1001}
-%configure
-make
-popd
-
-%ifarch s390 s390x
-# Build at -O1 for the moment (bug #196369).
-export CFLAGS="$RPM_OPT_FLAGS -fPIC -O1"
-%else
-export CFLAGS="$RPM_OPT_FLAGS -fpic"
-%endif
-%{expand:%%global optflags %{optflags} -D_GNU_SOURCE=1}
-%configure %{?!nopam:--enable-pam} \
-            --disable-nls \
-           DEFAULT_POSIX2_VERSION=200112 alternative=199209 || :
-make all \
-         %{?!nopam:CPPFLAGS="-DUSE_PAM"} \
-         su_LDFLAGS="-pie %{?!nopam:-lpam -lpam_misc}"
-
-# XXX docs should say /var/run/[uw]tmp not /etc/[uw]tmp
-sed -i -e 's,/etc/utmp,/var/run/utmp,g;s,/etc/wtmp,/var/run/wtmp,g' doc/coreutils.texi
-
-
-%check
-#make check
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-pushd ../mktemp-1.5
-make bindir=$RPM_BUILD_ROOT/bin mandir=$RPM_BUILD_ROOT/usr/share/man install 
-popd
-
-
-
-make DESTDIR=$RPM_BUILD_ROOT install
-
-# man pages are not installed with make install
-make mandir=$RPM_BUILD_ROOT%{_mandir} install-man
-
-# fix japanese catalog file
-if [ -d $RPM_BUILD_ROOT%{_datadir}/locale/ja_JP.EUC/LC_MESSAGES ]; then
-   mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/ja/LC_MESSAGES
-   mv $RPM_BUILD_ROOT%{_datadir}/locale/ja_JP.EUC/LC_MESSAGES/*mo \
-      $RPM_BUILD_ROOT%{_datadir}/locale/ja/LC_MESSAGES
-   rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ja_JP.EUC
-fi
-
-bzip2 -9f ChangeLog
-
-# let be compatible with old fileutils, sh-utils and textutils packages :
-mkdir -p $RPM_BUILD_ROOT{/bin,%_bindir,%_sbindir,/sbin}
-%{?!nopam:mkdir -p $RPM_BUILD_ROOT%_sysconfdir/pam.d}
-for f in basename cat chgrp chmod chown cp cut date dd df echo env false link ln ls mkdir mknod mv nice pwd rm rmdir sleep sort stty sync touch true uname unlink
-do
-    mv $RPM_BUILD_ROOT{%_bindir,/bin}/$f 
-done
-
-# chroot was in /usr/sbin :
-mv $RPM_BUILD_ROOT{%_bindir,%_sbindir}/chroot
-# {cat,sort,cut} were previously moved from bin to /usr/bin and linked into 
-for i in env cut; do ln -sf ../../bin/$i $RPM_BUILD_ROOT/usr/bin; done
-
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
-install -p -c -m644 %SOURCE101 $RPM_BUILD_ROOT%{_sysconfdir}/DIR_COLORS
-install -p -c -m644 %SOURCE102 $RPM_BUILD_ROOT%{_sysconfdir}/DIR_COLORS.xterm
-install -p -c -m644 %SOURCE105 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/colorls.sh
-install -p -c -m644 %SOURCE106 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/colorls.csh
-
-# su
-install -m 4755 src/su $RPM_BUILD_ROOT/bin
-#install -m 755 src/runuser $RPM_BUILD_ROOT/sbin
-
-# These come from util-linux and/or procps.
-for i in hostname uptime kill ; do
-    rm $RPM_BUILD_ROOT{%_bindir/$i,%_mandir/man1/$i.1}
-done
-
-%{?!nopam:install -p -m 644 %SOURCE200 $RPM_BUILD_ROOT%_sysconfdir/pam.d/su}
-%{?!nopam:install -p -m 644 %SOURCE202 $RPM_BUILD_ROOT%_sysconfdir/pam.d/su-l}
-#%{?!nopam:install -p -m 644 %SOURCE201 $RPM_BUILD_ROOT%_sysconfdir/pam.d/runuser}
-#%{?!nopam:install -p -m 644 %SOURCE203 $RPM_BUILD_ROOT%_sysconfdir/pam.d/runuser-l}
-
-# Compress ChangeLogs from before the fileutils/textutils/etc merge
-bzip2 -f9 old/*/C*
-
-# Use hard links instead of symbolic links for LC_TIME files (bug #246729).
-find %{buildroot}%{_datadir}/locale -type l | \
-(while read link
- do
-   target=$(readlink "$link")
-   rm -f "$link"
-   ln "$(dirname "$link")/$target" "$link"
- done)
-
-
-# (sb) Deal with Installed (but unpackaged) file(s) found
-rm -f $RPM_BUILD_ROOT%{_infodir}/dir
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
-%docs_package
-
-
-
-%files 
-%defattr(-,root,root,-)
-%config(noreplace) %{_sysconfdir}/DIR_COLORS*
-%{_sysconfdir}/profile.d/*
-%{?!nopam:%config(noreplace) %{_sysconfdir}/pam.d/su}
-%{?!nopam:%config(noreplace) %{_sysconfdir}/pam.d/su-l}
-%doc COPYING 
-/bin/basename
-/bin/cat
-/bin/chgrp
-/bin/chmod
-/bin/chown
-/bin/cp
-/bin/cut
-/bin/date
-/bin/dd
-/bin/df
-/bin/echo
-/bin/env
-/bin/false
-/bin/link
-/bin/ln
-/bin/ls
-/bin/mkdir
-/bin/mknod
-/bin/mv
-/bin/nice
-/bin/pwd
-/bin/rm
-/bin/rmdir
-/bin/sleep
-/bin/sort
-/bin/stty
-%attr(4755,root,root) /bin/su
-/bin/sync
-/bin/touch
-/bin/true
-/bin/uname
-/bin/unlink
-/bin/mktemp
-%_bindir/*
-%_sbindir/chroot
-#/sbin/runuser
-
old mode 100644 (file)
new mode 100755 (executable)
diff --git a/packaging/tizen-coreutils.manifest b/packaging/tizen-coreutils.manifest
new file mode 100644 (file)
index 0000000..67da90f
--- /dev/null
@@ -0,0 +1,10 @@
+<manifest>
+        <request>
+                <domain name="_"/>
+        </request>
+        <assign>
+                <filesystem path="/bin/*" exec_label="none" />
+                <filesystem path="/usr/bin/*" exec_label="none" />
+                <filesystem path="/usr/sbin/*" exec_label="none" />
+        </assign>
+</manifest>
index d939f22..f66a501 100644 (file)
@@ -1,23 +1,28 @@
 %define _unpackaged_files_terminate_build 0
 
 Summary:       The GNU core utilities: a set of tools commonly used in shell scripts
-
 Name:          tizen-coreutils
 Version:       6.9
-Release:       9
-License:       GPLv2+
+Release:       13
+License:       GPL-2.0+
 Group:         System Environment/Base
 Url:           http://www.gnu.org/software/coreutils/
+
 Source0:       ftp://ftp.gnu.org/gnu/%{name}/coreutils-%{version}.tar.bz2
 Source1:       mktemp-1.5.tar.gz
-Patch1:                coreutils-futimens.patch
+Source1001:    %{name}.manifest
 
+Patch1:                coreutils-futimens.patch
+Patch2:                coreutils-6.9-smack.patch
 Patch1001:     mktemp-1.5-build.patch
+
 BuildRequires: autoconf >= 2.58
 BuildRequires: automake >= 1.10
 BuildRequires: gettext findutils
 
 Provides:      fileutils sh-utils stat textutils mktemp
+Provides:      coreutils
+Obsoletes:     coreutils
 
 %description
 These are the GNU core utilities.  This package is the combination of
@@ -26,8 +31,10 @@ the old GNU fileutils, sh-utils, and textutils packages.
 %prep
 %setup -q -b 1 -n coreutils-%{version}
 %patch1 -p1 -b .futimens
+%patch2 -p1 -b .smack
 
 %build
+cp %{SOURCE1001} .
 pushd ../mktemp-1.5
 patch -p1 < %{PATCH1001}
 %configure
@@ -71,14 +78,26 @@ find %{buildroot}%{_datadir}/locale -type l | \
    rm -f "$link"
    ln "$(dirname "$link")/$target" "$link"
  done)
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
+for keyword in LICENSE COPYING COPYRIGHT;
+do
+       for file in `find %{_builddir} -name $keyword`;
+       do
+               cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
+               echo "";
+       done;
+done
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %docs_package
 
 %files
+%manifest %{name}.manifest
 %doc COPYING
+%{_datadir}/license/%{name}
 /bin/cat
 /bin/chgrp
 /bin/chmod
@@ -116,6 +135,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/nice
 %{_bindir}/od
 %{_bindir}/printenv
+%{_bindir}/printf
+%{_bindir}/readlink
 %{_bindir}/seq
 %{_bindir}/sort
 %{_bindir}/stat