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.1.ebuild ChangeLog
Date: Sun, 02 Mar 2014 19:42:45
Message-Id: 20140302194233.E266F2004C@flycatcher.gentoo.org
1 tomwij 14/03/02 19:42:33
2
3 Modified: ChangeLog
4 Added: epoch-1.0.1.ebuild
5 Log:
6 Version bump to 1.0.1.
7
8 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.5 sys-apps/epoch/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/epoch/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 7 Feb 2014 13:39:20 -0000 1.4
24 +++ ChangeLog 2 Mar 2014 19:42:33 -0000 1.5
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-apps/epoch
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/epoch/ChangeLog,v 1.4 2014/02/07 13:39:20 tomwij Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/epoch/ChangeLog,v 1.5 2014/03/02 19:42:33 tomwij Exp $
30 +
31 +*epoch-1.0.1 (02 Mar 2014)
32 +
33 + 02 Mar 2014; Tom Wijsman <TomWij@g.o> +epoch-1.0.1.ebuild:
34 + Version bump to 1.0.1.
35
36 *epoch-1.0 (07 Feb 2014)
37
38
39
40
41 1.1 sys-apps/epoch/epoch-1.0.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/epoch-1.0.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/epoch/epoch-1.0.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: epoch-1.0.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-apps/epoch/epoch-1.0.1.ebuild,v 1.1 2014/03/02 19:42:33 tomwij Exp $
51
52 EAPI="5"
53
54 inherit eutils linux-info
55
56 MY_PV="${PV/rc/RC}"
57 MY_P="${PN}-${MY_PV}"
58
59 DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity."
60 HOMEPAGE="http://universe2.us/epoch.html"
61 SRC_URI="https://github.com/Subsentient/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
62
63 LICENSE="public-domain"
64 SLOT="0"
65 KEYWORDS="~amd64"
66
67 S="${WORKDIR}/${MY_P}"
68
69 pkg_pretend() {
70 local CONFIG_CHECK="~PROC_FS"
71
72 [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config
73 }
74
75 src_prepare() {
76 epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch
77 }
78
79 src_compile() {
80 NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch."
81 }
82
83 newepochins() {
84 local type="$1"
85
86 cd ${type} || die "Cannot change directory."
87 for file in * ; do
88 if [[ "${file}" != "epoch" ]] ; then
89 new${type} ${file} epoch-${file}
90 fi
91 done
92 cd .. || die "Cannot change directory."
93 }
94
95 src_install() {
96 cd built || die "Cannot change directory."
97
98 dosbin sbin/epoch
99
100 # For now, rename to epoch-* until we can blend in with a standard approach.
101 newepochins bin
102 newepochins sbin
103
104 insinto /etc/epoch/
105 newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf
106 }
107
108 pkg_postinst() {
109 elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab."
110 elog ""
111 elog "An example epoch configuration is provided at /etc/epoch/epoch.conf"
112 elog "which starts a minimal needed to use Gentoo."
113 elog ""
114 elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init"
115 elog ""
116 elog "Additional information about epoch is available at"
117 elog "${HOMEPAGE} and configuration documentation at"
118 elog "http://universe2.us/epochconfig.html which is useful reading material."
119 elog ""
120 elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net."
121 }