Author: jajcus                       Date: Wed Nov  9 10:57:23 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new spec

---- Files affected:
SPECS:
   ipset.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ipset.spec
diff -u /dev/null SPECS/ipset.spec:1.1
--- /dev/null   Wed Nov  9 11:57:23 2005
+++ SPECS/ipset.spec    Wed Nov  9 11:57:18 2005
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+#
+# TODO:
+#      - -devel subpackage
+#      - Requires and BuildRequires with proper versions
+#
+Summary:       IP sets utility
+Name:          ipset
+%define version_base 2.2.6
+%define version_tstamp 20051028
+Version:       %{version_base}_%{version_tstamp}
+Release:       0.1
+License:       GPL
+Group:         Networking/Admin
+Source0:       
http://ipset.netfilter.org/%{name}-%{version_base}-%{version_tstamp}.tar.bz2
+# Source0-md5: f44ed0ddb714060716677838cd19045c
+URL:           http://ipset.netfilter.org/
+BuildRequires: linux-libc-headers >= 2.6.11.1
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# not all set types are supported by our kernel and linux-libc-headers
+%define _settypes ipmap portmap macipmap iphash nethash iptree
+
+%description
+IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which
+can be administered by the ipset utility. Depending on the type,
+currently an IP set may store IP addresses, (TCP/UDP) port numbers or
+IP addresses with MAC addresses in a way, which ensures lightning
+speed when matching an entry against a set.
+
+%prep
+%setup -qn %{name}-%{version_base}
+
+%build
+%{__make} \
+       PREFIX="%{_prefix}" \
+       LIBDIR="%{_libdir}" \
+       MANDIR="%{_mandir}" \
+       BINDIR="%{_sbindir}" \
+       SETTYPES:="%{_settypes}" \
+       COPT_FLAGS:="%{rpmcflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR="$RPM_BUILD_ROOT" \
+       PREFIX="%{_prefix}" \
+       LIBDIR="%{_libdir}" \
+       MANDIR="%{_mandir}" \
+       BINDIR="%{_sbindir}" \
+       SETTYPES:="%{_settypes}"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog ChangeLog.ippool TODO
+%attr(755,root,root) %{_sbindir}/*
+%dir %{_libdir}/ipset
+%attr(755,root,root) %{_libdir}/ipset/*.so
+%{_mandir}/man8/*
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/11/09 10:57:18  jajcus
+- new spec
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to