[arch-commits] Commit in efibootmgr/repos (10 files)

Tobias Powalowski tpowa at nymeria.archlinux.org
Mon Sep 16 12:11:58 UTC 2013


    Date: Monday, September 16, 2013 @ 14:11:58
  Author: tpowa
Revision: 194435

db-move: moved efibootmgr from [testing] to [core] (i686, x86_64)

Added:
  efibootmgr/repos/core-i686/PKGBUILD
    (from rev 194434, efibootmgr/repos/testing-i686/PKGBUILD)
  efibootmgr/repos/core-i686/efibootmgr-tilt_slashes-func.patch
    (from rev 194434, efibootmgr/repos/testing-i686/efibootmgr-tilt_slashes-func.patch)
  efibootmgr/repos/core-x86_64/PKGBUILD
    (from rev 194434, efibootmgr/repos/testing-x86_64/PKGBUILD)
  efibootmgr/repos/core-x86_64/efibootmgr-tilt_slashes-func.patch
    (from rev 194434, efibootmgr/repos/testing-x86_64/efibootmgr-tilt_slashes-func.patch)
Deleted:
  efibootmgr/repos/core-i686/PKGBUILD
  efibootmgr/repos/core-i686/efibootmgr-tilt_slashes-func.patch
  efibootmgr/repos/core-x86_64/PKGBUILD
  efibootmgr/repos/core-x86_64/efibootmgr-tilt_slashes-func.patch
  efibootmgr/repos/testing-i686/
  efibootmgr/repos/testing-x86_64/

------------------------------------------------+
 /PKGBUILD                                      |  118 ++++++++++++++++++++++
 /efibootmgr-tilt_slashes-func.patch            |  122 +++++++++++++++++++++++
 core-i686/PKGBUILD                             |   49 ---------
 core-i686/efibootmgr-tilt_slashes-func.patch   |   61 -----------
 core-x86_64/PKGBUILD                           |   49 ---------
 core-x86_64/efibootmgr-tilt_slashes-func.patch |   61 -----------
 6 files changed, 240 insertions(+), 220 deletions(-)

Deleted: core-i686/PKGBUILD
===================================================================
--- core-i686/PKGBUILD	2013-09-16 11:00:09 UTC (rev 194434)
+++ core-i686/PKGBUILD	2013-09-16 12:11:58 UTC (rev 194435)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
-# Contributor : Murtuza Akhtari <inxsible at gmail dot com>
-# Contributor: Keshav P R <skodabenz at rocketmail dot com>
-
-pkgname=efibootmgr
-pkgver=0.6.0
-pkgrel=3
-pkgdesc="Tool to modify UEFI Firmware Boot Manager Variables."
-arch=('i686' 'x86_64')
-url="http://linux.dell.com/efibootmgr/"
-license=('GPL2')
-depends=('zlib' 'pciutils')
-makedepends=()
-provides=()
-options=(strip purge docs zipman !emptydirs)
-
-source=("http://linux.dell.com/efibootmgr/permalink/${pkgname}-${pkgver}.tar.gz"
-        "efibootmgr-tilt_slashes-func.patch"
-)
-
-build () {	
-	rm -rf ${srcdir}/efibootmgr-${pkgver}_build/ || true
-	
-	cp -r ${srcdir}/efibootmgr-${pkgver} ${srcdir}/efibootmgr-${pkgver}_build
-	
-	cd ${srcdir}/efibootmgr-${pkgver}_build/
-	patch -Np1 -i ${srcdir}/efibootmgr-tilt_slashes-func.patch
-	echo
-	
-	CFLAGS= make
-	echo
-	
-}
-
-
-package() {
-	
-	mkdir -p ${pkgdir}/usr/bin/
-	mkdir -p ${pkgdir}/usr/share/man/man8/
-	
-	cd ${srcdir}/efibootmgr-${pkgver}_build/
-	
-	install -D -m755 ${srcdir}/efibootmgr-${pkgver}_build/src/efibootmgr/efibootmgr ${pkgdir}/usr/bin/efibootmgr
-	install -D -m644 ${srcdir}/efibootmgr-${pkgver}_build/src/man/man8/efibootmgr.8 ${pkgdir}/usr/share/man/man8/efibootmgr.8
-	
-}
-md5sums=('9e9a31d79e579644de83a14139b66d10'
-         '3622c0e978cf859cae60803a6b6a0c5e')

Copied: efibootmgr/repos/core-i686/PKGBUILD (from rev 194434, efibootmgr/repos/testing-i686/PKGBUILD)
===================================================================
--- core-i686/PKGBUILD	                        (rev 0)
+++ core-i686/PKGBUILD	2013-09-16 12:11:58 UTC (rev 194435)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: Murtuza Akhtari <inxsible at gmail dot com>
+# Contributor: Keshav Padram Amburay <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
+
+pkgname="efibootmgr"
+
+_gitroot="git://github.com/vathpela/efibootmgr.git"
+_gitname="${pkgname}-pjones"
+_gitbranch="libefivars"
+
+pkgver=0.6.0.138.1132342
+pkgrel=1
+pkgdesc="Tool to modify UEFI Firmware Boot Manager Variables"
+arch=('x86_64' 'i686')
+url="https://github.com/vathpela/efibootmgr"
+license=('GPL2')
+makedepends=('git')
+depends=('pciutils' 'efivar' 'zlib')
+options=('strip' 'zipman' '!emptydirs' '!libtool')
+
+source=("${_gitname}::git+${_gitroot}#branch=${_gitbranch}")
+sha1sums=('SKIP')
+
+pkgver() {
+	cd "${srcdir}/${_gitname}/"
+	
+	_RELEASE_MAJOR="$(grep 'RELEASE_MAJOR' "${srcdir}/${_gitname}/Makefile" | head -1 | sed -e 's|RELEASE_MAJOR := ||g')"
+	_RELEASE_MINOR="$(grep 'RELEASE_MINOR' "${srcdir}/${_gitname}/Makefile" | head -1 | sed -e 's|RELEASE_MINOR := ||g')"
+	_RELEASE_SUBLEVEL="$(grep 'RELEASE_SUBLEVEL' "${srcdir}/${_gitname}/Makefile" | head -1 | sed -e 's|RELEASE_SUBLEVEL := ||g')"
+	
+	_ACTUAL_VER="$(echo ${_RELEASE_MAJOR}.${_RELEASE_MINOR}.${_RELEASE_SUBLEVEL} | sed 's| ||g')"
+	
+	echo "${_ACTUAL_VER}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+build() {
+	
+	rm -rf "${srcdir}/${_gitname}_build/" || true
+	cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}_build"
+	
+	cd "${srcdir}/${_gitname}_build/"
+	
+	make EXTRA_CFLAGS="-Os"
+	echo
+	
+}
+
+package() {
+	
+	cd "${srcdir}/${_gitname}_build/"
+	
+	install -d "${pkgdir}/usr/bin/"
+	install -D -m0755 "${srcdir}/${_gitname}_build/src/efibootmgr/efibootmgr" "${pkgdir}/usr/bin/efibootmgr"
+	
+	install -d "${pkgdir}/usr/share/man/man8/"
+	install -D -m0644 "${srcdir}/${_gitname}_build/src/man/man8/efibootmgr.8" "${pkgdir}/usr/share/man/man8/efibootmgr.8"
+	
+}

Deleted: core-i686/efibootmgr-tilt_slashes-func.patch
===================================================================
--- core-i686/efibootmgr-tilt_slashes-func.patch	2013-09-16 11:00:09 UTC (rev 194434)
+++ core-i686/efibootmgr-tilt_slashes-func.patch	2013-09-16 12:11:58 UTC (rev 194435)
@@ -1,61 +0,0 @@
-diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
-index 236365a..9883961 100644
---- a/src/efibootmgr/efibootmgr.c
-+++ b/src/efibootmgr/efibootmgr.c
-@@ -803,6 +803,7 @@ usage()
- 	printf("\t-V | --version          return version and exit\n");
- 	printf("\t-w | --write-signature  write unique sig to MBR if needed\n");
- 	printf("\t-@ | --append-binary-args file  append extra args from file (use \"-\" for stdin)\n");
-+	printf("\t   | --help             show help/usage\n");
- }
- 
- static void
-@@ -863,6 +864,7 @@ parse_opts(int argc, char **argv)
- 			{"version",                no_argument, 0, 'V'},
- 			{"write-signature",        no_argument, 0, 'w'},
- 			{"append-binary-args", required_argument, 0, '@'},
-+			{"help",                   no_argument, 0,   2},
- 			{0, 0, 0, 0}
- 		};
- 
-@@ -1014,6 +1016,10 @@ parse_opts(int argc, char **argv)
- 			opts.write_signature = 1;
- 			break;
- 
-+		case 2:
-+			usage();
-+			exit(1);
-+
- 		default:
- 			usage();
- 			exit(1);
-diff --git a/src/lib/efi.c b/src/lib/efi.c
-index a4ce5cf..8ef8be8 100644
---- a/src/lib/efi.c
-+++ b/src/lib/efi.c
-@@ -70,6 +70,16 @@ efi_guid_unparse(efi_guid_t *guid, char *out)
-         return out;
- }
- 
-+char *
-+tilt_slashes(char *s)
-+{
-+	char *p;
-+	for (p = s; *p; p++)
-+		if (*p == '/')
-+			*p = '\\';
-+	return s;
-+}
-+
- void
- set_fs_kernel_calls()
- {
-@@ -535,7 +545,7 @@ char *make_disk_load_option(char *p, char *disk)
- 				     signature,
- 				     mbr_type, signature_type);
- 
--    efichar_from_char(os_loader_path, opts.loader, sizeof(os_loader_path));
-+    efichar_from_char(os_loader_path, tilt_slashes(opts.loader), sizeof(os_loader_path));
-     p += make_file_path_device_path (p, os_loader_path);
-     p += make_end_device_path       (p);
- 

Copied: efibootmgr/repos/core-i686/efibootmgr-tilt_slashes-func.patch (from rev 194434, efibootmgr/repos/testing-i686/efibootmgr-tilt_slashes-func.patch)
===================================================================
--- core-i686/efibootmgr-tilt_slashes-func.patch	                        (rev 0)
+++ core-i686/efibootmgr-tilt_slashes-func.patch	2013-09-16 12:11:58 UTC (rev 194435)
@@ -0,0 +1,61 @@
+diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
+index 236365a..9883961 100644
+--- a/src/efibootmgr/efibootmgr.c
++++ b/src/efibootmgr/efibootmgr.c
+@@ -803,6 +803,7 @@ usage()
+ 	printf("\t-V | --version          return version and exit\n");
+ 	printf("\t-w | --write-signature  write unique sig to MBR if needed\n");
+ 	printf("\t-@ | --append-binary-args file  append extra args from file (use \"-\" for stdin)\n");
++	printf("\t   | --help             show help/usage\n");
+ }
+ 
+ static void
+@@ -863,6 +864,7 @@ parse_opts(int argc, char **argv)
+ 			{"version",                no_argument, 0, 'V'},
+ 			{"write-signature",        no_argument, 0, 'w'},
+ 			{"append-binary-args", required_argument, 0, '@'},
++			{"help",                   no_argument, 0,   2},
+ 			{0, 0, 0, 0}
+ 		};
+ 
+@@ -1014,6 +1016,10 @@ parse_opts(int argc, char **argv)
+ 			opts.write_signature = 1;
+ 			break;
+ 
++		case 2:
++			usage();
++			exit(1);
++
+ 		default:
+ 			usage();
+ 			exit(1);
+diff --git a/src/lib/efi.c b/src/lib/efi.c
+index a4ce5cf..8ef8be8 100644
+--- a/src/lib/efi.c
++++ b/src/lib/efi.c
+@@ -70,6 +70,16 @@ efi_guid_unparse(efi_guid_t *guid, char *out)
+         return out;
+ }
+ 
++char *
++tilt_slashes(char *s)
++{
++	char *p;
++	for (p = s; *p; p++)
++		if (*p == '/')
++			*p = '\\';
++	return s;
++}
++
+ void
+ set_fs_kernel_calls()
+ {
+@@ -535,7 +545,7 @@ char *make_disk_load_option(char *p, char *disk)
+ 				     signature,
+ 				     mbr_type, signature_type);
+ 
+-    efichar_from_char(os_loader_path, opts.loader, sizeof(os_loader_path));
++    efichar_from_char(os_loader_path, tilt_slashes(opts.loader), sizeof(os_loader_path));
+     p += make_file_path_device_path (p, os_loader_path);
+     p += make_end_device_path       (p);
+ 

Deleted: core-x86_64/PKGBUILD
===================================================================
--- core-x86_64/PKGBUILD	2013-09-16 11:00:09 UTC (rev 194434)
+++ core-x86_64/PKGBUILD	2013-09-16 12:11:58 UTC (rev 194435)
@@ -1,49 +0,0 @@
-# $Id$
-# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
-# Contributor : Murtuza Akhtari <inxsible at gmail dot com>
-# Contributor: Keshav P R <skodabenz at rocketmail dot com>
-
-pkgname=efibootmgr
-pkgver=0.6.0
-pkgrel=3
-pkgdesc="Tool to modify UEFI Firmware Boot Manager Variables."
-arch=('i686' 'x86_64')
-url="http://linux.dell.com/efibootmgr/"
-license=('GPL2')
-depends=('zlib' 'pciutils')
-makedepends=()
-provides=()
-options=(strip purge docs zipman !emptydirs)
-
-source=("http://linux.dell.com/efibootmgr/permalink/${pkgname}-${pkgver}.tar.gz"
-        "efibootmgr-tilt_slashes-func.patch"
-)
-
-build () {	
-	rm -rf ${srcdir}/efibootmgr-${pkgver}_build/ || true
-	
-	cp -r ${srcdir}/efibootmgr-${pkgver} ${srcdir}/efibootmgr-${pkgver}_build
-	
-	cd ${srcdir}/efibootmgr-${pkgver}_build/
-	patch -Np1 -i ${srcdir}/efibootmgr-tilt_slashes-func.patch
-	echo
-	
-	CFLAGS= make
-	echo
-	
-}
-
-
-package() {
-	
-	mkdir -p ${pkgdir}/usr/bin/
-	mkdir -p ${pkgdir}/usr/share/man/man8/
-	
-	cd ${srcdir}/efibootmgr-${pkgver}_build/
-	
-	install -D -m755 ${srcdir}/efibootmgr-${pkgver}_build/src/efibootmgr/efibootmgr ${pkgdir}/usr/bin/efibootmgr
-	install -D -m644 ${srcdir}/efibootmgr-${pkgver}_build/src/man/man8/efibootmgr.8 ${pkgdir}/usr/share/man/man8/efibootmgr.8
-	
-}
-md5sums=('9e9a31d79e579644de83a14139b66d10'
-         '3622c0e978cf859cae60803a6b6a0c5e')

Copied: efibootmgr/repos/core-x86_64/PKGBUILD (from rev 194434, efibootmgr/repos/testing-x86_64/PKGBUILD)
===================================================================
--- core-x86_64/PKGBUILD	                        (rev 0)
+++ core-x86_64/PKGBUILD	2013-09-16 12:11:58 UTC (rev 194435)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: Murtuza Akhtari <inxsible at gmail dot com>
+# Contributor: Keshav Padram Amburay <(the.ridikulus.rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
+
+pkgname="efibootmgr"
+
+_gitroot="git://github.com/vathpela/efibootmgr.git"
+_gitname="${pkgname}-pjones"
+_gitbranch="libefivars"
+
+pkgver=0.6.0.138.1132342
+pkgrel=1
+pkgdesc="Tool to modify UEFI Firmware Boot Manager Variables"
+arch=('x86_64' 'i686')
+url="https://github.com/vathpela/efibootmgr"
+license=('GPL2')
+makedepends=('git')
+depends=('pciutils' 'efivar' 'zlib')
+options=('strip' 'zipman' '!emptydirs' '!libtool')
+
+source=("${_gitname}::git+${_gitroot}#branch=${_gitbranch}")
+sha1sums=('SKIP')
+
+pkgver() {
+	cd "${srcdir}/${_gitname}/"
+	
+	_RELEASE_MAJOR="$(grep 'RELEASE_MAJOR' "${srcdir}/${_gitname}/Makefile" | head -1 | sed -e 's|RELEASE_MAJOR := ||g')"
+	_RELEASE_MINOR="$(grep 'RELEASE_MINOR' "${srcdir}/${_gitname}/Makefile" | head -1 | sed -e 's|RELEASE_MINOR := ||g')"
+	_RELEASE_SUBLEVEL="$(grep 'RELEASE_SUBLEVEL' "${srcdir}/${_gitname}/Makefile" | head -1 | sed -e 's|RELEASE_SUBLEVEL := ||g')"
+	
+	_ACTUAL_VER="$(echo ${_RELEASE_MAJOR}.${_RELEASE_MINOR}.${_RELEASE_SUBLEVEL} | sed 's| ||g')"
+	
+	echo "${_ACTUAL_VER}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+build() {
+	
+	rm -rf "${srcdir}/${_gitname}_build/" || true
+	cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}_build"
+	
+	cd "${srcdir}/${_gitname}_build/"
+	
+	make EXTRA_CFLAGS="-Os"
+	echo
+	
+}
+
+package() {
+	
+	cd "${srcdir}/${_gitname}_build/"
+	
+	install -d "${pkgdir}/usr/bin/"
+	install -D -m0755 "${srcdir}/${_gitname}_build/src/efibootmgr/efibootmgr" "${pkgdir}/usr/bin/efibootmgr"
+	
+	install -d "${pkgdir}/usr/share/man/man8/"
+	install -D -m0644 "${srcdir}/${_gitname}_build/src/man/man8/efibootmgr.8" "${pkgdir}/usr/share/man/man8/efibootmgr.8"
+	
+}

Deleted: core-x86_64/efibootmgr-tilt_slashes-func.patch
===================================================================
--- core-x86_64/efibootmgr-tilt_slashes-func.patch	2013-09-16 11:00:09 UTC (rev 194434)
+++ core-x86_64/efibootmgr-tilt_slashes-func.patch	2013-09-16 12:11:58 UTC (rev 194435)
@@ -1,61 +0,0 @@
-diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
-index 236365a..9883961 100644
---- a/src/efibootmgr/efibootmgr.c
-+++ b/src/efibootmgr/efibootmgr.c
-@@ -803,6 +803,7 @@ usage()
- 	printf("\t-V | --version          return version and exit\n");
- 	printf("\t-w | --write-signature  write unique sig to MBR if needed\n");
- 	printf("\t-@ | --append-binary-args file  append extra args from file (use \"-\" for stdin)\n");
-+	printf("\t   | --help             show help/usage\n");
- }
- 
- static void
-@@ -863,6 +864,7 @@ parse_opts(int argc, char **argv)
- 			{"version",                no_argument, 0, 'V'},
- 			{"write-signature",        no_argument, 0, 'w'},
- 			{"append-binary-args", required_argument, 0, '@'},
-+			{"help",                   no_argument, 0,   2},
- 			{0, 0, 0, 0}
- 		};
- 
-@@ -1014,6 +1016,10 @@ parse_opts(int argc, char **argv)
- 			opts.write_signature = 1;
- 			break;
- 
-+		case 2:
-+			usage();
-+			exit(1);
-+
- 		default:
- 			usage();
- 			exit(1);
-diff --git a/src/lib/efi.c b/src/lib/efi.c
-index a4ce5cf..8ef8be8 100644
---- a/src/lib/efi.c
-+++ b/src/lib/efi.c
-@@ -70,6 +70,16 @@ efi_guid_unparse(efi_guid_t *guid, char *out)
-         return out;
- }
- 
-+char *
-+tilt_slashes(char *s)
-+{
-+	char *p;
-+	for (p = s; *p; p++)
-+		if (*p == '/')
-+			*p = '\\';
-+	return s;
-+}
-+
- void
- set_fs_kernel_calls()
- {
-@@ -535,7 +545,7 @@ char *make_disk_load_option(char *p, char *disk)
- 				     signature,
- 				     mbr_type, signature_type);
- 
--    efichar_from_char(os_loader_path, opts.loader, sizeof(os_loader_path));
-+    efichar_from_char(os_loader_path, tilt_slashes(opts.loader), sizeof(os_loader_path));
-     p += make_file_path_device_path (p, os_loader_path);
-     p += make_end_device_path       (p);
- 

Copied: efibootmgr/repos/core-x86_64/efibootmgr-tilt_slashes-func.patch (from rev 194434, efibootmgr/repos/testing-x86_64/efibootmgr-tilt_slashes-func.patch)
===================================================================
--- core-x86_64/efibootmgr-tilt_slashes-func.patch	                        (rev 0)
+++ core-x86_64/efibootmgr-tilt_slashes-func.patch	2013-09-16 12:11:58 UTC (rev 194435)
@@ -0,0 +1,61 @@
+diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
+index 236365a..9883961 100644
+--- a/src/efibootmgr/efibootmgr.c
++++ b/src/efibootmgr/efibootmgr.c
+@@ -803,6 +803,7 @@ usage()
+ 	printf("\t-V | --version          return version and exit\n");
+ 	printf("\t-w | --write-signature  write unique sig to MBR if needed\n");
+ 	printf("\t-@ | --append-binary-args file  append extra args from file (use \"-\" for stdin)\n");
++	printf("\t   | --help             show help/usage\n");
+ }
+ 
+ static void
+@@ -863,6 +864,7 @@ parse_opts(int argc, char **argv)
+ 			{"version",                no_argument, 0, 'V'},
+ 			{"write-signature",        no_argument, 0, 'w'},
+ 			{"append-binary-args", required_argument, 0, '@'},
++			{"help",                   no_argument, 0,   2},
+ 			{0, 0, 0, 0}
+ 		};
+ 
+@@ -1014,6 +1016,10 @@ parse_opts(int argc, char **argv)
+ 			opts.write_signature = 1;
+ 			break;
+ 
++		case 2:
++			usage();
++			exit(1);
++
+ 		default:
+ 			usage();
+ 			exit(1);
+diff --git a/src/lib/efi.c b/src/lib/efi.c
+index a4ce5cf..8ef8be8 100644
+--- a/src/lib/efi.c
++++ b/src/lib/efi.c
+@@ -70,6 +70,16 @@ efi_guid_unparse(efi_guid_t *guid, char *out)
+         return out;
+ }
+ 
++char *
++tilt_slashes(char *s)
++{
++	char *p;
++	for (p = s; *p; p++)
++		if (*p == '/')
++			*p = '\\';
++	return s;
++}
++
+ void
+ set_fs_kernel_calls()
+ {
+@@ -535,7 +545,7 @@ char *make_disk_load_option(char *p, char *disk)
+ 				     signature,
+ 				     mbr_type, signature_type);
+ 
+-    efichar_from_char(os_loader_path, opts.loader, sizeof(os_loader_path));
++    efichar_from_char(os_loader_path, tilt_slashes(opts.loader), sizeof(os_loader_path));
+     p += make_file_path_device_path (p, os_loader_path);
+     p += make_end_device_path       (p);
+ 




More information about the arch-commits mailing list