-Summary: Little silly kernel module can be used to restrict virtual host.
-Summary(pl): Proste narzêdzie do ustawiania restrykcji u¿ywania na vhosty.
+#
+# TODO: use standard scheme for kernel module
+#
+Summary: Little silly kernel module can be used to restrict virtual hosts
+Summary(pl): Proste narzêdzie do ustawiania restrykcji u¿ywania wirtualnych hostów
Name: bindprivs
Version: 0.5
Release: 1
%description
This little silly kernel module can be used to restrict virtual host
-to some particular users. read bindprivs.conf(5) and bpset(8) for more
+to some particular users. Read bindprivs.conf(5) and bpset(8) for more
details.
%description -l pl
-To prosty modu³ kernelowy s³u¿±cy do ograniczenia u¿ywania vhostów.
-Jak go u¿ywaæ przeczytaj bindprivs.conf(5) oraz bpset(8).
+To prosty modu³ j±dra s³u¿±cy do ograniczenia u¿ywania wirtualnych
+hostów dla poszczególnych u¿ytkowników. Informacje na temat u¿ywania
+go mo¿na znale¼æ w bindprivs.conf(5) oraz bpset(8).
%prep
%setup -q
%build
-%{__make} CC="gcc %{rpmcflags} -Wall"
+%{__make} CC="%{__cc} %{rpmcflags} -Wall"
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man{5,8},%{_libdir}/bindprivs,%{_sysconfdir}}
-cat > $RPM_BUILD_ROOT%{_sysconfdir}/bindprivs.conf.sample << EOF
-# let's allow ,,root'' and ,,jack'' using 10.0.2.5
-allow 10.0.2.5 root jack
-deny 10.0.2.5 all
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/bindprivs.conf << EOF
+# Sample configuration
-# only the group ,,irc'' can use our IPv6 class
-allowgroup 3ffe:1281:102:ffff::/48 irc
-deny 3ffe:1281:102:ffff::/48 all
+## let's allow ,,root'' and ,,jack'' using 10.0.2.5
+#allow 10.0.2.5 root jack
+#deny 10.0.2.5 all
-# reject all network connections from group ,,nonetwork''
-deny all all
+## only the group ,,irc'' can use our IPv6 class
+#allowgroup 3ffe:1281:102:ffff::/48 irc
+#deny 3ffe:1281:102:ffff::/48 all
+
+## reject all network connections from group ,,nonetwork''
+#deny all all
EOF
cat > $RPM_BUILD_ROOT%{_bindir}/bpload << EOF
%files
%defattr(644,root,root,755)
+%doc README
%attr(755,root,root) %{_bindir}/bp*
%{_libdir}/bindprivs
-%{_sysconfdir}/bindprivs.conf.sample
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/bindprivs.conf
%{_mandir}/man?/*
-%doc README