Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
678
Issues
678
List
Boards
Labels
Service Desk
Milestones
Merge Requests
155
Merge Requests
155
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
7a5096f2
Commit
7a5096f2
authored
Jul 01, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/linux-grsec: create link to /boot/<flavor>. add some comments
parent
57c9b6bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
core/linux-grsec/APKBUILD
core/linux-grsec/APKBUILD
+19
-5
No files found.
core/linux-grsec/APKBUILD
View file @
7a5096f2
...
...
@@ -4,7 +4,7 @@ _flavor=grsec
pkgname
=
linux-
${
_flavor
}
pkgver
=
2.6.29.5
_kernver
=
2.6.29
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"Linux kernel with grsecurity"
url
=
http://grsecurity.net
makedepends
=
"perl installkernel"
...
...
@@ -57,24 +57,38 @@ build() {
INSTALL_MOD_PATH
=
"
$pkgdir
"
\
INSTALL_PATH
=
"
$pkgdir
"
/boot
# point the build symlink to headers dir
ln
-s
vmlinuz-
${
_abi_release
}
"
${
pkgdir
}
"
/boot/
$_flavor
rm
-f
"
$pkgdir
"
/lib/modules/
${
_abi_release
}
/build
\
"
$pkgdir
"
/lib/modules/
${
_abi_release
}
/source
}
dev
()
{
# copy the only the parts that we really need for build 3rd party
# kernel modules and install those as /usr/src/linux-headers,
# simlar to what ubuntu does
#
# this way you dont need to install the 300-400 kernel sources to
# build a tiny kernel module
#
pkgdesc
=
"Headers and script for third party modules for grsec kernel"
# create flavored headers ubuntu style
local dir
=
"
$subpkgdir
"
/usr/src/linux-headers-
${
_abi_release
}
# first we import config, run prepare to set up for building
# external modules, and create the scripts
mkdir
-p
"
$dir
"
cp
"
$srcdir
"
/kernelconfig
"
$dir
"
/.config
make
-j1
-C
"
$srcdir
"
/linux-
$_kernver
O
=
"
$dir
"
HOSTCC
=
"
$CC
"
\
silentoldconfig prepare scripts
# remove the stuff that poits to real sources. we want 3rd party
# modules to believe this is the soruces
rm
"
$dir
"
/Makefile
"
$dir
"
/source
# copy the only the parts that we really need
# copy the needed stuff from real sources
#
# this is taken from ubuntu kernel build script
# http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-jaunty.git;a=blob;f=debian/rules.d/3-binary-indep.mk;hb=HEAD
cd
"
$srcdir
"
/linux-
$_kernver
find
.
-path
'./include/*'
-prune
-o
-path
'./scripts/*'
-prune
\
-o
-type
f
\(
-name
'Makefile*'
-o
-name
'Kconfig*'
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment