To be honest, I don't need eudev and runit is a meme

This commit is contained in:
Mark Vainomaa 2018-11-10 02:41:21 +02:00
parent 4345bbb1e8
commit 81052601b7
Signed by: mikroskeem
GPG Key ID: 1B3F9523B542D315
6 changed files with 0 additions and 115 deletions

View File

@ -1,47 +0,0 @@
#!/bin/bash
pkgname="eudev"
pkgver="3.2.7"
src="https://github.com/gentoo/eudev/archive/v${pkgver}.tar.gz"
prepare () {
[ -f "${pkgname}-src.tar.gz" ] || curl -L -o "${pkgname}-src.tar.gz" "${src}"
tar -C "${srcdir}" -xvf "${pkgname}-src.tar.gz"
}
build () {
cd "${srcdir}/eudev-${pkgver}"
./autogen.sh
# Patch defs which aren't in 3.12.6 kernel headers
sed -i 's/KEY_ALS_TOGGLE/0x230/g' src/udev/udev-builtin-input_id.c
mkdir build && cd build
../configure \
--prefix=/usr \
--sysconfdir=/etc \
--disable-blkid \
--disable-mtd_probe \
--disable-kmod \
--disable-selinux
make
}
package () {
cd "${srcdir}/eudev-${pkgver}/build"
make DESTDIR="${pkgdir}" install
# Also bundle runit services
install -d -m 755 "${pkgdir}"/etc
install -d -m 755 "${pkgdir}"/etc/sv
for svc in "${wd}"/sv-service/*; do
cp -p -r "${svc}" "${pkgdir}"/etc/sv/
done
}
. ../common.sh

View File

@ -1,2 +0,0 @@
#!/bin/sh -eu
exec udevadm settle

View File

@ -1,5 +0,0 @@
#!/bin/sh -eu
sv start udevd
/sbin/udevadm trigger --type=subsystems --action=add
/sbin/udevadm trigger --type=devices --action=add
exec sv once .

View File

@ -1,2 +0,0 @@
#!/bin/sh -eu
exec udevadm settle

View File

@ -1,2 +0,0 @@
#!/bin/sh -eu
exec /sbin/udevd

View File

@ -1,57 +0,0 @@
#!/bin/bash
pkgname="runit"
pkgver="2.1.2"
src="http://smarden.org/runit/runit-${pkgver}.tar.gz"
prepare () {
[ -f "${pkgname}-src.tar.gz" ] || curl -o "${pkgname}-src.tar.gz" "${src}"
tar -C "${srcdir}" -xvf "${pkgname}-src.tar.gz"
}
build () {
cd "${srcdir}/admin/runit-${pkgver}"
echo "${CC:-gcc} $CFLAGS" > src/conf-cc
echo "${CC:-gcc -s} $LDFLAGS" > src/conf-ld
# Fix quirks
sed -i 's/ -static//g' src/Makefile
sed -i 's#/service#/var&#g' src/sv.c
sed -i 's#/service#/var&#g' etc/debian/3
make -C src
make -C src check
}
package () {
cd "${srcdir}/admin/runit-${pkgver}"
# Oh boy...
install -d -m 755 "${pkgdir}"/etc/runit/runsvdir/pkg-default
install -d -m 755 "${pkgdir}"/etc/runit/runsvdir/all
install -d -m 755 "${pkgdir}"/var
install -m 755 etc/debian/{1,2,3} "${pkgdir}"/etc/runit/
install -m 755 etc/debian/ctrlaltdel "${pkgdir}"/etc/runit/
ln -s ../etc/runit/runsvdir/current "${pkgdir}"/var/service
# Install binaries
install -d -m 755 "${pkgdir}"/usr/bin
for f in $(<package/commands); do
install -s -m 755 "src/${f}" "${pkgdir}"/usr/bin
done
# Symlink runit to /sbin/init
ln -s /usr/bin/runit-init "${pkgdir}"/usr/bin/init
# Manual pages
install -d -m 755 "${pkgdir}"/usr/share/man/man8
install -m 644 man/* "${pkgdir}"/usr/share/man/man8
# Documentation
install -d -m 755 "${pkgdir}"/usr/share/doc/runit
install -m 644 doc/*.html "${pkgdir}"/usr/share/doc/runit
}
. ../common.sh