]> git.pld-linux.org Git - packages/bindprivs.git/commitdiff
- fixes in descriptions, removed junk from /etc, added TODO
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 2 Oct 2002 14:40:43 +0000 (14:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bindprivs.spec -> 1.2

bindprivs.spec

index 15ef02bd29429c3cfd9c1dcd3a5bae1afcf151fc..7dc2d336b90bcd518b9c53bb5c68c19ca087bb98 100644 (file)
@@ -1,5 +1,8 @@
-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
@@ -10,34 +13,37 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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
@@ -59,8 +65,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %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
This page took 0.061565 seconds and 4 git commands to generate.