# Contributor: Johannes Matheis # Maintainer: Johannes Matheis global pkgname := 'fastd' global pkgver := '18' global pkgrel := '0' global pkgdesc := '"Fast and Secure Tunneling Daemon'" global url := '"https://projects.universe-factory.net/projects/fastd'" global arch := '"all'" global license := '"BSD'" global depends := ''"" global depends_dev := ''"" global makedepends := ""$depends_dev cmake doxygen bison bsd-compat-headers linux-headers libsodium-dev libcap-dev libuecc-dev json-c-dev"" global install := ''"" global subpackages := ""$pkgname-doc"" global source := ""http://git.universe-factory.net/$(pkgname)/snapshot/$(pkgname)-$(pkgver).tar fastd.conf fastd.initd"" global builddir := ""$srcdir/$(pkgname)-$(pkgver)"" proc build { mkdir "$builddir"/build && cd "$builddir"/build cmake \ -D CMAKE_AR=/usr/bin/ar \ -D CMAKE_RANLIB=/usr/bin/ranlib \ -D CMAKE_NM=/usr/bin/nm \ -D CMAKE_INSTALL_PREFIX=/usr \ -D ENABLE_SYSTEMD=OFF \ .. make || return 1 } proc package { cd $builddir make -C build install DESTDIR="$pkgdir" || return 1 install -Dm644 COPYRIGHT \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt install -Dm644 doc/fastd.1 \ "$pkgdir"/usr/share/man/man1/fastd.1 install -dm700 "$pkgdir"/etc/fastd/peers/ install -Dm600 "$srcdir"/fastd.conf \ "$pkgdir"/etc/fastd/fastd.conf || return 1 install -Dm755 "$srcdir"/fastd.initd \ "$pkgdir"/etc/init.d/fastd || return 1 } global md5sums := '"8a8a436b6627d74f128d335f9a519cd7 fastd-18.tar 383a11cb8d804e6d91c2c66eb07b4246 fastd.conf 12acdd1bd9b4181d913823575f4c1a78 fastd.initd'" global sha256sums := '"dce99ee057f43e3d732a120fb0cb60acb3b86e8231d3dd64ab72fc1254c2491a fastd-18.tar 6c7821e9c6b85ee2baf2d5e2e7b1eb28d3ceebe876e3cb6686b3c1cb6649db68 fastd.conf 1d8ebb8e2d6f5201ca6ebe11c0c3e2e124dfafa6f66ebac03a0b27f920f318dc fastd.initd'" global sha512sums := '"b732e8c083a5a35b7995f511673a3637d1f2b4893824867338dbeb06a73d8b7fd5658a7e459d1f44f1f247f06850c7720e2674c5a78a6b188334b35be352b2d0 fastd-18.tar 3e6c3a77f93a1e670e8f018833c499e8ec57b8240a6f472da03254ad9a7e6fed2c3459fa47b06c97e42afcfe6f0adfaaec39bce6b6a286a1ce7ef3585853b118 fastd.conf e64b0c548cf063624ac0b632bac672c5f204586aa03aa9b06afc46f48645f1458e2400e98ee993c74aa5da3a9e86c4151e2e29c634ee59941cd81a216cea308a fastd.initd'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(fastd)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(18)} 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 ("Fast and Secure Tunneling Daemon"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("https://projects.universe-factory.net/projects/fastd"))} 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 (BSD))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(DQ )} spids:[35])] spids: [35] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends_dev) op:Equal rhs:{(DQ )} spids:[39])] spids: [39] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: { (DQ ($ VSub_Name "$depends_dev") (" cmake doxygen bison bsd-compat-headers\n") ("\tlinux-headers libsodium-dev libcap-dev libuecc-dev json-c-dev") ) } spids: [43] ) ] spids: [43] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(DQ )} spids:[50])] spids: [50] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [54] ) ] spids: [54] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://git.universe-factory.net/") (${ VSub_Name pkgname) (/snapshot/) (${ VSub_Name pkgname) (-) (${ VSub_Name pkgver) (".tar\n") ("\tfastd.conf\n") ("\tfastd.initd") ) } spids: [60] ) ] spids: [60] ) (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: [80] ) ] spids: [80] ) (FuncDef name: build body: (BraceGroup children: [ (AndOr children: [ (C {(mkdir)} {(DQ ($ VSub_Name "$builddir")) (/build)}) (C {(cd)} {(DQ ($ VSub_Name "$builddir")) (/build)}) ] op_id: Op_DAmp ) (C {(cmake)} {(-D)} {(Lit_VarLike "CMAKE_AR=") (/usr/bin/ar)} {(-D)} {(Lit_VarLike "CMAKE_RANLIB=") (/usr/bin/ranlib)} {(-D)} {(Lit_VarLike "CMAKE_NM=") (/usr/bin/nm)} {(-D)} {(Lit_VarLike "CMAKE_INSTALL_PREFIX=") (/usr)} {(-D)} {(Lit_VarLike "ENABLE_SYSTEMD=") (OFF)} {(..)} ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [97] ) spids: [93 96] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(make)} {(-C)} {(build)} {(install)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(install)} {(-Dm644)} {(COPYRIGHT)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/licenses/) ($ VSub_Name "$pkgname") (/LICENSE.txt) } ) (C {(install)} {(-Dm644)} {(doc/fastd.1)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/man/man1/fastd.1)} ) (C {(install)} {(-dm700)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/fastd/peers/)}) (AndOr children: [ (C {(install)} {(-Dm600)} {(DQ ($ VSub_Name "$srcdir")) (/fastd.conf)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/fastd/fastd.conf)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-Dm755)} {(DQ ($ VSub_Name "$srcdir")) (/fastd.initd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/init.d/fastd)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [174] ) spids: [170 173] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("8a8a436b6627d74f128d335f9a519cd7 fastd-18.tar\n") ("383a11cb8d804e6d91c2c66eb07b4246 fastd.conf\n") ("12acdd1bd9b4181d913823575f4c1a78 fastd.initd") ) } spids: [294] ) ] spids: [294] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "dce99ee057f43e3d732a120fb0cb60acb3b86e8231d3dd64ab72fc1254c2491a fastd-18.tar\n" ) ("6c7821e9c6b85ee2baf2d5e2e7b1eb28d3ceebe876e3cb6686b3c1cb6649db68 fastd.conf\n") ("1d8ebb8e2d6f5201ca6ebe11c0c3e2e124dfafa6f66ebac03a0b27f920f318dc fastd.initd") ) } spids: [301] ) ] spids: [301] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "b732e8c083a5a35b7995f511673a3637d1f2b4893824867338dbeb06a73d8b7fd5658a7e459d1f44f1f247f06850c7720e2674c5a78a6b188334b35be352b2d0 fastd-18.tar\n" ) ( "3e6c3a77f93a1e670e8f018833c499e8ec57b8240a6f472da03254ad9a7e6fed2c3459fa47b06c97e42afcfe6f0adfaaec39bce6b6a286a1ce7ef3585853b118 fastd.conf\n" ) ( "e64b0c548cf063624ac0b632bac672c5f204586aa03aa9b06afc46f48645f1458e2400e98ee993c74aa5da3a9e86c4151e2e29c634ee59941cd81a216cea308a fastd.initd" ) ) } spids: [308] ) ] spids: [308] ) ] )