SPECS: portsentry.spec - libwrap patch added - programs moved to s...

glen glen at pld-linux.org
Sun Mar 12 21:16:40 CET 2006


Author: glen                         Date: Sun Mar 12 20:16:40 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- libwrap patch added
- programs moved to sbindir (needs root to run anyway)
- ignore.csh renamed not to be so generic
- /bin/csh dep is autogenerated

---- Files affected:
SPECS:
   portsentry.spec (1.36 -> 1.37) 

---- Diffs:

================================================================
Index: SPECS/portsentry.spec
diff -u SPECS/portsentry.spec:1.36 SPECS/portsentry.spec:1.37
--- SPECS/portsentry.spec:1.36	Thu Sep  1 12:47:38 2005
+++ SPECS/portsentry.spec	Sun Mar 12 21:16:35 2006
@@ -3,7 +3,7 @@
 Summary(pl):	Program wykrywający skanowanie portów i umożliwiający obronę
 Name:		portsentry
 Version:	1.1
-Release:	10
+Release:	10.1
 License:	distributable (see LICENSE)
 Group:		Applications/Networking
 Source0:	http://www.psionic.com/downloads/%{name}-%{version}.tar.gz
@@ -12,15 +12,14 @@
 Source2:	%{name}.sysconfig
 Patch0:		%{name}-logging-pld.patch
 Patch1:		%{name}-ignore.csh.patch
+Patch2:		%{name}-libwrap.patch
 URL:		http://www.psionic.com/products/
-BuildRequires:	sed >= 4.0
-Requires:	rc-scripts
-Requires:	/bin/awk
-Requires:	/bin/csh
-Requires:	iproute2
-Requires:	textutils
 Requires(post,preun):	/sbin/chkconfig
 Requires(post,preun):	fileutils
+Requires:	awk
+Requires:	iproute2
+Requires:	rc-scripts
+Requires:	textutils
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_sysconfdir	/etc/portsentry
@@ -41,21 +40,22 @@
 %setup  -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
-%{__sed} -i -e 's@\/etc\/hosts.deny@\/etc\/tcpd\/hosts.deny@' portsentry_config.h
 %{__make} linux \
+	CC="%{__cc}" \
 	CFLAGS="%{rpmcflags} -Wall"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},/etc/{rc.d/init.d,sysconfig}}
+install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/{rc.d/init.d,sysconfig}}
 
 %{__make} install \
 	INSTALLDIR=$RPM_BUILD_ROOT/etc
 
-install ignore.csh $RPM_BUILD_ROOT%{_bindir}
-install portsentry $RPM_BUILD_ROOT%{_bindir}
+install ignore.csh $RPM_BUILD_ROOT%{_sbindir}/portsentry-ignore
+install portsentry $RPM_BUILD_ROOT%{_sbindir}
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/portsentry
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/portsentry
@@ -66,7 +66,7 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{_bindir}/ignore.csh
+%{_sbindir}/portsentry-ignore
 /sbin/chkconfig --add portsentry
 ls --color=none /var/lock/subsys/portsentry* >/dev/null 2>&1
 if [ $? -eq "0" ]; then
@@ -94,7 +94,7 @@
 %attr(640,root,root) %ghost %{_sysconfdir}/portsentry.blocked*
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
 %attr(754,root,root) /etc/rc.d/init.d/*
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_sbindir}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -102,6 +102,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.37  2006/03/12 20:16:35  glen
+- libwrap patch added
+- programs moved to sbindir (needs root to run anyway)
+- ignore.csh renamed not to be so generic
+- /bin/csh dep is autogenerated
+
 Revision 1.36  2005/09/01 10:47:38  darekr
 - PreReq -> Requires
 - BR: sed 4.0, noreplace for %config
@@ -129,7 +135,7 @@
 - massive attack s/pld.org.pl/pld-linux.org/
 
 Revision 1.28  2002/11/29 22:45:57  ankry
-- massive attack: new %%doc
+- massive attack: new %doc
 
 Revision 1.27  2002/03/12 11:16:01  kloczek
 - release 6.
@@ -168,7 +174,7 @@
   Group field using gettext).
 
 Revision 1.18  2002/01/18 02:14:38  kloczek
-perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
+- perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
 
 Revision 1.17  2001/09/25 12:17:30  qboosh
 - release 7: Prereq: /sbin/chkconfig (not implied by rc-scripts)
@@ -191,14 +197,14 @@
   SYSLOG_LEVEL and SYSLOG_LEVEL_ATTACH in portsentry_config.h.
 
 Revision 1.11  2001/05/02 21:51:26  qboosh
-- adapterized and made spec %%debug ready or added using %%rpm*flags macros
+- adapterized and made spec %debug ready or added using %rpm*flags macros
 
 Revision 1.10  2001/02/21 04:17:25  kloczek
 - release 4,
 - spec adapterized.
 
 Revision 1.9  2000/06/09 07:23:51  kloczek
-- added using %%{__make} macro.
+- added using %{__make} macro.
 
 Revision 1.8  2000/06/07 04:31:54  kloczek
 - spec adapterized.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/portsentry.spec?r1=1.36&r2=1.37&f=u



More information about the pld-cvs-commit mailing list