distribution/packages/sysutils/autostart/package.mk
fewtarius 8c08cdbfe9
* Add a mechanism for providing configuration on a per device basis.
* Supported via fresh flash and during the first post-install reboot.
  * Add configurations to packages/hardware/quirks/devices/(DEVICE)/config/ in the same format it would be found in /storage/.config.
  * System generic configs are copied first, and device specific configs are copied over them.
* Tweak audio so it works on boot.
2023-07-01 18:46:51 +00:00

32 lines
993 B
Makefile
Executable file

# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2020-present Fewtarius
PKG_NAME="autostart"
PKG_VERSION=""
PKG_ARCH="any"
PKG_LICENSE="apache2"
PKG_SITE=""
PKG_URL=""
PKG_DEPENDS_TARGET="toolchain systemd"
PKG_SHORTDESC="Autostart is a systemd helper that starts/configures device specific services and parameters."
PKG_IS_ADDON="no"
PKG_AUTORECONF="no"
PKG_TOOLCHAIN="manual"
makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin
cp ${PKG_DIR}/sources/autostart ${INSTALL}/usr/bin
if [ -d ${PKG_DIR}/sources/common ]
then
mkdir -p ${INSTALL}/usr/lib/autostart/common
cp ${PKG_DIR}/sources/common/* ${INSTALL}/usr/lib/autostart/common
chmod -R 0755 ${INSTALL}/usr/lib/autostart/common
fi
if [ -d "${PKG_DIR}/sources/daemons" ]
then
mkdir -p ${INSTALL}/usr/lib/autostart/daemons
cp ${PKG_DIR}/sources/daemons/* ${INSTALL}/usr/lib/autostart/daemons
chmod -R 0755 ${INSTALL}/usr/lib/autostart/daemons
fi
chmod -R 0755 ${INSTALL}/usr/bin/autostart
}