summaryrefslogtreecommitdiff
path: root/ltsp_core.spec
blob: 5789c572582f9df953b02f5ca365fd63c280eecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#
# TODO:
# real descriptions
# dev permissions
#
Summary:	Linux Terminal Server Project - Core system for terminals
Summary(pl):	Podstawowy system dla terminali z Linux Terminal Server Project
Name:		ltsp_core
Version:	3.0.9
Release:	2
License:	GPL
Group:		Applications/Network
# Source0-md5:	4838e28c19a475e8cdd8d0b731b22264
Source0:	http://dl.sourceforge.net/ltsp/%{name}-%{version}-i386.tgz
URL:		http://www.ltsp.org/
AutoProv:	0
AutoReq:	0
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_ltspdir	/home/services/ltsp
%define		no_install_post_strip	1

%description
Q: How do you reduce costs AND save the planet?
A: Convert those old PCs into X terminals with LTSP.

This package contains core system for LTSP terminals.

%description -l pl
- Jak obniżyć koszty I ocalić planetę?
- Przekształcić te stare pecety na X-terminale z użyciem LTSP.

Ten pakiet zawiera podstawowy system dla terminali LTSP.

%prep
%setup -q -n %{name}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_ltspdir},%{_sysconfdir}}

cd i386
cp -r {bin,dev,etc,lib,oldroot,opt,proc,root,sbin,tmp,usr} $RPM_BUILD_ROOT%{_ltspdir}
ln -sf /tmp/var $RPM_BUILD_ROOT%{_ltspdir}/var
ln -sf /tmp/mnt $RPM_BUILD_ROOT%{_ltspdir}/mnt
ln -sf %{_ltspdir}/etc/lts.conf $RPM_BUILD_ROOT%{_sysconfdir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README
%config(noreplace) %{_sysconfdir}/lts.conf
%dir %{_ltspdir}
%attr(755,root,root) %{_ltspdir}/bin
# XXX: fix perms inside!!!
%dir %{_ltspdir}/dev
#%{_ltspdir}/dev/*
%dir %{_ltspdir}/etc
%config(noreplace) %{_ltspdir}/etc/*.conf
%attr(755,root,root) %{_ltspdir}/etc/rc*
%attr(755,root,root) %{_ltspdir}/etc/dhclient-script
%{_ltspdir}/etc/bashrc
%{_ltspdir}/etc/fstab
%{_ltspdir}/etc/group
%{_ltspdir}/etc/inittab
%{_ltspdir}/etc/ld.so.cache
%{_ltspdir}/etc/lts.orig
%{_ltspdir}/etc/lts.conf.readme
%{_ltspdir}/etc/ltsp_functions
%{_ltspdir}/etc/modules.devfs
%{_ltspdir}/etc/passwd
%{_ltspdir}/etc/protocols
%{_ltspdir}/etc/rpc
%{_ltspdir}/etc/services
%{_ltspdir}/etc/version
%attr(755,root,root) %{_ltspdir}/lib
%{_ltspdir}/mnt
%{_ltspdir}/oldroot
%{_ltspdir}/opt
%{_ltspdir}/proc
%{_ltspdir}/root
%attr(755,root,root) %{_ltspdir}/sbin
%{_ltspdir}/tmp
%dir %{_ltspdir}/usr
%attr(755,root,root) %{_ltspdir}/usr/bin
%attr(755,root,root) %{_ltspdir}/usr/lib
%attr(755,root,root) %{_ltspdir}/usr/sbin
%{_ltspdir}/usr/share
%{_ltspdir}/var