1 |
naota 14/06/05 02:33:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: freebsd-sources-9.1-r9.ebuild |
5 |
Removed: freebsd-sources-9.1-r8.ebuild |
6 |
Log: |
7 |
Apply security patches #512376 #512374 |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key F8551514) |
10 |
|
11 |
Revision Changes Path |
12 |
1.106 sys-freebsd/freebsd-sources/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?rev=1.106&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?rev=1.106&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog?r1=1.105&r2=1.106 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v |
21 |
retrieving revision 1.105 |
22 |
retrieving revision 1.106 |
23 |
diff -u -r1.105 -r1.106 |
24 |
--- ChangeLog 19 May 2014 02:22:37 -0000 1.105 |
25 |
+++ ChangeLog 5 Jun 2014 02:33:45 -0000 1.106 |
26 |
@@ -1,6 +1,14 @@ |
27 |
# ChangeLog for sys-freebsd/freebsd-sources |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.105 2014/05/19 02:22:37 naota Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/ChangeLog,v 1.106 2014/06/05 02:33:45 naota Exp $ |
31 |
+ |
32 |
+*freebsd-sources-9.1-r9 (05 Jun 2014) |
33 |
+ |
34 |
+ 05 Jun 2014; Naohiro Aota <naota@g.o> |
35 |
+ +files/freebsd-sources-9.1-exec.patch, |
36 |
+ +files/freebsd-sources-9.1-ktrace.patch, +freebsd-sources-9.1-r9.ebuild, |
37 |
+ -freebsd-sources-9.1-r8.ebuild: |
38 |
+ Apply security patches #512376 #512374 |
39 |
|
40 |
*freebsd-sources-9.1-r8 (19 May 2014) |
41 |
|
42 |
|
43 |
|
44 |
|
45 |
1.1 sys-freebsd/freebsd-sources/freebsd-sources-9.1-r9.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.1-r9.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.1-r9.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: freebsd-sources-9.1-r9.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2014 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sources/freebsd-sources-9.1-r9.ebuild,v 1.1 2014/06/05 02:33:45 naota Exp $ |
55 |
|
56 |
inherit bsdmk freebsd flag-o-matic |
57 |
|
58 |
DESCRIPTION="FreeBSD kernel sources" |
59 |
SLOT="${RV}" |
60 |
KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" |
61 |
|
62 |
IUSE="symlink" |
63 |
|
64 |
SRC_URI="mirror://gentoo/${SYS}.tar.bz2 |
65 |
http://dev.gentoo.org/~naota/patch/${P}-en-13-03.patch" |
66 |
|
67 |
RDEPEND="=sys-freebsd/freebsd-mk-defs-${RV}*" |
68 |
DEPEND="" |
69 |
|
70 |
RESTRICT="strip binchecks" |
71 |
|
72 |
S="${WORKDIR}/sys" |
73 |
|
74 |
PATCHES=( "${FILESDIR}/${PN}-9.0-disable-optimization.patch" |
75 |
"${FILESDIR}/${PN}-9.1-gentoo.patch" |
76 |
"${FILESDIR}/${PN}-6.0-flex-2.5.31.patch" |
77 |
"${FILESDIR}/${PN}-6.1-ntfs.patch" |
78 |
"${FILESDIR}/${PN}-7.1-types.h-fix.patch" |
79 |
"${FILESDIR}/${PN}-8.0-subnet-route-pr40133.patch" |
80 |
"${FILESDIR}/${PN}-7.1-includes.patch" |
81 |
"${FILESDIR}/${PN}-9.0-sysctluint.patch" |
82 |
"${FILESDIR}/${PN}-7.0-tmpfs_whiteout_stub.patch" |
83 |
"${FILESDIR}/${PN}-9.1-cve-2013-3266.patch" |
84 |
"${FILESDIR}/${PN}-9.1-mmap.patch" |
85 |
"${FILESDIR}/${PN}-9.1-nfsserver.patch" |
86 |
"${DISTDIR}/${PN}-9.1-en-13-03.patch" |
87 |
"${FILESDIR}/${PN}-9.1-cve-2013-3077.patch" |
88 |
"${FILESDIR}/${PN}-9.1-cve-2013-5209.patch" |
89 |
"${FILESDIR}/${PN}-9.1-cve-2013-5691.patch" |
90 |
"${FILESDIR}/${PN}-9.1-cve-2013-5710.patch" |
91 |
"${FILESDIR}/${PN}-9.1-cve-2014-1453.patch" |
92 |
"${FILESDIR}/${PN}-9.1-random.patch" |
93 |
"${FILESDIR}/${PN}-9.1-mmap-2014.patch" |
94 |
"${FILESDIR}/${PN}-9.1-tcp.patch" |
95 |
"${FILESDIR}/${PN}-9.1-ciss.patch" |
96 |
"${FILESDIR}/${PN}-9.1-exec.patch" |
97 |
"${FILESDIR}/${PN}-9.1-ktrace.patch" ) |
98 |
|
99 |
src_unpack() { |
100 |
freebsd_src_unpack |
101 |
|
102 |
# This replaces the gentoover patch, it doesn't need reapply every time. |
103 |
sed -i -e 's:^REVISION=.*:REVISION="'${PVR}'":' \ |
104 |
-e 's:^BRANCH=.*:BRANCH="Gentoo":' \ |
105 |
-e 's:^VERSION=.*:VERSION="${TYPE} ${BRANCH} ${REVISION}":' \ |
106 |
"${S}/conf/newvers.sh" |
107 |
|
108 |
# __FreeBSD_cc_version comes from FreeBSD's gcc. |
109 |
# on 9.0-RELEASE it's 900001. |
110 |
sed -e "s:-D_KERNEL:-D_KERNEL -D__FreeBSD_cc_version=900001:g" \ |
111 |
-i "${S}/conf/kern.pre.mk" \ |
112 |
-i "${S}/conf/kmod.mk" || die "Couldn't set __FreeBSD_cc_version" |
113 |
|
114 |
# Remove -Werror |
115 |
sed -e "s:-Werror:-Wno-error:g" \ |
116 |
-i "${S}/conf/kern.pre.mk" \ |
117 |
-i "${S}/conf/kmod.mk" || die |
118 |
} |
119 |
|
120 |
src_compile() { |
121 |
einfo "Nothing to compile.." |
122 |
} |
123 |
|
124 |
src_install() { |
125 |
insinto "/usr/src/sys-${RV}" |
126 |
doins -r "${S}/"* |
127 |
} |
128 |
|
129 |
pkg_postinst() { |
130 |
if [[ ! -L "${ROOT}/usr/src/sys" ]]; then |
131 |
einfo "/usr/src/sys symlink doesn't exist; creating symlink to sys-${RV}..." |
132 |
ln -sf "sys-${RV}" "${ROOT}/usr/src/sys" || \ |
133 |
eerror "Couldn't create ${ROOT}/usr/src/sys symlink." |
134 |
elif use symlink; then |
135 |
einfo "Updating /usr/src/sys symlink to sys-${RV}..." |
136 |
rm "${ROOT}/usr/src/sys" || \ |
137 |
eerror "Couldn't remove previous symlinks, please fix manually." |
138 |
ln -sf "sys-${RV}" "${ROOT}/usr/src/sys" || \ |
139 |
eerror "Couldn't create ${ROOT}/usr/src/sys symlink." |
140 |
fi |
141 |
|
142 |
if use sparc-fbsd ; then |
143 |
ewarn "WARNING: kldload currently causes kernel panics" |
144 |
ewarn "on sparc64. This is probably a gcc-4.1 issue, but" |
145 |
ewarn "we need gcc-4.1 to compile the kernel correctly :/" |
146 |
ewarn "Please compile all modules you need into the kernel" |
147 |
fi |
148 |
} |