packages: varnish-vcl-geoip/varnish-vcl-geoip.spec (NEW) - new

glen glen at pld-linux.org
Mon May 3 12:20:14 CEST 2010


Author: glen                         Date: Mon May  3 10:20:14 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/varnish-vcl-geoip:
   varnish-vcl-geoip.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/varnish-vcl-geoip/varnish-vcl-geoip.spec
diff -u /dev/null packages/varnish-vcl-geoip/varnish-vcl-geoip.spec:1.1
--- /dev/null	Mon May  3 12:20:14 2010
+++ packages/varnish-vcl-geoip/varnish-vcl-geoip.spec	Mon May  3 12:20:09 2010
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+Summary:	Varnish Geo-IP VCL
+Name:		varnish-vcl-geoip
+Version:	20100210
+Release:	0.1
+License:	GPL v2
+Group:		Networking/Daemons/HTTP
+# git clone http://github.com/cosimo/varnish-geoip.git
+# tar -cjf varnish-geoip-20100210.tar.bz2 --exclude=.git varnish-geoip
+# ../dropin varnish-geoip-20100210.tar.bz2
+Source0:	varnish-geoip-%{version}.tar.bz2
+# Source0-md5:	58c84b48f3b2a27601c0807bafeadbb5
+URL:		http://github.com/cosimo/varnish-geoip/
+BuildRequires:	perl-base
+%if %{with tests}
+BuildRequires:	GeoIP-devel
+BuildRequires:	perl-tools-devel >= 1:5.10
+%endif
+Requires:	GeoIP-devel
+Requires:	varnish
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir		/etc/varnish
+
+%description
+This VCL will transparently add a HTTP request header with Geo-IP
+information depending on the client IP address that made the request.
+
+%prep
+%setup -q -n varnish-geoip
+
+%build
+%{__make} geoip.vcl
+
+%if %{with tests}
+%{__make} geoip \
+	CC="%{__cc}"
+	DEBUG="%{rpmcflags}"
+%{__make} test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+cp -a geoip.vcl $RPM_BUILD_ROOT%{_sysconfdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README examples/default.vcl
+%{_sysconfdir}/geoip.vcl
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/05/03 10:20:09  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list