diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /sys-apps/epoch | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'sys-apps/epoch')
| -rw-r--r-- | sys-apps/epoch/Manifest | 3 | ||||
| -rw-r--r-- | sys-apps/epoch/epoch-1.2.1.ebuild | 73 | ||||
| -rw-r--r-- | sys-apps/epoch/epoch-1.2.2.ebuild | 73 | ||||
| -rw-r--r-- | sys-apps/epoch/epoch-1.3.0.ebuild | 74 | ||||
| -rw-r--r-- | sys-apps/epoch/epoch-9999.ebuild | 73 | ||||
| -rw-r--r-- | sys-apps/epoch/files/epoch-1.0-epoch.conf | 77 | ||||
| -rw-r--r-- | sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch | 10 | ||||
| -rw-r--r-- | sys-apps/epoch/files/epoch-1.3.0-fix-main.patch | 13 | ||||
| -rw-r--r-- | sys-apps/epoch/metadata.xml | 25 |
9 files changed, 421 insertions, 0 deletions
diff --git a/sys-apps/epoch/Manifest b/sys-apps/epoch/Manifest new file mode 100644 index 000000000000..15c9f2cab1e3 --- /dev/null +++ b/sys-apps/epoch/Manifest @@ -0,0 +1,3 @@ +DIST epoch-1.2.1.tar.gz 66718 BLAKE2B 1fc75001ead0f65df6a303ae4933995eb5607e4f8f2de21c2b74b95f7a8a5ca0be21bf6c509826d36c79795905a1f65c18a755b7944d0eceb0364abc1d58613a SHA512 2d0c767165ec41452d1dabf338c8ea31772f1a8cd1e1dbd60c8469f2f235bb1f0cb60b467189f1fd1079dfc223b0687c1cfe5e729e1142ebc63323b1f9c0cf93 +DIST epoch_1.2.2.tar.gz 229377 BLAKE2B 0f2c00df56a7d35dd224b8a1b22c78dae943c09eabb78c72cddc1085d5596cf6ef23b4d0c240191bb6b69e511a97f0bdb9f0cf99a4146097211867ae1beaf213 SHA512 9e3e38ef95c20237a3db4f47c9464f27e893a665f0692200d89e96b12f6b2e3af9b84d951356b7b354f19ea4fbe372e2e0ba406fdfeb8819914d46cfed3024a3 +DIST epoch_1.3.0.tar.gz 70681 BLAKE2B 7ad2ab4c7f6c5544138aeb29a9b3a3f8889ade23b448abf1ec257fc7bbf811f4f6b01f0c9c81005aec56fe243d1f1e53a2daacdcdc4ff935bfcbd707fb8b2ab6 SHA512 1e4a8bee26d8819303cbeb67265ee74e294502acfb3f5e594222bb7bdcb2d077fe19e73c40e9111a6ef9af788d767434f5a9a357430b59d6a0cac0e36a3b8f9e diff --git a/sys-apps/epoch/epoch-1.2.1.ebuild b/sys-apps/epoch/epoch-1.2.1.ebuild new file mode 100644 index 000000000000..16daffeeac89 --- /dev/null +++ b/sys-apps/epoch/epoch-1.2.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="amd64 arm x86" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-1.2.2.ebuild b/sys-apps/epoch/epoch-1.2.2.ebuild new file mode 100644 index 000000000000..4bb4a8d5db24 --- /dev/null +++ b/sys-apps/epoch/epoch-1.2.2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="http://universe2.us/${PN}_${PV}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +S="${WORKDIR}/${PN}_${PV}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-1.3.0.ebuild b/sys-apps/epoch/epoch-1.3.0.ebuild new file mode 100644 index 000000000000..9b6a3f67f14b --- /dev/null +++ b/sys-apps/epoch/epoch-1.3.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils linux-info + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +SRC_URI="http://universe2.us/${PN}_${PV}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +S="${WORKDIR}/${PN}_${PV}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch + epatch "${FILESDIR}"/${PN}-1.3.0-fix-main.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/epoch-9999.ebuild b/sys-apps/epoch/epoch-9999.ebuild new file mode 100644 index 000000000000..f35febe3564b --- /dev/null +++ b/sys-apps/epoch/epoch-9999.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit eutils linux-info git-r3 + +MY_PV="${PV/rc/RC}" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity" +HOMEPAGE="http://universe2.us/epoch.html" +EGIT_REPO_URI="https://github.com/Subsentient/epoch.git" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + local CONFIG_CHECK="~PROC_FS" + + [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config +} + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch +} + +src_compile() { + NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch." +} + +newepochins() { + local type="$1" + + cd ${type} || die "Cannot change directory." + for file in * ; do + if [[ "${file}" != "epoch" ]] ; then + new${type} ${file} epoch-${file} + fi + done + cd .. || die "Cannot change directory." +} + +src_install() { + cd built || die "Cannot change directory." + + dosbin sbin/epoch + + # For now, rename to epoch-* until we can blend in with a standard approach. + newepochins bin + newepochins sbin + + insinto /etc/epoch/ + newins "${FILESDIR}"/${PN}-1.0-epoch.conf epoch.conf +} + +pkg_postinst() { + elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab." + elog "" + elog "An example epoch configuration is provided at /etc/epoch/epoch.conf" + elog "which starts a minimal needed to use Gentoo." + elog "" + elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init" + elog "" + elog "Additional information about epoch is available at" + elog "${HOMEPAGE} and configuration documentation at" + elog "http://universe2.us/epochconfig.html which is useful reading material." + elog "" + elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net." +} diff --git a/sys-apps/epoch/files/epoch-1.0-epoch.conf b/sys-apps/epoch/files/epoch-1.0-epoch.conf new file mode 100644 index 000000000000..e0550d48709c --- /dev/null +++ b/sys-apps/epoch/files/epoch-1.0-epoch.conf @@ -0,0 +1,77 @@ +BootBannerText=Welcome! +BootBannerColor=RED + +Hostname=FILE /etc/hostname +DefaultRunlevel=boot +EnableLogging=true +MountVirtual=procfs sysfs devpts+ devshm+ + +ObjectID=mountrun + ObjectDescription=Mounting /run + ObjectStartCommand=mount /run + ObjectStartPriority=1 + ObjectStopPriority=0 + ObjectEnabled=true + ObjectOptions=RAWDESCRIPTION + ObjectRunlevels=boot + +ObjectID=mounttmp + ObjectDescription=Mounting /tmp + ObjectStartCommand=mount /tmp + ObjectStartPriority=1 + ObjectStopPriority=0 + ObjectEnabled=true + ObjectOptions=RAWDESCRIPTION + ObjectRunlevels=boot + +ObjectID=rwfs + ObjectDescription=read-write support on / + ObjectStartCommand=/bin/mount -o remount,rw / + ObjectStopCommand=/bin/mount -o remount,ro / + ObjectStartPriority=2 + ObjectStopPriority=5 + ObjectEnabled=true + ObjectRunlevels=boot + +ObjectID=getty1 + ObjectDescription=agetty on /dev/tty1 + ObjectStartCommand=agetty --noclear tty1 & + ObjectStopCommand=NONE + ObjectStartPriority=3 + ObjectStopPriority=0 + ObjectEnabled=true + ObjectOptions=SERVICE AUTORESTART + ObjectRunlevels=boot + +ObjectID=extrafs + ObjectDescription=extra filesystems and swaps + ObjectStartCommand=mount -a && swapon -a + ObjectStopCommand=swapoff -a && umount -a -r -t nodevtmpfs,notmpfs,nosysfs,noproc + ObjectStartPriority=4 + ObjectStopPriority=4 + ObjectEnabled=true + ObjectRunlevels=boot + +ObjectID=killall5_soft + ObjectDescription=Terminating all processes + ObjectStopCommand=killall5 -15 && sleep 1 + ObjectStartPriority=0 + ObjectStopPriority=1 + ObjectEnabled=true + ObjectOptions=HALTONLY RAWDESCRIPTION + +ObjectID=sync + ObjectDescription=Syncing + ObjectStopCommand=/bin/sync + ObjectStartPriority=0 + ObjectStopPriority=2 + ObjectEnabled=true + ObjectOptions=HALTONLY RAWDESCRIPTION + +ObjectID=killall5 + ObjectDescription=Killing all processes + ObjectStopCommand=killall5 -9 && sleep 1 + ObjectStartPriority=0 + ObjectStopPriority=3 + ObjectEnabled=true + ObjectOptions=HALTONLY RAWDESCRIPTION diff --git a/sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch b/sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch new file mode 100644 index 000000000000..92842722225a --- /dev/null +++ b/sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch @@ -0,0 +1,10 @@ +--- a/buildepoch.sh ++++ b/buildepoch.sh +@@ -53,6 +53,6 @@ + } + +-NEED_EMPTY_CFLAGS="0" ++NEED_EMPTY_CFLAGS="1" + outdir="../built" + + if [ "$CC" == "" ]; then diff --git a/sys-apps/epoch/files/epoch-1.3.0-fix-main.patch b/sys-apps/epoch/files/epoch-1.3.0-fix-main.patch new file mode 100644 index 000000000000..b158ae2e3396 --- /dev/null +++ b/sys-apps/epoch/files/epoch-1.3.0-fix-main.patch @@ -0,0 +1,13 @@ +--- src/main.c.orig 2016-11-13 15:11:58.511021203 +0000 ++++ src/main.c 2016-11-13 15:12:21.096021358 +0000 +@@ -1142,8 +1142,9 @@ static ReturnCode HandleEpochCommand(int + ShutdownMemBus(false); //We're done with membus now. + + char Compare[WARNING + 1][MEMBUS_MSGSIZE] = { MEMBUS_CODE_FAILURE " ", MEMBUS_CODE_ACKNOWLEDGED " ", MEMBUS_CODE_WARNING " "}; ++ int Inc; + +- for (int Inc = 0; Inc < sizeof Compare / sizeof *Compare; ++Inc) ++ for (Inc = 0; Inc < sizeof Compare / sizeof *Compare; ++Inc) + { + strcat(Compare[Inc], ArgIs("merge") ? MEMBUS_CODE_CFMERGE : MEMBUS_CODE_CFUMERGE); + strcat(Compare[Inc], " "); diff --git a/sys-apps/epoch/metadata.xml b/sys-apps/epoch/metadata.xml new file mode 100644 index 000000000000..46b8006ef348 --- /dev/null +++ b/sys-apps/epoch/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>alicef@gentoo.org</email> + <name>Alice Ferrazzi</name> + </maintainer> + <longdescription> + Epoch is an init system (analogous to systemd or upstart) + for Linux by Subsentient. It is intended as a lightweight + solution for lightweight distributions + that don't want a huge mess just to boot up. + + It has one unified configuration file, is very small in size, + and it has no external dependencies besides glibc or similar, + and although installing a shell for /bin/sh is strongly recommended. + </longdescription> + <upstream> + <remote-id type="github">Subsentient/epoch</remote-id> + <doc lang="en">http://universe2.us/epochconfig.html</doc> + <bugs-to>https://github.com/Subsentient/epoch/issues</bugs-to> + <changelog>https://github.com/Subsentient/epoch/commits/master</changelog> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
