Debian packaging

This commit is contained in:
Jeremy Soller 2017-12-27 11:07:26 -07:00
parent 0872338fab
commit a5e9fc20c0
17 changed files with 54 additions and 34 deletions

View File

@ -1,22 +1,8 @@
MODULE=system76
VERSION=0.1
obj-m := system76.o
KVERSION := $(shell uname -r)
all:
-make uninstall
make install
$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
reload:
-make remove
make && make insert || cat /var/lib/dkms/$(MODULE)/$(VERSION)/build/make.log
install:
sudo dkms install $(PWD)/$(MODULE) --force
uninstall:
sudo dkms remove $(MODULE)/$(VERSION) --all
insert:
sudo modprobe $(MODULE)
remove:
sudo modprobe -r $(MODULE)
clean:
$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) clean

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
system76-dkms (0.0.1) artful; urgency=medium
* Initial release.
-- Jeremy Soller <jeremy@system76.com> Wed, 27 Dec 2017 10:50:18 -0700

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

16
debian/control vendored Normal file
View File

@ -0,0 +1,16 @@
Source: system76-dkms
Section: utils
Priority: optional
Maintainer: Jeremy Soller <jeremy@system76.com>
Build-Depends:
debhelper (>=9),
dkms
Standards-Version: 4.1.1
Homepage: https://github.com/pop-os/system76-dkms
Package: system76-dkms
Architecture: amd64
Depends: system76-driver,
${misc:Depends},
${shlib:Depends}
Description: System76 DKMS driver

7
debian/copyright vendored Normal file
View File

@ -0,0 +1,7 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: buildchain
Source: https://github.com/pop-os/buildchain
Files: *
Copyright: Copyright 2017 System76
License: GPL-3

14
debian/rules vendored Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
%:
dh $@ --with dkms
override_dh_install:
dh_install Makefile *.c usr/src/system76-$(DEB_VERSION_UPSTREAM)/
override_dh_dkms:
dh_dkms -V $(DEB_VERSION_UPSTREAM)
override_dh_auto_configure override_dh_auto_build override_dh_auto_test override_dh_auto_install override_dh_auto_clean:

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)

5
debian/system76-dkms.dkms vendored Normal file
View File

@ -0,0 +1,5 @@
PACKAGE_NAME="system76"
PACKAGE_VERSION="#MODULE_VERSION#"
BUILT_MODULE_NAME[0]="system76"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="yes"

View File

View File

@ -1,8 +0,0 @@
obj-m := system76.o
KVERSION := $(shell uname -r)
all:
$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
$(MAKE) -C /lib/modules/$(KVERSION)/build M=$(PWD) clean

View File

@ -1,7 +0,0 @@
PACKAGE_NAME="system76"
PACKAGE_VERSION="0.1"
CLEAN="make clean"
MAKE[0]="make all KVERSION=$kernelver"
BUILT_MODULE_NAME[0]="system76"
DEST_MODULE_LOCATION[0]="/updates"
AUTOINSTALL="yes"