python version: update Makefile to install python

This commit is contained in:
Jérôme Schneider 2014-02-13 18:03:16 +01:00
parent 3724311ae2
commit 4e43415883
2 changed files with 16 additions and 1 deletions

View File

@ -5,10 +5,11 @@ all: install
install:
apt-get install pbuilder devscripts debhelper cowbuilder git dput fakeroot sudo
if ! getent passwd eobuilder > /dev/null 2>&1; then useradd eobuilder --home-dir /var/lib/eobuilder --create-home; fi
python setup.py install
su eobuilder -p -c "cp pbuilderrc /var/lib/eobuilder/.pbuilderrc"
su eobuilder -p -c "cp dput.cf /var/lib/eobuilder/.dput.cf"
su eobuilder -p -c "cp gitconfig /var/lib/eobuilder/.gitconfig"
cp eobuilder /usr/local/bin
cp eobuilder.sh /usr/local/bin
cp eobuilder.cron /etc/cron.daily/eobuilder
uninstall:

14
eobuilder.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
if [ "$(whoami)" != "eobuilder" ]; then
if which sudo; then
if sudo -v -u eobuilder; then
sudo -u eobuilder eobuilder "$@"
exit $?
fi
echo "You must run this script with eobuilder user"
exit 1
fi
fi
eobuilder-ctl $*