3 %bcond_with non_hams # allow to connect non hams stations
5 Summary: Easy configurable node/gateway (AX25)
6 Summary(pl.UTF-8): 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: %{name}-fhs.patch
18 Patch2: %{name}-non_hams.patch
19 BuildRequires: libax25-devel
20 BuildRequires: zlib-devel
21 Requires: ax25-tools >= 0.0.8
22 Requires: libax25 >= 0.0.9
23 Requires: zlib >= 1.1.3
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _localstatedir /var/lib
29 Easy node/gateway software for AX25 procotole. It's usable tool if you
30 want create gateway packetradio <> Internet (both sides).
32 %description -l pl.UTF-8
33 Prosty przekaźnik/brama dla protokołu AX25. Przydatne narzędzie przy
34 budowaniu bramek packetradio <> Internet.
37 %setup -q -n %{name}-v%{version}-%{_pre}
40 %{?with_non_hams:%patch2 -p1}
43 # not autoconf-generated, it doesn't take any parameters
47 CFLAGS="%{rpmcflags} -Wall"
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{_localstatedir}/ax25/{node,flex} \
52 $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libdir}/ax25/node/help} \
53 $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \
54 $RPM_BUILD_ROOT%{_sysconfdir}/ax25
56 install etc/loggedin $RPM_BUILD_ROOT%{_localstatedir}/ax25/node
57 install etc/lastlog $RPM_BUILD_ROOT%{_localstatedir}/ax25/node
58 install etc/gateways $RPM_BUILD_ROOT%{_localstatedir}/ax25/flex
60 install node $RPM_BUILD_ROOT%{_sbindir}
61 install nodeusers $RPM_BUILD_ROOT%{_sbindir}
62 install flexd $RPM_BUILD_ROOT%{_sbindir}
64 install etc/help/*.hlp $RPM_BUILD_ROOT%{_libdir}/ax25/node/help
66 install etc/node.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
67 install etc/node.perms.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
68 install etc/node.info.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
69 install etc/node.motd.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
70 install etc/node.users.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
71 install etc/node.routes.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
72 install etc/flexd.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
74 install man/nodeusers.1 $RPM_BUILD_ROOT%{_mandir}/man1
75 install man/node.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
76 install man/node.perms.5 $RPM_BUILD_ROOT%{_mandir}/man5
77 install man/node.8 $RPM_BUILD_ROOT%{_mandir}/man8
80 rm -rf $RPM_BUILD_ROOT
83 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_sbindir}/nodeusers
86 %attr(755,root,root) %{_sbindir}/flexd
87 %attr(4775,root,root) %{_sbindir}/node
88 %attr(600,root,root) %{_sysconfdir}/ax25/*
91 %{_localstatedir}/ax25/*