Package Details: aide 0.18.8-1

Git Clone URL: https://aur.archlinux.org/aide.git (read-only, click to copy)
Package Base: aide
Description: A file integrity checker and intrusion detection program
Upstream URL: https://aide.github.io/
Licenses: GPL
Submitter: arojas
Maintainer: AlphaJack
Last Packager: AlphaJack
Votes: 3
Popularity: 0.000466
First Submitted: 2020-05-01 18:17 (UTC)
Last Updated: 2024-09-10 18:46 (UTC)

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.
  • You should be able to do it by issuing the command: gpg --recv-keys 2BBBD30FAAB29B3253BCFBA6F6947DAB68E7B931

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:

  • The current version, 0.17.3, needs a few config tweaks (database_in instead of database, log_level and report_level instad of verbose).
  • It creates legacy logs -> it should have an entry in /etc/logrotate.d/.
  • It would be nice to have a few 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 to systemd timers.
  • The cron idea is in fact also wrong, because it updates the checksums unconditionally. Automated regular maintenance (a systemd timer) should only run and log aide -C, not aide -u.
    • A Pacman hook (or the like) should run aide -u after updates. This could (and most likely should) be a systemd .service (but not a systemd .timer), so that it can be restarted in the background by Pacman after updates. This would have quite a few advantages:
      • aide -u would run automatically at the right time.
      • Pacman wouldn't need to block and wait for aide -u after an update.
      • However, if a reboot was to follow, aide -u would be waited for properly.
      • Another Pacman update started closely afterwards would block and wait for the previous aide -u correctly before starting a new one in the background (hence a restart instead of just a start).

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

Latest Comments

« First ‹ Previous 1 2

gabor_zoka commented on 2023-04-07 15:51 (UTC) (edited on 2023-04-07 16:08 (UTC) by gabor_zoka)

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

Th30 commented on 2022-12-29 02:32 (UTC)

Hi, an error for compilation: error PGP no verified :/ Regards.

rsa commented on 2022-11-11 02:13 (UTC)

@kitterhuff you must update SRCINFO to trigger a proper update. Currently, it is not downloading the files you added after publishing 0.17.4-2 because -3 was never up.

kyau commented on 2022-08-10 05:37 (UTC) (edited on 2022-08-11 17:35 (UTC) by kyau)

Running into an issue when installing this.

configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
make  all-am
make[1]: Entering directory '/var/cache/makepkg/aide/src/aide-0.17.4'
make[1]: Leaving directory '/var/cache/makepkg/aide/src/aide-0.17.4'
==> Entering fakeroot environment...
==> Starting package()...
cp: cannot stat 'aidecheck.service': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

Modifying the PKGBUILD by commenting out the first three lines in package() and adding the unit files to source and sha256sums fixes the build errors.

kitterhuff commented on 2021-06-15 19:25 (UTC)

Everything should be back to a functioning condition. I apologize for the mismanagement of this package.

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:

  • The current version, 0.17.3, needs a few config tweaks (database_in instead of database, log_level and report_level instad of verbose).
  • It creates legacy logs -> it should have an entry in /etc/logrotate.d/.
  • It would be nice to have a few 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 to systemd timers.
  • The cron idea is in fact also wrong, because it updates the checksums unconditionally. Automated regular maintenance (a systemd timer) should only run and log aide -C, not aide -u.
    • A Pacman hook (or the like) should run aide -u after updates. This could (and most likely should) be a systemd .service (but not a systemd .timer), so that it can be restarted in the background by Pacman after updates. This would have quite a few advantages:
      • aide -u would run automatically at the right time.
      • Pacman wouldn't need to block and wait for aide -u after an update.
      • However, if a reboot was to follow, aide -u would be waited for properly.
      • Another Pacman update started closely afterwards would block and wait for the previous aide -u correctly before starting a new one in the background (hence a restart instead of just a start).

dpvpro commented on 2021-02-09 17:23 (UTC)

I have error.

 dp@dp-mashtab  ~  pacaur -S aide                  
:: Package aide not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages  (1) aide-0.16.2-2  
Repo Packages (1) mhash-0.9.9.9-5  

Repo Download Size:   0.10 MiB
Repo Installed Size:  0.21 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...

update complete: /home/dp/.cache/pacaur/aide
:: aide build files are up-to-date -- skipping
:: Checking aide integrity...
==> Making package: aide 0.16.2-2 (Вт 09 фев 2021 20:19:09)
==> Retrieving sources...
  -> Found aide-0.16.2.tar.gz
  -> Found aide-0.16.2.tar.gz.asc
  -> Found aide.conf
==> Validating source files with sha256sums...
    aide-0.16.2.tar.gz ... Passed
    aide-0.16.2.tar.gz.asc ... Skipped
    aide.conf ... Passed
==> Verifying source file signatures with gpg...
    aide-0.16.2.tar.gz ... FAILED (invalid public key 2BBBD30FAAB29B3253BCFBA6F6947DAB68E7B931)
==> ERROR: One or more PGP signatures could not be verified!
:: Preparing aide...
==> Making package: aide 0.16.2-2 (Вт 09 фев 2021 20:19:10)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
  -> Found aide-0.16.2.tar.gz
  -> Found aide-0.16.2.tar.gz.asc
  -> Found aide.conf
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting aide-0.16.2.tar.gz with bsdtar
==> Sources are ready.
:: failed to verify integrity or prepare aide package

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