# Contributor: Alexander Rigbo # Maintainer: Alexander Rigbo pkgname=netatalk pkgver=3.1.15 pkgrel=1 pkgdesc="Open Source AFP fileserver" url="https://github.com/Netatalk/Netatalk" arch="all" license="GPL-2.0-or-later" options="suid" # needed for /usr/bin/afppasswd makedepends="acl-dev attr-dev file libevent-dev libgcrypt-dev mariadb-connector-c-dev tdb-dev db-dev" subpackages="$pkgname-doc $pkgname-dev $pkgname-openrc" source="https://github.com/Netatalk/Netatalk/releases/download/netatalk-${pkgver//./-}/netatalk-$pkgver.tar.gz netatalk.initd statedir.patch " # secfixes: # 3.1.15-r0: # - CVE-2022-43634 # - CVE-2022-45188 # 3.1.13-r0: # - CVE-2021-31439 # - CVE-2022-23121 # - CVE-2022-23123 # - CVE-2022-23122 # - CVE-2022-23125 # - CVE-2022-23124 # - CVE-2022-0194 # 3.1.12-r0: # - CVE-2018-1160 build() { # Notes: # --without-libevent - don't use *bundled* libevent # --without-tdb - don't use *bundled* tdb ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var/lib \ --disable-static \ --disable-silent-rules \ --disable-zeroconf \ --disable-tcp-wrappers \ --enable-overwrite \ --without-libiconv \ --without-pam \ --with-shadow \ --without-kerberos \ --without-ldap \ --with-acls \ --without-tdb \ --without-dtrace \ --without-afpstats \ --without-cnid-cdb-backend \ --with-lockfile=/var/lock/netatalk make } check() { make check } package() { make DESTDIR="$pkgdir" install # We don't build with dbug support. rm "$pkgdir"/etc/dbus-session.conf rm "$pkgdir"/usr/bin/afpstats install -m 755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } sha512sums=" ccba1bb3d7136194d5897e2c560fb81f8182ec1ac19446954c910e303cb43dab5a1cf1c842d75e5040dd43ab1b55c646857b7866ddb362e35afbb4110b296015 netatalk-3.1.15.tar.gz c4dc6b1967f4b86ee2f1cfc480edab5467fb1f67fd0cbbed23c8454568d0aaceeedaa23db90f8ca5b47f24d346f72d5e12307557edfeeefcbee003f85c56cced netatalk.initd 99c93ee326f984d252f619873798076a3dca56512e91fe2bde82a5f6919639d97ab66f797434bb5eb6fa91d30da6bac8d21bca0604f06cba12c0c94790b08533 statedir.patch "