mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Merge branch 'master' of github.com:OpenELEC/OpenELEC.tv into openelec-6.0
This commit is contained in:
commit
173fe0d18a
@ -2,14 +2,16 @@
|
|||||||
Description=OpenSSH server daemon
|
Description=OpenSSH server daemon
|
||||||
ConditionKernelCommandLine=|ssh
|
ConditionKernelCommandLine=|ssh
|
||||||
ConditionPathExists=|/storage/.cache/services/sshd.conf
|
ConditionPathExists=|/storage/.cache/services/sshd.conf
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Restart=on-failure
|
||||||
EnvironmentFile=-/storage/.cache/services/sshd.conf
|
EnvironmentFile=-/storage/.cache/services/sshd.conf
|
||||||
ExecStartPre=/usr/bin/ssh-keygen -A
|
ExecStartPre=/usr/bin/ssh-keygen -A
|
||||||
ExecStart=/usr/sbin/sshd -D $SSH_ARGS
|
ExecStart=/usr/sbin/sshd -D $SSH_ARGS
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
TimeoutStopSec=1s
|
TimeoutStopSec=1s
|
||||||
|
RestartSec=2
|
||||||
|
StartLimitInterval=0
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
@ -53,8 +53,14 @@ STAMP=$STAMPS/$PACKAGE_NAME/build_$TARGET
|
|||||||
|
|
||||||
$SCRIPTS/unpack $PACKAGE_NAME
|
$SCRIPTS/unpack $PACKAGE_NAME
|
||||||
|
|
||||||
if [ -f $STAMP -a $PKG_DIR/package.mk -nt $STAMP ]; then
|
STAMP_DEPENDS="$PKG_DIR $PKG_NEED_UNPACK $PROJECT_DIR/$PROJECT/patches/$PKG_NAME"
|
||||||
|
|
||||||
|
if [ -f $STAMP ] ; then
|
||||||
|
. $STAMP
|
||||||
|
PKG_DEEPMD5=$(md5deep -r $STAMP_DEPENDS 2>/dev/null | sort | md5sum | cut -d" " -f1)
|
||||||
|
if [ ! "$PKG_DEEPMD5" = "$STAMP_PKG_DEEPMD5" ] ; then
|
||||||
rm -f $STAMP
|
rm -f $STAMP
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f $STAMP ]; then
|
if [ ! -f $STAMP ]; then
|
||||||
@ -358,7 +364,8 @@ if [ ! -f $STAMP ]; then
|
|||||||
$SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" $i; \
|
$SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" $i; \
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in `sed -n "s/^\([^#].*\)=\".*$/\1/p" $PROJECT_DIR/$PROJECT/options | grep -v "#"`; do
|
PKG_DEEPMD5=$(md5deep -r $STAMP_DEPENDS 2>/dev/null | sort | md5sum | cut -d" " -f1)
|
||||||
|
for i in PKG_NAME PKG_DEEPMD5; do
|
||||||
eval val=\$$i
|
eval val=\$$i
|
||||||
echo "STAMP_$i=\"$val\"" >> $STAMP
|
echo "STAMP_$i=\"$val\"" >> $STAMP
|
||||||
done
|
done
|
||||||
|
@ -31,8 +31,8 @@ case $1 in
|
|||||||
deps_pkg="wget"
|
deps_pkg="wget"
|
||||||
;;
|
;;
|
||||||
build)
|
build)
|
||||||
deps="bash bc gcc g++ sed patch touch tar bzip2 gzip perl cp gawk makeinfo gperf zip unzip mkfontscale mkfontdir bdftopcf diff xsltproc java"
|
deps="bash bc gcc g++ sed patch touch tar bzip2 gzip perl cp gawk makeinfo gperf zip unzip mkfontscale mkfontdir bdftopcf diff xsltproc java md5deep"
|
||||||
deps_pkg="bash bc gcc g++ sed patch fileutils tar bzip2 gzip perl coreutils gawk texinfo gperf zip unzip xfonts-utils xfonts-utils xfonts-utils diff xsltproc default-jre"
|
deps_pkg="bash bc gcc g++ sed patch fileutils tar bzip2 gzip perl coreutils gawk texinfo gperf zip unzip xfonts-utils xfonts-utils xfonts-utils diff xsltproc default-jre md5deep"
|
||||||
files="/usr/include/stdio.h /usr/include/ncurses.h"
|
files="/usr/include/stdio.h /usr/include/ncurses.h"
|
||||||
files_pkg="libc6-dev libncurses5-dev"
|
files_pkg="libc6-dev libncurses5-dev"
|
||||||
if [ -f /etc/redhat-release ]; then
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
46
scripts/skip_unpack
Executable file
46
scripts/skip_unpack
Executable file
@ -0,0 +1,46 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
|
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
|
||||||
|
#
|
||||||
|
# OpenELEC is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# OpenELEC is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
. config/options $1
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "usage: $0 package_name"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f $PKG_DIR/package.mk ]; then
|
||||||
|
printf "${boldred}$1: no package.mk file found${endcolor}\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
STAMP=$PKG_BUILD/.openelec-unpack
|
||||||
|
|
||||||
|
if [ -f $STAMP ] ; then
|
||||||
|
printf "%${BUILD_INDENT}c ${boldcyan}SKIP_UNPACK${endcolor} $1\n" ' '>&$SILENT_OUT
|
||||||
|
export BUILD_INDENT=$((${BUILD_INDENT:-1}+$BUILD_INDENT_SIZE))
|
||||||
|
|
||||||
|
rm -f $STAMP
|
||||||
|
STAMP_DEPENDS="$PKG_DIR $PKG_NEED_UNPACK $PROJECT_DIR/$PROJECT/patches/$PKG_NAME"
|
||||||
|
PKG_DEEPMD5=$(md5deep -r $STAMP_DEPENDS 2>/dev/null | sort | md5sum | cut -d" " -f1)
|
||||||
|
for i in PKG_NAME PKG_DEEPMD5; do
|
||||||
|
eval val=\$$i
|
||||||
|
echo "STAMP_$i=\"$val\"" >> $STAMP
|
||||||
|
done
|
||||||
|
fi
|
@ -38,37 +38,20 @@ mkdir -p $BUILD
|
|||||||
|
|
||||||
[ ! -d "$SOURCES/$1" -a ! -d "$PKG_DIR/sources" ] && exit 0
|
[ ! -d "$SOURCES/$1" -a ! -d "$PKG_DIR/sources" ] && exit 0
|
||||||
|
|
||||||
|
STAMP_DEPENDS="$PKG_DIR $PKG_NEED_UNPACK $PROJECT_DIR/$PROJECT/patches/$PKG_NAME"
|
||||||
|
|
||||||
for i in $BUILD/$1-*; do
|
for i in $BUILD/$1-*; do
|
||||||
if [ -d $i -a -f "$i/.openelec-unpack" ] ; then
|
if [ -d $i -a -f "$i/.openelec-unpack" ] ; then
|
||||||
. "$i/.openelec-unpack"
|
. "$i/.openelec-unpack"
|
||||||
if [ "$STAMP_PKG_NAME" = "$1" ]; then
|
if [ "$STAMP_PKG_NAME" = "$1" ]; then
|
||||||
# trigger unpack / full rebuild on any package.mk change
|
PKG_DEEPMD5=$(md5deep -r $STAMP_DEPENDS 2>/dev/null | sort | md5sum | cut -d" " -f1)
|
||||||
if [ $PKG_DIR/package.mk -nt "$i/.openelec-unpack" ]; then
|
if [ ! "$PKG_DEEPMD5" = "$STAMP_PKG_DEEPMD5" ] ; then
|
||||||
CLEAN_SOURCE=yes
|
$SCRIPTS/clean $1
|
||||||
break
|
|
||||||
fi
|
fi
|
||||||
# handle $PKG_NEED_UNPACK
|
|
||||||
for file in $PKG_NEED_UNPACK; do
|
|
||||||
if [ -f "$file" -a "$file" -nt "$i/.openelec-unpack" ] ; then
|
|
||||||
CLEAN_SOURCE=yes
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
# trigger unpack / full rebuild on any patch / script / etc.. change
|
|
||||||
for file in $PKG_DIR/{patches,scripts,config}/* $PKG_DIR/patches/$PKG_VERSION/*.patch $PROJECT_DIR/$PROJECT/patches/$PKG_NAME/*.patch; do
|
|
||||||
if [ -f "$file" -a "$file" -nt "$i/.openelec-unpack" ]; then
|
|
||||||
CLEAN_SOURCE=yes
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$CLEAN_SOURCE" = "yes" ]; then
|
|
||||||
$SCRIPTS/clean $1
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ -f "$STAMP" ] && exit 0
|
[ -f "$STAMP" ] && exit 0
|
||||||
|
|
||||||
printf "%${BUILD_INDENT}c ${boldcyan}UNPACK${endcolor} $1\n" ' '>&$SILENT_OUT
|
printf "%${BUILD_INDENT}c ${boldcyan}UNPACK${endcolor} $1\n" ' '>&$SILENT_OUT
|
||||||
@ -165,7 +148,8 @@ done
|
|||||||
|
|
||||||
rm -f $STAMPS/$1/build_*
|
rm -f $STAMPS/$1/build_*
|
||||||
|
|
||||||
for i in PKG_NAME PKG_VERSION PKG_REV PKG_SHORTDESC PKG_LONGDESC PKG_SITE PKG_URL PKG_SECTION; do
|
PKG_DEEPMD5=$(md5deep -r $STAMP_DEPENDS 2>/dev/null | sort | md5sum | cut -d" " -f1)
|
||||||
|
for i in PKG_NAME PKG_DEEPMD5; do
|
||||||
eval val=\$$i
|
eval val=\$$i
|
||||||
echo "STAMP_$i=\"$val"\" >> $STAMP
|
echo "STAMP_$i=\"$val\"" >> $STAMP
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user