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