From f26b7c7dcf0d47713ba61c9710c0e7d9d65a8a05 Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Tue, 26 Feb 2008 13:52:36 +0000 Subject: [PATCH] PF2 slice package - sets up an initscript that asks for vsys access to planetflow data, and sets up an authorized keys file for PF central to get the data out. --- pf2slice-initscript | 2 -- pf2slice.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 pf2slice.spec diff --git a/pf2slice-initscript b/pf2slice-initscript index 81860cc..0307355 100644 --- a/pf2slice-initscript +++ b/pf2slice-initscript @@ -4,8 +4,6 @@ # description: planetflow slice initscript # -PROC=fprobe-ulog - . /etc/rc.d/init.d/functions case "$1" in diff --git a/pf2slice.spec b/pf2slice.spec new file mode 100644 index 0000000..be20948 --- /dev/null +++ b/pf2slice.spec @@ -0,0 +1,44 @@ +# please keep these three lines as they are used by the tagging script +# see build/module-tag.py for details +%define name pf2slice +%define version 1 +%define taglevel 1 + +%define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} + +Name: %{name} +Version: %{version} +Release: %{release} +Summary: pf2slice - Tools for starting and managing the PF2 slice +Group: Network/Monitoring +License: GPL +Source0: %{name}-%{version}.tar.bz2 +Buildroot: %{_tmppath}/%{name}-buildroot +Provides: pf2slice + +%description +pf2slice - Populates the planetflow slice with the right initscript, keychains and so on + +%prep +%setup -q + +%install +rm -rf %{buildroot} +install -d -v %{buildroot}/etc/init.d +install -m 755 -v pf2slice-initscript %{buildroot}/etc/init.d/pf2slice +mkdir -p /root/.ssh +cp authorized_keys /root/.ssh + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root) +/etc/init.d/pf2slice +/root/.ssh/authorized_keys + +%post +chkconfig --add pf2slice +chkconfig pf2slice on + +%changelog -- 2.43.0