mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
no need to write a cherryp.config
This commit is contained in:
parent
63d2c3ee68
commit
3a7f2bd860
31
Makefile
31
Makefile
@ -31,16 +31,18 @@ $(BUILDDIR)/withsqlite: build
|
|||||||
install: default
|
install: default
|
||||||
mkdir -p $(DESTDIR)/etc/init.d $(DESTDIR)/etc/plinth
|
mkdir -p $(DESTDIR)/etc/init.d $(DESTDIR)/etc/plinth
|
||||||
cp plinth.sample.fhs.config $(DESTDIR)/etc/plinth/plinth.config
|
cp plinth.sample.fhs.config $(DESTDIR)/etc/plinth/plinth.config
|
||||||
mkdir -p $(DESTDIR)/usr/lib/python2.7/plinth $(DESTDIR)/usr/share/plinth/ $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/doc/plinth $(DESTDIR)/usr/share/man/man1
|
mkdir -p $(DESTDIR)/usr/lib/python2.7/plinth $(DESTDIR)/usr/bin \
|
||||||
cp -L doc/* $(DESTDIR)/usr/share/doc/plinth/
|
$(DESTDIR)/usr/share/doc/plinth $(DESTDIR)/usr/share/man/man1
|
||||||
|
rsync -L doc/* $(DESTDIR)/usr/share/doc/plinth/
|
||||||
gzip $(DESTDIR)/usr/share/doc/plinth/plinth.1
|
gzip $(DESTDIR)/usr/share/doc/plinth/plinth.1
|
||||||
mv $(DESTDIR)/usr/share/doc/plinth/plinth.1.gz $(DESTDIR)/usr/share/man/man1
|
mv $(DESTDIR)/usr/share/doc/plinth/plinth.1.gz $(DESTDIR)/usr/share/man/man1
|
||||||
rsync -rl *.py modules templates vendor static --exclude static/doc --exclude .git/* $(DESTDIR)/usr/lib/python2.7/plinth
|
rsync -rl *.py modules templates vendor themes static \
|
||||||
|
--exclude static/doc --exclude .git/* --exclude *.pyc \
|
||||||
|
$(DESTDIR)/usr/lib/python2.7/plinth
|
||||||
mkdir -p $(DESTDIR)/usr/lib/python2.7/plinth/static/doc
|
mkdir -p $(DESTDIR)/usr/lib/python2.7/plinth/static/doc
|
||||||
cp doc/*.html $(DESTDIR)/usr/lib/python2.7/plinth/static/doc
|
cp doc/*.html $(DESTDIR)/usr/lib/python2.7/plinth/static/doc
|
||||||
rm -f $(DESTDIR)/usr/lib/python2.7/plinth/plinth.config
|
rm -f $(DESTDIR)/usr/lib/python2.7/plinth/plinth.config
|
||||||
ln -s ../../../../etc/plinth/plinth.config $(DESTDIR)/usr/lib/python2.7/plinth/plinth.config
|
ln -s ../../../../etc/plinth/plinth.config $(DESTDIR)/usr/lib/python2.7/plinth/plinth.config
|
||||||
cp -r themes $(DESTDIR)/usr/share/plinth
|
|
||||||
cp share/init.d/plinth $(DESTDIR)/etc/init.d
|
cp share/init.d/plinth $(DESTDIR)/etc/init.d
|
||||||
rm -f $(DESTDIR)/usr/bin/plinth
|
rm -f $(DESTDIR)/usr/bin/plinth
|
||||||
ln -s ../lib/python2.7/plinth/plinth.py $(DESTDIR)/usr/bin/plinth
|
ln -s ../lib/python2.7/plinth/plinth.py $(DESTDIR)/usr/bin/plinth
|
||||||
@ -63,27 +65,6 @@ dirs:
|
|||||||
config: Makefile
|
config: Makefile
|
||||||
@test -f plinth.config || cp plinth.sample.config plinth.config
|
@test -f plinth.config || cp plinth.sample.config plinth.config
|
||||||
|
|
||||||
cherrypy.config: Makefile
|
|
||||||
@echo [global]\\n\
|
|
||||||
server.socket_host = \'0.0.0.0\'\\n\
|
|
||||||
server.socket_port = 8000\\n\
|
|
||||||
server.thread_pool = 10\\n\
|
|
||||||
tools.staticdir.root = \"$(PWD)\"\\n\
|
|
||||||
tools.sessions.on = True\\n\
|
|
||||||
tools.auth.on = True\\n\
|
|
||||||
tools.sessions.storage_type = \"file\"\\n\
|
|
||||||
tools.sessions.timeout = 90\\n\
|
|
||||||
tools.sessions.storage_path = \"$(PWD)/data/cherrypy_sessions\"\\n\
|
|
||||||
\\n\
|
|
||||||
[/static]\\n\
|
|
||||||
tools.staticdir.on = True\\n\
|
|
||||||
tools.staticdir.dir = \"static\"\\n\
|
|
||||||
\\n\
|
|
||||||
[/favicon.ico]\\n\
|
|
||||||
tools.staticfile.on = True\\n\
|
|
||||||
tools.staticfile.filename = \"$(PWD)/static/theme/favicon.ico\"\\n\
|
|
||||||
> cherrypy.config
|
|
||||||
|
|
||||||
%.tiny.css: %.css
|
%.tiny.css: %.css
|
||||||
@cat $< | python -c 'import re,sys;print re.sub("\s*([{};,:])\s*", "\\1", re.sub("/\*.*?\*/", "", re.sub("\s+", " ", sys.stdin.read())))' > $@
|
@cat $< | python -c 'import re,sys;print re.sub("\s*([{};,:])\s*", "\\1", re.sub("/\*.*?\*/", "", re.sub("\s+", " ", sys.stdin.read())))' > $@
|
||||||
css: $(COMPRESSED_CSS)
|
css: $(COMPRESSED_CSS)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user