distribution/packages/tools/installer/package.mk

30 lines
977 B
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
PKG_NAME="installer"
PKG_VERSION="1"
PKG_LICENSE="GPL"
PKG_SITE="http://libreelec.tv/"
PKG_URL=""
PKG_DEPENDS_TARGET="toolchain busybox newt parted e2fsprogs syslinux grub"
PKG_LONGDESC="LibreELEC.tv Install manager to install the system on any disk"
PKG_TOOLCHAIN="manual"
post_install() {
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_DIR}/scripts/installer ${INSTALL}/usr/bin
sed -e "s/@DISTRONAME@/${DISTRONAME}/g" \
-e "s/@EXTRA_CMDLINE@/${EXTRA_CMDLINE}/g" \
-i ${INSTALL}/usr/bin/installer
2022-02-05 14:23:32 +00:00
mkdir -p ${INSTALL}/etc
2022-02-05 14:23:32 +00:00
find_file_path config/installer.conf
cp ${FOUND_PATH} ${INSTALL}/etc
sed -e "s/@SYSTEM_SIZE@/${SYSTEM_SIZE}/g" \
-e "s/@SYSTEM_PART_START@/${SYSTEM_PART_START}/g" \
-e "s/@SYSLINUX_PARAMETERS@/${SYSLINUX_PARAMETERS}/g" \
-i ${INSTALL}/etc/installer.conf
2022-02-05 14:23:32 +00:00
enable_service installer.service
}