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
650
Issues
650
List
Boards
Labels
Service Desk
Milestones
Merge Requests
214
Merge Requests
214
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
98c60e6d
Commit
98c60e6d
authored
Apr 21, 2016
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/linux-grsec: add linux-virtgrsec-dev subpackage
parent
54553db5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
main/linux-grsec/APKBUILD
main/linux-grsec/APKBUILD
+17
-9
No files found.
main/linux-grsec/APKBUILD
View file @
98c60e6d
...
...
@@ -7,7 +7,7 @@ case $pkgver in
*
.
*
.
*
)
_kernver
=
${
pkgver
%.*
}
;;
*
.
*
)
_kernver
=
${
pkgver
}
;;
esac
pkgrel
=
0
pkgrel
=
1
pkgdesc
=
"Linux kernel with grsecurity"
url
=
http://grsecurity.net
depends
=
"mkinitfs"
...
...
@@ -29,7 +29,7 @@ source="http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-$_kernver.tar.xz
config-virtgrsec.x86
config-virtgrsec.x86_64
"
subpackages
=
"
$pkgname
-dev"
subpackages
=
"
$pkgname
-dev
linux-virtgrsec-dev
"
_flavors
=
for
_i
in
$source
;
do
case
$_i
in
...
...
@@ -151,9 +151,9 @@ virtgrsec() {
_package virtgrsec
"
$subpkgdir
"
}
# we only provide -dev for main flavor for now
dev
()
{
local
_abi_release
=
${
pkgver
}
-
${
pkgrel
}
-
$_
main
flavor
_dev
()
{
local
_flavor
=
"
$1
"
local
_abi_release
=
${
pkgver
}
-
${
pkgrel
}
-
$_flavor
# 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
...
...
@@ -161,15 +161,15 @@ dev() {
# 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"
pkgdesc
=
"Headers and script for third party modules for
$_flavor
kernel"
depends
=
"gmp-dev bash"
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
"
/config-
grsec
.
${
CARCH
}
"
$dir
"
/.config
echo
"-
$pkgrel
-
grsec
"
>
"
$dir
"
/localversion-alpine
\
cp
"
$srcdir
"
/config-
$_flavor
.
${
CARCH
}
"
$dir
"
/.config
echo
"-
$pkgrel
-
$_flavor
"
>
"
$dir
"
/localversion-alpine
\
||
return
1
make
-j1
-C
"
$srcdir
"
/linux-
$_kernver
O
=
"
$dir
"
HOSTCC
=
"
${
CC
:-
gcc
}
"
\
silentoldconfig prepare modules_prepare scripts
...
...
@@ -194,7 +194,7 @@ dev() {
find
$(
find
arch
-name
include
-type
d
-print
)
-type
f
\
| cpio
-pdm
"
$dir
"
install
-Dm644
"
$srcdir
"
/build-
$_
main
flavor
/Module.symvers
\
install
-Dm644
"
$srcdir
"
/build-
$_flavor
/Module.symvers
\
"
$dir
"
/Module.symvers
mkdir
-p
"
$subpkgdir
"
/lib/modules/
${
_abi_release
}
...
...
@@ -202,6 +202,14 @@ dev() {
"
$subpkgdir
"
/lib/modules/
${
_abi_release
}
/build
}
dev
()
{
_dev grsec
}
virtgrsec_dev
()
{
_dev virtgrsec
}
md5sums
=
"9a78fa2eb6c68ca5a40ed5af08142599 linux-4.4.tar.xz
2286314f215706401dd51bf07b179ae4 patch-4.4.7.xz
57e055cca3e1f3c7711f114e45146f8e grsecurity-3.1-4.4.7-201604152208.patch
...
...
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