diff --git a/powerd-2.0.2.dif b/powerd-2.0.2.dif index e29c9cd..86657c4 100644 --- a/powerd-2.0.2.dif +++ b/powerd-2.0.2.dif @@ -385,3 +385,29 @@ +}; + +#endif +--- config.guess ++++ config.guess 2019-01-09 15:01:32.155857875 +0000 +@@ -818,10 +818,10 @@ EOF + + case "${UNAME_MACHINE}" in + i?86) +- VENDOR=pc; ++ VENDOR=suse; + ;; + *) +- VENDOR=unknown; ++ VENDOR=suse; + ;; + esac + # Determine whether the default compiler is a.out or elf +--- config.sub ++++ config.sub 2019-01-09 15:01:32.155857875 +0000 +@@ -204,7 +204,7 @@ case $basic_machine in + ;; + # Recognize the basic CPU types with company name. + # FIXME: clean up the formatting here. +- vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \ ++ vax-* | tahoe-* | i[34567]86-* | i860-* | x86_64-* | ia64-* | m32r-* | m68k-* | m68000-* \ + | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \ + | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ + | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \ diff --git a/powerd.changes b/powerd.changes index b3de82d..1bc084f 100644 --- a/powerd.changes +++ b/powerd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 14 13:28:31 UTC 2019 - Dr. Werner Fink + +- Modify patch powerd-2.0.2.dif that is add x86_64-* to match e.g. + basic mchine type x86_64-suse + ------------------------------------------------------------------- Thu May 24 10:30:13 CEST 2018 - kukuk@suse.de diff --git a/powerd.spec b/powerd.spec index 26783e5..eb332bd 100644 --- a/powerd.spec +++ b/powerd.spec @@ -1,7 +1,7 @@ # # spec file for package powerd # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -73,11 +73,17 @@ than a specified number of minutes. install -m 0644 %{S:2} %{buildroot}/%{_unitdir}/powerd.service ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcpowerd +%pre +%service_add_post powerd.service + %preun -%stop_on_removal powerd +%service_del_preun powerd.service + +%post +%service_add_post powerd.service %postun -%restart_on_update powerd +%service_del_postun powerd.service %files -n powerd %defattr (-,root,root,755) diff --git a/sysvinit.spec b/sysvinit.spec index 2fa9c30..7ea47eb 100644 --- a/sysvinit.spec +++ b/sysvinit.spec @@ -1,7 +1,7 @@ # # spec file for package sysvinit # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ #