Merge branch 'master' of mathias-kettner.de:omd
[omd.git] / packages / omd / Makefile
blob96147049e2f7d629ed7856f4267cdee7612b320c
1 include ../../Makefile.omd
3 NAME = omd
4 VERSION = $(OMD_VERSION)
5 SHELL = /bin/bash
7 ifeq ($(DISTRO_NAME),SLES)
8 DEFAULT_RUNLEVELS=2 3 5
9 else
10 DEFAULT_RUNLEVELS=2 3 4 5
11 endif
13 build:
15 install:
16 mkdir -p $(DESTDIR)$(OMD_ROOT)/bin
17 install -m 755 omd $(DESTDIR)$(OMD_ROOT)/bin
18 sed -i 's|###OMD_VERSION###|$(OMD_VERSION)|g' $(DESTDIR)$(OMD_ROOT)/bin/omd
19 mkdir -p $(DESTDIR)$(OMD_ROOT)/share/omd/htdocs
20 install -m 644 index.py $(DESTDIR)$(OMD_ROOT)/share/omd/htdocs
21 install -m 644 logout.php $(DESTDIR)$(OMD_ROOT)/share/omd/htdocs
22 mkdir -p $(DESTDIR)$(OMD_ROOT)/share/omd/htdocs/img
23 install -m 644 img/* $(DESTDIR)$(OMD_ROOT)/share/omd/htdocs/img
24 mkdir -p $(DESTDIR)$(OMD_ROOT)/share/man/man8
25 install -m 644 omd.8 $(DESTDIR)$(OMD_ROOT)/share/man/man8
26 gzip $(DESTDIR)$(OMD_ROOT)/share/man/man8/omd.8
27 install -m 755 omd.init $(DESTDIR)$(OMD_ROOT)/share/omd/omd.init
28 sed -i 's|###DEFAULT_RUNLEVELS###|$(DEFAULT_RUNLEVELS)|g' $(DESTDIR)$(OMD_ROOT)/share/omd/omd.init
29 mkdir -p $(DESTDIR)$(OMD_ROOT)/share/doc/$(NAME)
30 install -m 644 COPYING AUTHORS $(DESTDIR)$(OMD_ROOT)/share/doc/$(NAME)
31 mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/omd
32 install -m 644 init_profile $(DESTDIR)$(OMD_ROOT)/lib/omd/
33 install -m 755 port_is_used $(DESTDIR)$(OMD_ROOT)/lib/omd/
35 mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/omd/scripts/post-create
37 skel:
39 clean: