This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
2023-08-18 23:50:54 +01:00
|
|
|
#!/bin/sh
|
|
|
|
pkgname=dinit
|
2023-09-01 00:38:35 +01:00
|
|
|
version=0.17.1
|
2023-09-11 07:22:17 +01:00
|
|
|
revision=4
|
2023-08-28 22:56:39 +01:00
|
|
|
short_desc="Simple Linux / BSD init system (NOT MY SOFTWARE)"
|
2023-08-18 23:50:54 +01:00
|
|
|
maintainer="Tracker-Friendly <jliwin98@danwin1210.de>"
|
2023-09-01 00:38:35 +01:00
|
|
|
homepage="https://github.com/davmac314/dinit"
|
2023-08-18 23:50:54 +01:00
|
|
|
license="GPL-3.0"
|
|
|
|
makedepends="git make gcc m4"
|
2023-09-01 00:38:35 +01:00
|
|
|
conflicts="runit runit-void"
|
2023-08-18 23:50:54 +01:00
|
|
|
|
|
|
|
do_build() {
|
|
|
|
echo "Building..."
|
|
|
|
cd ${XBPS_BUILDDIR}
|
|
|
|
rm -rf dinit
|
|
|
|
git clone https://github.com/davmac314/dinit.git --depth=1
|
|
|
|
cd dinit
|
|
|
|
CXXOPTS="-Os -fno-plt -flto -fno-rtti"
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
cd ${XBPS_BUILDDIR}
|
|
|
|
cd dinit
|
|
|
|
SBINDIR="/usr/bin"
|
|
|
|
mkdir ${DESTDIR}/sbin
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
mkdir -p ${DESTDIR}/usr/bin
|
|
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin/
|
|
|
|
rm -rf ${DESTDIR}/sbin
|
|
|
|
ls ${DESTDIR}/usr/bin
|
2023-08-28 22:56:39 +01:00
|
|
|
mkdir -p ${DESTDIR}/etc/dinit.d/
|
|
|
|
cp -r ${FILESDIR}/dinit.d/* ${DESTDIR}/etc/dinit.d/
|
|
|
|
vbin ${FILESDIR}/drunner
|
2023-09-11 07:22:17 +01:00
|
|
|
ln -s /usr/bin/dinit ${DESTDIR}/usr/bin/init
|
2023-08-18 23:50:54 +01:00
|
|
|
}
|