2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2016-02-19 09:49:37 +01:00
|
|
|
|
|
|
|
|
PKG_NAME="entropy"
|
|
|
|
|
PKG_VERSION="0"
|
|
|
|
|
PKG_LICENSE="GPL"
|
|
|
|
|
PKG_SITE=""
|
|
|
|
|
PKG_URL=""
|
2024-07-02 06:03:36 -04:00
|
|
|
PKG_DEPENDS_TARGET=""
|
2016-02-19 09:49:37 +01:00
|
|
|
PKG_LONGDESC="A simple way to add entropy at boot"
|
2017-10-27 13:11:34 +02:00
|
|
|
PKG_TOOLCHAIN="manual"
|
2016-02-19 09:49:37 +01:00
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2021-01-19 19:34:16 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/lib/entropy
|
|
|
|
|
cp add-entropy ${INSTALL}/usr/lib/entropy
|
|
|
|
|
cp add-random-at-shutdown ${INSTALL}/usr/lib/entropy
|
2016-02-19 09:49:37 +01:00
|
|
|
|
2021-01-19 19:34:16 +00:00
|
|
|
chmod +x ${INSTALL}/usr/lib/entropy/*
|
2016-02-19 09:49:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
|
enable_service add-entropy.service
|
|
|
|
|
enable_service add-random-at-shutdown.service
|
|
|
|
|
}
|