aboutsummaryrefslogblamecommitdiffstats
path: root/community/netatalk/APKBUILD
blob: 58ce5083dd9e192e7dfd179ff3b7d7dac1e88cee (plain) (tree)
1
2
3
4
5
6
7
8
9


                                            
             

                                    

                                      
                          
                                               
                                                                                              
                                                       
                                                                          

                      
                      
         
 

              
                     
 






                           
         


                                                            





                                         
                                          
                                  





                                        
                               





                                                     
                              
                               


                                    

                                            

                                                  

 
         


                  
           
                                      
 



                                           
                                                                                

 
                                                                                                                                                                    
                                                                                                                                                

                                                                                                                                                 
# Contributor: Alexander Rigbo <alex@dnb.nu>
# Maintainer: Alexander Rigbo <alex@dnb.nu>
pkgname=netatalk
pkgver=3.1.12
pkgrel=5
pkgdesc="Open Source AFP fileserver"
url="http://netatalk.sourceforge.net/"
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"
subpackages="$pkgname-doc $pkgname-dev $pkgname-openrc"
source="https://downloads.sourceforge.net/netatalk/netatalk-$pkgver.tar.gz
	netatalk.initd
	gcc-10.patch
	statedir.patch
	"

# secfixes:
#   3.1.12-r0:
#     - CVE-2018-1160

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

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-libevent \
		--with-libevent-header=/usr/include \
		--with-libevent-lib=/usr/lib \
		--with-mysql \
		--without-bdb \
		--without-tdb \
		--without-dtrace \
		--without-afpstats \
		--without-cnid-dbd-backend \
		--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="ec4e4855628526742ad4bc2a25a0b2acac6fc20146a859b61d220f9f7786b006bd9af5ddc8505ca234913190f8d46649fbe8653eb8b5a0a1580a2bd56e5c09dc  netatalk-3.1.12.tar.gz
c4dc6b1967f4b86ee2f1cfc480edab5467fb1f67fd0cbbed23c8454568d0aaceeedaa23db90f8ca5b47f24d346f72d5e12307557edfeeefcbee003f85c56cced  netatalk.initd
349ad76cc6a1f859a1925ab5a2363a27aac155f057e8ef0477c7646d21f8ffbbf8167feb74ff704bb37ae6d881d2d3b12639e750df76a0f3ffeb54bbeecc5c06  gcc-10.patch
d3914c91c3c58db6e79b6ff82e65d66f73df8556ab28ceb544a0b476f1b4b88fb05247ac27944ce3d57a911f447bdd9f39278b2e920a7028a1437081540156f8  statedir.patch"