Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/epoch: epoch-1.0_rc1.ebuild ChangeLog metadata.xml epoch-9999.ebuild
Date: Sat, 07 Dec 2013 21:16:05
Message-Id: 20131207211559.288442004E@flycatcher.gentoo.org
1 tomwij 13/12/07 21:15:59
2
3 Added: epoch-1.0_rc1.ebuild ChangeLog metadata.xml
4 epoch-9999.ebuild
5 Log:
6 New ebuild for sys-apps/epoch; an init system, a /sbin/init replacement; designed for simplicity.
7
8 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.1 sys-apps/epoch/epoch-1.0_rc1.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/epoch-1.0_rc1.ebuild?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/epoch-1.0_rc1.ebuild?rev=1.1&content-type=text/plain
15
16 Index: epoch-1.0_rc1.ebuild
17 ===================================================================
18 # Copyright 1999-2013 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/sys-apps/epoch/epoch-1.0_rc1.ebuild,v 1.1 2013/12/07 21:15:59 tomwij Exp $
21
22 EAPI="5"
23
24 inherit eutils linux-info
25
26 MY_PV="${PV/rc/RC}"
27 MY_P="${PN}-${MY_PV}"
28
29 DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity."
30 HOMEPAGE="http://universe2.us/epoch.html"
31 SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
32
33 LICENSE="public-domain"
34 SLOT="0"
35 KEYWORDS="~amd64"
36
37 S="${WORKDIR}/${MY_P}"
38
39 pkg_pretend() {
40 local CONFIG_CHECK="~PROC_FS"
41
42 [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config
43 }
44
45 src_prepare() {
46 epatch "${FILESDIR}"/${P}-fix-CFLAGS.patch
47 }
48
49 src_compile() {
50 NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch."
51 }
52
53 newepochins() {
54 local type="$1"
55
56 cd ${type} || die "Cannot change directory."
57 for file in * ; do
58 if [[ "${file}" != "epoch" ]] ; then
59 new${type} ${file} epoch-${file}
60 fi
61 done
62 cd .. || die "Cannot change directory."
63 }
64
65 src_install() {
66 cd built || die "Cannot change directory."
67
68 dosbin sbin/epoch
69
70 # For now, rename to epoch-* until we can blend in with a standard approach.
71 newepochins bin
72 newepochins sbin
73
74 insinto /etc/epoch/
75 newins "${FILESDIR}"/${P}-epoch.conf epoch.conf
76 }
77
78 pkg_postinst() {
79 elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab."
80 elog ""
81 elog "An example epoch configuration is provided at /etc/epoch/epoch.conf"
82 elog "which starts a minimal needed to use Gentoo."
83 elog ""
84 elog "Additional information about epoch is available at"
85 elog "${HOMEPAGE} and configuration documentation at"
86 elog "http://universe2.us/epochconfig.html which is useful reading material."
87 elog ""
88 elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net."
89 }
90
91
92
93 1.1 sys-apps/epoch/ChangeLog
94
95 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/ChangeLog?rev=1.1&view=markup
96 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/ChangeLog?rev=1.1&content-type=text/plain
97
98 Index: ChangeLog
99 ===================================================================
100 # ChangeLog for sys-apps/epoch
101 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
102 # $Header: /var/cvsroot/gentoo-x86/sys-apps/epoch/ChangeLog,v 1.1 2013/12/07 21:15:59 tomwij Exp $
103
104 *epoch-1.0_rc1 (07 Dec 2013)
105 *epoch-9999 (07 Dec 2013)
106
107 07 Dec 2013; Tom Wijsman <TomWij@g.o> +epoch-1.0_rc1.ebuild,
108 +epoch-9999.ebuild, +files/epoch-1.0_rc1-epoch.conf,
109 +files/epoch-1.0_rc1-fix-CFLAGS.patch, +metadata.xml:
110 New ebuild for sys-apps/epoch; an init system, a /sbin/init replacement;
111 designed for simplicity.
112
113
114
115 1.1 sys-apps/epoch/metadata.xml
116
117 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/metadata.xml?rev=1.1&view=markup
118 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/metadata.xml?rev=1.1&content-type=text/plain
119
120 Index: metadata.xml
121 ===================================================================
122 <?xml version="1.0" encoding="UTF-8"?>
123 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
124 <pkgmetadata>
125 <maintainer>
126 <email>TomWij@g.o</email>
127 <name>Tom Wijsman</name>
128 </maintainer>
129 <longdescription>
130 Epoch is an init system (analogous to systemd or upstart)
131 for Linux by Subsentient. It is intended as a lightweight
132 solution for lightweight distributions
133 that don't want a huge mess just to boot up.
134
135 It has one unified configuration file, is very small in size,
136 and it has no external dependencies besides glibc or similar,
137 and although installing a shell for /bin/sh is strongly recommended.
138 </longdescription>
139 <upstream>
140 <remote-id type="github">Subsentient/epoch</remote-id>
141 <doc lang="en">http://universe2.us/epochconfig.html</doc>
142 <bugs-to>https://github.com/Subsentient/epoch/issues</bugs-to>
143 <changelog>https://github.com/Subsentient/epoch/commits/master</changelog>
144 </upstream>
145 </pkgmetadata>
146
147
148
149 1.1 sys-apps/epoch/epoch-9999.ebuild
150
151 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/epoch-9999.ebuild?rev=1.1&view=markup
152 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/epoch-9999.ebuild?rev=1.1&content-type=text/plain
153
154 Index: epoch-9999.ebuild
155 ===================================================================
156 # Copyright 1999-2013 Gentoo Foundation
157 # Distributed under the terms of the GNU General Public License v2
158 # $Header: /var/cvsroot/gentoo-x86/sys-apps/epoch/epoch-9999.ebuild,v 1.1 2013/12/07 21:15:59 tomwij Exp $
159
160 EAPI="5"
161
162 inherit eutils linux-info git-r3
163
164 MY_PV="${PV/rc/RC}"
165 MY_P="${PN}-${MY_PV}"
166
167 DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity."
168 HOMEPAGE="http://universe2.us/epoch.html"
169 EGIT_REPO_URI="https://github.com/Subsentient/epoch.git"
170
171 LICENSE="public-domain"
172 SLOT="0"
173 KEYWORDS=""
174
175 S="${WORKDIR}/${MY_P}"
176
177 pkg_pretend() {
178 local CONFIG_CHECK="~PROC_FS"
179
180 [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config
181 }
182
183 src_prepare() {
184 epatch "${FILESDIR}"/${PN}-1.0_rc1-fix-CFLAGS.patch
185 }
186
187 src_compile() {
188 NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch."
189 }
190
191 newepochins() {
192 local type="$1"
193
194 cd ${type} || die "Cannot change directory."
195 for file in * ; do
196 if [[ "${file}" != "epoch" ]] ; then
197 new${type} ${file} epoch-${file}
198 fi
199 done
200 cd .. || die "Cannot change directory."
201 }
202
203 src_install() {
204 cd built || die "Cannot change directory."
205
206 dosbin sbin/epoch
207
208 # For now, rename to epoch-* until we can blend in with a standard approach.
209 newepochins bin
210 newepochins sbin
211
212 insinto /etc/epoch/
213 newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf
214 }
215
216 pkg_postinst() {
217 elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab."
218 elog ""
219 elog "An example epoch configuration is provided at /etc/epoch/epoch.conf"
220 elog "which starts a minimal needed to use Gentoo."
221 elog ""
222 elog "Additional information about epoch is available at"
223 elog "${HOMEPAGE} and configuration documentation at"
224 elog "http://universe2.us/epochconfig.html which is useful reading material."
225 elog ""
226 elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net."
227 }