Fix CI build.

This commit is contained in:
Alexandre Pujol 2021-04-03 23:51:57 +01:00
parent df66824748
commit 70fa10d2a3
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
3 changed files with 3 additions and 5 deletions

View File

@ -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/

View File

@ -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
View File

@ -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