2011-01-09 18:38:47 +01:00
|
|
|
################################################################################
|
|
|
|
|
# This file is part of OpenELEC - http://www.openelec.tv
|
2016-01-02 17:29:56 +01:00
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2011-01-09 18:38:47 +01:00
|
|
|
#
|
2013-12-21 21:51:48 +01:00
|
|
|
# OpenELEC is free software: you can redistribute it and/or modify
|
2011-01-09 18:38:47 +01:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
2013-12-21 21:51:48 +01:00
|
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
2011-01-09 18:38:47 +01:00
|
|
|
#
|
2013-12-21 21:51:48 +01:00
|
|
|
# OpenELEC is distributed in the hope that it will be useful,
|
2011-01-09 18:38:47 +01:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2013-12-21 21:51:48 +01:00
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2011-01-09 18:38:47 +01:00
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2013-12-21 21:51:48 +01:00
|
|
|
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
|
2011-01-09 18:38:47 +01:00
|
|
|
################################################################################
|
|
|
|
|
|
2010-11-13 16:44:39 +01:00
|
|
|
PKG_NAME="installer"
|
2013-08-12 17:56:40 +02:00
|
|
|
PKG_VERSION="1"
|
2010-11-13 16:44:39 +01:00
|
|
|
PKG_ARCH="any"
|
|
|
|
|
PKG_LICENSE="GPL"
|
2016-10-19 19:22:58 +03:00
|
|
|
PKG_SITE="http://libreelec.tv/"
|
2010-11-13 16:44:39 +01:00
|
|
|
PKG_URL=""
|
2017-10-04 09:41:16 +08:00
|
|
|
PKG_DEPENDS_TARGET="toolchain busybox newt parted e2fsprogs syslinux grub"
|
2010-11-13 16:44:39 +01:00
|
|
|
PKG_SECTION="tools"
|
2016-03-23 19:36:54 +00:00
|
|
|
PKG_SHORTDESC="installer: LibreELEC.tv Install manager"
|
|
|
|
|
PKG_LONGDESC="LibreELEC.tv Install manager to install the system on any disk"
|
2017-10-27 13:11:34 +02:00
|
|
|
PKG_TOOLCHAIN="manual"
|
2013-08-17 20:43:36 +02:00
|
|
|
|
|
|
|
|
post_install() {
|
2013-08-12 17:56:40 +02:00
|
|
|
mkdir -p $INSTALL/usr/bin
|
|
|
|
|
cp $PKG_DIR/scripts/installer $INSTALL/usr/bin
|
2016-04-13 17:20:22 +02:00
|
|
|
sed -e "s/@DISTRONAME@/$DISTRONAME/g" \
|
|
|
|
|
-i $INSTALL/usr/bin/installer
|
2013-08-12 17:56:40 +02:00
|
|
|
|
|
|
|
|
mkdir -p $INSTALL/etc
|
|
|
|
|
if [ -f $PROJECT_DIR/$PROJECT/installer/installer.conf ]; then
|
|
|
|
|
cp $PROJECT_DIR/$PROJECT/installer/installer.conf $INSTALL/etc
|
|
|
|
|
else
|
|
|
|
|
cp $PKG_DIR/config/installer.conf $INSTALL/etc
|
|
|
|
|
fi
|
2016-03-24 10:15:24 +00:00
|
|
|
sed -e "s/@SYSTEM_SIZE@/$SYSTEM_SIZE/g" \
|
|
|
|
|
-e "s/@SYSTEM_PART_START@/$SYSTEM_PART_START/g" \
|
2016-04-12 19:00:00 +02:00
|
|
|
-e "s/@EXTLINUX_PARAMETERS@/$EXTLINUX_PARAMETERS/g" \
|
2016-03-24 10:15:24 +00:00
|
|
|
-i $INSTALL/etc/installer.conf
|
2013-08-12 17:58:15 +02:00
|
|
|
|
|
|
|
|
enable_service installer.service
|
|
|
|
|
}
|