]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - make some README.PLD with system features description | |
4 | # | |
5 | %define iana_etc_ver 2.30 | |
6 | ||
7 | Summary: Simple setup files | |
8 | Summary(de.UTF-8): Einfache Setup-Dateien | |
9 | Summary(es.UTF-8): Varios archivos básicos de configuración | |
10 | Summary(fr.UTF-8): Fichiers de configuration simples | |
11 | Summary(ja.UTF-8): サンプルセットアップファイル | |
12 | Summary(pl.UTF-8): Podstawowe pliki systemu Linux | |
13 | Summary(pt_BR.UTF-8): Vários arquivos básicos de configuração | |
14 | Summary(tr.UTF-8): Basit kurulum dosyaları | |
15 | Name: setup | |
16 | Version: 2.7.3 | |
17 | Release: 2 | |
18 | License: Public Domain, partially BSD-like | |
19 | Group: Base | |
20 | Source0: %{name}-%{version}.tar.bz2 | |
21 | # Source0-md5: 44f8637f91d3ed5c23f6195061e68e69 | |
22 | # http://sethwklein.net/iana-etc | |
23 | Source1: http://sethwklein.net/projects/iana-etc/downloads/iana-etc-%{iana_etc_ver}.tar.bz2 | |
24 | # Source1-md5: 3ba3afb1d1b261383d247f46cb135ee8 | |
25 | Source2: http://www.iana.org/assignments/protocol-numbers/index.txt | |
26 | # Source2-md5: 33440b7d913303a6051ae64290f0ab21 | |
27 | Source3: http://www.iana.org/assignments/port-numbers | |
28 | # Source3-md5: 8e19a2c7cf60baabf919de1cc89a1cbb | |
29 | Patch0: %{name}-iana-etc.patch | |
30 | # This is source of non-iana changes in services file | |
31 | Patch1: %{name}-services.patch | |
32 | Patch2: protocols-fmt.patch | |
33 | Patch3: %{name}-zsh.patch | |
34 | BuildRequires: dietlibc-static | |
35 | BuildRequires: gawk | |
36 | Requires: FHS >= 2.3-24.1 | |
37 | Provides: group(fuse) | |
38 | Conflicts: PowerChutePlus < 4.5.3-2 | |
39 | Conflicts: glibc < 6:2.4-4.1 | |
40 | # tape,dialout and cdrom groups support | |
41 | Conflicts: dev < 3.4-4 | |
42 | Conflicts: udev < 1:138-5 | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %define _sbindir /sbin | |
46 | %undefine with_ccache | |
47 | ||
48 | %description | |
49 | This package contains a number of very important configuration and | |
50 | setup files, including the passwd, group, profile files, etc. | |
51 | ||
52 | %description -l de.UTF-8 | |
53 | Dieses Paket enthält wichtige Konfigurations- und Setup-Dateien, u.a. | |
54 | passwd-, group-, profile-Dateien usw. | |
55 | ||
56 | %description -l es.UTF-8 | |
57 | Este paquete contiene una variedad de archivos de configuración y | |
58 | setup muy importantes, incluyendo el passwd, group, archivos de | |
59 | "perfil", etc. | |
60 | ||
61 | %description -l fr.UTF-8 | |
62 | Ce paquetage contient un nombre de fichiers de configuration très | |
63 | importants, comme passwd, group, les fichiers profile, etc. | |
64 | ||
65 | %description -l ja.UTF-8 | |
66 | このsetupパッケージには、passwd, group, profile などの、 | |
67 | 重要なシステム設定ファイルが含まれてます。 | |
68 | ||
69 | %description -l pl.UTF-8 | |
70 | Pakiet ten zawiera wiele bardzo ważnych plików konfiguracyjnych dla | |
71 | Twojego systemu. | |
72 | ||
73 | %description -l pt_BR.UTF-8 | |
74 | Este pacote contém uma variedade de arquivos de configuração e setup | |
75 | muito importantes, incluindo o passwd, group, arquivos de "perfil", | |
76 | etc. | |
77 | ||
78 | %description -l tr.UTF-8 | |
79 | Bu paket, passwd, group, profile gibi çok önemli ayar ve kurulum | |
80 | dosyalarını içerir. | |
81 | ||
82 | %prep | |
83 | %setup -q -a1 | |
84 | %patch0 -p1 | |
85 | mv iana-etc{-%{iana_etc_ver},} | |
86 | %patch2 -p1 | |
87 | %patch3 -p1 | |
88 | ||
89 | cp -a %{SOURCE2} iana-etc/protocol-numbers.iana | |
90 | cp -a %{SOURCE3} iana-etc/port-numbers.iana | |
91 | ||
92 | %build | |
93 | %{__make} -C iana-etc | |
94 | %{__patch} iana-etc/services %{PATCH1} | |
95 | ||
96 | # kill trailing spaces/tabs | |
97 | %{__sed} -i -e 's,[ \t]\+$,,' iana-etc/{services,protocols} | |
98 | ||
99 | %{__make} \ | |
100 | CC="diet %{__cc}" \ | |
101 | OPT_FLAGS="%{rpmcflags} -Os" \ | |
102 | LDFLAGS="%{rpmcflags} %{rpmldflags}" | |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d | |
107 | ||
108 | %{__make} install \ | |
109 | DESTDIR=$RPM_BUILD_ROOT | |
110 | ||
111 | cp -a iana-etc/{services,protocols} $RPM_BUILD_ROOT%{_sysconfdir} | |
112 | ||
113 | # not packaged | |
114 | rm $RPM_BUILD_ROOT%{_sysconfdir}/{mtab,netgroup,suid_profile} | |
115 | ||
116 | %clean | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %triggerpostun -p /sbin/postshell -- %{name} < %{version}-%{release} | |
120 | %{_sbindir}/joinpasswd | |
121 | %{_sbindir}/delpasswd -g ttyS cdwrite | |
122 | ||
123 | %triggerin -p %{_sbindir}/update-fstab -- %{name} < 2.4.10-1 | |
124 | ||
125 | %post -p /sbin/postshell | |
126 | -/sbin/env-update -u | |
127 | ||
128 | %postun -p /sbin/postshell | |
129 | -/sbin/env-update -u | |
130 | ||
131 | %files | |
132 | %defattr(644,root,root,755) | |
133 | %doc ChangeLog | |
134 | %attr(755,root,root) %{_sbindir}/delpasswd | |
135 | %attr(755,root,root) %{_sbindir}/joinpasswd | |
136 | %attr(755,root,root) %{_sbindir}/postshell | |
137 | %attr(755,root,root) %{_sbindir}/update-fstab | |
138 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) /etc/profile.d/*.sh | |
139 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) /etc/profile.d/*.csh | |
140 | %dir /etc/profile.d | |
141 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/* | |
142 | %dir %{_sysconfdir}/env.d | |
143 | %dir %{_sysconfdir}/shrc.d | |
144 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fstab | |
145 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/group | |
146 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/host.conf | |
147 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts | |
148 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwd | |
149 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/profile | |
150 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/protocols | |
151 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/secure* | |
152 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/services | |
153 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/filesystems | |
154 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/motd | |
155 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/resolv.conf | |
156 | %ghost %{_sysconfdir}/shells |