build: minor improvment.
This commit is contained in:
parent
ffa0f7bc3d
commit
3706b96fa2
3 changed files with 4 additions and 4 deletions
3
Makefile
3
Makefile
|
|
@ -7,7 +7,7 @@ DESTDIR ?= /
|
||||||
BUILD := .build
|
BUILD := .build
|
||||||
PKGNAME := apparmor.d
|
PKGNAME := apparmor.d
|
||||||
VERSION := 0.$(shell git rev-list --count HEAD)-1
|
VERSION := 0.$(shell git rev-list --count HEAD)-1
|
||||||
P = $(notdir $(wildcard ${BUILD}/apparmor.d/*))
|
P = $(filter-out dpkg,$(notdir $(wildcard ${BUILD}/apparmor.d/*)))
|
||||||
|
|
||||||
.PHONY: all build enforce full install local $(P) pkg dpkg rpm lint clean
|
.PHONY: all build enforce full install local $(P) pkg dpkg rpm lint clean
|
||||||
|
|
||||||
|
|
@ -85,6 +85,7 @@ rpm:
|
||||||
lint:
|
lint:
|
||||||
@shellcheck --shell=bash \
|
@shellcheck --shell=bash \
|
||||||
PKGBUILD configure dists/build.sh \
|
PKGBUILD configure dists/build.sh \
|
||||||
|
tests/packer/src/init.sh tests/packer/src/aa-update tests/packer/init/clean.sh \
|
||||||
debian/${PKGNAME}.postinst debian/${PKGNAME}.postrm
|
debian/${PKGNAME}.postinst debian/${PKGNAME}.postrm
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
||||||
3
PKGBUILD
3
PKGBUILD
|
|
@ -1,8 +1,7 @@
|
||||||
# Maintainer: Alexandre Pujol <alexandre@pujol.io>
|
# Maintainer: Alexandre Pujol <alexandre@pujol.io>
|
||||||
# shellcheck disable=SC2034,SC2154,SC2164
|
# shellcheck disable=SC2034,SC2154,SC2164
|
||||||
|
|
||||||
# Warning: for development only, use https://aur.archlinux.org/packages/apparmor.d-git
|
# Warning: for development only, use https://aur.archlinux.org/packages/apparmor.d-git for production use.
|
||||||
# for production use.
|
|
||||||
|
|
||||||
pkgname=apparmor.d
|
pkgname=apparmor.d
|
||||||
pkgver=0.001
|
pkgver=0.001
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,6 @@ cd "$HOME/Projects/apparmor.d"
|
||||||
case "$DISTRIBUTION" in
|
case "$DISTRIBUTION" in
|
||||||
arch) make pkg ;;
|
arch) make pkg ;;
|
||||||
debian | ubuntu | whonix) make dpkg ;;
|
debian | ubuntu | whonix) make dpkg ;;
|
||||||
opensuse-tumbleweed) make rpm ;;
|
opensuse*) make rpm ;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
Loading…
Add table
Add a link
Reference in a new issue