Browse Source

sfdisk: Added sfdisk 3.07 - sfdisk ripped out from util-linux

stable/0.2
Alejandro Mery 14 years ago
parent
commit
8ea22e35df
  1. 31
      filesystem/sfdisk/sfdisk.001.include_sys_syscalls_h.patch
  2. 39
      filesystem/sfdisk/sfdisk.005.no-llseek-fix.patch
  3. 39
      filesystem/sfdisk/sfdisk.010.index-rindex-fix.patch
  4. 17
      filesystem/sfdisk/sfdisk.conf
  5. 30
      filesystem/sfdisk/sfdisk.desc

31
filesystem/sfdisk/sfdisk.001.include_sys_syscalls_h.patch

@ -0,0 +1,31 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../sfdisk/sfdisk.001.include_sys_syscalls_h.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
Imported from buildroot
http://git.uclibc.org/buildroot/tree/package/sfdisk
--- sfdisk/sfdisk.c.oorig 2006-10-09 16:24:06.000000000 +0200
+++ sfdisk/sfdisk.c 2006-10-09 16:24:20.000000000 +0200
@@ -47,6 +47,9 @@
#include <sys/stat.h>
#include <sys/utsname.h>
#ifdef __linux__
+#define _LIBC
+#include <sys/syscall.h>
+#undef _LIBC
#include <linux/unistd.h> /* _syscall */
#endif
#include "nls.h"

39
filesystem/sfdisk/sfdisk.005.no-llseek-fix.patch

@ -0,0 +1,39 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../sfdisk/sfdisk.005.no-llseek-fix.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
Imported from buildroot
http://git.uclibc.org/buildroot/tree/package/sfdisk
--- sfdisk_vanilla/sfdisk.c 2004-01-13 13:03:11.000000000 +0000
+++ sfdisk_llseek-fix/sfdisk.c 2008-04-17 08:42:35.000000000 +0000
@@ -134,9 +137,17 @@
* Note: we use 512-byte sectors here, irrespective of the hardware ss.
*/
#if defined(__linux__) && !defined (__alpha__) && !defined (__ia64__) && !defined (__x86_64__) && !defined (__s390x__)
+#if defined(_llseek)
static
_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
loff_t *, res, unsigned int, wh);
+#else
+static int _llseek (unsigned int fd, unsigned long oh,
+ unsigned long ol, long long *result,
+ unsigned int origin) {
+ return syscall (__NR__llseek, fd, oh, ol, result, origin);
+#endif
+}
#endif
static int

39
filesystem/sfdisk/sfdisk.010.index-rindex-fix.patch

@ -0,0 +1,39 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../sfdisk/sfdisk.010.index-rindex-fix.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
Imported from buildroot
http://git.uclibc.org/buildroot/tree/package/sfdisk
--- sfdisk_llseek-fix/sfdisk.c 2008-04-17 08:42:35.000000000 +0000
+++ sfdisk_index-rindex-fix/sfdisk.c 2008-04-17 09:50:17.000000000 +0000
@@ -58,6 +58,17 @@
#define SIZE(a) (sizeof(a)/sizeof(a[0]))
+/*
+ * Why these wouldn't be defined in string.h, I don't know, there is a block
+ * testing for BSD, and no other mention of these functions ... NK
+ */
+#if !defined(index)
+# define index(s,c) strchr((s), (c))
+#endif
+#if !defined(rindex)
+# define rindex(s,c) strrchr((s), (c))
+#endif
+
/*
* Table of contents:
* A. About seeking

17
filesystem/sfdisk/sfdisk.conf

@ -0,0 +1,17 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../sfdisk/sfdisk.conf
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# 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; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
makeinstopt=
hook_add postmake 5 'cp -vf sfdisk "$root$sbindir"'

30
filesystem/sfdisk/sfdisk.desc

@ -0,0 +1,30 @@
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../sfdisk/sfdisk.desc
[COPY] Copyright (C) 2011 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- SDE-COPYRIGHT-NOTE-END ---
[I] sfdisk ripped out from util-linux
[T] sfdisk ripped out from util-linux by Erik Andersen for embedded usage.
[A] Andries E. Brouwer <aeb@cwi.nl>
[A] Erik Andersen <andersen@codepoet.org>
[M] Alejandro Mery <amery@opensde.org>
[C] extra/tool
[L] GPL
[S] Stable
[V] 3.07
[P] O -?---5---9 800.000
[D] 4082996365 sfdisk-3.07.tar.bz2 !http://www.uclibc.org/sfdisk.tar.bz2
Loading…
Cancel
Save