Hello kitterhuff,
First off, thank you very much for stepping up to maintain this very important package.
The current PKGBUILD does not build. It might have worked in your specific setup, but you clearly added the 2 new systemd files incorrectly, which you tried to work around in the package function. Here is a patch that corrects this addition. Please apply this ASAP as it does not build now.
Again, thank you for looking after this.
Kind Regards,
Gábor
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,16 +14,19 @@ license=('GPL')
depends=('acl' 'e2fsprogs' 'libelf' 'mhash' 'pcre')
backup=('etc/aide.conf')
source=("https://github.com/aide/aide/releases/download/v${pkgver}/aide-${pkgver}.tar.gz"{,.asc} \
- "aide.conf")
-sha256sums=('c81505246f3ffc2e76036d43a77212ae82895b5881d9b9e25c1361b1a9b7a846' # aide-${pkgver}.tar.gz sha256sum
- 'SKIP'
- 'dd8f40a6e0a298dd0f457e6d814bc29c3fd5e5061cc9007386e2c2c3c7887f1a' # aide.conf chksum
- )
+ "aide.conf"
+ "aidecheck.service"
+ "aidecheck.timer")
+sha256sums=('c81505246f3ffc2e76036d43a77212ae82895b5881d9b9e25c1361b1a9b7a846' # aide-${pkgver}.tar.gz
+ 'SKIP'
+ 'dd8f40a6e0a298dd0f457e6d814bc29c3fd5e5061cc9007386e2c2c3c7887f1a' # aide.conf
+ 'fc7bd68dccc0e8694bb5a001fb6a80514f1380e41b95742e19d19b3172b22878' # aidecheck.service
+ '818a70166118652c217cbc64d24eee4d8adc8f40dd41edaca543f67e2117b242' # aidecheck.timer
+ )
validpgpkeys=('2BBBD30FAAB29B3253BCFBA6F6947DAB68E7B931') # Hannes von Haugwitz <hannes@vonhaugwitz.com>
build() {
- echo $srcdir
cd $srcdir/$pkgname-$pkgver
./configure \
--prefix=/usr \
@@ -39,14 +42,10 @@ build() {
}
package() {
- cd ..
- cp aidecheck.service $srcdir/aidecheck.service
- cp aidecheck.timer $srcdir/aidecheck.timer
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
- echo $pkgdir
+
install -D -m644 $srcdir/aide.conf $pkgdir/etc/aide.conf
install -D -m644 $srcdir/aidecheck.service $pkgdir/usr/lib/systemd/system/aidecheck.service
install -D -m644 $srcdir/aidecheck.timer $pkgdir/usr/lib/systemd/system/aidecheck.timer
- mkdir -p $pkgdir/var/{log,lib}/aide/
}
Pinned Comments
kitterhuff commented on 2023-04-24 06:56 (UTC) (edited on 2023-04-25 11:03 (UTC) by kitterhuff)
Hello! it is mandatory to manually import the gpg key of the aide developer.
Compare the output to the one in this github page:https://github.com/aide/aide it should be something along the lines of:
Hannes von Haugwitz hannes@vonhaugwitz.com Hannes von Haugwitz hvhaugwitz@debian.org 4096 bit RSA key F6947DAB68E7B931, created: 2011-06-28 Fingerprint: 2BBBD30FAAB29B3253BCFBA6F6947DAB68E7B931
andrej commented on 2021-03-27 20:58 (UTC) (edited on 2021-03-27 21:49 (UTC) by andrej)
A few more notes on this package:
0.17.3
, needs a few config tweaks (database_in
instead ofdatabase
,log_level
andreport_level
instad ofverbose
)./etc/logrotate.d/
.systemd
units (.service
and.timer
) for regular maintenance and checks. Also, the database files need to be "rotated" after each run etc. The WiKi suggests using cron, but that's an outdated idea compared tosystemd
timers.systemd
timer) should only run and logaide -C
, notaide -u
.aide -u
after updates. This could (and most likely should) be asystemd
.service
(but not asystemd
.timer
), so that it can berestart
ed in the background by Pacman after updates. This would have quite a few advantages:aide -u
would run automatically at the right time.aide -u
after an update.aide -u
would be waited for properly.aide -u
correctly before starting a new one in the background (hence arestart
instead of just astart
).kitterhuff commented on 2020-06-16 21:48 (UTC)
Hello, I am the current maintainer and I'm new to packaging, as such I will try my best to maintain the package up-to-date, if there's ANY problem message me: kitterhuff@gmail.com