|
@@ -1,15 +1,17 @@
|
|
Summary: A set of system configuration and setup files.
|
|
Summary: A set of system configuration and setup files.
|
|
Summary(ja): システム設定およびセットアップファイル一式
|
|
Summary(ja): システム設定およびセットアップファイル一式
|
|
Name: setup
|
|
Name: setup
|
|
-Version: 2.8.1
|
|
+Version: 2.8.31
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
-License: public domain
|
|
+License: Public Domain
|
|
Group: System Environment/Base
|
|
Group: System Environment/Base
|
|
|
|
+URL: https://fedorahosted.org/setup/
|
|
|
|
+
|
|
Source: setup-%{version}.tar.bz2
|
|
Source: setup-%{version}.tar.bz2
|
|
Patch: setup-2.8.1-vine.patch
|
|
Patch: setup-2.8.1-vine.patch
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
-BuildArchitectures: noarch
|
|
+BuildArch: noarch
|
|
Conflicts: initscripts < 4.26, bash <= 2.0.4-21
|
|
Conflicts: initscripts < 4.26, bash <= 2.0.4-21
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -23,12 +25,14 @@ setup files, such as passwd, group, and profile.
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
%patch -p1
|
|
%patch -p1
|
|
|
|
+./shadowconvert.sh
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
mkdir -p %{buildroot}/etc/profile.d
|
|
mkdir -p %{buildroot}/etc/profile.d
|
|
cp -ar * %{buildroot}/etc
|
|
cp -ar * %{buildroot}/etc
|
|
rm -f %{buildroot}/etc/uidgid
|
|
rm -f %{buildroot}/etc/uidgid
|
|
|
|
+rm -f %{buildroot}/etc/COPYING
|
|
mkdir -p %{buildroot}/var/log
|
|
mkdir -p %{buildroot}/var/log
|
|
touch %{buildroot}/etc/{shadow,gshadow}
|
|
touch %{buildroot}/etc/{shadow,gshadow}
|
|
touch %{buildroot}/var/log/lastlog
|
|
touch %{buildroot}/var/log/lastlog
|
|
@@ -37,10 +41,10 @@ chmod 0644 %{buildroot}/etc/environment
|
|
chmod 0400 %{buildroot}/etc/{shadow,gshadow}
|
|
chmod 0400 %{buildroot}/etc/{shadow,gshadow}
|
|
chmod 0644 %{buildroot}/var/log/lastlog
|
|
chmod 0644 %{buildroot}/var/log/lastlog
|
|
touch %{buildroot}/etc/fstab
|
|
touch %{buildroot}/etc/fstab
|
|
-touch %{buildroot}/etc/mtab
|
|
|
|
|
|
|
|
# remove unpackaged files
|
|
# remove unpackaged files
|
|
rm -f %{buildroot}/etc/Makefile
|
|
rm -f %{buildroot}/etc/Makefile
|
|
|
|
+rm -f %{buildroot}/etc/services.orig
|
|
rm -f %{buildroot}/etc/serviceslint
|
|
rm -f %{buildroot}/etc/serviceslint
|
|
rm -f %{buildroot}/etc/uidgidlint
|
|
rm -f %{buildroot}/etc/uidgidlint
|
|
rm -f %{buildroot}/etc/shadowconvert.sh
|
|
rm -f %{buildroot}/etc/shadowconvert.sh
|
|
@@ -50,17 +54,16 @@ rm -f $RPM_BUILD_ROOT/etc/{bashrc,aliases}
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
-%postun
|
|
|
|
#throw away useless and dangerous update stuff until rpm will be able to
|
|
#throw away useless and dangerous update stuff until rpm will be able to
|
|
#handle it ( http://rpm.org/ticket/6 )
|
|
#handle it ( http://rpm.org/ticket/6 )
|
|
-rm -f /etc/passwd.rpmnew
|
|
+%post -p <lua>
|
|
-rm -f /etc/shadow.rpmnew
|
|
+for i, name in ipairs({"passwd", "shadow", "group", "gshadow"}) do
|
|
-rm -f /etc/group.rpmnew
|
|
+ os.remove("/etc/"..name..".rpmnew")
|
|
-rm -f /etc/gshadow.rpmnew
|
|
+end
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc uidgid
|
|
+%doc uidgid COPYING
|
|
%verify(not md5 size mtime) %config(noreplace) /etc/passwd
|
|
%verify(not md5 size mtime) %config(noreplace) /etc/passwd
|
|
%verify(not md5 size mtime) %config(noreplace) /etc/group
|
|
%verify(not md5 size mtime) %config(noreplace) /etc/group
|
|
%verify(not md5 size mtime) %config(noreplace,missingok) /etc/shadow
|
|
%verify(not md5 size mtime) %config(noreplace,missingok) /etc/shadow
|
|
@@ -86,9 +89,12 @@ rm -f /etc/gshadow.rpmnew
|
|
%config(noreplace) %verify(not md5 size mtime) /etc/shells
|
|
%config(noreplace) %verify(not md5 size mtime) /etc/shells
|
|
%ghost %attr(0644,root,root) %verify(not md5 size mtime) /var/log/lastlog
|
|
%ghost %attr(0644,root,root) %verify(not md5 size mtime) /var/log/lastlog
|
|
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/fstab
|
|
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/fstab
|
|
-%ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/mtab
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Apr 14 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.31-1
|
|
|
|
+- update to 2.8.31
|
|
|
|
+- use <lua> for post scriptlet
|
|
|
|
+
|
|
* Sat Mar 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-1
|
|
* Sat Mar 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.1-1
|
|
- update to 2.8.1
|
|
- update to 2.8.1
|
|
- spec in utf-8
|
|
- spec in utf-8
|