# Maintainer: Natanael Copa global pkgname := 'rsync' global pkgver := '3.1.2' global pkgrel := '6' global pkgdesc := '"A file transfer program to keep remote files in sync'" global url := '"https://rsync.samba.org/'" global arch := '"all'" global license := '"GPL3'" global options := '"!check'" # included test suite fails some tests global makedepends := '"perl acl-dev popt-dev'" global subpackages := ""$pkgname-doc rrsync"" global source := ""https://download.samba.org/pub/$pkgname/$pkgname-$pkgver.tar.gz rsyncd.initd rsyncd.confd rsyncd.conf rsyncd.logrotate "" global builddir := ""$srcdir/$pkgname-$pkgver"" proc build { cd $builddir # Force IPv6 enabled, upstream bug https://bugzilla.samba.org/show_bug.cgi?id=10715 env CFLAGS="$CFLAGS -DINET6" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ || return 1 make || return 1 } proc package { cd $builddir make DESTDIR="$pkgdir" install || return 1 install -D -m 755 "$srcdir"/rsyncd.initd "$pkgdir"/etc/init.d/rsyncd install -D -m 644 "$srcdir"/rsyncd.conf "$pkgdir"/etc/rsyncd.conf install -D -m 644 "$srcdir"/rsyncd.confd "$pkgdir"/etc/conf.d/rsyncd install -D -m 644 "$srcdir"/rsyncd.logrotate "$pkgdir"/etc/logrotate.d/rsyncd } proc rrsync { global pkgdesc := '"Restricted rsync, restricts rsync to a subdir declared in .ssh/authorized_keys'" global depends := '"rsync perl'" global arch := '"noarch'" cd $builddir install -D -m 755 ./support/rrsync "$subpkgdir"/usr/bin/rrsync } global sha512sums := '"4c55fd69f436ead0cb5a0b7c6fdfef9bb28ddb9c63534eb619e756b118d5b08cfc5e696498650932c86e865b37e06633da947e6720ca0c27ed5c034313ae208b rsync-3.1.2.tar.gz 638d87c9a753b35044f6321ccd09d2c0addaab3c52c40863eb6905905576b5268bec67b496df81225528c9e39fbd92e9225d7b3037ab1fda78508d452c78158f rsyncd.initd c7527e289c81bee5e4c14b890817cdb47d14f0d26dd8dcdcbe85c7199cf27c57a0b679bdd1b115bfe00de77b52709cc5d97522a47f63c1bb5104f4a7220c9961 rsyncd.confd 3db8a2b364fc89132af6143af90513deb6be3a78c8180d47c969e33cb5edde9db88aad27758a6911f93781e3c9846aeadc80fffc761c355d6a28358853156b62 rsyncd.conf b8d6c0bb467a5c963317dc55478d2c10874564cd264d943d4a42037e2fce134fe001fabc92af5c6b5775e84dc310b1c8da147afaa61c99e5663c36580d8651a5 rsyncd.logrotate'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(rsync)} spids:[3])] spids: [3] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(3.1.2)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(6)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("A file transfer program to keep remote files in sync"))} spids: [12] ) ] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("https://rsync.samba.org/"))} spids: [17] ) ] spids: [17] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[22])] spids: [22] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL3))} spids:[27])] spids: [27] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:options) op:Equal rhs:{(DQ ("!check"))} spids:[32])] spids: [32] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("perl acl-dev popt-dev"))} spids: [40] ) ] spids: [40] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-doc rrsync"))} spids: [45] ) ] spids: [45] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("https://download.samba.org/pub/") ($ VSub_Name "$pkgname") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.gz\n") ("\trsyncd.initd\n") ("\trsyncd.confd\n") ("\trsyncd.conf\n") ("\trsyncd.logrotate\n") ("\t") ) } spids: [51] ) ] spids: [51] ) (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: [67] ) ] spids: [67] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (SimpleCommand words: [ {(./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)} ] more_env: [ (env_pair name: CFLAGS val: {(DQ ($ VSub_Name "$CFLAGS") (" -DINET6"))} spids: [95] ) ] ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [81] ) spids: [77 80] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(make)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(install)} {(-D)} {(-m)} {(755)} {(DQ ($ VSub_Name "$srcdir")) (/rsyncd.initd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/init.d/rsyncd)} ) (C {(install)} {(-D)} {(-m)} {(644)} {(DQ ($ VSub_Name "$srcdir")) (/rsyncd.conf)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/rsyncd.conf)} ) (C {(install)} {(-D)} {(-m)} {(644)} {(DQ ($ VSub_Name "$srcdir")) (/rsyncd.confd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/conf.d/rsyncd)} ) (C {(install)} {(-D)} {(-m)} {(644)} {(DQ ($ VSub_Name "$srcdir")) (/rsyncd.logrotate)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/logrotate.d/rsyncd)} ) ] spids: [165] ) spids: [161 164] ) (FuncDef name: rrsync body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: { (DQ ( "Restricted rsync, restricts rsync to a subdir declared in .ssh/authorized_keys" ) ) } spids: [278] ) ] spids: [278] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ("rsync perl"))} spids: [284] ) ] spids: [284] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (noarch))} spids:[290])] spids: [290] ) (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(install)} {(-D)} {(-m)} {(755)} {(./support/rrsync)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin/rrsync)} ) ] spids: [275] ) spids: [271 274] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "4c55fd69f436ead0cb5a0b7c6fdfef9bb28ddb9c63534eb619e756b118d5b08cfc5e696498650932c86e865b37e06633da947e6720ca0c27ed5c034313ae208b rsync-3.1.2.tar.gz\n" ) ( "638d87c9a753b35044f6321ccd09d2c0addaab3c52c40863eb6905905576b5268bec67b496df81225528c9e39fbd92e9225d7b3037ab1fda78508d452c78158f rsyncd.initd\n" ) ( "c7527e289c81bee5e4c14b890817cdb47d14f0d26dd8dcdcbe85c7199cf27c57a0b679bdd1b115bfe00de77b52709cc5d97522a47f63c1bb5104f4a7220c9961 rsyncd.confd\n" ) ( "3db8a2b364fc89132af6143af90513deb6be3a78c8180d47c969e33cb5edde9db88aad27758a6911f93781e3c9846aeadc80fffc761c355d6a28358853156b62 rsyncd.conf\n" ) ( "b8d6c0bb467a5c963317dc55478d2c10874564cd264d943d4a42037e2fce134fe001fabc92af5c6b5775e84dc310b1c8da147afaa61c99e5663c36580d8651a5 rsyncd.logrotate" ) ) } spids: [322] ) ] spids: [322] ) ] )