# Contributor: Cameron Banta # Maintainer: Cameron Banta global pkgname := 'hylafax' global pkgver := '6.0.6' global pkgrel := '3' global pkgdesc := '"Sends and receives faxes'" global url := '"http://www.hylafax.org/'" global arch := '"all'" global license := '"MIT'" #depends on gcc for libgcc_s.so, it's scripts are hardcoded to bash global depends := '"ghostscript bash tiff-tools'" global makedepends := '"zlib-dev tiff-dev'" global install := ''"" global subpackages := ""$pkgname-doc"" global source := ""ftp://ftp.hylafax.org/source/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd"" global builddir := ""$srcdir"/$pkgname-$pkgver" proc prepare { default_prepare || return 1 update_config_guess || return 1 } proc build { cd $builddir # the configure script does not handle ccache or distcc export CC=gcc export CXX=g++ ./configure \ --nointeractive \ --disable-pam \ --with-DIR_BIN=/usr/bin \ --with-DIR_SBIN=/usr/sbin \ --with-DIR_LIB=/usr/lib \ --with-DIR_LIBEXEC=/usr/sbin \ --with-DIR_LIBDATA=/var/spool/"$pkgname"/lib \ --with-DIR_LOCKS=/var/lock \ --with-DIR_MAN=/usr/share/man \ --with-DIR_SPOOL=/var/spool/"$pkgname" \ --with-DIR_HTML=/usr/share/doc/"$pkgname"/html \ --with-PATH_IMPRIP="" \ --with-SYSVINIT=no \ --with-REGEX=yes \ --with-LIBTIFF="-ltiff -lz" \ --with-DSO=auto \ --with-PATH_EGETTY=/bin/false \ --with-PATH_VGETTY=/bin/false \ || return 1 make || return 1 } proc package{ cd $builddir # this makefile has issues installing, it doesn't use the standard # install - but the following seems to work mkdir -p "$(pkgdir)"/usr/bin "$(pkgdir)"/usr/sbin mkdir -p "$(pkgdir)"/usr/lib/"$pkgname" "$(pkgdir)"/usr/share/man mkdir -p "$(pkgdir)"/var/spool/"$pkgname" mkdir -p "$(pkgdir)"/var/spool/"$pkgname"/lib touch "$(pkgdir)"/var/spool/"$pkgname"/lib/pagesizes chown uucp:uucp "$(pkgdir)"/var/spool/"$pkgname" chmod 0600 "$(pkgdir)"/var/spool/"$pkgname" make \ BIN="$(pkgdir)/usr/bin" \ SBIN="$(pkgdir)/usr/sbin" \ LIBDIR="$(pkgdir)/usr/lib" \ LIB="$(pkgdir)/usr/lib" \ LIBEXEC="$(pkgdir)/usr/sbin" \ LIBDATA="$(pkgdir)/var/spool/$pkgname"/lib \ MAN="$(pkgdir)/usr/share/man" \ SPOOL="$(pkgdir)/var/spool/$pkgname" \ HTMLDIR="$(pkgdir)/usr/share/doc/$pkgname/html" \ install || return 1 install -m644 -D "$srcdir/$pkgname-$pkgver/COPYRIGHT" \ "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT install -m644 -D "$srcdir/$pkgname-$pkgver/README" \ "$pkgdir"/usr/share/doc/$pkgname/README install -D -m755 "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname || return 1 install -D -m644 "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname || return 1 } global md5sums := '"d063d45049c8fcbabefe09d662313067 hylafax-6.0.6.tar.gz 5acf25e0cf07ae2515214e79fa1d8812 hylafax.initd af73e1f25dd8f84fa377f6bf44e2a422 hylafax.confd'" global sha256sums := '"28926915b23ce7f5b4896de8ac5f58389c2c6e6bb73b4eee5bbd5129603bf7c0 hylafax-6.0.6.tar.gz 77a16cf3715441c43116da4c4231abc5bcc2f30271075ed2a0d1382d74f31165 hylafax.initd 3748b6eabdd0a630607286a59a7c175e09cd9cc933749e874ac2379d662c5761 hylafax.confd'" global sha512sums := '"be7e0533a24391c87deac6af35e01c81a79c99977c7f7a931e336d7c737b388d2a7c147faab3bf5eda196b1fa1c8671bee53c05dab2338f2f519010532f7d773 hylafax-6.0.6.tar.gz 3862cefcd26092000e4489c097537e5e0e2ae1f7c2a7a16b1e933b3bb78d136b6d8a65fb712ae245dd8ca881900408d0d9788bd2e0b859a9569fc6f4ede8cc7c hylafax.initd 3c07726cc9d7351dceb80a46354c6626e54b033b0f434c1db01db2a3b3ab5e9084d551dd23cae3ab40806f27aa5fa0a5b70c43a6b7802356871c0b343baa2376 hylafax.confd'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(hylafax)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(6.0.6)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(3)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Sends and receives faxes"))} spids: [15] ) ] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.hylafax.org/"))} 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 (MIT))} spids:[30])] spids: [30] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ("ghostscript bash tiff-tools"))} spids: [38] ) ] spids: [38] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ ("zlib-dev tiff-dev"))} spids: [43] ) ] spids: [43] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(DQ )} spids:[48])] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-doc))} spids: [52] ) ] spids: [52] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("ftp://ftp.hylafax.org/source/") ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.gz\n") ("\t") ($ VSub_Name "$pkgname") (".initd\n") ("\t") ($ VSub_Name "$pkgname") (.confd) ) } spids: [58] ) ] spids: [58] ) (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: [74] ) ] spids: [74] ) (FuncDef name: prepare body: (BraceGroup children: [ (AndOr children: [ (C {(default_prepare)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(update_config_guess)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [88] ) spids: [84 87] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(export)} {(Lit_VarLike "CC=") (gcc)}) (C {(export)} {(Lit_VarLike "CXX=") (g) (Lit_Other "+") (Lit_Other "+")}) (AndOr children: [ (C {(./configure)} {(--nointeractive)} {(--disable-pam)} {(--with-DIR_BIN) (Lit_Other "=") (/usr/bin)} {(--with-DIR_SBIN) (Lit_Other "=") (/usr/sbin)} {(--with-DIR_LIB) (Lit_Other "=") (/usr/lib)} {(--with-DIR_LIBEXEC) (Lit_Other "=") (/usr/sbin)} {(--with-DIR_LIBDATA) (Lit_Other "=") (/var/spool/) (DQ ($ VSub_Name "$pkgname")) (/lib)} {(--with-DIR_LOCKS) (Lit_Other "=") (/var/lock)} {(--with-DIR_MAN) (Lit_Other "=") (/usr/share/man)} {(--with-DIR_SPOOL) (Lit_Other "=") (/var/spool/) (DQ ($ VSub_Name "$pkgname"))} {(--with-DIR_HTML) (Lit_Other "=") (/usr/share/doc/) (DQ ($ VSub_Name "$pkgname")) (/html)} {(--with-PATH_IMPRIP) (Lit_Other "=") (DQ )} {(--with-SYSVINIT) (Lit_Other "=") (no)} {(--with-REGEX) (Lit_Other "=") (yes)} {(--with-LIBTIFF) (Lit_Other "=") (DQ ("-ltiff -lz"))} {(--with-DSO) (Lit_Other "=") (auto)} {(--with-PATH_EGETTY) (Lit_Other "=") (/bin/false)} {(--with-PATH_VGETTY) (Lit_Other "=") (/bin/false)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [115] ) spids: [111 114] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(mkdir)} {(-p)} {(DQ (${ VSub_Name pkgdir)) (/usr/bin)} {(DQ (${ VSub_Name pkgdir)) (/usr/sbin)} ) (C {(mkdir)} {(-p)} {(DQ (${ VSub_Name pkgdir)) (/usr/lib/) (DQ ($ VSub_Name "$pkgname"))} {(DQ (${ VSub_Name pkgdir)) (/usr/share/man)} ) (C {(mkdir)} {(-p)} {(DQ (${ VSub_Name pkgdir)) (/var/spool/) (DQ ($ VSub_Name "$pkgname"))}) (C {(mkdir)} {(-p)} {(DQ (${ VSub_Name pkgdir)) (/var/spool/) (DQ ($ VSub_Name "$pkgname")) (/lib)} ) (C {(touch)} {(DQ (${ VSub_Name pkgdir)) (/var/spool/) (DQ ($ VSub_Name "$pkgname")) (/lib/pagesizes)} ) (C {(chown)} {(uucp) (Lit_Other ":") (uucp)} {(DQ (${ VSub_Name pkgdir)) (/var/spool/) (DQ ($ VSub_Name "$pkgname"))} ) (C {(chmod)} {(0600)} {(DQ (${ VSub_Name pkgdir)) (/var/spool/) (DQ ($ VSub_Name "$pkgname"))} ) (AndOr children: [ (C {(make)} {(Lit_VarLike "BIN=") (DQ (${ VSub_Name pkgdir) (/usr/bin))} {(Lit_VarLike "SBIN=") (DQ (${ VSub_Name pkgdir) (/usr/sbin))} {(Lit_VarLike "LIBDIR=") (DQ (${ VSub_Name pkgdir) (/usr/lib))} {(Lit_VarLike "LIB=") (DQ (${ VSub_Name pkgdir) (/usr/lib))} {(Lit_VarLike "LIBEXEC=") (DQ (${ VSub_Name pkgdir) (/usr/sbin))} {(Lit_VarLike "LIBDATA=") (DQ (${ VSub_Name pkgdir) (/var/spool/) ($ VSub_Name "$pkgname")) (/lib) } {(Lit_VarLike "MAN=") (DQ (${ VSub_Name pkgdir) (/usr/share/man))} {(Lit_VarLike "SPOOL=") (DQ (${ VSub_Name pkgdir) (/var/spool/) ($ VSub_Name "$pkgname")) } {(Lit_VarLike "HTMLDIR=") (DQ (${ VSub_Name pkgdir) (/usr/share/doc/) ($ VSub_Name "$pkgname") (/html)) } {(install)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(install)} {(-m644)} {(-D)} { (DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (/COPYRIGHT) ) } {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/licenses/) ($ VSub_Name "$pkgname") (/COPYRIGHT)} ) (C {(install)} {(-m644)} {(-D)} { (DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (/README) ) } {(DQ ($ VSub_Name "$pkgdir")) (/usr/share/doc/) ($ VSub_Name "$pkgname") (/README)} ) (AndOr children: [ (C {(install)} {(-D)} {(-m755)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (.initd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/init.d/) ($ VSub_Name "$pkgname")} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-D)} {(-m644)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (.confd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/conf.d/) ($ VSub_Name "$pkgname")} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [286] ) spids: [283 286] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: { (DQ ("d063d45049c8fcbabefe09d662313067 hylafax-6.0.6.tar.gz\n") ("5acf25e0cf07ae2515214e79fa1d8812 hylafax.initd\n") ("af73e1f25dd8f84fa377f6bf44e2a422 hylafax.confd") ) } spids: [642] ) ] spids: [642] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "28926915b23ce7f5b4896de8ac5f58389c2c6e6bb73b4eee5bbd5129603bf7c0 hylafax-6.0.6.tar.gz\n" ) ("77a16cf3715441c43116da4c4231abc5bcc2f30271075ed2a0d1382d74f31165 hylafax.initd\n") ("3748b6eabdd0a630607286a59a7c175e09cd9cc933749e874ac2379d662c5761 hylafax.confd") ) } spids: [649] ) ] spids: [649] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "be7e0533a24391c87deac6af35e01c81a79c99977c7f7a931e336d7c737b388d2a7c147faab3bf5eda196b1fa1c8671bee53c05dab2338f2f519010532f7d773 hylafax-6.0.6.tar.gz\n" ) ( "3862cefcd26092000e4489c097537e5e0e2ae1f7c2a7a16b1e933b3bb78d136b6d8a65fb712ae245dd8ca881900408d0d9788bd2e0b859a9569fc6f4ede8cc7c hylafax.initd\n" ) ( "3c07726cc9d7351dceb80a46354c6626e54b033b0f434c1db01db2a3b3ab5e9084d551dd23cae3ab40806f27aa5fa0a5b70c43a6b7802356871c0b343baa2376 hylafax.confd" ) ) } spids: [656] ) ] spids: [656] ) ] )