2013-02-07 11:26:08 +00:00
|
|
|
|
#
|
|
|
|
|
|
# spec file for package etc-update
|
|
|
|
|
|
#
|
2024-02-21 15:48:53 +00:00
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-02-07 11:26:08 +00:00
|
|
|
|
#
|
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
2024-02-21 15:48:53 +00:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-02-07 11:26:08 +00:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-02-05 10:59:36 +00:00
|
|
|
|
Name: etc-update
|
2018-04-25 11:37:43 +00:00
|
|
|
|
Version: 2.3.31
|
2013-02-07 11:26:08 +00:00
|
|
|
|
Release: 0
|
2013-02-05 10:59:36 +00:00
|
|
|
|
Summary: Configuration file update handler
|
2018-04-25 11:37:43 +00:00
|
|
|
|
License: GPL-2.0-only
|
2013-02-07 11:26:08 +00:00
|
|
|
|
Group: System/Base
|
2018-04-25 11:37:43 +00:00
|
|
|
|
URL: https://wiki.gentoo.org/wiki/Handbook:X86/Portage/Tools#etc-update
|
|
|
|
|
|
Source0: https://github.com/gentoo/portage/archive/portage-%{version}.tar.gz
|
2018-04-26 08:14:47 +00:00
|
|
|
|
Patch0: etc-update-opensuse.patch
|
2018-04-25 11:37:43 +00:00
|
|
|
|
Requires: bash
|
2013-02-05 10:59:36 +00:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
etc-update is supposed to be run after merging a new package to see if there
|
|
|
|
|
|
are updates to the configuration files. If a new configuration file will
|
|
|
|
|
|
override an old one, etc-update will prompt the user for a decision.
|
|
|
|
|
|
|
|
|
|
|
|
etc-update will check all directories specified on the command line. If no
|
|
|
|
|
|
paths are given, then the CONFIG_PROTECT variable will be used. All config
|
|
|
|
|
|
files found in CONFIG_PRO‐TECT_MASK will automatically be updated for you by
|
|
|
|
|
|
etc-update.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-02-21 15:48:53 +00:00
|
|
|
|
%autosetup -p1 -n portage-portage-%{version}
|
2013-02-05 10:59:36 +00:00
|
|
|
|
|
|
|
|
|
|
%build
|
2018-04-25 11:37:43 +00:00
|
|
|
|
:
|
2013-02-05 10:59:36 +00:00
|
|
|
|
|
|
|
|
|
|
%install
|
2018-04-25 11:37:43 +00:00
|
|
|
|
install -D -m 0755 bin/%{name} %{buildroot}/%{_sbindir}/%{name}
|
|
|
|
|
|
install -D -m 0644 cnf/%{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
|
|
|
|
|
|
sed -i -e "s/VERSION/%{version}/" man/%{name}.1
|
|
|
|
|
|
install -D -m 0644 man/%{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
|
2013-02-05 10:59:36 +00:00
|
|
|
|
|
2015-11-13 21:45:40 +00:00
|
|
|
|
%files
|
2018-04-25 11:37:43 +00:00
|
|
|
|
%license LICENSE
|
|
|
|
|
|
%{_sbindir}/%{name}
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
2013-02-05 10:59:36 +00:00
|
|
|
|
%{_mandir}/man1/%{name}*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|