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)
10 Release: 0.%{_pre}%{?_with_non_hams:nonhams}
13 Group: Applications/Communications
14 Source0: ftp://ftp.funet.fi/pub/ham/unix/Linux/packet/awznode/%{name}-v%{version}-%{_pre}.tar.gz
15 # Source0-md5: 02f26da4c4db0260c297e1cac6c9d1f5
16 Patch0: %{name}-configure.patch
17 Patch1: awznode-non_hams.patch
18 BuildRequires: libax25-devel
19 BuildRequires: zlib-devel
20 Requires: ax25-tools >= 0.0.8
21 Requires: libax25 >= 0.0.9
22 Requires: zlib >= 1.1.3
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Easy node/gateway software for AX25 procotole. It's usable tool if you
27 want create gateway packetradio <> Internet (both sides).
30 Prosty przeka¼nik/brama dla protoko³u AX25. Przydatne narzêdzie przy
31 budowaniu bramek packetradio <> Internet.
34 %setup -q -n %{name}-v%{version}-%{_pre}
36 %{?_with_non_hams:%patch1 -p1}
41 CC="%{__cc} %{rpmcflags} -Wall"
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT/var/ax25/{node,flex} \
46 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libdir}/ax25/node/help} \
47 $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \
48 $RPM_BUILD_ROOT%{_sysconfdir}/ax25
50 install etc/loggedin $RPM_BUILD_ROOT/var/ax25/node
51 install etc/lastlog $RPM_BUILD_ROOT/var/ax25/node
52 install etc/gateways $RPM_BUILD_ROOT/var/ax25/flex
54 install node $RPM_BUILD_ROOT%{_sbindir}
55 install nodeusers $RPM_BUILD_ROOT%{_sbindir}
56 install flexd $RPM_BUILD_ROOT%{_sbindir}
58 install etc/help/*.hlp $RPM_BUILD_ROOT%{_libdir}/ax25/node/help
60 install etc/node.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
61 install etc/node.perms.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
62 install etc/node.info.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
63 install etc/node.motd.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
64 install etc/node.users.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
65 install etc/node.routes.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
66 install etc/flexd.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
68 install man/nodeusers.1 $RPM_BUILD_ROOT%{_mandir}/man1
69 install man/node.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
70 install man/node.perms.5 $RPM_BUILD_ROOT%{_mandir}/man5
71 install man/node.8 $RPM_BUILD_ROOT%{_mandir}/man8
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
79 %attr(755,root,root) %{_sbindir}/nodeusers
80 %attr(755,root,root) %{_sbindir}/flexd
81 %attr(4775,root,root) %{_sbindir}/node
82 %attr(600,root,root) %{_sysconfdir}/ax25/*