# Contributor: Alexander Rigbo # Maintainer: Alexander Rigbo global pkgname := 'netatalk' global pkgver := '3.1.11' global pkgrel := '0' global pkgdesc := '"Netatalk is a freely-available Open Source AFP fileserver'" global url := '"http://netatalk.sourceforge.net/'" global arch := '"all'" global license := '"GPL2'" global makedepends := '"acl-dev attr-dev db-dev libevent-dev libgcrypt-dev tdb-dev file'" global subpackages := ""$pkgname-doc $pkgname-dev"" global source := ""http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz netatalk.initd"" global builddir := ""$srcdir/$pkgname-$pkgver"" global options := '"suid'" # needed for /usr/bin/afppasswd proc build { cd $builddir # 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 \ --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-bdb=/usr \ --without-tdb \ --without-dtrace \ --without-afpstats \ --with-lockfile=/var/lock/netatalk make } proc check { cd $builddir make check } proc package { cd $builddir 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 } global sha512sums := '"24d475f6eb2977e83bcbfb05c7284987a5f4aac56925c7d654df1728115259131a3fb090d07f64951f31fb313b79d912ad50e948ad400435bf3c9ff6f5d8f677 netatalk-3.1.11.tar.gz c4dc6b1967f4b86ee2f1cfc480edab5467fb1f67fd0cbbed23c8454568d0aaceeedaa23db90f8ca5b47f24d346f72d5e12307557edfeeefcbee003f85c56cced netatalk.initd'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(netatalk)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(3.1.11)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Netatalk is a freely-available Open Source AFP fileserver"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://netatalk.sourceforge.net/"))} spids: [20] ) ] spids: [20] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[25])] spids: [25] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL2))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("acl-dev attr-dev db-dev libevent-dev libgcrypt-dev tdb-dev file"))} spids: [35] ) ] spids: [35] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-doc ") ($ VSub_Name "$pkgname") (-dev))} spids: [40] ) ] spids: [40] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://downloads.sourceforge.net/") ($ VSub_Name "$pkgname") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.gz\n") ("\tnetatalk.initd") ) } spids: [48] ) ] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver"))} spids: [60] ) ] spids: [60] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:options) op:Equal rhs:{(DQ (suid))} spids:[69])] spids: [69] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--sysconfdir) (Lit_Other "=") (/etc)} {(--mandir) (Lit_Other "=") (/usr/share/man)} {(--localstatedir) (Lit_Other "=") (/var)} {(--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) (Lit_Other "=") (/usr/include)} {(--with-libevent-lib) (Lit_Other "=") (/usr/lib)} {(--with-bdb) (Lit_Other "=") (/usr)} {(--without-tdb)} {(--without-dtrace)} {(--without-afpstats)} {(--with-lockfile) (Lit_Other "=") (/var/lock/netatalk)} ) (C {(make)}) ] spids: [82] ) spids: [78 81] ) (FuncDef name: check body: (BraceGroup children: [(C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(check)})] spids: [233] ) spids: [229 232] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (C {(rm)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/dbus-session.conf)}) (C {(rm)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/afpstats)}) (C {(install)} {(-m)} {(755)} {(-D)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (.initd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/init.d/) ($ VSub_Name "$pkgname")} ) ] spids: [254] ) spids: [250 253] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "24d475f6eb2977e83bcbfb05c7284987a5f4aac56925c7d654df1728115259131a3fb090d07f64951f31fb313b79d912ad50e948ad400435bf3c9ff6f5d8f677 netatalk-3.1.11.tar.gz\n" ) ( "c4dc6b1967f4b86ee2f1cfc480edab5467fb1f67fd0cbbed23c8454568d0aaceeedaa23db90f8ca5b47f24d346f72d5e12307557edfeeefcbee003f85c56cced netatalk.initd" ) ) } spids: [321] ) ] spids: [321] ) ] )