Build .deb, .rpm, and .tgz

This commit is contained in:
Henri DF
2016-03-31 18:54:52 -07:00
parent 8ae908fe85
commit 37d0f7d3e0
6 changed files with 53 additions and 0 deletions

3
scripts/description.txt Normal file
View File

@@ -0,0 +1,3 @@
Digwatch instruments your physical and virtual machines at the OS level by installing into the Linux kernel and capturing system calls and other OS events.
Then, using a rule-based configuration, you can specify filters for events of interest that you would like to log or be notified of.

13
scripts/rpm/postinstall Executable file
View File

@@ -0,0 +1,13 @@
dkms add -m sysdig -v %{version} --rpm_safe_upgrade
if [ `uname -r | grep -c "BOOT"` -eq 0 ] && [ -e /lib/modules/`uname -r`/build/include ]; then
dkms build -m sysdig -v %{version}
dkms install --force -m sysdig -v %{version}
elif [ `uname -r | grep -c "BOOT"` -gt 0 ]; then
echo -e ""
echo -e "Module build for the currently running kernel was skipped since you"
echo -e "are running a BOOT variant of the kernel."
else
echo -e ""
echo -e "Module build for the currently running kernel was skipped since the"
echo -e "kernel source for this kernel does not seem to be installed."
fi

1
scripts/rpm/preuninstall Executable file
View File

@@ -0,0 +1 @@
dkms remove -m sysdig -v %{version} --all --rpm_safe_upgrade