summaryrefslogtreecommitdiff
path: root/sys-apps/epoch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-apps/epoch
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/epoch')
-rw-r--r--sys-apps/epoch/Manifest13
-rw-r--r--sys-apps/epoch/epoch-1.2.1.ebuild73
-rw-r--r--sys-apps/epoch/epoch-1.2.2.ebuild73
-rw-r--r--sys-apps/epoch/epoch-1.3.0.ebuild74
-rw-r--r--sys-apps/epoch/epoch-9999.ebuild73
-rw-r--r--sys-apps/epoch/files/epoch-1.0-epoch.conf77
-rw-r--r--sys-apps/epoch/files/epoch-1.0-fix-CFLAGS.patch10
-rw-r--r--sys-apps/epoch/files/epoch-1.3.0-fix-main.patch13
-rw-r--r--sys-apps/epoch/metadata.xml24
9 files changed, 430 insertions, 0 deletions
diff --git a/sys-apps/epoch/Manifest b/sys-apps/epoch/Manifest
new file mode 100644
index 000000000000..75dc0fb01a4a
--- /dev/null
+++ b/sys-apps/epoch/Manifest
@@ -0,0 +1,13 @@
+AUX epoch-1.0-epoch.conf 1914 SHA256 45ad2f568a13ab06febc5f92b8f562174ef1ae81ad452c1052d9e62a993c564b SHA512 7844d05f86e969e308cbbeb6b0e766a724b59ba5d58f2905ffe1e6d8cdc55436233203fa4434e41becd8b7488c774bf8f3d5cd6ff0b43acabc738643cd3c292b WHIRLPOOL b8fe32948be8d7db4f1e2c2cfe1ab441d0f4b910bce3f49a2da83608f117bf674caaa48290e5a77986e7bfcf79eb38601aa8a9f199ff39b291cdcecc1672c914
+AUX epoch-1.0-fix-CFLAGS.patch 156 SHA256 df0d16e5a7d6fb5c8006246580468f4e1a9e6d3eaf1b2f7d14e9f53da412fc66 SHA512 ddb76c70acc1f76a8842f8abbc5e62861e249b37dea0b97dd4b74496dca95683123ccb86c39d2414b679b4cb74db00a2cc069801897efbe3a8eafaa9454db538 WHIRLPOOL 566048c20c57ed6780a96dee849bb44dc6fc815886d19749613d4370506bc50ee3857fe90e87ce6a592300a58cb5dfede0d3d309202aca0b57d01e54c1b05bfe
+AUX epoch-1.3.0-fix-main.patch 631 SHA256 3d5791ed3a2f56f13d2577a7b93a7fde593cc4a57111ecf13ad0f19f4475ab87 SHA512 ab542435d5dec6be5d71a742270b5897a6798c6c89163853cf089c76ee3602056201eaa8836af1d0dad0392396f45b50d8c15e1b65ada892b703c5f70ed8ec32 WHIRLPOOL 84bc5de340c2a6301fccd234dd6b30afcdfdd60d9df335fed14a67063052be4e3748186c65df558202fc5dd187f69a4f626ec1a016409192661b75f51b8406dc
+DIST epoch-1.2.1.tar.gz 66718 SHA256 9ad6573ca71599f17cf6a567eef902cd1caadb5b5460764ae7bb4e16fa3a9423 SHA512 2d0c767165ec41452d1dabf338c8ea31772f1a8cd1e1dbd60c8469f2f235bb1f0cb60b467189f1fd1079dfc223b0687c1cfe5e729e1142ebc63323b1f9c0cf93 WHIRLPOOL 3c6382f6b2dfd0260f2a036403e995a7bca0b2ceb60a740c3294d736e091c6f9d21541f87a42019bfa25817135ea12bfaf59662ecd2eb85a1e126b9b2ad4c9d7
+DIST epoch_1.2.2.tar.gz 229377 SHA256 3c8bdc4e3ddcaf2410f2c6082cab61f0957dfacf5c14300dadc6c22afd5bca8b SHA512 9e3e38ef95c20237a3db4f47c9464f27e893a665f0692200d89e96b12f6b2e3af9b84d951356b7b354f19ea4fbe372e2e0ba406fdfeb8819914d46cfed3024a3 WHIRLPOOL 1235b63f15435ccdfaf451aca11bd7ab07bc1e0ea148c6430e4b896d7c5838966000c85fabcc03ed86e92a28b46814db80fea528881bce0aa8653af3492d1533
+DIST epoch_1.3.0.tar.gz 70681 SHA256 80ae3faa708976dfb15d5a59f10dfc0750fca9d16f164daea771757f89ddaa08 SHA512 1e4a8bee26d8819303cbeb67265ee74e294502acfb3f5e594222bb7bdcb2d077fe19e73c40e9111a6ef9af788d767434f5a9a357430b59d6a0cac0e36a3b8f9e WHIRLPOOL 6cd76694337f79a4a6e96a4506ec14a8a16c3861d808fa3a640fa02632833e79c3063c41dc210969798329df6467b4a21a367ed9c3182609c0a3fe26fbe0f60e
+EBUILD epoch-1.2.1.ebuild 1851 SHA256 f73b3d8c4fb5d52b22e9bd5c23deefe8556211f0c7d4565319a4ab6b4c4ad8ad SHA512 63f30d59fcf9edd299f1d07db79b459a123c31549b3af015ba85f32aaf9c11365b3e477b5a6a505ed7da41a844a751ad1ea2ef3178a6df3f1ff32a8fc8be4ccf WHIRLPOOL 4315e73ec55f2c7ab8565a3d78f9a9839f51455823e57fb007c4a8cfbb143b1abc2d9f10b31a1962eb2301ce34d75c50e8b23d19c212e2d2c4b14d2ab0062a91
+EBUILD epoch-1.2.2.ebuild 1821 SHA256 b954f90b95c21587f732b71c207c9a4d6029590366dd7622d7bb1e0e2923f757 SHA512 24a8f7578ef01bcd034c7da7e05a13b1243ec3353b6c01e3b0d417e0575cd56201aa9868461721cd74a930ea1822303153c3a22164e905650b1892d9e711bf62 WHIRLPOOL 7a6e249df1c7da143a3e091564cdac8d2b7a21a8120eed3fc314937cb394d8eb57d20dca6ceec8e6f9219057e74b9538b0e104c151168b6b376367c301957117
+EBUILD epoch-1.3.0.ebuild 1870 SHA256 35725d708317b5db6fb16bb69d7f9029d89ec6dd03821ad47206a425e763405f SHA512 db0a6c6d0a6f8e1f6b5f28d88987e340b27841f281780a0a72f26a209275167dde6ba810da66da29714f812e2b6a833578455f18dbba7b4a0ff61da29c18b6b7 WHIRLPOOL b6902062a68544fb2009fa4181831bb2ae9c40cd8754f3e89e01a59002cb59716a4f119d78837951d5a5fa76f62c85a1c9478de8ece5d0376605e18416933e3d
+EBUILD epoch-9999.ebuild 1816 SHA256 0a8da725268cb6a59c10155c66711e1a3b4f5b8af2b23d5d6f126a2177b198cf SHA512 55871d86034356b54f5616b64cb4c3058f074eb09fa2d05113160275e9d58f2903f2c0444c84dbc97aa96cba277241d9644e274d7b984842c74e3602800b2c86 WHIRLPOOL 526eeed31d54632727dbdf682265dcf1e507acd1d41f48e01bed6174d1d53acc060b3505063e94a738ba79b8d97a028d85901ee2476e96b7bc99c7873ab74c10
+MISC ChangeLog 2985 SHA256 225b8bb7280ab5909fb52ab9e510786dba38c56fb4fea46d07de8cfca86c63c1 SHA512 042456fc11da633101fe06350d9a279649ddb0b6a92b0dc706ed4f06eb32b3fb5b805b4d12d33be81b4191d32065884ff09e5b5d80400a70b7324a57f7c40bd5 WHIRLPOOL 3bcd0b59f887541fb340b4c797fe4184ecc2e1f09c305d5f94fedfd1eb02dd8d8298ce79e1fae4368965c02dd3bacf6f80f597ca09e17267188703c59f36a833
+MISC ChangeLog-2015 2564 SHA256 2cb1465305f8c986323c2033bb9e8d39cb2a2ee1cf39460ace992b3abf7139bb SHA512 cbb6fc503ebace8effcb4185bdcc0999faeea6f5e6b8cc85abc894a76107d7f118aa6d28975f05e5f22afaa61007cd0153a4f8b89b4c8e7af9e7143388d931e9 WHIRLPOOL 5423705b541265669ada8a399f15c2b97fe6858e5f138d2de48c87a65a38f4437b2eef15a7fcf4ee1ac678f00ba5bc674c8883283b07224036192361883b4c80
+MISC metadata.xml 978 SHA256 b0ff1d0a4343c9043569fb8e0891ef3968330c97794aff84e84ca73cd735c525 SHA512 02fb290226b7fb30061110eeaed6989a6dac611373634b57d19b01eab8d6444dd3eb7ea12f08c96851bb41efecdf80434e5c42d7da590b2048bfc23aff6ea261 WHIRLPOOL e675873bd6c9a8561795ab6b26bd1093241b1efc6ad9a2fe3dc94aeeac75a80e583a855a8ae0252ce4a7ed6168d967918b24c74658eb22eb7e923d4377ac4d42
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..ea25ec8b9cbd
--- /dev/null
+++ b/sys-apps/epoch/metadata.xml
@@ -0,0 +1,24 @@
+<?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>
+</pkgmetadata>