diff --git a/common/shlibs b/common/shlibs index 2d14df4b470..80ec5a8d455 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3373,3 +3373,4 @@ libzck.so.1 zchunk-1.0.2_2 librec.so.1 librec1-1.8_1 libfixposix.so.3 libfixposix-0.4.3_1 libgerv.so.1 gerbv-2.6.2_1 +libupstart.so.1 libupstart-1.13.3_1 diff --git a/srcpkgs/libupstart b/srcpkgs/libupstart new file mode 120000 index 00000000000..9535367201c --- /dev/null +++ b/srcpkgs/libupstart @@ -0,0 +1 @@ +startup \ No newline at end of file diff --git a/srcpkgs/libupstart-devel b/srcpkgs/libupstart-devel new file mode 120000 index 00000000000..9535367201c --- /dev/null +++ b/srcpkgs/libupstart-devel @@ -0,0 +1 @@ +startup \ No newline at end of file diff --git a/srcpkgs/startup-bridge-udev b/srcpkgs/startup-bridge-udev new file mode 120000 index 00000000000..9535367201c --- /dev/null +++ b/srcpkgs/startup-bridge-udev @@ -0,0 +1 @@ +startup \ No newline at end of file diff --git a/srcpkgs/startup-tools b/srcpkgs/startup-tools new file mode 120000 index 00000000000..9535367201c --- /dev/null +++ b/srcpkgs/startup-tools @@ -0,0 +1 @@ +startup \ No newline at end of file diff --git a/srcpkgs/startup/template b/srcpkgs/startup/template new file mode 100644 index 00000000000..3c9a9a34232 --- /dev/null +++ b/srcpkgs/startup/template @@ -0,0 +1,75 @@ +# Template file for 'startup' +pkgname=startup +version=1.13.3 +revision=1 +build_style=gnu-configure +configure_args="--disable-sysvcompat --disable-dconf-bridge --disable-cgroups" +conf_files=" + /etc/init/bridge-dbus.conf + /etc/init/bridge-file.conf + /etc/init/bridge-socket.conf" +make_dirs="/var/log/upstart 0750 root adm" +hostmakedepends="autoconf automake libtool pkg-config gettext-devel nih-devel" +makedepends="libnih-devel eudev-libudev-devel dbus-devel json-c-devel" +checkdepends="python3 dbus" +short_desc="Event driven task and service manager" +maintainer="Cameron Nemo " +license="GPL-2.0-only" +homepage="https://gitlab.com/chinstrap/startup/startup" +changelog="${homepage}/raw/master/NEWS" +distfiles="${homepage}/-/archive/${version}/startup-${version}.tar.gz" +checksum=b63de554d039db6cc920a50a4d38f83529c362ef725dece557247524a84d78ae + +pre_configure() { + autoreconf -fi +} + +post_install() { + rm -f -- "${DESTDIR}/usr/lib/libupstart.la" +} + +startup-tools_package() { + noarch=yes + depends="${sourcepkg}>=${version}_${revision} python3-dbus python3-gobject" + short_desc+=" - monitoring and analysis tools" + pkg_install() { + vmove usr/bin/initctl2dot + vmove usr/bin/startup-monitor + vmove usr/share/icons + vmove usr/share/startup/icons + vmove usr/share/applications/startup-monitor.desktop + vmove usr/share/man/man8/startup-monitor.8 + } +} + +startup-bridge-udev_package() { + conf_files="/etc/init/bridge-udev.conf" + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - udev event bridge" + pkg_install() { + vmove usr/libexec/startup/bridge/udev + vmove etc/init/bridge-udev.conf + vmove usr/share/upstart/sessions/bridge-udev.conf + vmove "usr/share/man/man7/*-added.7" + vmove "usr/share/man/man7/*-removed.7" + vmove usr/share/man/man8/startup-udev-bridge.8 + } +} + +libupstart_package() { + short_desc+=" - library" + pkg_install() { + vmove "usr/lib/libupstart.so.*" + } +} + +libupstart-devel_package() { + depends="libupstart>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + } +}