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