From: Thierry Parmentelat Date: Thu, 28 Jun 2012 21:52:53 +0000 (+0200) Subject: packaging X-Git-Tag: bind_public-0.1-1~2 X-Git-Url: http://git.onelab.eu/?p=bind_public.git;a=commitdiff_plain;h=6ec8d2f19f58aa275bac01212750896ff89bcea7 packaging --- diff --git a/Makefile b/Makefile index 9bbe3da..6e6b0b1 100644 --- a/Makefile +++ b/Makefile @@ -6,3 +6,7 @@ test: clean: rm -f bind_public.so test + +install: + install -D -m 755 bind_public.so $DESTDIR/etc/planetlab/lib/bind_public.so + diff --git a/portforward.spec b/portforward.spec new file mode 100644 index 0000000..2f12d03 --- /dev/null +++ b/portforward.spec @@ -0,0 +1,41 @@ +%define name portforward +%define version 0.1 +%define taglevel 1 + +%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} + +Summary: Library for transparently redirect bind() calls for lxc-PlanetLab +Name: %{name} +Version: %{version} +Release: %{release} +License: PlanetLab +Group: System Environment/Libraries +Source0: %{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +Vendor: PlanetLab +Packager: PlanetLab Central +Distribution: PlanetLab %{plrelease} +URL: %{SCMURL} + +%description +This package provides bind_public.so that allows to +transparently redirect calls to bind(0.0.0.0) to the public IP address +of the node. + +%prep +%setup -q + +%build +make + +%install +make install DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +/etc/planetlab/ + +%changelog