Skip to content

Commit

Permalink
initial debian packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Schleizer committed Nov 13, 2019
1 parent 17ae51c commit 6e94a9d
Show file tree
Hide file tree
Showing 12 changed files with 126 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/30_lkrg.conf
@@ -0,0 +1 @@
/usr/lib/modules-load.d
11 changes: 11 additions & 0 deletions debian/changelog
@@ -0,0 +1,11 @@
lkrg (0:0.7-1) unstable; urgency=medium

* New upstream version (local package).

-- Patrick Schleizer <adrelanos@riseup.net> Wed, 13 Nov 2019 08:56:09 +0000

lkrg (0:0.0-1) unstable; urgency=medium

* Initial release (local package).

-- Patrick Schleizer <adrelanos@riseup.net> Tue, 12 Nov 2019 23:55:32 +0000
1 change: 1 addition & 0 deletions debian/compat
@@ -0,0 +1 @@
12
21 changes: 21 additions & 0 deletions debian/control
@@ -0,0 +1,21 @@
## Copyright (C) 2019 - 2019 Patrick Schleizer <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

Source: lkrg
Section: kernel
Priority: optional
Maintainer: Patrick Schleizer <adrelanos@riseup.net>
Build-Depends: debhelper (>= 12), dkms
Homepage: https://www.whonix.org/wiki/Linux_Kernel_Runtime_Guard_LKRG
Vcs-Browser: https://github.com/Whonix/lkrg
Vcs-Git: https://github.com/Whonix/lkrg.git
Standards-Version: 4.3.0

Package: lkrg-dkms
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Linux Kernel Runtime Guard
Linux Kernel Runtime Integrity Checking and Exploit Detection.
.
Linux Kernel Runtime Guard (LKRG) provides security through diversity.
Similar to running an uncommon operating system (kernel) would.
15 changes: 15 additions & 0 deletions debian/copyright
@@ -0,0 +1,15 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Files: *
Copyright: Copyright (c) 2015-2018 Adam 'pi3' Zabrocki
License: GPL-2
This version of LKRG is hereby being made available under the terms of the GNU
General Public License version 2 as published by the Free Software Foundation.
.
LKRG is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
.
On Debian systems, the full text of the GNU General Public
License version 3 can be found in the file
`/usr/share/common-licenses/GPL-2.1'.
20 changes: 20 additions & 0 deletions debian/lkrg-dkms.dkms
@@ -0,0 +1,20 @@
## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

PACKAGE_NAME="lkrg"

## TODO: how?
#PACKAGE_VERSION="#MODULE_VERSION#"

PACKAGE_VERSION="0.7"

BUILT_MODULE_LOCATION[0]="output"
BUILT_MODULE_NAME[0]="p_lkrg"

DEST_MODULE_LOCATION[0]="/extra"
DEST_MODULE_NAME[0]="p_lkrg"

AUTOINSTALL="yes"

MAKE[0]="make all"
CLEAN[0]="make clean"
15 changes: 15 additions & 0 deletions debian/lkrg-dkms.install
@@ -0,0 +1,15 @@
## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

## TODO: do not hardcode 0.7

src/* usr/src/lkrg-0.7/src

CHANGES usr/src/lkrg-0.7/
INSTALL usr/src/lkrg-0.7/
Makefile usr/src/lkrg-0.7/
PATREONS usr/src/lkrg-0.7/
PERFORMANCE usr/src/lkrg-0.7/
scripts usr/src/lkrg-0.7/

debian/30_lkrg.conf usr/lib/modules-load.d/
5 changes: 5 additions & 0 deletions debian/lkrg-dkms.lintian-overrides
@@ -0,0 +1,5 @@
## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

## Really empty.
lkrg-dkms: package-contains-empty-directory usr/src/lkrg/src/modules/exploit_detection/syscalls/p_do_fork/
25 changes: 25 additions & 0 deletions debian/rules
@@ -0,0 +1,25 @@
#!/usr/bin/make -f

## Copyright (C) 2016 - 2019 Patrick Schleizer <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
dh $@ --with dkms

override_dh_installchangelogs:
dh_installchangelogs CHANGES upstream

override_dh_auto_build:
true

override_dh_auto_clean:
true

override_dh_auto_install:
true
1 change: 1 addition & 0 deletions debian/source/format
@@ -0,0 +1 @@
3.0 (quilt)
5 changes: 5 additions & 0 deletions debian/source/lintian-overrides
@@ -0,0 +1,5 @@
## https://phabricator.whonix.org/T277
debian-watch-does-not-check-gpg-signature

## really empty
lkrg source: source-contains-empty-directory src/modules/exploit_detection/syscalls/p_do_fork/
6 changes: 6 additions & 0 deletions debian/watch
@@ -0,0 +1,6 @@
## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

version=4
opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/lkrg-$1\.tar\.gz/ \
https://github.com/Whonix/lkrg/tags .*/v?(\d\S+)\.tar\.gz

0 comments on commit 6e94a9d

Please sign in to comment.