1 # Maintainer: Lukas Fleischer <lfleischer@archlinux.org>
2 # Contributor: dorphell <dorphell@archlinux.org>
3 # Contributor: Dan McGee <dan@archlinux.org>
8 pkgdesc="Concurrent Versions System - a source control system"
10 url="http://cvs.nongnu.org/"
12 depends=('krb5' 'zlib')
14 optdepends=('openssh: for using cvs over ssh'
15 'inetutils: for using cvs over rsh')
16 source=(https://ftp.gnu.org/non-gnu/cvs/source/stable/${pkgver}/${pkgname}-${pkgver}.tar.bz2
17 cvs-1.11.19-abortabort.patch
18 cvs-1.11.19-comp.patch
19 cvs-1.11.19-extzlib.patch
20 cvs-1.11.19-logmsg.patch
21 cvs-1.11.19-netbsd-tag.patch
22 cvs-1.11.19-tagname.patch
24 cvs-1.11.21-diff-kk.patch
25 cvs-1.11.21-diff.patch
26 cvs-1.11.21-sort.patch
27 cvs-1.11.23-cve-2010-3846.patch
28 cvs-1.11.23-cvspass.patch
29 cvs-1.11.23-doc-Add-mandatory-argument-to-sp.patch
30 cvs-1.11.23-getline64.patch
31 cvs-1.11.23-make_make_check_sanity_testing_verbose.patch
32 cvs-1.11.23-Pass-compilation-with-Wformat-security.patch
33 cvs-1.11.23-remove_undefined_date_from_cvs_1_header.patch
34 cvs-1.11.23-sanity.patch)
35 sha256sums=('400f51b59d85116e79b844f2d5dbbad4759442a789b401a94aa5052c3d7a4aa9'
36 'a63bd4d696d4785f3b16146c9a8e57b7f0b2fcb648b9b3b43b138857e28e23f4'
37 '973d2c6682e2e4b9b9a80c0aec7dd436a180adbc06c6ed6914c349627cfb9a6e'
38 '0587ac3753d1257fa6d22557fa077178ee1ec004178c0a0348720e8171b1e942'
39 'f97ea853f2c7cc6cc0364e1d0ca148be6229c43327417c32a4b253d74bf9fd76'
40 'f8e544879d3ca5589c09f56678cd0a5166b727f65ebb4daceaeb70bd700f5f6b'
41 '0cf5fa737444344f76c7b361a60e6736ccff7887b5157fb1b2ddd6bd133cc4e5'
42 '1ff4ae9d167f5449fbd1c8ae3b489da73b2806df3b3d8795711deffba7856953'
43 'd924459e46ea4fb438d0f71b0d87bd528b132bc53224dbfb588b090633f2fea9'
44 '70af9380ea697a9ffcca8b33bd3d591ee53e23da250462dd690fca357600fab6'
45 '775feb4094f638bf30a47be5b6e098266879ba6592d15d3694fff9365fb65b2d'
46 'c6506d0a5efc7b0cab6415f26e070ec214fb9781fac8d295506f4d0825431a8f'
47 '14a356126159097a5d2d0462547eb2853bf331d8bc7d850be245f751ec17965e'
48 '30f68fc13474db4468d22fbdbe771b5f107217cdd2513c058e07de8fe7300d01'
49 '9126d7992ace943980ad8a10d5a09aeb6f1eeeb9b921fc796fe31de7b1c220cf'
50 '9eeb10fcee6a131210c16978f2eb91fad3e7a8df7fc579bda0ea3a4108c78e1d'
51 '54e2ed54d893f14441cf0242493719d8361f54209eefc88b7ac3b9c07ae6625a'
52 '887d09d266a796582b046ef36c80792a1b244aea714cd9280f6928cef7dc6698'
53 'f661dbd97518b12d63b1cec2f3e6f1ab8219aeddfd1e96e7e505f38ffb04a4b2')
56 cd "${srcdir}/${pkgname}-${pkgver}"
59 patch -Np1 < ../cvs-1.11.19-extzlib.patch
60 patch -Np1 < ../cvs-1.11.23-getline64.patch
61 # CVE-2010-3864, https://www.redhat.com/security/data/cve/CVE-2010-3846.html
62 patch -Np1 < ../cvs-1.11.23-cve-2010-3846.patch
63 patch -Np1 < ../cvs-1.11.19-abortabort.patch
64 patch -Np1 < ../cvs-1.11.19-comp.patch
65 patch -Np1 < ../cvs-1.11.19-netbsd-tag.patch
66 patch -Np1 < ../cvs-1.11.19-tagname.patch
67 patch -Np1 < ../cvs-1.11.19-tmp.patch
68 patch -Np1 < ../cvs-1.11.21-diff-kk.patch
69 patch -Np1 < ../cvs-1.11.21-diff.patch
70 patch -Np1 < ../cvs-1.11.21-sort.patch
71 patch -Np1 < ../cvs-1.11.23-cvspass.patch
72 patch -Np1 < ../cvs-1.11.19-logmsg.patch
73 patch -Np1 < ../cvs-1.11.23-doc-Add-mandatory-argument-to-sp.patch
74 patch -Np1 < ../cvs-1.11.23-make_make_check_sanity_testing_verbose.patch
75 patch -Np1 < ../cvs-1.11.23-Pass-compilation-with-Wformat-security.patch
76 patch -Np1 < ../cvs-1.11.23-remove_undefined_date_from_cvs_1_header.patch
77 patch -Np1 < ../cvs-1.11.23-sanity.patch
79 sed -i -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in
80 find . -name Makefile.am | xargs sed -i -e 's/^INCLUDES/AM_CPPFLAGS/'
81 AUTOMAKE='automake --add-missing' autoreconf
82 ./configure --prefix=/usr
87 cd "${srcdir}/${pkgname}-${pkgver}"
89 make DESTDIR="${pkgdir}" install
90 rm "${pkgdir}"/usr/share/info/dir