[arch-commits] Commit in bogofilter/repos (extra-x86_64 extra-x86_64/PKGBUILD)

andyrtr at archlinux.org andyrtr at archlinux.org
Sat Feb 14 14:11:24 UTC 2009


    Date: Saturday, February 14, 2009 @ 09:11:23
  Author: andyrtr
Revision: 26910

Merged revisions 26909 via svnmerge from 
svn+ssh://svn.archlinux.org/srv/svn-packages/bogofilter/trunk

........
  r26909 | andyrtr | 2009-02-14 14:10:52 +0000 (Sa, 14 Feb 2009) | 2 lines
  
  upgpkg: bogofilter 1.1.7-3
      backup config file, ship the contrib scripts
........

Modified:
  bogofilter/repos/extra-x86_64/	(properties)
  bogofilter/repos/extra-x86_64/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)


Property changes on: bogofilter/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /bogofilter/trunk:1-3768
   + /bogofilter/trunk:1-26909

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2009-02-14 14:10:52 UTC (rev 26909)
+++ extra-x86_64/PKGBUILD	2009-02-14 14:11:23 UTC (rev 26910)
@@ -4,21 +4,27 @@
 
 pkgname=bogofilter
 pkgver=1.1.7
-pkgrel=2
+pkgrel=3
 pkgdesc="A fast Bayesian spam filtering tool"
 arch=(i686 x86_64)
 license=(GPL3)
 url="http://bogofilter.sourceforge.net"
 depends=('db>=4.7' 'perl' 'gsl')
+backup=(etc/bogofilter/bogofilter.cf)
 source=(http://dl.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
 md5sums=('fdcb770769c013110631eca4c0473cd7')
 
 build() {
-  cd $startdir/src/${pkgname}-${pkgver}
+  cd ${srcdir}/${pkgname}-${pkgver}
   ./configure --prefix=/usr \
               --sysconfdir=/etc/bogofilter  \
               --localstatedir=/var \
               --enable-transcations
   make || return 1
-  make DESTDIR=$startdir/pkg install
+  make DESTDIR=${pkgdir} install || return 1
+
+  mv ${pkgdir}/etc/bogofilter/bogofilter.cf.example ${pkgdir}/etc/bogofilter/bogofilter.cf
+
+  install -dm755 ${pkgdir}/usr/share/${pkgname}/contrib
+  install -m644 contrib/* ${pkgdir}/usr/share/${pkgname}/contrib/
 }




More information about the arch-commits mailing list