mirror of
https://git.proxmox.com/git/mirror_spl-debian
synced 2025-10-04 16:23:12 +00:00
debian/rules: Use DEB_VERSION* instead of manually parsing.
This commit is contained in:
parent
17f51e92b0
commit
857519574d
13
debian/rules
vendored
13
debian/rules
vendored
@ -1,10 +1,10 @@
|
|||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
NAME := $(shell awk '$$1 == "Name:" { print $$2; }' META)
|
include /usr/share/dpkg/pkg-info.mk
|
||||||
VERSION := $(shell dpkg-parsechangelog \
|
|
||||||
| awk '$$1 == "Version:" { print $$2; }' | cut -d- -f1)
|
NAME := spl
|
||||||
REVISION := $(shell dpkg-parsechangelog \
|
VERSION := $(DEB_VERSION_UPSTREAM)
|
||||||
| awk '$$1 == "Version:" { print $$2; }' | cut -d- -f2-)
|
REVISION := $(shell echo $(DEB_VERSION) | cut -d- -f2)
|
||||||
|
|
||||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
|
||||||
@ -17,8 +17,7 @@ KVERS=$(shell uname -r)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
|
non_epoch_version=$(shell echo $(KVERS) | perl -pe 's/^\d+://')
|
||||||
PACKAGE=spl
|
pmodules = $(NAME)-modules-$(non_epoch_version)
|
||||||
pmodules = $(PACKAGE)-modules-$(non_epoch_version)
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --with dkms,autoreconf --parallel
|
dh $@ --with dkms,autoreconf --parallel
|
||||||
|
Loading…
Reference in New Issue
Block a user