]>
Commit | Line | Data |
---|---|---|
bf515c7b PG |
1 | # TODO: |
2 | # - make some README.PLD with system features description | |
86056b15 | 3 | # |
ba725839 | 4 | %bcond_without diet # compile binaries with diet cc |
878a6b3b | 5 | |
f97bd99d | 6 | Summary: Simple setup files |
8551200d ER |
7 | Summary(de.UTF-8): Einfache Setup-Dateien |
8 | Summary(es.UTF-8): Varios archivos básicos de configuración | |
9 | Summary(fr.UTF-8): Fichiers de configuration simples | |
10 | Summary(ja.UTF-8): サンプルセットアップファイル | |
11 | Summary(pl.UTF-8): Podstawowe pliki systemu Linux | |
12 | Summary(pt_BR.UTF-8): Vários arquivos básicos de configuração | |
13 | Summary(tr.UTF-8): Basit kurulum dosyaları | |
f97bd99d | 14 | Name: setup |
04e5766c | 15 | Version: 2.10.2 |
b1e86f8f | 16 | Release: 1 |
bf515c7b | 17 | License: Public Domain, partially BSD-like |
f97bd99d | 18 | Group: Base |
dc79bfc1 | 19 | Source0: %{name}-%{version}.tar.bz2 |
04e5766c | 20 | # Source0-md5: 81fc61ad47ce7de1db3f170260e282cd |
cee0beed MK |
21 | Source1: protocols.gawk |
22 | Source2: services.gawk | |
23 | Source3: https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xml | |
04e5766c | 24 | # Source3-md5: 3d3cbb61e8740139a8dc544c8f1173f0 |
cee0beed | 25 | Source4: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml |
04e5766c | 26 | # Source4-md5: 60e71c8c6187fe639312be02e26443af |
cee0beed | 27 | Patch0: %{name}-services.patch |
a0098a54 | 28 | %if %{with diet} |
fe293510 | 29 | BuildRequires: dietlibc-static |
a0098a54 AM |
30 | %else |
31 | BuildRequires: glibc-static | |
32 | %endif | |
36832d85 | 33 | BuildRequires: gawk |
00ef0f6f | 34 | BuildRequires: glibc-misc |
f2dcd3fa | 35 | Requires: FHS >= 2.3-24.1 |
39438d8e | 36 | Provides: group(fuse) |
2b40f793 | 37 | Conflicts: PowerChutePlus < 4.5.3-2 |
ee80b4de | 38 | Conflicts: glibc < 6:2.4-4.1 |
f1b9589b JR |
39 | # tape,dialout and cdrom groups support |
40 | Conflicts: dev < 3.4-4 | |
41 | Conflicts: udev < 1:138-5 | |
6480c437 AM |
42 | # /etc/mtab being symlink to /proc/self/mounts |
43 | Conflicts: rc-scripts < 0.4.5.1-3 | |
50ba189c | 44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6be1ce2e | 45 | |
3d5c2a8f | 46 | %define _sbindir /sbin |
878a6b3b | 47 | %undefine with_ccache |
3d5c2a8f | 48 | |
ba725839 ER |
49 | %ifnarch x32 |
50 | # not on x32, see 02e9d04 | |
51 | %define specflags -Os | |
52 | %endif | |
53 | ||
6be1ce2e | 54 | %description |
7a8444bd SZ |
55 | This package contains a number of very important configuration and |
56 | setup files, including the passwd, group, profile files, etc. | |
6be1ce2e | 57 | |
2f487416 JR |
58 | %description -l de.UTF-8 |
59 | Dieses Paket enthält wichtige Konfigurations- und Setup-Dateien, u.a. | |
a9f190e7 | 60 | passwd-, group-, profile-Dateien usw. |
6be1ce2e | 61 | |
2f487416 JR |
62 | %description -l es.UTF-8 |
63 | Este paquete contiene una variedad de archivos de configuración y | |
05f14211 TP |
64 | setup muy importantes, incluyendo el passwd, group, archivos de |
65 | "perfil", etc. | |
66 | ||
2f487416 JR |
67 | %description -l fr.UTF-8 |
68 | Ce paquetage contient un nombre de fichiers de configuration très | |
6be1ce2e | 69 | importants, comme passwd, group, les fichiers profile, etc. |
70 | ||
2f487416 JR |
71 | %description -l ja.UTF-8 |
72 | このsetupパッケージには、passwd, group, profile などの、 | |
73 | 重要なシステム設定ファイルが含まれてます。 | |
05f14211 | 74 | |
2f487416 JR |
75 | %description -l pl.UTF-8 |
76 | Pakiet ten zawiera wiele bardzo ważnych plików konfiguracyjnych dla | |
a6f7ca8d | 77 | Twojego systemu. |
87946706 | 78 | |
2f487416 JR |
79 | %description -l pt_BR.UTF-8 |
80 | Este pacote contém uma variedade de arquivos de configuração e setup | |
ea4c6647 JB |
81 | muito importantes, incluindo o passwd, group, arquivos de "perfil", |
82 | etc. | |
d0944bc6 | 83 | |
2f487416 JR |
84 | %description -l tr.UTF-8 |
85 | Bu paket, passwd, group, profile gibi çok önemli ayar ve kurulum | |
86 | dosyalarını içerir. | |
d0944bc6 | 87 | |
6be1ce2e | 88 | %prep |
cee0beed MK |
89 | %setup -q |
90 | %{SOURCE1} %{SOURCE3} > etc/protocols | |
91 | %{SOURCE2} %{SOURCE4} > etc/services | |
1244ac5c | 92 | %patch0 -p1 |
bf515c7b PG |
93 | |
94 | %build | |
150c6f35 | 95 | # kill trailing spaces/tabs |
cee0beed | 96 | %{__sed} -i -e 's,[ \t]\+$,,' etc/{services,protocols} |
0b6becf4 | 97 | |
bf515c7b | 98 | %{__make} \ |
a0098a54 | 99 | CC="%{?with_diet:diet }%{__cc}" \ |
02e9d04f | 100 | OPT_FLAGS="%{rpmcflags} -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64" \ |
3aa38c78 AM |
101 | LDFLAGS="%{rpmcflags} %{rpmldflags} -static" |
102 | ||
7a3e4d83 | 103 | ldd postshell 2>&1 | grep "not a dynamic executable" || exit 1 |
6be1ce2e | 104 | |
105 | %install | |
797d0215 | 106 | rm -rf $RPM_BUILD_ROOT |
93f8153d | 107 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d |
bf515c7b PG |
108 | %{__make} install \ |
109 | DESTDIR=$RPM_BUILD_ROOT | |
0b6becf4 | 110 | |
f2dcd3fa | 111 | # not packaged |
ea53b031 | 112 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/{netgroup,suid_profile} |
f2dcd3fa | 113 | |
6be1ce2e | 114 | %clean |
797d0215 | 115 | rm -rf $RPM_BUILD_ROOT |
6be1ce2e | 116 | |
ba725839 | 117 | # trigger to ensure /etc/mtab is symlink |
c06b68d0 ER |
118 | %triggerprein -p /sbin/postshell -- %{name} < %{version}-%{release} |
119 | -/bin/sh -c '/usr/bin/test -L /etc/mtab || /bin/mv -v /etc/mtab /etc/mtab.rpmsave' | |
120 | ||
778eea73 | 121 | %triggerpostun -p /sbin/postshell -- %{name} < %{version}-%{release} |
778eea73 | 122 | %{_sbindir}/delpasswd -g ttyS cdwrite |
81b992a1 | 123 | |
7cf4e42c | 124 | %triggerin -p %{_sbindir}/update-fstab -- %{name} < 2.4.10-1 |
a2b3dd01 | 125 | |
544edbb0 ER |
126 | %post -p /sbin/postshell |
127 | -/sbin/env-update -u | |
841dc2f5 | 128 | %{_sbindir}/joinpasswd |
544edbb0 ER |
129 | |
130 | %postun -p /sbin/postshell | |
131 | -/sbin/env-update -u | |
132 | ||
6be1ce2e | 133 | %files |
f97bd99d | 134 | %defattr(644,root,root,755) |
bf515c7b | 135 | %doc ChangeLog |
778eea73 | 136 | %attr(755,root,root) %{_sbindir}/delpasswd |
bf515c7b | 137 | %attr(755,root,root) %{_sbindir}/joinpasswd |
47f42bc8 | 138 | %attr(755,root,root) %{_sbindir}/postshell |
7cf4e42c | 139 | %attr(755,root,root) %{_sbindir}/update-fstab |
bf515c7b | 140 | %dir /etc/profile.d |
9bee86ed AM |
141 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) /etc/profile.d/00-tmp-dir.sh |
142 | %config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) /etc/profile.d/00-tmp-dir.csh | |
4db3fb34 | 143 | %dir %{_sysconfdir}/env.d |
ea53b031 JB |
144 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/EDITOR |
145 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/HISTFILESIZE | |
146 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/HOME_ETC | |
147 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/MAILCHECK | |
148 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/MAILPATH | |
149 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/NNTPSERVER | |
150 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/ORGANIZATION | |
151 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/TMOUT | |
152 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/VISUAL | |
4db3fb34 | 153 | %dir %{_sysconfdir}/shrc.d |
391e8940 JR |
154 | %config(noreplace) %verify(not md5 mtime size) /etc/shrc.d/256term.sh |
155 | %config(noreplace) %verify(not md5 mtime size) /etc/shrc.d/256term.csh | |
9310ed4f ER |
156 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fstab |
157 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/group | |
158 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/host.conf | |
159 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts | |
160 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwd | |
161 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/profile | |
162 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/protocols | |
1244ac5c ER |
163 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/subgid |
164 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/subuid | |
ea53b031 | 165 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/securetty |
9310ed4f ER |
166 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/services |
167 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/filesystems | |
168 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/motd | |
169 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/resolv.conf | |
bf515c7b | 170 | %ghost %{_sysconfdir}/shells |
59e09c3d AM |
171 | # symlink to /proc/self/mounts |
172 | %{_sysconfdir}/mtab | |
1244ac5c ER |
173 | |
174 |