summaryrefslogtreecommitdiffstats
path: root/abs
diff options
context:
space:
mode:
Diffstat (limited to 'abs')
-rw-r--r--abs/core/parted/PKGBUILD24
-rw-r--r--abs/core/parted/linux.c.patch25
l---------abs/core/parted/parted-3.0-3.src.tar.gz1
-rw-r--r--abs/extra/gptfdisk/PKGBUILD35
l---------abs/extra/gptfdisk/gptfdisk-0.7.2-1.src.tar.gz1
5 files changed, 77 insertions, 9 deletions
diff --git a/abs/core/parted/PKGBUILD b/abs/core/parted/PKGBUILD
index d166fd8..6bb7ce0 100644
--- a/abs/core/parted/PKGBUILD
+++ b/abs/core/parted/PKGBUILD
@@ -1,31 +1,37 @@
-# $Id: PKGBUILD 82289 2010-06-10 01:52:54Z andrea $
+# $Id$
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>
pkgname=parted
-pkgver=2.3
-pkgrel=1
+pkgver=3.0
+pkgrel=3
pkgdesc="A program for creating, destroying, resizing, checking and copying partitions"
arch=('i686' 'x86_64')
license=('GPL3')
url="http://www.gnu.org/software/parted/parted.html"
depends=('device-mapper' 'e2fsprogs')
+makedepends=('pkgconfig')
options=('!libtool')
install=${pkgname}.install
-source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz")
-md5sums=('30ceb6df7e8681891e865e2fe5a7903d')
+source=("http://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+ linux.c.patch)
+md5sums=('c415e5c97f86b5ff65a2d925e5a3feb7'
+ '08c942e212424e238271217f52c59706')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
+ # FS#25307
+ patch -Np1 -i ${srcdir}/linux.c.patch
+
./configure --prefix=/usr \
--disable-debug \
- --disable-rpath \
- --disable-Werror || return 1
- make || return 1
+ --disable-rpath
+ make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install || return 1
+
+ make DESTDIR="${pkgdir}" install
}
diff --git a/abs/core/parted/linux.c.patch b/abs/core/parted/linux.c.patch
new file mode 100644
index 0000000..c9feea1
--- /dev/null
+++ b/abs/core/parted/linux.c.patch
@@ -0,0 +1,25 @@
+--- a/libparted/arch/linux.c 2011-05-27 14:52:37.000000000 +0200
++++ b/libparted/arch/linux.c 2011-07-29 20:25:38.000000000 +0200
+@@ -601,17 +601,17 @@
+ static int kver = -1;
+
+ struct utsname uts;
+- int major;
+- int minor;
+- int teeny;
++ int major = 0;
++ int minor = 0;
++ int teeny = 0;
+
+ if (kver != -1)
+ return kver;
+
+ if (uname (&uts))
+ return kver = 0;
+- if (sscanf (uts.release, "%u.%u.%u", &major, &minor, &teeny) != 3)
+- return kver = 0;
++ int n = sscanf (uts.release, "%u.%u.%u", &major, &minor, &teeny);
++ assert (n == 2 || n == 3);
+
+ return kver = KERNEL_VERSION (major, minor, teeny);
+ }
diff --git a/abs/core/parted/parted-3.0-3.src.tar.gz b/abs/core/parted/parted-3.0-3.src.tar.gz
new file mode 120000
index 0000000..0aea576
--- /dev/null
+++ b/abs/core/parted/parted-3.0-3.src.tar.gz
@@ -0,0 +1 @@
+/data/pkg_repo/packages/parted-3.0-3.src.tar.gz \ No newline at end of file
diff --git a/abs/extra/gptfdisk/PKGBUILD b/abs/extra/gptfdisk/PKGBUILD
new file mode 100644
index 0000000..3afe8e3
--- /dev/null
+++ b/abs/extra/gptfdisk/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Evangelos Foutras <foutrelis@gmail.com>
+# Contributor: Tobias Powalowski <tpowa@archlinux.org>
+# Contributor: Hokum <hokum_at_mail_dot_ru>
+
+pkgname=gptfdisk
+pkgver=0.7.2
+pkgrel=1
+pkgdesc="A text-mode partitioning tool that works on Globally Unique Identifier (GUID) Partition Table (GPT) disks"
+arch=('i686' 'x86_64')
+url="http://www.rodsbooks.com/gdisk/"
+license=('GPL2')
+depends=('gcc-libs' 'util-linux' 'popt' 'icu')
+provides=("gdisk=$pkgver")
+conflicts=('gdisk')
+replaces=('gdisk')
+source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
+md5sums=('31deeb7acb5104d56ba2ddeafd907513')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make
+}
+
+package () {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ install -d "$pkgdir"/{sbin,usr/share/{man/man8,gdisk}}
+ install -t "$pkgdir/sbin" gdisk sgdisk fixparts
+ install -m644 -t "$pkgdir/usr/share/man/man8" {gdisk,sgdisk}.8
+ install -m644 -t "$pkgdir/usr/share/gdisk" README NEWS
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/extra/gptfdisk/gptfdisk-0.7.2-1.src.tar.gz b/abs/extra/gptfdisk/gptfdisk-0.7.2-1.src.tar.gz
new file mode 120000
index 0000000..2c17669
--- /dev/null
+++ b/abs/extra/gptfdisk/gptfdisk-0.7.2-1.src.tar.gz
@@ -0,0 +1 @@
+/data/pkg_repo/packages/gptfdisk-0.7.2-1.src.tar.gz \ No newline at end of file