2016-04-26 16:58:40 +02:00
|
|
|
Index: pesign-0.112/util/Makefile
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2016-04-26 16:58:40 +02:00
|
|
|
--- pesign-0.112.orig/util/Makefile
|
|
|
|
+++ pesign-0.112/util/Makefile
|
2015-12-01 10:03:35 +01:00
|
|
|
@@ -7,7 +7,7 @@ include $(TOPDIR)/Make.efirules
|
|
|
|
include $(TOPDIR)/Make.defaults
|
2014-10-31 11:20:50 +01:00
|
|
|
|
2015-12-01 10:03:35 +01:00
|
|
|
FORMAT=efi-app-$(HOSTARCH)
|
|
|
|
-LDFLAGS = -nostdlib -T $(LIBDIR)/gnuefi/elf_$(HOSTARCH)_efi.lds -shared -Bsymbolic $(LIBDIR)/gnuefi/crt0-efi-$(HOSTARCH).o -L$(LIBDIR)
|
|
|
|
+LDFLAGS = -nostdlib -T $(LIBDIR)/elf_$(HOSTARCH)_efi.lds -shared -Bsymbolic $(LIBDIR)/crt0-efi-$(HOSTARCH).o -L$(LIBDIR)
|
|
|
|
LIBS=-lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name)
|
|
|
|
CCLDFLAGS =
|
|
|
|
BUILDFLAGS = -I/usr/include/efi/ -I/usr/include/efi/$(HOSTARCH)/ -I/usr/include/efi/protocol -fpic -fshort-wchar -fno-reorder-functions -fno-strict-aliasing -fno-merge-constants -mno-red-zone -Wimplicit-function-declaration
|
|
|
|
@@ -20,8 +20,8 @@ clean :
|
|
|
|
@rm -rfv *.o *.a *.so .*.d $(TARGETS)
|
2013-01-14 11:49:40 +01:00
|
|
|
|
2015-12-01 10:03:35 +01:00
|
|
|
install :
|
|
|
|
- $(INSTALL) -d -m 755 $(INSTALLROOT)/boot/efi/EFI/redhat/
|
|
|
|
- $(INSTALL) -m 755 *.efi $(INSTALLROOT)/boot/efi/EFI/redhat/
|
|
|
|
+ $(INSTALL) -d -m 755 $(INSTALLROOT)/boot/efi/EFI/SuSE/
|
|
|
|
+ $(INSTALL) -m 755 *.efi $(INSTALLROOT)/boot/efi/EFI/SuSE/
|
2013-01-14 11:49:40 +01:00
|
|
|
|
2015-12-01 10:03:35 +01:00
|
|
|
install_systemd:
|
2013-01-14 11:49:40 +01:00
|
|
|
|
2016-04-26 16:58:40 +02:00
|
|
|
Index: pesign-0.112/src/pesign.sysvinit.in
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2016-04-26 16:58:40 +02:00
|
|
|
--- pesign-0.112.orig/src/pesign.sysvinit.in
|
|
|
|
+++ pesign-0.112/src/pesign.sysvinit.in
|
2015-12-01 10:03:35 +01:00
|
|
|
@@ -6,21 +6,24 @@
|
2013-01-14 11:49:40 +01:00
|
|
|
# processname: /usr/bin/pesign
|
|
|
|
# pidfile: /var/run/pesign.pid
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
-# Provides: pesign
|
|
|
|
-# Default-Start:
|
2015-12-01 10:03:35 +01:00
|
|
|
-# Default-Stop:
|
2013-01-14 11:49:40 +01:00
|
|
|
+# Provides: pesign
|
|
|
|
+# Should-Start: $remote_fs
|
|
|
|
+# Should-Stop: $remote_fs
|
|
|
|
+# Required-Start:
|
|
|
|
+# Required-Stop:
|
|
|
|
+# Default-Start: 2 3 5
|
|
|
|
# Short-Description: The pesign PE signing daemon
|
|
|
|
# Description: The pesign PE signing daemon
|
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
-. /etc/init.d/functions
|
|
|
|
[ -f /usr/bin/pesign ] || exit 1
|
|
|
|
|
|
|
|
+PESIGN_PIDFILE=/var/run/pesign.pid
|
|
|
|
RETVAL=0
|
|
|
|
|
|
|
|
start(){
|
|
|
|
echo -n "Starting pesign: "
|
|
|
|
- daemon /usr/bin/pesign --daemonize
|
|
|
|
+ startproc -f -p "$PESIGN_PIDFILE" /usr/bin/pesign --daemonize
|
|
|
|
RETVAL=$?
|
|
|
|
echo
|
|
|
|
touch /var/lock/subsys/pesign
|
2015-12-01 10:03:35 +01:00
|
|
|
@@ -30,7 +33,7 @@ start(){
|
2014-10-31 11:20:50 +01:00
|
|
|
|
2015-12-01 10:03:35 +01:00
|
|
|
stop(){
|
|
|
|
echo -n "Stopping pesign: "
|
|
|
|
- killproc -p /var/run/pesign.pid pesignd
|
|
|
|
+ killproc -p /run/pesign.pid pesignd
|
|
|
|
RETVAL=$?
|
|
|
|
echo
|
|
|
|
rm -f /var/lock/subsys/pesign
|
2016-04-26 16:58:40 +02:00
|
|
|
Index: pesign-0.112/Make.defaults
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2016-04-26 16:58:40 +02:00
|
|
|
--- pesign-0.112.orig/Make.defaults
|
|
|
|
+++ pesign-0.112/Make.defaults
|
|
|
|
@@ -57,7 +57,7 @@ efi_cflags = $(cflags)
|
2015-12-01 10:03:35 +01:00
|
|
|
ASFLAGS = $(ARCH3264)
|
|
|
|
CPPFLAGS ?=
|
2014-10-31 11:20:50 +01:00
|
|
|
|
2015-12-01 10:03:35 +01:00
|
|
|
-LDLIBS = $(foreach lib,$(LIBS),-l$(lib)) $(call pkg-config-ldlibs)
|
|
|
|
+LDLIBS = -lpthread $(foreach lib,$(LIBS),-l$(lib)) $(call pkg-config-ldlibs)
|
2014-10-31 11:20:50 +01:00
|
|
|
|
2015-12-01 10:03:35 +01:00
|
|
|
ifeq ($(ARCH),ia64)
|
|
|
|
efi_cflags += -mfixed-range=f32-f127
|
2016-04-26 16:58:40 +02:00
|
|
|
Index: pesign-0.112/Makefile
|
2015-12-01 10:03:35 +01:00
|
|
|
===================================================================
|
2016-04-26 16:58:40 +02:00
|
|
|
--- pesign-0.112.orig/Makefile
|
|
|
|
+++ pesign-0.112/Makefile
|
2015-12-01 10:03:35 +01:00
|
|
|
@@ -9,7 +9,6 @@ SUBDIRS := include libdpe src
|
2014-10-31 11:20:50 +01:00
|
|
|
|
2015-12-01 10:03:35 +01:00
|
|
|
install :
|
2016-04-26 16:58:40 +02:00
|
|
|
$(INSTALL) -d -m 755 $(INSTALLROOT)$(docdir)/pesign-$(VERSION)/
|
|
|
|
- $(INSTALL) -pm 644 COPYING $(INSTALLROOT)$(docdir)/pesign-$(VERSION)/
|
2015-12-01 10:03:35 +01:00
|
|
|
@set -e ; for x in $(SUBDIRS) ; do \
|
|
|
|
$(MAKE) -C $$x $@ ; \
|
|
|
|
done
|