From a8676b510aeb996886bc274afe3de1faf4563e53 Mon Sep 17 00:00:00 2001 From: rfairley Date: Dec 12 2018 19:09:19 +0000 Subject: add ownership of /run/{motd,motd.d} and /usr/lib/{motd,motd.d} --- diff --git a/filesystem.spec b/filesystem.spec index 30499d2..74e750a 100644 --- a/filesystem.spec +++ b/filesystem.spec @@ -1,6 +1,6 @@ Summary: The basic directory layout for a Linux system Name: filesystem -Version: 3.9 +Version: 3.10 Release: 1%{?dist} License: Public Domain URL: https://pagure.io/filesystem @@ -8,6 +8,8 @@ Group: System Environment/Base Source1: https://pagure.io/filesystem/raw/master/f/lang-exceptions Source2: iso_639.sed Source3: iso_3166.sed +Source4: run.motd +Source5: usr-lib.motd BuildRequires: iso-codes Requires(pre): setup @@ -42,10 +44,13 @@ cd %{buildroot} mkdir -p boot dev \ etc/{X11/{applnk,fontpath.d,xinit/{xinitrc,xinput}.d},xdg/autostart,opt,pm/{config.d,power.d,sleep.d},xinetd.d,skel,sysconfig,pki,bash_completion.d,rwtab.d,statetab.d} \ - home media mnt opt proc root run srv sys tmp \ - usr/{bin,games,include,%{_lib}/{games,sse2,tls,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{debug/{.dwz,usr},games,locale,modules,sysimage,sse2},libexec,local/{bin,etc,games,lib,%{_lib},sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{aclocal,appdata,applications,augeas/lenses,backgrounds,bash-completion{,/completions,/helpers},desktop-directories,dict,doc,empty,games,gnome,help,icons,idl,info,licenses,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},metainfo,mime-info,misc,omf,pixmaps,sounds,themes,xsessions,X11,wayland-sessions},src,src/kernels,src/debug} \ + home media mnt opt proc root run/{motd.d,} srv sys tmp \ + usr/{bin,games,include,%{_lib}/{games,sse2,tls,X11,pm-utils/{module.d,power.d,sleep.d}},lib/{debug/{.dwz,usr},games,locale,modules,motd.d,sysimage,sse2},libexec,local/{bin,etc,games,lib,%{_lib},sbin,src,share/{applications,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x},info},libexec,include,},sbin,share/{aclocal,appdata,applications,augeas/lenses,backgrounds,bash-completion{,/completions,/helpers},desktop-directories,dict,doc,empty,games,gnome,help,icons,idl,info,licenses,man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p},metainfo,mime-info,misc,omf,pixmaps,sounds,themes,xsessions,X11,wayland-sessions},src,src/kernels,src/debug} \ var/{adm,empty,ftp,gopher,lib/{games,misc,rpm-state},local,log,nis,preserve,spool/{mail,lpd},tmp,db,cache,opt,games,yp} +install -p -c -m644 %SOURCE4 %{buildroot}/run/motd +install -p -c -m644 %SOURCE5 %{buildroot}/usr/lib/motd + #do not create the symlink atm. #ln -snf etc/sysconfig etc/default ln -snf ../var/tmp usr/tmp @@ -204,6 +209,8 @@ restorecon /media 2>/dev/null >/dev/null || : %attr(555,root,root) /proc %attr(550,root,root) /root /run +%verify(not md5 size mtime) %config(noreplace) %attr(644,root,root) /run/motd +%dir /run/motd.d /sbin /srv %attr(555,root,root) /sys @@ -237,6 +244,8 @@ restorecon /media 2>/dev/null >/dev/null || : %attr(555,root,root) /usr/lib/X11 %attr(555,root,root) /usr/lib/pm-utils %endif +%verify(not md5 size mtime) %config(noreplace) %attr(644,root,root) /usr/lib/motd +%dir /usr/lib/motd.d /usr/libexec /usr/local %attr(555,root,root) /usr/sbin @@ -298,6 +307,9 @@ restorecon /media 2>/dev/null >/dev/null || : /var/yp %changelog +* Mon Dec 10 2018 Robert Fairley - 3.10-1 +- add ownership of /run/{motd,motd.d} and /usr/lib/{motd,motd.d} + * Thu Jun 21 2018 Ondrej Vasik - 3.9-1 - add ownership of /etc/rwtab.d and /etc/statetab.d diff --git a/run.motd b/run.motd new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/run.motd diff --git a/usr-lib.motd b/usr-lib.motd new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/usr-lib.motd