Added specfile
authorSapan Bhatia <gwsapan@gmail.com>
Tue, 5 Jun 2012 07:06:06 +0000 (03:06 -0400)
committerSapan Bhatia <gwsapan@gmail.com>
Tue, 5 Jun 2012 07:06:06 +0000 (03:06 -0400)
Makefile [new file with mode: 0644]
procprotect.spec [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..a328711
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+obj-m += procprotect.o
+
+all:
+       make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
+
+clean:
+       make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
diff --git a/procprotect.spec b/procprotect.spec
new file mode 100644 (file)
index 0000000..57e66ca
--- /dev/null
@@ -0,0 +1,46 @@
+%define url $URL$
+
+%define name procprotect
+%define version 0.1
+%define taglevel 1
+
+%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+
+Vendor: PlanetLab
+Packager: PlanetLab Central <support@planet-lab.org>
+Distribution: PlanetLab %{plrelease}
+URL: %(echo %{url} | cut -d ' ' -f 2)
+
+Summary: Proc fs acls
+Name: %{name}
+Version: %{version}
+Release: %{release}
+License: GPL
+Group: System Environment/Kernel
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+Source0: procprotect-%{version}.tar.gz
+
+%description
+ACLs for protecting entries in the proc filesystem.
+
+%prep 
+%setup -q
+
+%build
+make -C /lib/modules/`ls /lib/modules | head -1`/build M=$PWD modules
+
+%install
+mkdir -p $RPM_BUILD_ROOT/lib/modules/`ls /lib/modules | head -1`/kernel/net/procprotect
+cp procprotect.ko $RPM_BUILD_ROOT/lib/modules/`ls /lib/modules | head -1`/kernel/net/procprotect
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+/lib
+
+%post
+
+%postun
+
+%changelog