1 |
commit: 65e65c08557ecae68ea658e282801390389d3247 |
2 |
Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 20 19:37:54 2014 +0000 |
4 |
Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 20 19:37:54 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/jmbsvicetto.git;a=commit;h=65e65c08 |
7 |
|
8 |
Rename kernel package s/source/sources/. |
9 |
|
10 |
Signed-off-by: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo.org> |
11 |
|
12 |
--- |
13 |
.../infra-kernel-source-3.8.2-r1.ebuild | 162 --------------------- |
14 |
.../hardened-sources-3.13.2-r3-infra25.config | 0 |
15 |
.../hardened-sources-3.13.2-r3-infra26.config | 0 |
16 |
.../hardened-sources-3.13.6-r3-infra27.config | 0 |
17 |
.../files/hardened-sources-3.8.2-r1-infra25.config | 0 |
18 |
.../files/mdadm.conf-1.0 | 0 |
19 |
.../infra-kernel-sources-3.13.2-r3.ebuild} | 0 |
20 |
.../infra-kernel-sources-3.13.6-r3.ebuild} | 0 |
21 |
.../metadata.xml | 0 |
22 |
9 files changed, 162 deletions(-) |
23 |
|
24 |
diff --git a/sys-kernel/infra-kernel-source/infra-kernel-source-3.8.2-r1.ebuild b/sys-kernel/infra-kernel-source/infra-kernel-source-3.8.2-r1.ebuild |
25 |
deleted file mode 100644 |
26 |
index f69d1eb..0000000 |
27 |
--- a/sys-kernel/infra-kernel-source/infra-kernel-source-3.8.2-r1.ebuild |
28 |
+++ /dev/null |
29 |
@@ -1,162 +0,0 @@ |
30 |
-# Copyright 1999-2014 Gentoo Foundation |
31 |
-# Distributed under the terms of the GNU General Public License v2 |
32 |
-# $Header: $ |
33 |
- |
34 |
-EAPI=5 |
35 |
-inherit flag-o-matic |
36 |
- |
37 |
-KERNEL_SOURCES="hardened-sources" |
38 |
-KERNEL_NAME="hardened" |
39 |
-KERNEL_PV="3.8.2" |
40 |
-KERNEL_REVISION="r1" |
41 |
-INFRA_SUFFIX="infra25" |
42 |
- |
43 |
-KERNEL_PVR="${KERNEL_PV}-${KERNEL_REVISION}" |
44 |
-KERNEL_PF="${KERNEL_SOURCES}-${KERNEL_PVR}" |
45 |
- |
46 |
-KERNEL_DIR="linux-${KERNEL_PV}-${KERNEL_NAME}-${KERNEL_REVISION}" |
47 |
-BINPKG_PVR="${PVR}-${INFRA_SUFFIX}" |
48 |
-BINPKG_KERNEL="${PN/-source/}-kernel-${BINPKG_PVR}.tbz2" |
49 |
-BINPKG_MODULES="${PN/-source/}-modules-${BINPKG_PVR}.tbz2" |
50 |
-KERNEL_CONFIG="${FILESDIR}"/${KERNEL_PF}-${INFRA_SUFFIX}.config |
51 |
- |
52 |
-BUILD_DIR="/home/upload-kernel/" |
53 |
- |
54 |
-DESCRIPTION="Package to build kernel + initramfs for Gentoo infra boxes" |
55 |
-HOMEPAGE="http://wiki.gentoo.org/wiki/Project:Infrastructure" |
56 |
-IUSE="" |
57 |
- |
58 |
-LICENSE="GPL-2" |
59 |
-SLOT="0" |
60 |
-KEYWORDS="~amd64 ~x86" |
61 |
- |
62 |
-DEPEND=" |
63 |
- sys-apps/fakeroot |
64 |
- sys-fs/lvm2 |
65 |
- >=sys-kernel/genkernel-3.4.49.1 |
66 |
- =sys-kernel/${KERNEL_PF}" |
67 |
-RDEPEND="" |
68 |
- |
69 |
-S="${WORKDIR}" |
70 |
- |
71 |
-pkg_setup() { |
72 |
- [ -d /usr/src/${KERNEL_DIR} ] || die "kernel dir /usr/src/${KERNEL_DIR} missing" |
73 |
- [ -f ${KERNEL_CONFIG} ] || die "${KERNEL_CONFIG} missing" |
74 |
- # we need to be using flags that will result in binaries working on all infra systems |
75 |
- strip-flags |
76 |
- filter-flags -march=* -mtune=* -mcpu=* -frecord-gcc-switches |
77 |
- use amd64 && append-flags -march=x86-64 -mtune=generic |
78 |
- use x86 && append-flags -march=pentium4 -mtune=generic |
79 |
-} |
80 |
- |
81 |
-src_unpack() { |
82 |
- mkdir -p "${T}"/{cache,tmp,kernel-output} |
83 |
-} |
84 |
- |
85 |
-src_prepare() { |
86 |
- # copy the kernel sources, this is potentially large, but nothing we can do. |
87 |
- # if it's dirty, the build will fail |
88 |
- # symlinks do not work either |
89 |
- mkdir -p "${S}"/usr/src |
90 |
- cp -a "/usr/src/${KERNEL_DIR}" "${S}"/usr/src || die |
91 |
- cd "${S}"/usr/src/${KERNEL_DIR} |
92 |
- _ARCH="$ARCH" |
93 |
- unset ARCH |
94 |
- emake mrproper || die "Failed to cleanup" |
95 |
- export ARCH=$_ARCH |
96 |
-} |
97 |
- |
98 |
-# This deliberately runs a very sterile genkernel |
99 |
-# that IGNORES the system /etc/genkernel.conf |
100 |
-# so that we get more reproducable builds |
101 |
-# almost all the options are easy with this except GK_SHARE |
102 |
-# fakeroot is here because genkernel uses mknod still |
103 |
-# which fails as non-root |
104 |
-genkernel_sterile() { |
105 |
- _DISTDIR="${DISTDIR}" |
106 |
- # the parsing of --config seems to be broken in v3.4.44.2 |
107 |
- #--config="${emptyconfig}" \ |
108 |
- emptyconfig="${T}"/empty |
109 |
- touch "${emptyconfig}" |
110 |
- CMD_GK_CONFIG="${emptyconfig}" \ |
111 |
- GK_SHARE="${ROOT}"/usr/share/genkernel \ |
112 |
- DISTDIR="${ROOT}"/var/cache/genkernel/src/ \ |
113 |
- CFLAGS="${CFLAGS}" \ |
114 |
- CXXFLAGS="${CXXFLAGS}" \ |
115 |
- fakeroot genkernel \ |
116 |
- --loglevel=1 \ |
117 |
- --no-menuconfig \ |
118 |
- --no-gconfig \ |
119 |
- --no-xconfig \ |
120 |
- --no-save-config \ |
121 |
- --oldconfig \ |
122 |
- --no-clean \ |
123 |
- --no-mrproper \ |
124 |
- --no-symlink \ |
125 |
- --no-mountboot \ |
126 |
- --no-lvm \ |
127 |
- --no-mdadm \ |
128 |
- --no-dmraid \ |
129 |
- --no-multipath \ |
130 |
- --no-iscsi \ |
131 |
- --no-disklabel \ |
132 |
- --no-luks \ |
133 |
- --no-gpg \ |
134 |
- --no-busybox \ |
135 |
- --no-postclear \ |
136 |
- --no-install \ |
137 |
- --no-zfs \ |
138 |
- --no-keymap \ |
139 |
- --no-e2fsprogs \ |
140 |
- --no-unionfs \ |
141 |
- --no-netboot \ |
142 |
- --compress-initramfs \ |
143 |
- --ramdisk-modules \ |
144 |
- --no-debug-cleanup \ |
145 |
- "$@" |
146 |
-} |
147 |
- |
148 |
-src_compile() { |
149 |
- |
150 |
- addpredict "/etc/kernels" |
151 |
- addpredict "/dev" |
152 |
- |
153 |
- # call genkernel to build the kernel + initramfs |
154 |
- genkernel_sterile \ |
155 |
- --loglevel=5 \ |
156 |
- --logfile="${T}"/genkernel.log \ |
157 |
- --cachedir="${T}"/cache \ |
158 |
- --tempdir="${T}"/tmp \ |
159 |
- \ |
160 |
- --makeopts="${MAKEOPTS}" \ |
161 |
- --kerneldir="/usr/src/${KERNEL_DIR}" \ |
162 |
- --kernel-outputdir="${T}/kernel-output" \ |
163 |
- --kernel-config="${KERNEL_CONFIG}" \ |
164 |
- --module-prefix="${T}" \ |
165 |
- \ |
166 |
- --lvm \ |
167 |
- --disklabel \ |
168 |
- --busybox \ |
169 |
- --e2fsprogs \ |
170 |
- --mdadm --mdadm-config="${FILESDIR}/mdadm.conf-1.0" \ |
171 |
- \ |
172 |
- --minkernpackage="${T}"/${BINPKG_KERNEL} \ |
173 |
- --modulespackage="${T}"/${BINPKG_MODULES} \ |
174 |
- \ |
175 |
- all \ |
176 |
- || die "genkernel failed" |
177 |
-} |
178 |
- |
179 |
-src_install() { |
180 |
- return 0 |
181 |
-} |
182 |
- |
183 |
-pkg_preinst() { |
184 |
- # copy the built kernel + initramfs |
185 |
- mkdir -p "${BUILD_DIR}" |
186 |
- cp -f "${T}"/${BINPKG_KERNEL} "${BUILD_DIR}" || die "Failed to copy kernel package" |
187 |
- cp -f "${T}"/${BINPKG_MODULES} "${BUILD_DIR}" || die "Failed to copy module package" |
188 |
- einfo "${BINPKG_KERNEL} and ${BINPKG_MODULES} are in ${BUILD_DIR}" |
189 |
- # mirror the packages |
190 |
- # scp ... |
191 |
-} |
192 |
|
193 |
diff --git a/sys-kernel/infra-kernel-source/files/hardened-sources-3.13.2-r3-infra25.config b/sys-kernel/infra-kernel-sources/files/hardened-sources-3.13.2-r3-infra25.config |
194 |
similarity index 100% |
195 |
rename from sys-kernel/infra-kernel-source/files/hardened-sources-3.13.2-r3-infra25.config |
196 |
rename to sys-kernel/infra-kernel-sources/files/hardened-sources-3.13.2-r3-infra25.config |
197 |
|
198 |
diff --git a/sys-kernel/infra-kernel-source/files/hardened-sources-3.13.2-r3-infra26.config b/sys-kernel/infra-kernel-sources/files/hardened-sources-3.13.2-r3-infra26.config |
199 |
similarity index 100% |
200 |
rename from sys-kernel/infra-kernel-source/files/hardened-sources-3.13.2-r3-infra26.config |
201 |
rename to sys-kernel/infra-kernel-sources/files/hardened-sources-3.13.2-r3-infra26.config |
202 |
|
203 |
diff --git a/sys-kernel/infra-kernel-source/files/hardened-sources-3.13.6-r3-infra27.config b/sys-kernel/infra-kernel-sources/files/hardened-sources-3.13.6-r3-infra27.config |
204 |
similarity index 100% |
205 |
rename from sys-kernel/infra-kernel-source/files/hardened-sources-3.13.6-r3-infra27.config |
206 |
rename to sys-kernel/infra-kernel-sources/files/hardened-sources-3.13.6-r3-infra27.config |
207 |
|
208 |
diff --git a/sys-kernel/infra-kernel-source/files/hardened-sources-3.8.2-r1-infra25.config b/sys-kernel/infra-kernel-sources/files/hardened-sources-3.8.2-r1-infra25.config |
209 |
similarity index 100% |
210 |
rename from sys-kernel/infra-kernel-source/files/hardened-sources-3.8.2-r1-infra25.config |
211 |
rename to sys-kernel/infra-kernel-sources/files/hardened-sources-3.8.2-r1-infra25.config |
212 |
|
213 |
diff --git a/sys-kernel/infra-kernel-source/files/mdadm.conf-1.0 b/sys-kernel/infra-kernel-sources/files/mdadm.conf-1.0 |
214 |
similarity index 100% |
215 |
rename from sys-kernel/infra-kernel-source/files/mdadm.conf-1.0 |
216 |
rename to sys-kernel/infra-kernel-sources/files/mdadm.conf-1.0 |
217 |
|
218 |
diff --git a/sys-kernel/infra-kernel-source/infra-kernel-source-3.13.2-r3.ebuild b/sys-kernel/infra-kernel-sources/infra-kernel-sources-3.13.2-r3.ebuild |
219 |
similarity index 100% |
220 |
rename from sys-kernel/infra-kernel-source/infra-kernel-source-3.13.2-r3.ebuild |
221 |
rename to sys-kernel/infra-kernel-sources/infra-kernel-sources-3.13.2-r3.ebuild |
222 |
|
223 |
diff --git a/sys-kernel/infra-kernel-source/infra-kernel-source-3.13.6-r3.ebuild b/sys-kernel/infra-kernel-sources/infra-kernel-sources-3.13.6-r3.ebuild |
224 |
similarity index 100% |
225 |
rename from sys-kernel/infra-kernel-source/infra-kernel-source-3.13.6-r3.ebuild |
226 |
rename to sys-kernel/infra-kernel-sources/infra-kernel-sources-3.13.6-r3.ebuild |
227 |
|
228 |
diff --git a/sys-kernel/infra-kernel-source/metadata.xml b/sys-kernel/infra-kernel-sources/metadata.xml |
229 |
similarity index 100% |
230 |
rename from sys-kernel/infra-kernel-source/metadata.xml |
231 |
rename to sys-kernel/infra-kernel-sources/metadata.xml |