3 # _with_non_hams - allow to connect non hams stations
5 Summary: Easy configurable node/gateway (AX25)
6 Summary(pl): Prosto konfigurowalny przeka¼nik/brama (AX25)
9 Release: 3%{?_with_non_hams:nonhams}
11 Group: Applications/Communications
12 Source0: ftp://ftp.icm.edu.pl/vol/rzm0/ham/unix/Linux/packet/awznode/%{name}-v0.4-pre2.tar.gz
13 Patch0: %{name}-configure.patch
14 %{?_with_non_hams:Patch1:awznode-non_hams.patch}
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 BuildRequires: zlib-devel
17 BuildRequires: libax25-devel
18 Requires: zlib >= 1.1.3
19 Requires: libax25 >= 0.0.9
20 Requires: ax25-tools >= 0.0.8
23 Easy node/gateway software for AX25 procotole. It's usable tool if you
24 want create gateway packetradio <> Internet (both sides).
27 Prosty przeka¼nik/brama dla protoko³u AX25. Przydatne narzêdzie przy
28 budowaniu bramek packetradio <> Internet.
31 %setup -q -n awznode-v0.4-pre2
33 %{?_with_non_hams:%patch1 -p1}
37 %{__make} CC="%{__cc} %{rpmcflags} -Wall"
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT/var/ax25/{node,flex} \
42 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libdir}/ax25/node/help} \
43 $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \
44 $RPM_BUILD_ROOT%{_sysconfdir}/ax25
46 install etc/loggedin $RPM_BUILD_ROOT/var/ax25/node
47 install etc/lastlog $RPM_BUILD_ROOT/var/ax25/node
48 install etc/gateways $RPM_BUILD_ROOT/var/ax25/flex
50 install node $RPM_BUILD_ROOT%{_sbindir}
51 install nodeusers $RPM_BUILD_ROOT%{_sbindir}
52 install flexd $RPM_BUILD_ROOT%{_sbindir}
54 install etc/help/*.hlp $RPM_BUILD_ROOT%{_libdir}/ax25/node/help
56 install etc/node.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
57 install etc/node.perms.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
58 install etc/node.info.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
59 install etc/node.motd.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
60 install etc/node.users.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
61 install etc/node.routes.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
62 install etc/flexd.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
64 install man/nodeusers.1 $RPM_BUILD_ROOT%{_mandir}/man1
65 install man/node.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
66 install man/node.perms.5 $RPM_BUILD_ROOT%{_mandir}/man5
67 install man/node.8 $RPM_BUILD_ROOT%{_mandir}/man8
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %attr(755,root,root) %{_sbindir}/nodeusers
76 %attr(755,root,root) %{_sbindir}/flexd
77 %attr(4775,root,root) %{_sbindir}/node
78 %attr(600,root,root) %{_sysconfdir}/ax25/*