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