aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>1999-12-29 13:21:48 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>1999-12-29 13:21:48 +0000
commit7f3cb1d0b41c4c2aa60bbad419644578757adffb (patch)
tree6dd22fa5f6748830c5ba799444d4a790032c292c /Makefile
parent20c20045d5483f6f0f10b75b2a45d489d2b76612 (diff)
downloadmsec-7f3cb1d0b41c4c2aa60bbad419644578757adffb.tar
msec-7f3cb1d0b41c4c2aa60bbad419644578757adffb.tar.gz
msec-7f3cb1d0b41c4c2aa60bbad419644578757adffb.tar.bz2
msec-7f3cb1d0b41c4c2aa60bbad419644578757adffb.tar.xz
msec-7f3cb1d0b41c4c2aa60bbad419644578757adffb.zip
"Seethechangelog"
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9851584..24f8467 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
VERSION = 0.9
+NAME = msec
all: promisc_check
@@ -14,6 +15,7 @@ rpm_install: all
rm -rf $(RPM_BUILD_ROOT)
mkdir -p $(RPM_BUILD_ROOT)/etc/security/msec/{init-sh,cron-sh}/
mkdir -p $(RPM_BUILD_ROOT)/usr/bin
+ mkdir -p $(RPM_BUILD_ROOT)/usr/man/man8/
cp init-sh/level*.sh $(RPM_BUILD_ROOT)/etc/security/msec/init-sh
cp init-sh/lib.sh $(RPM_BUILD_ROOT)/etc/security/msec/init-sh
cp init-sh/init.sh $(RPM_BUILD_ROOT)/etc/security/msec
@@ -27,7 +29,10 @@ rpm_install: all
touch $(RPM_BUILD_ROOT)/etc/security/msec/security.conf
touch $(RPM_BUILD_ROOT)/var/log/security.log
install -s src/promisc_check/promisc_check $(RPM_BUILD_ROOT)/usr/bin
- echo "Install complete"
+ install -d $(RPM_BUILD_ROOT)/usr/man/man8/
+ install -m644 doc/*8 $(RPM_BUILD_ROOT)/usr/man/man8/
+ bzip2 -9f $(RPM_BUILD_ROOT)/usr/man/man8/*8
+ @echo "Install complete"
dis: clean
rm -rf msec-$(VERSION) ../msec-$(VERSION).tar*
@@ -39,6 +44,12 @@ dis: clean
bzip2 -9f ../msec-$(VERSION).tar
rm -rf msec-$(VERSION)
+rpm: dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
+ cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES
+ cp -f $(NAME).spec $(RPM)/SPECS/
+ -rpm -ba --clean --rmsource $(NAME).spec
+ rm -f ../$(NAME)-$(VERSION).tar.bz2
+
install:
(rm -rf /etc/security/msec)
(mkdir -p /etc/security/msec/init-sh)