Many makefile / install improvement for buster experimental from E.Mollier

This commit is contained in:
Etienne Mollier 2019-08-11 18:05:14 +02:00 committed by Alexandre Aubin
parent 903fde215b
commit d9d094aa1c
2 changed files with 43 additions and 13 deletions

View file

@ -1,29 +1,57 @@
BUILD_DEPS = dh-systemd dh-python python-all python-yaml python-psutil gdebi git git-buildpackage lua5.1 liblua5.1-dev libidn11-dev libssl-dev txt2man quilt postfix # YUNoHost locations
YNH_BUILD_DIR = /ynh-build/
YNH_SOURCE = https://github.com/yunohost
.PHONY: init metronome ssowat moulinette yunohost install uninstall BUILD_DEPS = git git-buildpackage postfix python-setuptools
APT_OPTS = -o Dpkg::Options::="--force-confold" -y #--force-yes
.PHONY: init metronome ssowat moulinette yunohost install uninstall mrproper
init: init:
apt -o Dpkg::Options::="--force-confold" -y --force-yes install $(BUILD_DEPS) apt $(APT_OPTS) install $(BUILD_DEPS)
mkdir -p /ynh-build/ mkdir -p "$(YNH_BUILD_DIR)"
cd /ynh-build/; git clone https://github.com/yunohost/moulinette; cd "$(YNH_BUILD_DIR)"; \
cd /ynh-build/; git clone https://github.com/yunohost/ssowat; git clone "$(YNH_SOURCE)"/moulinette; \
cd /ynh-build/; git clone https://github.com/yunohost/metronome; git clone "$(YNH_SOURCE)"/ssowat; \
cd /ynh-build/; git clone https://github.com/yunohost/yunohost; git clone "$(YNH_SOURCE)"/metronome; \
git clone "$(YNH_SOURCE)"/yunohost;
apt $(APT_OPTS) build-dep \
"$(YNH_BUILD_DIR)"/moulinette \
"$(YNH_BUILD_DIR)"/ssowat \
"$(YNH_BUILD_DIR)"/metronome \
"$(YNH_BUILD_DIR)"/yunohost
metronome: metronome:
cd /ynh-build/; rm -f metronome_*; cd metronome; dpkg-buildpackage -rfakeroot -uc -b -d cd "$(YNH_BUILD_DIR)"; \
rm -f metronome_*; \
cd metronome; \
dpkg-buildpackage -rfakeroot -uc -b -d
ssowat: ssowat:
cd /ynh-build/; rm -f ssowat_*; cd ssowat; debuild -us -uc cd "$(YNH_BUILD_DIR)"; \
rm -f ssowat_*; \
cd ssowat; \
debuild -us -uc
moulinette: moulinette:
cd /ynh-build/; rm -f moulinette_*; cd moulinette; debuild -us -uc cd "$(YNH_BUILD_DIR)"; \
rm -f moulinette_*; \
cd moulinette; \
debuild -us -uc
yunohost: yunohost:
cd /ynh-build/; rm -f yunohost_*; cd yunohost; debuild -us -uc cd "$(YNH_BUILD_DIR)"; \
rm -f yunohost_*; \
cd yunohost; \
debuild -us -uc
install: install:
cd /ynh-build/; debconf-set-selections < debconf; export SUDO_FORCE_REMOVE=yes; gdebi /ynh-build/metronome*.deb -n; gdebi /ynh-build/moulinette*.deb -n; gdebi /ynh-build/ssowat*.deb -n; gdebi /ynh-build/yunohost*.deb -n cd "$(YNH_BUILD_DIR)"; \
debconf-set-selections < debconf; \
SUDO_FORCE_REMOVE=yes apt install $(APT_OPTS) /ynh-build/*.deb;
mrproper:
@ rm "$(YNH_BUILD_DIR)" -rfv
uninstall: uninstall:
apt remove slapd yunohost moulinette --purge -y apt remove slapd yunohost moulinette --purge -y

View file

@ -140,6 +140,8 @@ function build_packages_locally()
cp ./Makefile ./debconf /ynh-build/ cp ./Makefile ./debconf /ynh-build/
cd /ynh-build cd /ynh-build
make init make init
make moulinette
make ssowat
make metronome make metronome
make yunohost make yunohost
} }