freeipa/ipa-server/ipa-gui/Makefile
Karl MacMillan 679343594d Install the web gui
Install the turbogears web gui including an init script. This
patch includes a few related changes:

* create a production configuration
* rename the web gui startup scrip to ipa-webgui
* add an init script
* chkconfig on the ipa-webgui init script
* make the start script properly daemonize the app when not
  in a development directory.
* Install everything to the correct places (/usr/sbin/ipa-webgui
  and /usr/share/ipa/ipagui mainly).

There are some things still left to do:

* Sort out the logging - the config needs to be adjusted so
  that logging messages end up in /var/log.
0001-01-01 00:00:00 +00:00

40 lines
1.0 KiB
Makefile

SHAREDIR=$(DESTDIR)/usr/share/ipa
SBINDIR=$(DESTDIR)/usr/sbin
INITDIR = $(DESTDIR)/etc/rc.d/init.d
IPAGUI_SUBDIRS=config forms helpers templates
STATIC_SUBDIRS=css images javascript
all: ;
install:
-mkdir -p $(SHAREDIR)/ipagui
install -m 644 ipagui/*.py $(SHAREDIR)/ipagui
-mkdir -p $(SHAREDIR)/ipa_gui.egg-info
install -m 644 ipa_gui.egg-info/* $(SHAREDIR)/ipa_gui.egg-info
@for subdir in $(IPAGUI_SUBDIRS); do \
mkdir -p $(SHAREDIR)/ipagui/$$subdir; \
install -m 644 ipagui/$$subdir/*.py $(SHAREDIR)/ipagui/$$subdir; \
done
install -m 644 ipagui/config/*.cfg $(SHAREDIR)/ipagui/config
-mkdir -p $(SHAREDIR)/ipagui/static
@for subdir in $(STATIC_SUBDIRS); do \
mkdir -p $(SHAREDIR)/ipagui/static/$$subdir; \
install -m 644 ipagui/static/$$subdir/* $(SHAREDIR)/ipagui/static/$$subdir; \
done
install -m 644 ipa-webgui.cfg $(SHAREDIR)
install -m 755 ipa-webgui $(SBINDIR)
-mkdir -p $(INITDIR)
install -m 755 ipa-webgui.init $(INITDIR)/ipa-webgui
clean:
find . -name "*.pyc" -exec rm -f {} \;
find . -name "*~" -exec rm -f {} \;