mirror of
https://github.com/limosek/zaf.git
synced 2024-11-21 09:59:07 +01:00
Added contrib for making deb packages
This commit is contained in:
parent
da87113b47
commit
8ad723f45c
4
Makefile
4
Makefile
@ -4,7 +4,9 @@ CONTROLFILES=$(foreach p,$(PLUGINS),$(p)/control.zaf)
|
|||||||
ZAF_EXPORT_OPTS=$(foreach o,$(ZAF_OPTIONS),$(shell echo $(o)|cut -d '=' -f 1))
|
ZAF_EXPORT_OPTS=$(foreach o,$(ZAF_OPTIONS),$(shell echo $(o)|cut -d '=' -f 1))
|
||||||
DEBIAN_DIR=tmp/deb
|
DEBIAN_DIR=tmp/deb
|
||||||
DEBIAN_CTRL=$(DEBIAN_DIR)/DEBIAN
|
DEBIAN_CTRL=$(DEBIAN_DIR)/DEBIAN
|
||||||
DEBIAN_PKG=$(shell . lib/zaf.lib.sh; echo out/zaf-$$ZAF_VERSION.deb)
|
ifeq ($(DEBIAN_PKG),)
|
||||||
|
DEBIAN_PKG=$(shell . lib/zaf.lib.sh; echo out/zaf-$$ZAF_VERSION.deb)
|
||||||
|
endif
|
||||||
ifeq ($(ZAF_DEBUG),)
|
ifeq ($(ZAF_DEBUG),)
|
||||||
ZAF_DEBUG=0
|
ZAF_DEBUG=0
|
||||||
endif
|
endif
|
||||||
|
15
contrib/zafdeb.sh
Executable file
15
contrib/zafdeb.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. lib/zaf.lib.sh
|
||||||
|
|
||||||
|
! [ -d plugins ] && git clone https://github.com/limosek/zaf-plugins.git plugins
|
||||||
|
|
||||||
|
make deb DEBIAN_PKG="out/zaf-$ZAF_VERSION-git.deb" \
|
||||||
|
ZAF_OPTIONS="ZAF_GIT=1 ZAF_REPO_GITURL='https://github.com/limosek/zaf-plugins.git'"
|
||||||
|
|
||||||
|
make deb DEBIAN_PKG="out/zaf-$ZAF_VERSION.deb" \
|
||||||
|
ZAF_OPTIONS="ZAF_GIT=0"
|
||||||
|
|
||||||
|
make deb DEBIAN_PKG="out/zaf-$ZAF_VERSION-all.deb" ZAF_OPTIONS="ZAF_GIT=0" \
|
||||||
|
PLUGINS="./plugins/fsx ./plugins/openssh ./plugins/psx ./plugins/tcqos ./plugins/zaf ./plugins/fail2ban"
|
||||||
|
|
@ -9,7 +9,7 @@ configure)
|
|||||||
. /usr/lib/zaf/ctrl.lib.sh
|
. /usr/lib/zaf/ctrl.lib.sh
|
||||||
cd /usr/lib/zaf && /usr/lib/zaf/install.sh reconf
|
cd /usr/lib/zaf && /usr/lib/zaf/install.sh reconf
|
||||||
[ -n "{PLUGINS}" ] && for p in {PLUGINS}; do
|
[ -n "{PLUGINS}" ] && for p in {PLUGINS}; do
|
||||||
if ! is_plugin $p;then
|
if ! zaf_is_plugin $p;then
|
||||||
zaf install $ZAF_PREPACKAGED_DIR/$p;
|
zaf install $ZAF_PREPACKAGED_DIR/$p;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user