aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-02-25 19:44:50 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-02-25 19:44:50 +0000
commit4a6a6d4fd2d6e091587a963e6687fe1c2ff9d5c4 (patch)
tree53b7621dc18e4d3c1a76d4f977f7dc553ebfd53f
parentbea97c082f9d7138e30638ede7d91a2538c8da7a (diff)
downloadmsec-4a6a6d4fd2d6e091587a963e6687fe1c2ff9d5c4.tar
msec-4a6a6d4fd2d6e091587a963e6687fe1c2ff9d5c4.tar.gz
msec-4a6a6d4fd2d6e091587a963e6687fe1c2ff9d5c4.tar.bz2
msec-4a6a6d4fd2d6e091587a963e6687fe1c2ff9d5c4.tar.xz
msec-4a6a6d4fd2d6e091587a963e6687fe1c2ff9d5c4.zip
Support for plugin installation.
-rw-r--r--Makefile6
-rw-r--r--src/msec/Makefile1
2 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a031784..2c65439 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,7 @@ manpages:
install: all
mkdir -p $(RPM_BUILD_ROOT)/etc/security/msec
mkdir -p $(RPM_BUILD_ROOT)/usr/share/msec
+ mkdir -p $(RPM_BUILD_ROOT)/usr/share/msec/plugins
mkdir -p $(RPM_BUILD_ROOT)/usr/sbin
cp init-sh/*.sh $(RPM_BUILD_ROOT)/usr/share/msec
cp cron-sh/*.sh $(RPM_BUILD_ROOT)/usr/share/msec
@@ -37,6 +38,11 @@ install: all
for i in libmsec.py config.py msec.py msecperms.py msecgui.py help.py version.py; do \
install -m755 src/msec/$$i $(RPM_BUILD_ROOT)/usr/share/msec ; \
done
+ # install plugins
+ for i in apparmor.py; do \
+ install -m755 src/msec/plugins/$$i $(RPM_BUILD_ROOT)/usr/share/msec/plugins ; \
+ done
+ # install sbin files
for i in msec msecperms msecgui; do \
install -m755 src/msec/$$i $(RPM_BUILD_ROOT)/usr/sbin ; \
done
diff --git a/src/msec/Makefile b/src/msec/Makefile
index 8ff37b0..829f654 100644
--- a/src/msec/Makefile
+++ b/src/msec/Makefile
@@ -14,6 +14,7 @@ all: compile man help
compile:
./compile.py '/usr/share/msec/' *.py
+ ./compile.py '/usr/share/msec/plugins' plugins/*.py
man: $(MAN)