]> git.pld-linux.org Git - packages/setup.git/blame - setup.spec
- setup requires FHS, not vice versa
[packages/setup.git] / setup.spec
CommitLineData
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 8Summary: Simple setup files
8551200d
ER
9Summary(de.UTF-8): Einfache Setup-Dateien
10Summary(es.UTF-8): Varios archivos básicos de configuración
11Summary(fr.UTF-8): Fichiers de configuration simples
12Summary(ja.UTF-8): サンプルセットアップファイル
13Summary(pl.UTF-8): Podstawowe pliki systemu Linux
14Summary(pt_BR.UTF-8): Vários arquivos básicos de configuração
15Summary(tr.UTF-8): Basit kurulum dosyaları
f97bd99d 16Name: setup
f2dcd3fa
ER
17Version: 2.7
18Release: 1
bf515c7b 19License: Public Domain, partially BSD-like
f97bd99d 20Group: Base
a2b3dd01 21Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.bz2
778eea73 22# Source0-md5: ebd20f3ea4d766cfe16d2abf253224ac
d0a84d4c
JB
23Source1: http://sethwklein.net/projects/iana-etc/downloads/iana-etc-%{iana_etc_ver}.tar.bz2
24# Source1-md5: 51d584b7b6115528c21e8ea32250f2b1
39438d8e 25Patch0: %{name}-iana-etc.patch
d0a84d4c 26# This is source of non-iana changes in services file
39438d8e 27Patch1: %{name}-services.patch
fe293510 28BuildRequires: dietlibc-static
36832d85 29BuildRequires: gawk
f2dcd3fa 30Requires: FHS >= 2.3-24.1
39438d8e 31Provides: group(fuse)
2b40f793 32Conflicts: PowerChutePlus < 4.5.3-2
ee80b4de 33Conflicts: glibc < 6:2.4-4.1
f1b9589b
JR
34# tape,dialout and cdrom groups support
35Conflicts: dev < 3.4-4
36Conflicts: udev < 1:138-5
50ba189c 37BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
6be1ce2e 38
3d5c2a8f
PG
39%define _sbindir /sbin
40
6be1ce2e 41%description
7a8444bd
SZ
42This package contains a number of very important configuration and
43setup files, including the passwd, group, profile files, etc.
6be1ce2e 44
2f487416
JR
45%description -l de.UTF-8
46Dieses Paket enthält wichtige Konfigurations- und Setup-Dateien, u.a.
a9f190e7 47passwd-, group-, profile-Dateien usw.
6be1ce2e 48
2f487416
JR
49%description -l es.UTF-8
50Este paquete contiene una variedad de archivos de configuración y
05f14211
TP
51setup muy importantes, incluyendo el passwd, group, archivos de
52"perfil", etc.
53
2f487416
JR
54%description -l fr.UTF-8
55Ce paquetage contient un nombre de fichiers de configuration très
6be1ce2e 56importants, comme passwd, group, les fichiers profile, etc.
57
2f487416
JR
58%description -l ja.UTF-8
59このsetupパッケージには、passwd, group, profile などの、
60重要なシステム設定ファイルが含まれてます。
05f14211 61
2f487416
JR
62%description -l pl.UTF-8
63Pakiet ten zawiera wiele bardzo ważnych plików konfiguracyjnych dla
a6f7ca8d 64Twojego systemu.
87946706 65
2f487416
JR
66%description -l pt_BR.UTF-8
67Este pacote contém uma variedade de arquivos de configuração e setup
ea4c6647
JB
68muito importantes, incluindo o passwd, group, arquivos de "perfil",
69etc.
d0944bc6 70
2f487416
JR
71%description -l tr.UTF-8
72Bu paket, passwd, group, profile gibi çok önemli ayar ve kurulum
73dosyalarını içerir.
d0944bc6 74
6be1ce2e 75%prep
0b6becf4 76%setup -q -a1
a6928fbf 77%patch0 -p1
150c6f35 78mv iana-etc{-%{iana_etc_ver},}
bf515c7b
PG
79
80%build
150c6f35
ER
81%{__make} -C iana-etc
82%{__patch} iana-etc/services %{PATCH1}
83
84# kill trailing spaces/tabs
85%{__sed} -i -e 's,[ \t]\+$,,' iana-etc/services
0b6becf4 86
bf515c7b 87%{__make} \
a48f5491
JR
88 CC="diet %{__cc}" \
89 OPT_FLAGS="%{rpmcflags} -Os" \
90 LDFLAGS="%{rpmcflags} %{rpmldflags}"
6be1ce2e 91
92%install
797d0215 93rm -rf $RPM_BUILD_ROOT
93f8153d 94install -d $RPM_BUILD_ROOT%{_sysconfdir}/shrc.d
0b6becf4 95
bf515c7b
PG
96%{__make} install \
97 DESTDIR=$RPM_BUILD_ROOT
0b6becf4 98
150c6f35 99cp -a iana-etc/protocols $RPM_BUILD_ROOT%{_sysconfdir}/protocols
0b6becf4 100
f2dcd3fa
ER
101# not packaged
102rm $RPM_BUILD_ROOT%{_sysconfdir}/{mtab,netgroup,suid_profile}
103
6be1ce2e 104%clean
797d0215 105rm -rf $RPM_BUILD_ROOT
6be1ce2e 106
778eea73
JR
107%triggerpostun -p /sbin/postshell -- %{name} < %{version}-%{release}
108%{_sbindir}/joinpasswd
109%{_sbindir}/delpasswd -g ttyS cdwrite
81b992a1 110
7cf4e42c 111%triggerin -p %{_sbindir}/update-fstab -- %{name} < 2.4.10-1
a2b3dd01 112
544edbb0
ER
113%post -p /sbin/postshell
114-/sbin/env-update -u
115
116%postun -p /sbin/postshell
117-/sbin/env-update -u
118
6be1ce2e 119%files
f97bd99d 120%defattr(644,root,root,755)
bf515c7b 121%doc ChangeLog
778eea73 122%attr(755,root,root) %{_sbindir}/delpasswd
bf515c7b 123%attr(755,root,root) %{_sbindir}/joinpasswd
47f42bc8 124%attr(755,root,root) %{_sbindir}/postshell
7cf4e42c 125%attr(755,root,root) %{_sbindir}/update-fstab
4976e369
KK
126%config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) /etc/profile.d/*.sh
127%config(noreplace,missingok) %verify(not md5 mtime size) %attr(755,root,root) /etc/profile.d/*.csh
bf515c7b 128%dir /etc/profile.d
9310ed4f 129%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/env.d/*
4db3fb34 130%dir %{_sysconfdir}/env.d
131%dir %{_sysconfdir}/shrc.d
9310ed4f
ER
132%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fstab
133%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/group
134%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/host.conf
135%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/hosts
136%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwd
137%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/profile
138%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/protocols
9b899961 139%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/secure*
9310ed4f
ER
140%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/services
141%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/filesystems
142%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/motd
143%config(noreplace,missingok) %verify(not md5 mtime size) %{_sysconfdir}/resolv.conf
bf515c7b 144%ghost %{_sysconfdir}/shells
This page took 0.127448 seconds and 4 git commands to generate.