Create missing directories so it runs out of the box.

This commit is contained in:
Koro 2018-08-22 01:02:21 +00:00 committed by Fredrik Fornwall
parent 757a481575
commit ea1d64b3ce
1 changed files with 6 additions and 0 deletions

View File

@ -8,3 +8,9 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-regexcheck"
termux_step_pre_configure() {
LDFLAGS+=" -llog"
}
termux_step_post_massage() {
mkdir -p $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/log/$TERMUX_PKG_NAME
mkdir -p $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/run/$TERMUX_PKG_NAME
find $TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var -exec chmod -f u+w,g-rwx,o-rwx \{\} \;
}