mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 14:25:12 +01:00
Fix CI build.
This commit is contained in:
parent
df66824748
commit
70fa10d2a3
3 changed files with 3 additions and 5 deletions
|
@ -43,7 +43,7 @@ debian:
|
|||
script:
|
||||
- VERSION="$(date +%y.%m%d)-1"
|
||||
- mkdir -p "$PKGDEST"
|
||||
- sudo apt-get update -q && sudo apt-get install -y config-package-dev dh-apparmor
|
||||
- sudo apt-get update -q && sudo apt-get install -y config-package-dev rsync
|
||||
- dch --newversion=$VERSION --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
|
||||
- dpkg-buildpackage -b -d --no-sign
|
||||
- mv ../*.deb $PKGDEST/
|
||||
|
|
4
PKGBUILD
4
PKGBUILD
|
@ -9,15 +9,13 @@ arch=("any")
|
|||
url="https://gitlab.com/archlex/hardening/$pkgname"
|
||||
license=('GPL2')
|
||||
depends=('apparmor')
|
||||
source=("git+file://$PWD?signed")
|
||||
sha512sums=('SKIP')
|
||||
validpgpkeys=("06A26D531D56C42D66805049C5469996F0DF68EC")
|
||||
|
||||
pkgver() {
|
||||
date +%y.%m%d
|
||||
}
|
||||
|
||||
prepare() {
|
||||
git clone "$startdir" "$srcdir/$pkgname"
|
||||
cd "$srcdir/$pkgname"
|
||||
|
||||
./configure --distribution=archlinux --flavor=desktop
|
||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -83,7 +83,7 @@ generate() {
|
|||
|
||||
[[ "$profile" =~ ^\# ]] && continue
|
||||
path="${ROOT:?}/apparmor.d/profiles/$profile"
|
||||
if [[ -f "$path" ]]; then
|
||||
if [[ ! -f "$path" ]]; then
|
||||
[[ "$DISTRIBUTION" == debian ]] && continue
|
||||
_die "Profile $profile not found"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue