Search
SailfishOS Open Build Service
>
Projects
>
home:johannes
:
64bit
>
setup
> setup.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File setup.spec of Package setup
Summary: A set of system configuration and setup files Name: setup Version: 2.8.56.skytree66.lm53 Release: 1%{?dist}.1.1 Packager: tar_nomovok_git;https://bitbucket.link-motion.com/scm/lm/setup.git;0e4fb66a1058e7a0103afdc7d64e5fd6d0afad4e License: Public Domain Group: System/Base URL: https://fedorahosted.org/setup/ Source0: %{name}-%{version}.tar.bz2 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 ./shadowconvert.sh #add passwords sed -i 's#^system.*#system:$1$w634k/eq$ECghU6fEGdBYK1xtVyOmW/:16176:0:99999:7:::#' shadow sed -i 's#^user.*#user:$1$BnMKT/AB$NKSyztD9EXTjM/QTNtf81.:16176:0:99999:7:::#' shadow %build %check # Run any sanity checks. make check %install rm -rf %{buildroot} mkdir -p %{buildroot}/etc/profile.d rm -rf rpm 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 %changelog * Thu Jul 4 2013 Mikko Hurskainen <mikko.hurskainen@nomovok.com> - 2.8.56 - Add utmp group * Fri May 31 2013 Carsten Munk <carsten.munk@jollamobile.com> - 2.8.56 - Change uid/gid of nobody and audio to fit witth droid compatibility * Fri Jul 20 2012 Marko Saukko <marko.saukko@jollamobile.com> - 2.8.56 - Sync with fedora. - Rebase setup-2.8.9-securetty.patch to setup-2.8.56-securetty.patch - Drop /etc/mtab file. * Wed Jun 1 2011 Marko Saukko <marko.saukko@cybercom.com> - 2.8.15 - Add ttyO2 to setup-2.8.9-securetty.patch (used in N900 for example) * Sat May 21 2011 Anas Nashif <anas.nashif@intel.com> - 2.8.15 - Remove dependency on perl and tcsh * Wed Aug 18 2010 Jan-Simon Moeller <jsmoeller@linuxfoundation.org> - 2.8.15 - Don't include cflags in this way into the build environment. Never ever! - Preparing split of this into a file included in /etc/profile.d/ only on target and keep it in sync with prjconf. prjconf is master! - Better pull from prjconf and embed ! * Wed Aug 18 2010 Austin Zhang <austin.zhang@linux.intel.com> - 2.8.15 - Don't omit frame pointer in building. * Mon Jul 19 2010 Marko Saukko <marko.saukko@cybercom.com> - 2.8.15 - Added ttyS2 to securetty. * Thu Jul 8 2010 Austin Zhang <austin.zhang@linux.intel.com> - 2.8.15 - Added additional flags for relocation and RO PLT * Fri Mar 5 2010 Austin Zhang <austin.zhang@linux.intel.com> - 2.8.15 - Remove loop optimization compiler options, which will lead to some unexpected compiling failure. * Wed Feb 10 2010 Austin Zhang <austin.zhang@linux.intel.com> - 2.8.15 - Rename version to 2.8.15 (source had been updated, but changelog not) and remove obsoleted stuffs - Correct cmov_fast to fast_cmov - Add new compiler optimization flags * Sun Feb 7 2010 Arjan van de Ven <arjan@linux.intel.com> - 2.8.9 - some older configure scripts don't understand "atom" and as a result don't think the CPU supports CMOV. Help these configure scripts by setting the appropriate environment variable. * Tue Nov 24 2009 Arjan van de Ven <arjan@linux.intel.com> - 2.8.9 - use -mtune=atom for the CFLAGS env var * Mon Oct 5 2009 Anas Nashif <anas.nashif@intel.com> - 2.8.9 - Assign polkit user to polkit package * Tue Sep 15 2009 Anas Nashif <anas.nashif@intel.com> - 2.8.9 - Rebase to 2.8.9 * Thu Apr 30 2009 Arjan van de Ven <arjan@linux.intel.com> 2.6.14 - reinstate the CFLAGS environment variable * Tue Apr 28 2009 Anas Nashif <anas.nashif@intel.com> 2.6.14 - Do not set CFLAGS in profile * Wed Apr 1 2009 Arjan van de Ven <arjan@linux.intel.com> 2.6.14 - set the CFLAGS environment variable * Sat Feb 28 2009 Peter Zhu <peter.j.zhu@intel.com> 2.6.14 - add ttyS0 into securetty * Mon Feb 9 2009 Vivian Zhang <vivian.zhang@intel.com> 2.6.14 - Set i18n stuff in /etc/profile * Wed Jan 14 2009 Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> 2.6.14 - Fix misformatted entry for audio group (add empty password field) * Tue Jan 13 2009 Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> 2.6.14 - Add an audio group as an stop gap sollution until policy kit is fixed * Fri Jan 9 2009 Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> 2.6.14 - Add missing patch to add groups needed by udev * Thu Jan 8 2009 Anas Nashif <anas.nashif@intel.com> 2.6.14 - Disable missing patch for now * Fri Dec 19 2008 Arjan van de Ven <arjan@linux.intel.com> 2.6.14 - Enable coredumps by default * Tue Dec 16 2008 Anas Nashif <anas.nashif@intel.com> 2.6.14 - Fixed rpmlint errors in Summary tag * Thu Dec 11 2008 Anas Nashif <anas.nashif@intel.com> 2.6.14 - Remove dependency on tcsh * Fri Dec 5 2008 Auke Kok <auke-jan.h.kok@intel.com> - add vcsa and floppy user/group ids