packaging
Thierry Parmentelat [Thu, 28 Jun 2012 21:52:53 +0000 (23:52 +0200)]
Makefile
portforward.spec [new file with mode: 0644]

index 9bbe3da..6e6b0b1 100644 (file)
--- 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 (file)
index 0000000..2f12d03
--- /dev/null
@@ -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 <support@planet-lab.org>
+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