Files
Arch-R/packages/sysutils/entropy/package.mk
2018-07-18 22:37:47 +02:00

28 lines
680 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
PKG_NAME="entropy"
PKG_VERSION="0"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE=""
PKG_URL=""
PKG_DEPENDS_TARGET="toolchain"
PKG_SECTION="system"
PKG_SHORTDESC="A simple way to add entropy at boot"
PKG_LONGDESC="A simple way to add entropy at boot"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p $INSTALL/usr/lib/entropy
cp add-entropy $INSTALL/usr/lib/entropy
cp add-random-at-shutdown $INSTALL/usr/lib/entropy
chmod +x $INSTALL/usr/lib/entropy/*
}
post_install() {
enable_service add-entropy.service
enable_service add-random-at-shutdown.service
}