lodgeit: Make opernrc- and stage4- compatible
This commit is contained in:
parent
c15f4fbd3f
commit
47ace21ebc
|
@ -9,6 +9,8 @@ preinstall: make.conf.extra
|
|||
chroot $(CHROOT) eselect python set python2.7
|
||||
|
||||
postinstall: $(POST_FILES)
|
||||
chroot $(CHROOT) $(EMERGE) --select -n $(USEPKG) dev-lang/python:2.7
|
||||
chroot $(CHROOT) eselect python set python2.7
|
||||
chroot $(CHROOT) $(EMERGE) -1n $(USEPKG) dev-vcs/mercurial
|
||||
chroot $(CHROOT) $(EMERGE) -1n $(USEPKG) dev-python/virtualenv
|
||||
chroot $(CHROOT) getent group lodgeit || chroot $(CHROOT) groupadd lodgeit
|
||||
|
@ -21,7 +23,7 @@ postinstall: $(POST_FILES)
|
|||
python genkey.py $(CHROOT)
|
||||
cp lodgeit.wsgi $(CHROOT)/home/lodgeit/lodgeitproject/lodgeit
|
||||
cp issue $(CHROOT)/etc/issue
|
||||
chroot $(CHROOT) rc-update add apache2 default
|
||||
ln -sf /etc/init.d/apache2 $(CHROOT)/etc/runlevels/default/apache2
|
||||
chroot $(CHROOT) $(EMERGE) -C dev-vcs/mercurial
|
||||
chroot $(CHROOT) $(EMERGE) -C dev-python/virtualenv
|
||||
chroot $(CHROOT) $(EMERGE) --depclean --with-bdeps=n
|
||||
|
|
|
@ -3,15 +3,15 @@
|
|||
set -v
|
||||
|
||||
cd ~/
|
||||
virtualenv --no-site-packages lodgeitproject
|
||||
[ -d lodgeitproject ] || virtualenv --no-site-packages lodgeitproject
|
||||
cd lodgeitproject
|
||||
source bin/activate
|
||||
[ -d lodgeit ] || hg clone http://dev.pocoo.org/hg/lodgeit-main lodgeit
|
||||
pip install pygments
|
||||
pip install jinja2
|
||||
pip install werkzeug
|
||||
pip install sqlalchemy
|
||||
pip install babel
|
||||
pip install pil
|
||||
pip install simplejson
|
||||
pip install --upgrade pygments
|
||||
pip install --upgrade jinja2
|
||||
pip install --upgrade werkzeug
|
||||
pip install --upgrade sqlalchemy
|
||||
pip install --upgrade babel
|
||||
pip install --upgrade pil
|
||||
pip install --upgrade simplejson
|
||||
deactivate
|
||||
|
|
Loading…
Reference in New Issue