diff options
Diffstat (limited to 'extra/cvs/PKGBUILD')
-rw-r--r-- | extra/cvs/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/extra/cvs/PKGBUILD b/extra/cvs/PKGBUILD new file mode 100644 index 000000000..380e93f2e --- /dev/null +++ b/extra/cvs/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 101751 2010-12-01 14:33:51Z stephane $ +# Contributor: dorphell <dorphell@archlinux.org> + +pkgname=cvs +pkgver=1.11.23 +pkgrel=6 +pkgdesc="Concurrent Versions System - a source control system" +arch=(i686 x86_64) +url="http://cvs.nongnu.org" +license=('GPL') +depends=('heimdal>=1.3.1') +optdepends=('openssh: for using cvs over ssh' 'inetutils: for using cvs over rsh') +install=cvs.install +source=(ftp://ftp.gnu.org/non-gnu/cvs/source/stable/${pkgver}/${pkgname}-${pkgver}.tar.bz2 + cvs-1.11.23-getline64.patch + cvs-1.11.23-cve-2010-3846.patch) +sha256sums=('400f51b59d85116e79b844f2d5dbbad4759442a789b401a94aa5052c3d7a4aa9' + '9126d7992ace943980ad8a10d5a09aeb6f1eeeb9b921fc796fe31de7b1c220cf' + 'c6506d0a5efc7b0cab6415f26e070ec214fb9781fac8d295506f4d0825431a8f') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + unset EDITOR VISUAL + + patch -Np1 -i ../cvs-1.11.23-getline64.patch + + # CVE-2010-3864, see https://www.redhat.com/security/data/cve/CVE-2010-3846.html + patch -Np1 -i ../cvs-1.11.23-cve-2010-3846.patch + + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make DESTDIR=${pkgdir} install + rm ${pkgdir}/usr/share/info/dir +} |