forked from evs38/qico
-
Notifications
You must be signed in to change notification settings - Fork 2
/
qico.spec.in
67 lines (55 loc) · 1.76 KB
/
qico.spec.in
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
Summary: qico, an ftn-compatible mailer
Name: qico
Version: @PACKAGE_VERSION@
Release: 1
Copyright: BSD
Group: System Environment/Daemons
Source: http://sf.net/projects/qico/files/qico-%{version}/qico-%{version}.tar.bz2/download
URL: http://qico.sourceforge.net
BuildRoot: /tmp/%{name}-%{version}-root
%description
Qico is an FidoNet Technology Network (FTN) compatible mailer for Unix
systems. It has some original features. Full list of features you can
find in README file. It works well (i.e. was runned at least once ;)
under Linux, FreeBSD and even BeOS.
%prep
%setup -q
%build
LDFLAGS="-s" ./configure --prefix=%{_prefix} --with-config=/etc/qico.conf
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{_prefix} install
mkdir $RPM_BUILD_ROOT/etc
cp qico.conf.sample $RPM_BUILD_ROOT/etc/qico.conf
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m755 stuff/ftn $RPM_BUILD_ROOT/etc/rc.d/init.d/ftn
for I in 0 1 2 6; do
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc$I.d
ln -s ../init.d/ftn $RPM_BUILD_ROOT/etc/rc.d/rc$I.d/K17ftn
done
for I in 3 5; do
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc$I.d
ln -s ../init.d/ftn $RPM_BUILD_ROOT/etc/rc.d/rc$I.d/S83ftn
done
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/chkconfig --add ftn
%files
%attr(755,root,root) %{_sbindir}/qico
%attr(755,root,root) %{_bindir}/qctl
%attr(755,root,root) %{_bindir}/qcc
%config /etc/qico.conf
%config /etc/rc.d/init.d/ftn
%config(missingok) /etc/rc.d/rc3.d/S83ftn
%config(missingok) /etc/rc.d/rc5.d/S83ftn
%config(missingok) /etc/rc.d/rc0.d/K17ftn
%config(missingok) /etc/rc.d/rc1.d/K17ftn
%config(missingok) /etc/rc.d/rc2.d/K17ftn
%config(missingok) /etc/rc.d/rc6.d/K17ftn
%doc stuff README FAQ Changes LICENSE
%preun
if [ $1 = 0 ]; then
/sbin/chkconfig --del ftn
fi