Search
SailfishOS Open Build Service
>
Projects
>
home:plfiorini
:
maui:devel
:
x86_64
>
setup
> _service:tar_git:setup.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:setup.spec of Package setup
Summary: A set of system configuration and setup files Name: setup Version: 2.8.56 Release: 1%{?dist} License: Public Domain Group: System/Base URL: https://fedorahosted.org/setup/ Source0: https://fedorahosted.org/releases/s/e/%{name}/%{name}-%{version}.tar.bz2 Patch0: setup-2.8.15-tcsh.patch Patch1: setup-2.8.56-securetty.patch Patch2: setup-2.8.15-polkituser.patch Patch3: setup-2.8.56-droidcontainer.patch Patch4: setup-2.8.56-add-utmp-group.patch BuildArch: noarch BuildRequires: bash %description The setup package contains a set of important system configuration and setup files, such as passwd, group, and profile. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 ./shadowconvert.sh %build # Workaround for patching rm -f group.orig %check # Run any sanity checks. make check %install rm -rf %{buildroot} mkdir -p %{buildroot}/etc/profile.d cp -ar * %{buildroot}/etc rm -f %{buildroot}/etc/uidgid rm -f %{buildroot}/etc/COPYING mkdir -p %{buildroot}/var/log touch %{buildroot}/var/log/lastlog touch %{buildroot}/etc/environment chmod 0644 %{buildroot}/etc/environment chmod 0400 %{buildroot}/etc/{shadow,gshadow} chmod 0644 %{buildroot}/var/log/lastlog touch %{buildroot}/etc/fstab # remove unpackaged files from the buildroot rm -f %{buildroot}/etc/Makefile rm -f %{buildroot}/etc/serviceslint rm -f %{buildroot}/etc/uidgidlint rm -f %{buildroot}/etc/shadowconvert.sh rm -f %{buildroot}/etc/setup.spec #throw away useless and dangerous update stuff until rpm will be able to #handle it ( http://rpm.org/ticket/6 ) %post -p <lua> for i, name in ipairs({"passwd", "shadow", "group", "gshadow"}) do os.remove("/etc/"..name..".rpmnew") end if posix.access("/usr/bin/newaliases", "x") then os.execute("/usr/bin/newaliases >/dev/null") end %files %defattr(-,root,root,-) %doc uidgid COPYING %verify(not md5 size mtime) %config(noreplace) /etc/passwd %verify(not md5 size mtime) %config(noreplace) /etc/group %verify(not md5 size mtime) %attr(0000,root,root) %config(noreplace,missingok) /etc/shadow %verify(not md5 size mtime) %attr(0000,root,root) %config(noreplace,missingok) /etc/gshadow %config(noreplace) /etc/services %verify(not md5 size mtime) %config(noreplace) /etc/exports %config(noreplace) /etc/aliases %config(noreplace) /etc/environment %config(noreplace) /etc/filesystems %config(noreplace) /etc/host.conf %verify(not md5 size mtime) %config(noreplace) /etc/hosts %config(noreplace) /etc/hosts.allow %config(noreplace) /etc/hosts.deny %verify(not md5 size mtime) %config(noreplace) /etc/motd %config(noreplace) /etc/printcap %verify(not md5 size mtime) %config(noreplace) /etc/inputrc %config(noreplace) /etc/bashrc %config(noreplace) /etc/profile %config(noreplace) /etc/protocols %attr(0600,root,root) %config(noreplace,missingok) /etc/securetty %config(noreplace) /etc/csh.login %config(noreplace) /etc/csh.cshrc %dir /etc/profile.d %config(noreplace) %verify(not md5 size mtime) /etc/shells %ghost %attr(0644,root,root) %verify(not md5 size mtime) /var/log/lastlog %ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/fstab