mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Fix CI build.
This commit is contained in:
parent
df66824748
commit
70fa10d2a3
@ -43,7 +43,7 @@ debian:
|
|||||||
script:
|
script:
|
||||||
- VERSION="$(date +%y.%m%d)-1"
|
- VERSION="$(date +%y.%m%d)-1"
|
||||||
- mkdir -p "$PKGDEST"
|
- 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"
|
- dch --newversion=$VERSION --urgency=medium --distribution=stable --controlmaint "Release $VERSION"
|
||||||
- dpkg-buildpackage -b -d --no-sign
|
- dpkg-buildpackage -b -d --no-sign
|
||||||
- mv ../*.deb $PKGDEST/
|
- mv ../*.deb $PKGDEST/
|
||||||
|
4
PKGBUILD
4
PKGBUILD
@ -9,15 +9,13 @@ arch=("any")
|
|||||||
url="https://gitlab.com/archlex/hardening/$pkgname"
|
url="https://gitlab.com/archlex/hardening/$pkgname"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
depends=('apparmor')
|
depends=('apparmor')
|
||||||
source=("git+file://$PWD?signed")
|
|
||||||
sha512sums=('SKIP')
|
|
||||||
validpgpkeys=("06A26D531D56C42D66805049C5469996F0DF68EC")
|
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
date +%y.%m%d
|
date +%y.%m%d
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
git clone "$startdir" "$srcdir/$pkgname"
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
|
|
||||||
./configure --distribution=archlinux --flavor=desktop
|
./configure --distribution=archlinux --flavor=desktop
|
||||||
|
2
configure
vendored
2
configure
vendored
@ -83,7 +83,7 @@ generate() {
|
|||||||
|
|
||||||
[[ "$profile" =~ ^\# ]] && continue
|
[[ "$profile" =~ ^\# ]] && continue
|
||||||
path="${ROOT:?}/apparmor.d/profiles/$profile"
|
path="${ROOT:?}/apparmor.d/profiles/$profile"
|
||||||
if [[ -f "$path" ]]; then
|
if [[ ! -f "$path" ]]; then
|
||||||
[[ "$DISTRIBUTION" == debian ]] && continue
|
[[ "$DISTRIBUTION" == debian ]] && continue
|
||||||
_die "Profile $profile not found"
|
_die "Profile $profile not found"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user