]>
Commit | Line | Data |
---|---|---|
86056b15 | 1 | # |
bf515c7b PG |
2 | # TODO: |
3 | # - make some README.PLD with system features description | |
86056b15 | 4 | # |
d0a84d4c | 5 | %define iana_etc_ver 2.20 |
33031197 | 6 | %undefine with_ccache |
0b6becf4 | 7 | # |
f97bd99d | 8 | Summary: Simple setup files |
8551200d ER |
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ı | |
f97bd99d | 16 | Name: setup |
39438d8e ER |
17 | Version: 2.5.7 |
18 | Release: 0.1 | |
bf515c7b | 19 | License: Public Domain, partially BSD-like |
f97bd99d | 20 | Group: Base |
a2b3dd01 | 21 | Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.bz2 |
39438d8e | 22 | # Source0-md5: b7c60de0bd7cf4df6c491758a6c00219 |
d0a84d4c JB |
23 | Source1: http://sethwklein.net/projects/iana-etc/downloads/iana-etc-%{iana_etc_ver}.tar.bz2 |
24 | # Source1-md5: 51d584b7b6115528c21e8ea32250f2b1 | |
39438d8e | 25 | Patch0: %{name}-iana-etc.patch |
d0a84d4c | 26 | # This is source of non-iana changes in services file |
39438d8e ER |
27 | Patch1: %{name}-services.patch |
28 | AutoReqProv: no | |
fe293510 | 29 | BuildRequires: dietlibc-static |
36832d85 | 30 | BuildRequires: gawk |
39438d8e | 31 | Provides: group(fuse) |
e23f948a | 32 | Conflicts: FHS < 2.3 |
ee80b4de | 33 | Conflicts: glibc < 6:2.4-4.1 |
50ba189c | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
6be1ce2e | 35 | |
3d5c2a8f PG |
36 | %define _sbindir /sbin |
37 | ||
6be1ce2e | 38 | %description |
7a8444bd SZ |
39 | This package contains a number of very important configuration and |
40 | setup files, including the passwd, group, profile files, etc. | |
6be1ce2e | 41 | |
2f487416 JR |
42 | %description -l de.UTF-8 |
43 | Dieses Paket enthält wichtige Konfigurations- und Setup-Dateien, u.a. | |
a9f190e7 | 44 | passwd-, group-, profile-Dateien usw. |
6be1ce2e | 45 | |
2f487416 JR |
46 | %description -l es.UTF-8 |
47 | Este paquete contiene una variedad de archivos de configuración y | |
05f14211 TP |
48 | setup muy importantes, incluyendo el passwd, group, archivos de |
49 | "perfil", etc. | |
50 | ||
2f487416 JR |
51 | %description -l fr.UTF-8 |
52 | Ce paquetage contient un nombre de fichiers de configuration très | |
6be1ce2e | 53 | importants, comme passwd, group, les fichiers profile, etc. |
54 | ||
2f487416 JR |
55 | %description -l ja.UTF-8 |
56 | このsetupパッケージには、passwd, group, profile などの、 | |
57 | 重要なシステム設定ファイルが含まれてます。 | |
05f14211 | 58 | |
2f487416 JR |
59 | %description -l pl.UTF-8 |
60 | Pakiet ten zawiera wiele bardzo ważnych plików konfiguracyjnych dla | |
a6f7ca8d | 61 | Twojego systemu. |
87946706 | 62 | |
2f487416 JR |
63 | %description -l pt_BR.UTF-8 |
64 | Este pacote contém uma variedade de arquivos de configuração e setup | |
ea4c6647 JB |
65 | muito importantes, incluindo o passwd, group, arquivos de "perfil", |
66 | etc. | |
d0944bc6 | 67 | |
2f487416 JR |
68 | %description -l tr.UTF-8 |
69 | Bu paket, passwd, group, profile gibi çok önemli ayar ve kurulum | |
70 | dosyalarını içerir. | |
d0944bc6 | 71 | |
6be1ce2e | 72 | %prep |
0b6becf4 | 73 | %setup -q -a1 |
a6928fbf | 74 | %patch0 -p1 |
bf515c7b PG |
75 | |
76 | %build | |
36832d85 | 77 | %{__make} -C iana-etc-%{iana_etc_ver} |
39438d8e | 78 | %{__patch} iana-etc-%{iana_etc_ver}/services %{PATCH1} |
0b6becf4 | 79 | |
bf515c7b | 80 | %{__make} \ |
c1e81666 | 81 | OPT_FLAGS="%{rpmcflags}" \ |
d3b7c683 | 82 | LDFLAGS="%{rpmcflags} %{rpmldflags}" \ |
fe293510 | 83 | CC="diet %{__cc}" |
6be1ce2e | 84 | |
85 | %install | |
797d0215 | 86 | rm -rf $RPM_BUILD_ROOT |
93f8153d | 87 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d |
0b6becf4 | 88 | |
bf515c7b PG |
89 | %{__make} install \ |
90 | DESTDIR=$RPM_BUILD_ROOT | |
0b6becf4 | 91 | |
9310ed4f | 92 | install iana-etc-%{iana_etc_ver}/protocols $RPM_BUILD_ROOT%{_sysconfdir}/protocols |
0b6becf4 | 93 | |
6be1ce2e | 94 | %clean |
797d0215 | 95 | rm -rf $RPM_BUILD_ROOT |
6be1ce2e | 96 | |
50ba189c | 97 | %triggerpostun -p %{_sbindir}/joinpasswd -- %{name} < %{version}-%{release} |
81b992a1 | 98 | |
7cf4e42c | 99 | %triggerin -p %{_sbindir}/update-fstab -- %{name} < 2.4.10-1 |
a2b3dd01 | 100 | |
544edbb0 ER |
101 | %post -p /sbin/postshell |
102 | -/sbin/env-update -u | |
103 | ||
104 | %postun -p /sbin/postshell | |
105 | -/sbin/env-update -u | |
106 | ||
6be1ce2e | 107 | %files |
f97bd99d | 108 | %defattr(644,root,root,755) |
bf515c7b PG |
109 | %doc ChangeLog |
110 | %attr(755,root,root) %{_sbindir}/joinpasswd | |
47f42bc8 | 111 | %attr(755,root,root) %{_sbindir}/postshell |
7cf4e42c | 112 | %attr(755,root,root) %{_sbindir}/update-fstab |
c6c53392 | 113 | %attr(755,root,root) /etc/profile.d/*.sh |
114 | %attr(755,root,root) /etc/profile.d/*.csh | |
bf515c7b | 115 | %dir /etc/profile.d |
9310ed4f | 116 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/* |
4db3fb34 | 117 | %dir %{_sysconfdir}/env.d |
118 | %dir %{_sysconfdir}/shrc.d | |
9310ed4f ER |
119 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fstab |
120 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/group | |
121 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/host.conf | |
122 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts | |
123 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwd | |
124 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/profile | |
125 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/protocols | |
9b899961 | 126 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/secure* |
9310ed4f ER |
127 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/services |
128 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/filesystems | |
129 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/motd | |
130 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/resolv.conf | |
bf515c7b | 131 | %ghost %{_sysconfdir}/shells |