[aur-general] PKGBUILD review
Garrett Battaglia
battagliagarrett0 at gmail.com
Wed Oct 18 22:13:25 UTC 2017
This is the first time I am packaging for the AUR I would like someone
to look over my PKGBUILD below.
Thanks,
Garrett
#Maintainer: Garrett Battaglia <garrett at garrettbattaglia.info>
pkgname=sysdig-falco
pkgver=0.8.1
_sysdigver=0.19.1
pkgrel=1
pkgdesc="Behavioral Activity Monitoring With Container Support"
arch=('x86_64')
url=https://github.com/draios/falco
license=('GPL')
depends=('dkms')
makedepends=('git' 'cmake' 'linux-headers')
provides=('sysdig-falco')
source=(
"http://download.draios.com/stable/rpm/${arch}/falco-${pkgver}-${arch}.rpm"
"https://github.com/draios/falco/archive/${pkgver}.tar.gz"
"https://github.com/draios/sysdig/archive/${_sysdigver}.tar.gz"
"sysdig-falco.install"
"sysdig-falco.service")
install=$pkgname.install
md5sums=(
'5e017c747184101a0cc93ffc5b19ca47'
'f3c654ded00f3186f3ff92320204a747'
'6ad8b4a7d1b0aa10cd62397318117a67'
'8bdb4c61dadd116f4901fa15c20da728'
'58fe0d406874c6f565f648d3b10da62a')
prepare() {
cd ${srcdir}
mv sysdig-${_sysdigver} sysdig
mv falco-${pkgver} falco
rm -rf ./etc/rc.d
cd ./falco
mkdir build
}
build() {
cd $srcdir/falco/build
cmake ..
make driver
}
package() {
cd $srcdir
mkdir $pkgdir/usr
cp -r ./usr/* $pkgdir/usr/
mkdir $pkgdir/etc
cp -r ./etc/* $pkgdir/etc/
mkdir -p "$pkgdir/var/lib/dkms/falco/${pkgver}/${kernelVer}/${arch}/module/"
cp "$srcdir/falco/build/driver/falco-probe.ko"
"$pkgdir/var/lib/dkms/falco/${pkgver}/${kernelVer}/${arch}/module/falco-probe.ko"
mkdir -p $pkgdir/usr/lib/systemd/system/
cp sysdig-falco.service $pkgdir/usr/lib/systemd/system/
}
More information about the aur-general
mailing list