1 include ..
/..
/Makefile.omd
10 tar xzf
$(NAME
)-$(VERSION
).tgz
11 tar xzf template-arctictut.tgz
-C
$(DIR
)/lib
/tpl
/
12 ln
-sf ..
/..
/..
/images
/fileicons
/pdf.png
$(DIR
)/lib
/tpl
/arctictut
/images
/tool-pdf.png
13 tar xzf template-vector.tgz
-C
$(DIR
)/lib
/tpl
/
15 for p in plugins
/*.tgz
; do \
16 echo
"add plugin $$p..." ; \
17 tar xzf
$$p -C
$(DIR
)/lib
/plugins
; \
20 for p in patches
/*.patch
; do \
21 echo
"applying $$p..." ; \
22 ( cd
$(DIR
) ; patch
-p1
-b
) < $$p ; \
24 find
$(DIR
)/ -name \
*.orig
-exec
rm {} \
;
27 mkdir
-p
$(DESTDIR
)$(OMD_ROOT
)/share
/dokuwiki
28 cp preload.php
$(DIR
)/inc
/
29 cp
-r authmultisite
$(DIR
)/lib
/plugins
/
30 # touch $(DIR)/conf $(DIR)/data
31 # rm -r $(DIR)/conf $(DIR)/data
32 cp
-r
$(DIR
) $(DESTDIR
)$(OMD_ROOT
)/share
/dokuwiki
/htdocs
33 mkdir
-p
$(DESTDIR
)$(OMD_ROOT
)/share
/doc
/dokuwiki
34 install -m
644 $(DIR
)/README
$(DESTDIR
)$(OMD_ROOT
)/share
/doc
/dokuwiki
35 install -m
644 $(DIR
)/COPYING
$(DESTDIR
)$(OMD_ROOT
)/share
/doc
/dokuwiki
36 install -m
644 $(DIR
)/VERSION
$(DESTDIR
)$(OMD_ROOT
)/share
/doc
/dokuwiki
39 # $(MAKE) DESTDIR=$(DESTDIR) -C $(DIR) -j 1 install
40 # # fix path for plugin
41 # [ -d $(DESTDIR)$(OMD_ROOT)/lib/nagios/plugins ] || mkdir -p $(DESTDIR)$(OMD_ROOT)/lib/nagios/plugins
42 # mv $(DESTDIR)$(OMD_ROOT)/bin/check_gearman $(DESTDIR)$(OMD_ROOT)/lib/nagios/plugins/
43 # rm -rf $(DESTDIR)$(OMD_ROOT)/share/mod_gearman/*.conf
44 # rm -f $(DESTDIR)$(OMD_ROOT)/lib/mod_gearman/mod_gearman.so
45 # rm -rf $(DESTDIR)$(OMD_ROOT)/etc
46 # rm -rf $(DESTDIR)$(OMD_ROOT)/var
49 mkdir
-p
$(SKEL
)/etc
/dokuwiki
50 mkdir
-p
$(SKEL
)/var
/dokuwiki
/lib
/plugins
51 cp
$(DIR
)/conf
/*.conf
$(SKEL
)/etc
/dokuwiki
/.
52 cp
$(DIR
)/conf
/*.php
$ $(SKEL
)/etc
/dokuwiki
/.
53 cp
$(DIR
)/conf
/acl.auth.php.
dist $(SKEL
)/etc
/dokuwiki
/acl.auth.php
54 cp
$(DIR
)/conf
/mysql.conf.php.example
$(SKEL
)/etc
/dokuwiki
/mysql.conf.php.example
56 for p in patches
/*.skel_patch
; do \
57 echo
"applying $$p..." ; \
58 ( cd
$(SKEL
) ; patch
-p1
) < $$p || exit
1; \
61 cd
$(SKEL
)/var
/dokuwiki
/lib
/plugins
/ ; \
62 for i in
`ls -1 $(DESTDIR)$(OMD_ROOT)/share/dokuwiki/htdocs/lib/plugins/` ; do \
63 ln
-s ..
/..
/..
/..
/share
/dokuwiki
/htdocs
/lib
/plugins
/$$i .
; \
67 # Remove files created by build/install