2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-10-24 16:00:57 +00:00
|
|
|
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
|
2022-12-19 22:14:32 +00:00
|
|
|
|
|
|
|
PKG_NAME="autostart"
|
2023-05-01 21:16:24 +00:00
|
|
|
PKG_VERSION=""
|
2022-12-19 22:14:32 +00:00
|
|
|
PKG_ARCH="any"
|
2023-10-23 22:44:47 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
2022-12-19 22:14:32 +00:00
|
|
|
PKG_SITE=""
|
|
|
|
PKG_URL=""
|
2023-07-01 18:46:51 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain systemd"
|
2022-12-19 22:14:32 +00:00
|
|
|
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
|
2023-04-01 21:26:31 +00:00
|
|
|
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
|
2022-12-19 22:14:32 +00:00
|
|
|
}
|