avatar
Rosa has added feb444ea30
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "setup-2.7.18.tar.bz2": 9360f2a222a5ffb0d7081771182c5ac62a697c2f
... ... --- /dev/null
... ... +++ b/setup.spec
... ... @@ -0,0 +1,283 @@
1
Summary:    A set of system configuration and setup files
2
Name:       setup
3
Version:    2.7.18
4
Release:    %mkrel 3
5
License:    public domain
6
Group:      System/Configuration/Other
7
Url:        http://svn.mandriva.com/svn/soft/setup/trunk
8
Source:     %{name}-%{version}.tar.bz2
9
Conflicts:  crontabs <= 1.7-12mdk
10
Conflicts:  bash <= 2.05-2mdk
11
Conflicts:  kdebase < 2.2.2-41mdk
12
Conflicts:  proftpd < 1.2.5-0.rc1.3mdk
13
Conflicts:  DansGuardian < 2.2.3-4mdk
14
Requires:   shadow-utils
15
Requires(posttrans): shadow-utils
16
# prevent the shell to fail running post script:
17
Requires(posttrans): glibc
18
BuildRoot:  %{_tmppath}/%{name}-%{version}
19
# for backward compatibility, to remove when other packages correctly require run-parts directly:
20
Requires:   run-parts
21
22
%description
23
The setup package contains a set of very important system
24
configuration and setup files, such as passwd, group,
25
profile and more.
26
27
You should install the setup package because you will
28
find yourself using its many features for system
29
administration.
30
31
%prep
32
%setup -q
33
34
%build
35
%make CFLAGS="$RPM_OPT_FLAGS"
36
37
%install
38
rm -rf %{buildroot}
39
%makeinstall_std
40
41
find %buildroot -name "run-parts*" | xargs rm
42
43
%clean
44
rm -rf %{buildroot}
45
46
47
%pre
48
# due to important new group additions, we need to add them manually here if they
49
# don't already exist because rpm will create group.rpmnew instead
50
if [ -f /etc/group ]; then
51
    grep -q '^auth:' /etc/group || %_pre_groupadd auth
52
    # be a little fancy here in case this is an upgrade and the user hasn't migrated to tcb yet
53
    if [ "`grep -q '^shadow:' /etc/group; echo $?`" == 1 ]; then
54
        %_pre_groupadd shadow
55
        if [ -f /etc/shadow ]; then
56
            chmod 0440 /etc/shadow && chgrp shadow /etc/shadow
57
        fi
58
    fi
59
    grep -q '^chkpwd:' /etc/group || %_pre_groupadd chkpwd
60
    grep -q '^dialout:' /etc/group || %_pre_groupadd dialout
61
fi
62
63
64
%files
65
%defattr(-,root,root)
66
%doc NEWS
67
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/passwd
68
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/fstab
69
%ghost %verify(not md5 size mtime) %{_sysconfdir}/mtab
70
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/resolv.conf
71
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/group
72
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts
73
%config(noreplace) %{_sysconfdir}/services
74
%config(noreplace) %{_sysconfdir}/inputrc
75
%config(noreplace) %{_sysconfdir}/filesystems
76
%config(noreplace) %{_sysconfdir}/host.conf
77
%config(noreplace) %{_sysconfdir}/hosts.allow
78
%config(noreplace) %{_sysconfdir}/hosts.deny
79
%config(noreplace) %{_sysconfdir}/motd
80
%config(noreplace) %{_sysconfdir}/printcap
81
%config(noreplace) %{_sysconfdir}/profile
82
%config(noreplace) %{_sysconfdir}/shells
83
%config(noreplace) %{_sysconfdir}/protocols
84
%attr(0644,root,root) %config(missingok,noreplace) %{_sysconfdir}/securetty
85
%config(noreplace) %{_sysconfdir}/csh.login
86
%config(noreplace) %{_sysconfdir}/csh.cshrc
87
%ghost %verify(not md5 size mtime) /var/log/lastlog
88
89
%posttrans
90
pwconv 2>/dev/null >/dev/null  || :
91
grpconv 2>/dev/null >/dev/null  || :
92
93
[ -f /var/log/lastlog ] || echo -n '' > /var/log/lastlog
94
[ -f %{_sysconfdir}/mtab ] || echo -n '' > %{_sysconfdir}/mtab
95
96
if [ -x /usr/sbin/nscd ]; then
97
	nscd -i passwd -i group || :
98
fi
99
100
%triggerpostun -- setup < 2.7.8
101
# the files is no more in setup starting from 2.7.8, it is now in nfs-utils
102
if [ -e /etc/exports.rpmsave ]; then
103
  mv -f /etc/exports.rpmsave /etc/exports && echo "warning: /etc/exports.rpmsave restored as /etc/exports"
104
fi
105
106
107
%changelog
108
* Fri May 06 2011 Oden Eriksson <oeriksson@mandriva.com> 2.7.18-3mdv2011.0
109
+ Revision: 669970
110
- mass rebuild
111
112
* Fri Dec 03 2010 Oden Eriksson <oeriksson@mandriva.com> 2.7.18-2mdv2011.0
113
+ Revision: 607533
114
- rebuild
115
116
* Thu Dec 31 2009 Guillaume Rousse <guillomovitch@mandriva.org> 2.7.18-1mdv2010.1
117
+ Revision: 484524
118
- new version
119
120
* Thu Sep 03 2009 Christophe Fergeau <cfergeau@mandriva.com> 2.7.17-2mdv2010.0
121
+ Revision: 427069
122
- rebuild
123
124
* Sat Apr 11 2009 Gustavo De Nardin <gustavodn@mandriva.com> 2.7.17-1mdv2009.1
125
+ Revision: 366419
126
- 2.7.17
127
  - stop csh from sourcing /etc/profile.d/* on non-interactive shells
128
    (bug #49407, comment 6)
129
130
* Fri Jan 09 2009 Frederic Crozat <fcrozat@mandriva.com> 2.7.16-1mdv2009.1
131
+ Revision: 327455
132
- Release 2.7.16 :
133
 - add dialout group, needed by latest udev, replace uucp group for serial stuff, just like Debian
134
135
* Wed Jan 07 2009 Pixel <pixel@mandriva.com> 2.7.15-1mdv2009.1
136
+ Revision: 326531
137
- 2.7.15: handle control + left/right arrow in gnome-terminal (#36287)
138
139
* Wed Dec 17 2008 Frederic Crozat <fcrozat@mandriva.com> 2.7.14-1mdv2009.1
140
+ Revision: 315121
141
- Release 2.7.14 :
142
 - fix warning in run-parts
143
 - configure inputrc to add trailing / to directories symlink (instead of patching bash)
144
145
* Sat Jul 12 2008 Olivier Thauvin <nanardon@mandriva.org> 2.7.13-1mdv2009.0
146
+ Revision: 234201
147
- 2.7.13: add tty0 to securetty for uml
148
149
* Thu May 22 2008 Vincent Danen <vdanen@mandriva.com> 2.7.12-3mdv2009.0
150
+ Revision: 210051
151
- use %%_pre_groupadd instead of groupadd directly to dynamically assign gid's on upgrades, since those gid's may already have been taken
152
153
* Sun May 18 2008 Vincent Danen <vdanen@mandriva.com> 2.7.12-2mdv2009.0
154
+ Revision: 208736
155
- create shadow, chkpwed, and auth groups in %%pre if they don't already exist in the system
156
157
* Wed May 14 2008 Guillaume Rousse <guillomovitch@mandriva.org> 2.7.12-1mdv2009.0
158
+ Revision: 207315
159
- new version
160
161
* Fri Mar 28 2008 Pixel <pixel@mandriva.com> 2.7.11-3mdv2008.1
162
+ Revision: 190933
163
- require run-parts for backward compatibility until other packages correctly
164
  require it directly
165
166
* Fri Mar 28 2008 Pixel <pixel@mandriva.com> 2.7.11-2mdv2008.1
167
+ Revision: 190867
168
- run-parts is moved to package run-parts
169
170
* Mon Jan 28 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.7.11-1mdv2008.1
171
+ Revision: 159330
172
- New upstream: 2.7.11. Closes: #34841
173
- Update URL tag.
174
175
  + Olivier Blin <oblin@mandriva.com>
176
    - restore BuildRoot
177
178
  + Thierry Vignaud <tv@mandriva.org>
179
    - kill re-definition of %%buildroot on Pixel's request
180
181
* Wed Dec 12 2007 Guillaume Rousse <guillomovitch@mandriva.org> 2.7.10-1mdv2008.1
182
+ Revision: 119058
183
- new version
184
185
* Tue Sep 11 2007 Oden Eriksson <oeriksson@mandriva.com> 2.7.9-2mdv2008.0
186
+ Revision: 84515
187
- rebuild
188
189
  + Guillaume Rousse <guillomovitch@mandriva.org>
190
    - new release
191
192
193
* Mon Mar 19 2007 Pixel <pixel@mandriva.com> 2.7.8-2mdv2007.1
194
+ Revision: 146582
195
- handle upgrade without loosing /etc/exports
196
197
* Fri Mar 09 2007 Guillaume Rousse <guillomovitch@mandriva.org> 2.7.8-1mdv2007.1
198
+ Revision: 138765
199
- new version
200
201
* Wed Mar 07 2007 Guillaume Rousse <guillomovitch@mandriva.org> 2.7.7-1mdv2007.1
202
+ Revision: 134254
203
- new version
204
- macrozification
205
206
* Fri Feb 16 2007 Pixel <pixel@mandriva.com> 2.7.5-3mdv2007.1
207
+ Revision: 121670
208
- explicitly provide /usr/bin/run-parts (required by crontabs)
209
210
* Thu Feb 15 2007 Gwenole Beauchesne <gbeauchesne@mandriva.com> 2.7.5-2mdv2007.1
211
+ Revision: 121545
212
- fix requires
213
214
* Thu Jan 25 2007 Guillaume Rousse <guillomovitch@mandriva.org> 2.7.5-1mdv2007.1
215
+ Revision: 113344
216
- new version (should fix #24915 and #19822)
217
218
* Mon Jan 08 2007 Warly <warly@mandriva.com> 2.7.4-1mdv2007.1
219
+ Revision: 105933
220
- update tarball and spec for version 2.7.4
221
222
  + Michael Scherer <misc@mandriva.org>
223
    - Import setup
224
225
* Sun Jun 04 2006 Olivier Thauvin <nanardon@mandriva.org> 2.7.3-1mdv2007.0
226
- provide a /etc/{fstab,mtab,resolv.conf}, for chroot
227
- prevent lastlog to be overwritten
228
229
* Wed May 17 2006 Thierry Vignaud <tvignaud@mandriva.com> 2.7.2-1mdk
230
- add missing prereq
231
- fix installing in urpmi --root
232
233
* Sat May 13 2006 Stefan van der Eijk <stefan@eijk.nu> 2.7.1-7mdk
234
- rebuild for sparc
235
236
* Fri Mar 03 2006 Oden Eriksson <oeriksson@mandriva.com> 2.7.1-6mdk
237
- nuke the iana-etc stuff, too hard to maintain, too many conflicts.
238
239
* Fri Mar 03 2006 Oden Eriksson <oeriksson@mandriva.com> 2.7.1-5mdk
240
- add squid port aliases (neoclust)
241
242
* Fri Mar 03 2006 Oden Eriksson <oeriksson@mandriva.com> 2.7.1-4mdk
243
- add ircd ports
244
- add svnserve port aliases
245
- add swat ports aliases (#21412)
246
247
* Wed Jan 25 2006 Oden Eriksson <oeriksson@mandriva.com> 2.7.1-3mdk
248
- removed duplicated aliases
249
- ship the original protocols and services in the doc section for reference
250
251
* Tue Jan 24 2006 Oden Eriksson <oeriksson@mandriva.com> 2.7.1-2mdk
252
- merged the iana-etc package from contrib into this package
253
254
* Wed Dec 07 2005 Frederic Lepied <flepied@mandriva.com> 2.7.1-1mdk
255
- added mysql and asterix ports (Oden)
256
- added Jabber and bittorrent ports (Pablo)
257
258
* Thu Sep 01 2005 Leonardo Chiquitto Filho <chiquitto@mandriva.com> 2.7-2mdk
259
- bashrc to run /etc/profile.d scripts just with supported shells (ticket #16515)
260
261
* Wed Aug 24 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 2.7-1mdk
262
- varargs fixes to run-parts
263
264
* Wed Mar 09 2005 Warly <warly@mandrakesoft.com> 2.6-1mdk
265
- add hpfs in filesystems as it seems that this filesystem is not probed
266
- add group tape (21) in group as udev is using it
267
- correct invalid syntax in profile for sh without bash extensions
268
- add requires on shadow-utils for post scripts
269
270
* Wed Feb 09 2005 Frederic Lepied <flepied@mandrakesoft.com> 2.5-1mdk
271
- added some missing entries (nut, ...) in services
272
- fixed some rpmlint warnings
273
- setup.spec, man/Makefile, man/it/Makefile, man/it/run-parts.8,
274
  man/it/update-passwd.8, man/nl/Makefile: Added Italian man pages;
275
  enabled Dutch man patches (Pablo)
276
- man/nl/: run-parts.8, update-passwd.8: Updated Dutch (nl)
277
  translation by Richard Rasker <mandrake.tips@free.fr> *
278
  setup/man/nl/ (Reinout van Schouwen)
279
- inputrc: Redefined PgUp/PgDn so that instead of just cycling
280
  trough history (like Up/Down arrows already do) it is possible to
281
  type the beginning of a previous command, then cycle only trough
282
  matching history entries. (Pablo)
283

Comments