[arch-commits] Commit in hylafax/trunk (PKGBUILD config.local)

Tobias Powalowski tpowa at archlinux.org
Mon May 4 16:27:43 UTC 2009


    Date: Monday, May 4, 2009 @ 12:27:42
  Author: tpowa
Revision: 37908

upgpkg: hylafax 6.0.0-1

Modified:
  hylafax/trunk/PKGBUILD
  hylafax/trunk/config.local

--------------+
 PKGBUILD     |   32 ++++++++++++++++----------------
 config.local |    5 +++--
 2 files changed, 19 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-05-04 15:21:01 UTC (rev 37907)
+++ PKGBUILD	2009-05-04 16:27:42 UTC (rev 37908)
@@ -1,7 +1,7 @@
 # $Id$
 # Maintainer: Paul Mattal <paul at archlinux.org>
 pkgname=hylafax
-pkgver=4.4.4
+pkgver=6.0.0
 pkgrel=1
 pkgdesc="Fax Server"
 arch=('i686' 'x86_64')
@@ -15,8 +15,6 @@
 	var/spool/hylafax/etc/hosts.hfaxd) 
 source=(ftp://ftp.hylafax.org/source/${pkgname}-${pkgver}.tar.gz hylafax \
         hylafax.cron.daily config.local)
-md5sums=('4beb3d438ca6c4f00f1d94f9643e6668' '9b6700132ca65b0d5df91b585f18b9a5'\
-         '52beffe7dc296b4f9ce9fd0387f7804e' '67f19b7e06602aa27d6d4d96ddbd54b9')
 
 # build as root for successful build!
 build() {
@@ -27,20 +25,16 @@
     useradd -u 10 -g uucp -d '/' -s /bin/false uucp &>/dev/null
     useradd -u 69 -g daemon -d '/' -s /bin/false fax &>/dev/null
   fi
-  mkdir -p $startdir/pkg/usr/{bin,lib/fax,man,sbin,share/ghostscript/fonts} \
-  	|| return 1
-  mkdir -p $startdir/pkg/var/{spool/hylafax,lock} || return 1
-  mkdir -p $startdir/pkg/home/httpd/hylafax || return 1
-  cd $startdir/src/${pkgname}-${pkgver} || return 1
+  mkdir -p $pkgdir/usr/{bin,lib/fax,sbin,share/ghostscript/fonts} || return 1
+  mkdir -p $pkgdir/var/{spool/hylafax,lock} || return 1
+  cd $srcdir/${pkgname}-${pkgver} || return 1
 
   cp ../config.local . || return 1
   ./configure --nointeractive --with-OPTIMIZER="${CFLAGS}" || return 1
-  make -j 1 || return 1
-  make ROOT=$startdir/pkg install || return 1
-  install -D -m 755 $startdir/src/hylafax $startdir/pkg/etc/rc.d/hylafax \
-  	|| return 1
-  install -D -m 744 $startdir/src/hylafax.cron.daily \
-  	$startdir/pkg/etc/cron.daily/hylafax || return 1
+  make || return 1
+  make ROOT=$pkgdir install || return 1
+  install -D -m 755 $srcdir/hylafax $pkgdir/etc/rc.d/hylafax || return 1
+  install -D -m 744 $srcdir/hylafax.cron.daily $pkgdir/etc/cron.daily/hylafax || return 1
   # remove group if created
   if [ $uucp_created -eq 1 ]; then
     userdel uucp &>/dev/null
@@ -48,8 +42,14 @@
     userdel fax &>/dev/null
   fi
   # add missing awk file for notify-4.1 script
-  install -D -m 755 $startdir/src/${pkgname}-${pkgver}/util/notify.awk \
-  	$startdir/pkg/var/spool/hylafax/bin/notify.awk || return 1
+  install -D -m 755 $srcdir/${pkgname}-${pkgver}/util/notify.awk \
+  	$spkgdir/var/spool/hylafax/bin/notify.awk || return 1
+  # fix permission on /var/lock
+  chmod 1777 $pkgdir/var/lock
 
   install -D -m644 COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/COPYRIGHT
 }
+md5sums=('716de4f44b2a18205b4b24135f307e23'
+         '9b6700132ca65b0d5df91b585f18b9a5'
+         '52beffe7dc296b4f9ce9fd0387f7804e'
+         '0d2ce24d918226a852539aebf57d3f4a')

Modified: config.local
===================================================================
--- config.local	2009-05-04 15:21:01 UTC (rev 37907)
+++ config.local	2009-05-04 16:27:42 UTC (rev 37908)
@@ -60,11 +60,12 @@
 DIR_LIB="/usr/lib"
 DIR_LIBDATA="/usr/lib/fax"		# directory for client data
 DIR_LIBEXEC="/usr/lib/fax"		# directory for libraries&hidden apps
-DIR_MAN="/usr/man"		# directory for manual pages
+DIR_MAN="/usr/share/man"		# directory for manual pages
 DIR_SPOOL="/var/spool/hylafax"		# directory for spooling area
 DIR_SBIN="/usr/sbin"		# directory for system apps
 DIR_LOCKS="/var/lock"		# directory for UUCP lock files
 FONTMAP="/usr/share/ghostscript/fonts"	# directorys containing Fontmap files
+DIR_LOCALE="/usr/share/locale"
 #PATH_AFM="/usr/lib/DPS/AFM"		# directorys for AFM files
 
 #
@@ -75,7 +76,7 @@
 # in forming URLs; they are not directory pathnames
 # in the filesystem.
 #
-DIR_HTML="/home/httpd/hylafax"	# directory for HTML documentation
+DIR_HTML="/usr/share/hylafax/httpd"	# directory for HTML documentation
 #DIR_CGI="/var/httpd/cgi-bin"		# directory for CGI scripts
 #HTMLPATH="/hylafax"			# virtual path to HTML materials
 #CGIPATH="/cgi-bin"			# virtual path to CGI scripts




More information about the arch-commits mailing list