SHA256
1
0
forked from pool/patch2mail
Duncan Mac-Vicar 2010-11-15 13:13:48 +00:00 committed by Git OBS Bridge
commit 3bdb67b32a
5 changed files with 156 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
patch2mail-0.9.5.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:24547a97743aab2b39146decb765e58d5503939fdb6b765d897dc2dc37166d8c
size 3885

50
patch2mail.changes Normal file
View File

@ -0,0 +1,50 @@
-------------------------------------------------------------------
Mon Nov 15 10:45:33 UTC 2010 - opensuse@cboltz.de
- spec file cleanup (using spec-cleaner)
-------------------------------------------------------------------
Thu Aug 20 17:18:36 UTC 2009 - opensuse@cboltz.de
- spec file improvements (better Requires:) (by AdrianS)
-------------------------------------------------------------------
Sun Apr 12 19:07:00 CET 2009 - opensuse@cboltz.de
- version 0.9.5
-------------------------------------------------------------------
Wed Apr 8 17:28:39 CEST 2009 - anschneider@exsuse.de
- added support for sysconfig
- use install instead of cp and mkdir
-------------------------------------------------------------------
Sun Dec 14 16:25:00 CET 2008 - opensuse@cboltz.de
- added %dir for datadir to avoid "file listed twice" warning
-------------------------------------------------------------------
Tue Dec 09 13:24:00 CET 2008 - opensuse@cboltz.de
- some small output fixes
- enforce LANG=C to avoid charset problems in zypper output
- version 0.9.4
-------------------------------------------------------------------
Fri Nov 21 20:45:00 CEST 2008 - opensuse@cboltz.de
- update for openSUSE 11.1 (zypper needs "lu -t patch" now)
- version 0.9.3
-------------------------------------------------------------------
Sun Jul 20 18:20:00 CEST 2008 - opensuse@cboltz.de
- update for openSUSE 11.0 (scripts for older versions still included)
- require cron to ensure the script is running daily
- version 0.9.2
-------------------------------------------------------------------
Mon Feb 18 23:02:26 CEST 2008 - opensuse@cboltz.de
- Initial SVN commit of patch2mail
- SVN: http://svn.opensuse.org/svn/zypp/trunk/tools/patch2mail
- version 0.9.1

79
patch2mail.spec Normal file
View File

@ -0,0 +1,79 @@
#
Name: patch2mail
Version: 0.9.5
Release: 1
#
License: GPL
#
Summary: Patch notification via mail
#BuildRequires: bash
#
Url: http://blog.cboltz.de/plugin/tag/patch2mail
Group: System/Packages
Source: %{name}-%{version}.tar.bz2
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: /bin/hostname
Requires: /bin/rm
Requires: /usr/bin/xsltproc
Requires: cron
Requires: grep
Requires: mail
Requires: mktemp
Requires: zypper
# bash mktemp mail grep zypper coreutils net-tools cron libxslt
# detailed requirements:
# zypper # (>= 11.0) zypp-refresh-rapper, zypper
# zypper # (<= 10.3) zypp-checkpatches-wrapper
# libxslt # xsltproc [NOT autodetected, even if rpmlint thinks so]
# coreutils # rm
# net-tools # hostname
%description
patch2mail checks for available updates and sends a mail to root
if any patches are available
%prep
%setup -q
%build
%install
%{__install} -d -m 0755 %{buildroot}%{_datadir}/%{name}
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/cron.daily
%{__install} -d -m 0755 %{buildroot}%{_localstatedir}/adm/fillup-templates/
%{__install} -m 0644 patch2mail.xsl %{buildroot}%{_datadir}/%{name}/patch2mail.xsl
%if 0%{?suse_version} < 1030
%{__install} -m 0644 patch2mail.xsl_10.2 %{buildroot}%{_datadir}/%{name}/patch2mail.xsl
%endif
%{__install} -m 0755 patch2mail %{buildroot}%{_sysconfdir}/cron.daily/patch2mail
%if 0%{?suse_version} < 1110
%{__install} -m 0755 patch2mail_11.0 %{buildroot}%{_sysconfdir}/cron.daily/patch2mail
%endif
%if 0%{?suse_version} < 1100
%{__install} -m 0755 patch2mail_10.3 %{buildroot}%{_sysconfdir}/cron.daily/patch2mail
%endif
%{__install} -m 0644 patch2mail.sysconfig %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.patch2mail
echo ==== Buildroot: %{buildroot} ====
find %{buildroot}
echo ================================
%clean
%{__rm} -rf %{buildroot}
%post
%{fillup_only -n patch2mail}
%files
%defattr(-,root,root)
%{_sysconfdir}/cron.daily/%{name}
%{_datadir}/%{name}
%{_localstatedir}/adm/fillup-templates/sysconfig.patch2mail
%doc README
%changelog