Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad
updatecheck
updatecheck.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File updatecheck.spec of Package updatecheck
Summary: Cronjob checking for updates via zypper Name: updatecheck Version: 0.2 Release: 1 License: GPL Group: System/Management URL: https://build.opensuse.org/package/show?package=updatecheck&project=home:p_conrad Source: check-for-updates Source1: sysconf.updatecheck Source2: GPL-2.0.txt BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %if 0%{?fedora} == 0 Requires(pre): %fillup_prereq Requires: cron %else Requires: vixie-cron %endif %if 0%{?suse_version} >= 1100 && 0%{?suse_version} < 1150 BuildRequires: licenses Requires: licenses %endif %description This is just a simple cron script for checking for available software updates. Basically, it's a wrapper around "zypper lu" ("yum check-update" on fedora) that sends a report only when the list of available updates has changed. %prep %setup -c updatecheck-"%{version}" -T %build %install %__mkdir_p "%{buildroot}%{_localstatedir}"/adm/fillup-templates/ %__install -m 0644 "%{S:1}" "%{buildroot}%{_localstatedir}"/adm/fillup-templates/sysconfig.%{name} %__mkdir_p "%{buildroot}%{_sysconfdir}"/cron.hourly %__install -m 0755 "%{S:0}" "%{buildroot}%{_sysconfdir}"/cron.hourly/quisquis.de-%{name} %if 0%{?fedora} > 0 for i in "%{buildroot}%{_localstatedir}"/adm/fillup-templates/sysconfig.%{name} "%{buildroot}%{_sysconfdir}"/cron.hourly/quisquis.de-%{name}; do %__sed -i 's=zypper=yum=g;s=lu=check-update=g;s=ZYPPER=YUM=g' $i done %endif if [ -r /usr/share/doc/licenses/GPL-2.0.txt ]; then %__ln_s -f /usr/share/doc/licenses/GPL-2.0.txt else %__cp %{S:2} . fi %clean [ "%{buildroot}" = "/" ] || rm -rf "%{buildroot}" %post %if 0%{?fillup_only:1} > 0 %fillup_only %else if [ ! -r "%{_sysconfdir}/sysconfig/%{name}" ]; then %__cp "%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}" "%{_sysconfdir}/sysconfig/%{name}" fi %endif %files %defattr(-,root,root,-) %doc GPL-2.0.txt %{_localstatedir}/adm/fillup-templates/sysconfig.%{name} %{_sysconfdir}/cron.hourly/quisquis.de-%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor