37 lines
939 B
Bash
37 lines
939 B
Bash
#!/bin/sh
|
|
pkgname=dinit
|
|
version=0.17.1
|
|
revision=5
|
|
short_desc="Simple Linux / BSD init system (NOT MY SOFTWARE)"
|
|
maintainer="Tracker-Friendly <jliwin98@danwin1210.de>"
|
|
homepage="https://github.com/davmac314/dinit"
|
|
license="GPL-3.0"
|
|
makedepends="git make gcc m4"
|
|
conflicts="runit runit-void"
|
|
|
|
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
|
|
mkdir -p ${DESTDIR}/etc/dinit.d/
|
|
cp -r ${FILESDIR}/dinit.d/* ${DESTDIR}/etc/dinit.d/
|
|
vbin ${FILESDIR}/drunner
|
|
ln -s /usr/bin/dinit ${DESTDIR}/usr/bin/init
|
|
}
|