summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2016-09-17 23:55:41 -0400
committerChris Severance2016-09-17 23:55:41 -0400
commite73391e0d1b8b366ce5156c62a5a47d6a1909c09 (patch)
tree97ebb0afdb962051bf9c3fa2fef7589041ae9d2f
parent534b506d82b56101dc25c5eca7c384f56844c8b3 (diff)
downloadaur-e73391e0d1b8b366ce5156c62a5a47d6a1909c09.tar.gz
Update to 3.3.5
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD80
-rw-r--r--avantfax.install20
3 files changed, 60 insertions, 53 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2335fa7205f0..444546b89f2c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Sun Sep 18 03:55:32 UTC 2016
pkgbase = avantfax
pkgdesc = a web-based application for managing faxes on HylaFAX fax servers
- pkgver = 3.3.3
+ pkgver = 3.3.5
pkgrel = 1
url = http://www.avantfax.com/
install = avantfax.install
@@ -11,9 +13,9 @@ pkgbase = avantfax
depends = ghostscript
depends = gsfonts
depends = dash
- depends = php
+ depends = php<6.0
depends = apache
- depends = php-apache
+ depends = php-apache<6.0
depends = php-pear
depends = pear-mail-mime
depends = pear-mail-mime-decode
@@ -29,14 +31,13 @@ pkgbase = avantfax
depends = netpbm
depends = giflib
optdepends = tesseract: OCR incoming faxes for document keyword searches
- optdepends = AvantFAX-support: iFax Solutions can help configure your fax system
- source = http://downloads.sourceforge.net/project/avantfax/avantfax-3.3.3.tgz
+ source = http://downloads.sourceforge.net/project/avantfax/avantfax-3.3.5.tgz
source = avantfaxsetup.sh
source = avantfax.cron.service
source = avantfax.cron.timer
source = avantfax.phb.service
source = avantfax.phb.timer
- sha256sums = b27deff3953af084d3930878e7377d382d434da43a05388a72251f6352e6133d
+ sha256sums = 7dc6cfbaea9e27d6ef696611dad79f50cbaa61be6e3b59ce25fa124af0cf1269
sha256sums = 615fcba915da20c10614c618dfc6a4d55ed526d2b689947c104102e3cc37e18c
sha256sums = 2c633cd03dd234cfbcf6d0530be573e9eaa2b1e92876faa946895bf99bfb3ebc
sha256sums = 057be12012e2bd10c8400cac9a2612b9d66ea1535476671f28dbf633c8eb6972
diff --git a/PKGBUILD b/PKGBUILD
index a23061a82b23..7e2b1d28a883 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,7 @@
# TODO: Less destructive remove or better cleanup.
# TODO: Even safer password storage (the current method is pretty safe)
# TODO: SendEmail or smtp-cli.pl support instead of sendmail
+# TODO: We can't use hard links. They won't update as the system updates.
# See avantfaxsetup.sh for more todo
# VERIFIED: Upon remove (and cleanup) 'avantfax' isn't found in /etc /var/spool/hylafax
@@ -45,20 +46,20 @@ _opt_pagesize='letter' # a4, letter
set -u
pkgname='avantfax'
_pkgnick="${pkgname}" # 'ArchFAX' # Changing this for an upgrade leaves cruft in many files.
-pkgver='3.3.3'
+pkgver='3.3.5'
pkgrel='1'
pkgdesc='a web-based application for managing faxes on HylaFAX fax servers'
arch=('any') #('i686' 'x86_64')
-install='avantfax.install'
+url='http://www.avantfax.com/'
license=('GPLv2')
depends=('hylafax' 'sudo' 'ghostscript' 'gsfonts' 'dash'
- 'php' 'apache' 'php-apache' 'php-pear'
+ 'php<6.0' 'apache' 'php-apache<6.0' 'php-pear'
'pear-mail-mime' 'pear-mail-mime-decode' 'pear-net-smtp'
'pear-mdb2>=2.5.0b5-1' 'pear-mdb2-mysql>=1.5.0b4-1' 'html2ps' # AUR in May 2015
'mariadb' 'psutils' 'libtiff' 'libpng' 'imagemagick' 'netpbm' 'giflib'
)
optdepends=('tesseract: OCR incoming faxes for document keyword searches' # not enabled in local-config, might already work
- 'AvantFAX-support: iFax Solutions can help configure your fax system'
+# 'AvantFAX-support: iFax Solutions can help configure your fax system'
)
# Searching config.php for 'extension_loaded' doesn't show any extensions we need at this time.
@@ -69,7 +70,8 @@ optdepends=('tesseract: OCR incoming faxes for document keyword searches' # not
# 'vixie-cron' # replaced with systemd timers. I use cronie.
# 'rsync' # used only in the manual upgrade scripts. rsync is not used in the package.
#makedepends=('smtp-server') # sendmail isn't required. It can be used on another server.
-url='http://www.avantfax.com/'
+install='avantfax.install'
+_verwatch=("${url}/changelog.php" 'AvantFAX\s\([0-9\.]\+\)\s*' 'f')
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tgz"
'avantfaxsetup.sh'
'avantfax.cron.service'
@@ -77,50 +79,54 @@ source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver
'avantfax.phb.service'
'avantfax.phb.timer')
-sha256sums=('b27deff3953af084d3930878e7377d382d434da43a05388a72251f6352e6133d'
+sha256sums=('7dc6cfbaea9e27d6ef696611dad79f50cbaa61be6e3b59ce25fa124af0cf1269'
'615fcba915da20c10614c618dfc6a4d55ed526d2b689947c104102e3cc37e18c'
'2c633cd03dd234cfbcf6d0530be573e9eaa2b1e92876faa946895bf99bfb3ebc'
'057be12012e2bd10c8400cac9a2612b9d66ea1535476671f28dbf633c8eb6972'
'51b4bcf2e26418f8392f765c7d0f363fe3c842ddfbefb8c950f484f4ce4a179a'
'8a0baba7cfeea3b5e20353677335b923c9333a4d1ab6143b41ca4b2d47449bbd')
-build () {
+prepare() {
set -u
cd "${srcdir}/${pkgname}-${pkgver}"
# chmod 755 *.sh
# All of the .php files marked as executable need to be executable.
# find avantfax -executable -type f -name "*.php" -exec chmod 644 {} \;
- # Patch to bring avantfax into compliance with php5
- # http://sourceforge.net/p/avantfax/discussion/542402/thread/bfe70151/?limit=25
- local _file
- for _file in 'AFUserAccount.php' 'FormRules.php'; do
- sed -i -e 's:^\(\s\+\)private \(function __unset.\+\)$:\1public \2:g' \
- -e 's:^\(\s\+\)private \(function __isset.\+\)$:\1public \2:g' \
- -e 's:^\(\s\+\)private \(function __get.\+\)$:\1public \2:g' \
- -e 's:^\(\s\+\)private \(function __set.\+\)$:\1public \2:g' \
- "${pkgname}/includes/${_file}"
- done
-
- # http://forum.joomla.org/viewtopic.php?t=618315
- # Strict Standards patch, remove & from =&
- sed -i -e 's|^\(\s\+$this->db =\)&\( MDB2::singleton\)|\1\2|g' \
- -e 's|^\(\s\+$res =\)&\( $this->db->query\)|\1\2|g' \
- -e 's|^\(\s\+$this->result =\)&\( $this->db->query\)|\1\2|g' \
- -e 's|^\(\s\+$aff =\)&\( $this->db->exec\)|\1\2|g' \
- "${pkgname}/includes/SQL.php"
- #exit 1
-
- # This PEAR bug will never be fixed but is also unlikely to be deprecated so we'll supress it.
- # http://pear.php.net/bugs/bug.php?id=17987
- for _file in SQL.php MDBO.php; do
- sed -i -e 's|(\(PEAR::isError\)|(@\1|g' \
- "${pkgname}/includes/${_file}"
- done
+ if [ "$(vercmp "${pkgver}" '3.3.4')" -le 0 ]; then
+ # http://forum.joomla.org/viewtopic.php?t=618315
+ # Strict Standards patch, remove & from =&
+ sed -i -e 's|^\(\s\+$this->db =\)&\( MDB2::singleton\)|\1\2|g' \
+ -e 's|^\(\s\+$res =\)&\( $this->db->query\)|\1\2|g' \
+ -e 's|^\(\s\+$this->result =\)&\( $this->db->query\)|\1\2|g' \
+ -e 's|^\(\s\+$aff =\)&\( $this->db->exec\)|\1\2|g' \
+ "${pkgname}/includes/SQL.php"
+ #exit 1
+ fi
- # I don't see a fast way to fix this one so I'll just supress the warning for now.
- sed -i -e 's|\(^\s\+$source_content = \)\(preg_replace\)|\1@\2|g' \
- "${pkgname}/includes/Smarty/Smarty_Compiler.class.php"
+ if [ "$(vercmp "${pkgver}" '3.3.3')" -le 0 ]; then
+ # Patch to bring avantfax into compliance with php5
+ # http://sourceforge.net/p/avantfax/discussion/542402/thread/bfe70151/?limit=25
+ local _file
+ for _file in 'AFUserAccount.php' 'FormRules.php'; do
+ sed -i -e 's:^\(\s\+\)private \(function __unset.\+\)$:\1public \2:g' \
+ -e 's:^\(\s\+\)private \(function __isset.\+\)$:\1public \2:g' \
+ -e 's:^\(\s\+\)private \(function __get.\+\)$:\1public \2:g' \
+ -e 's:^\(\s\+\)private \(function __set.\+\)$:\1public \2:g' \
+ "${pkgname}/includes/${_file}"
+ done
+
+ # This PEAR bug will never be fixed but is also unlikely to be deprecated so we'll supress it.
+ # http://pear.php.net/bugs/bug.php?id=17987
+ for _file in 'SQL.php' 'MDBO.php'; do
+ sed -i -e 's|(\(PEAR::isError\)|(@\1|g' \
+ "${pkgname}/includes/${_file}"
+ done
+
+ # I don't see a fast way to fix this one so I'll just supress the warning for now.
+ sed -i -e 's|\(^\s\+$source_content = \)\(preg_replace\)|\1@\2|g' \
+ "${pkgname}/includes/Smarty/Smarty_Compiler.class.php"
+ fi
set +u
}
@@ -243,7 +249,7 @@ EOF
# We run the *modified* shell script
export _opt_DESTDIR="${pkgdir}"
- "${_shellfile}" 0 package # package ignores the flag
+ "${_shellfile}" 0 'package' # package ignores the flag
set +u
}
diff --git a/avantfax.install b/avantfax.install
index 5935288e089d..e75093fb7db7 100644
--- a/avantfax.install
+++ b/avantfax.install
@@ -1,7 +1,7 @@
_reload_http() {
set -u
- if systemctl is-active httpd.service >/dev/null; then
- systemctl reload httpd.service # graceful
+ if systemctl is-active 'httpd.service' >/dev/null; then
+ systemctl reload 'httpd.service' # graceful
fi
set +u
}
@@ -17,14 +17,14 @@ _start_systemd() {
post_upgrade() {
set -u
_start_systemd
- avantfaxsetup.sh 2 build post # updates are applied here from backup copied below
+ avantfaxsetup.sh 2 'build' 'post' # updates are applied here from backup copied below
set +u
}
pre_upgrade() {
set -u
- avantfaxsetup.sh 1 preun
- avantfaxsetup.sh 2 pre # copy backup info to apply update above
+ avantfaxsetup.sh 1 'preun'
+ avantfaxsetup.sh 2 'pre' # copy backup info to apply update above
set +u
}
@@ -35,7 +35,7 @@ pre_install() {
post_install() {
set -u
_start_systemd
- avantfaxsetup.sh 1 build pre post
+ avantfaxsetup.sh 1 'build' 'pre' 'post'
_opt_SOURCEONLY=1; . 'avantfaxsetup.sh'; unset _opt_SOURCEONLY
_httpinclude="Include conf/extra/httpd-${_opt_AVANTFAX_SERVERNAME}.conf"
_httpconf='/etc/httpd/conf/httpd.conf'
@@ -68,18 +68,18 @@ pre_remove() {
rm -f "${_conftemp}"
_reload_http
fi
- avantfaxsetup.sh 0 preun
- cp -p '/usr/bin/avantfaxsetup.sh'{,.password} /tmp
+ avantfaxsetup.sh 0 'preun'
+ cp -p '/usr/bin/avantfaxsetup.sh'{,.password} '/tmp'
set +u
}
post_remove() {
set -u
systemctl daemon-reload
- /tmp/avantfaxsetup.sh 0 postun
+ /tmp/avantfaxsetup.sh 0 'postun'
_opt_SOURCEONLY=1; . '/tmp/avantfaxsetup.sh'; unset _opt_SOURCEONLY
# This completely removes your config. Not everyone may want this.
- rm -rf "/usr/share/webapps/${_opt_AVANTFAX_SERVERNAME}" "/root/avantfaxbackup"
+ rm -rf "/usr/share/webapps/${_opt_AVANTFAX_SERVERNAME}" '/root/avantfaxbackup'
rm -f '/tmp/avantfaxsetup.sh'{,.password} '/usr/bin/avantfaxsetup.sh.password'
set +u
}