summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 19:37:34 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-26 19:37:34 -0500
commit51ddb5d260f0900fd522c8823cf5bf68df6f934d (patch)
treeeeeef5a610aaf1a9006e28765760888efd185baa /system
parent560fb0c0ef4e612ec8bc9cbb5e5b76bed0e1e5f3 (diff)
downloadpackages-51ddb5d260f0900fd522c8823cf5bf68df6f934d.tar.gz
packages-51ddb5d260f0900fd522c8823cf5bf68df6f934d.tar.bz2
packages-51ddb5d260f0900fd522c8823cf5bf68df6f934d.tar.xz
packages-51ddb5d260f0900fd522c8823cf5bf68df6f934d.zip
system/cvs: add for LSB
Diffstat (limited to 'system')
-rw-r--r--system/cvs/APKBUILD39
-rw-r--r--system/cvs/cvs-musl.patch27
2 files changed, 66 insertions, 0 deletions
diff --git a/system/cvs/APKBUILD b/system/cvs/APKBUILD
new file mode 100644
index 000000000..bbf6fe4e9
--- /dev/null
+++ b/system/cvs/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=cvs
+pkgver=1.11.23
+pkgrel=1
+pkgdesc="Concurrent Versions System"
+url="http://www.nongnu.org/cvs/"
+arch="all"
+options="!check" # "Note that the test can take an hour or more to run"
+license="GPL-2.0+"
+depends=""
+makedepends="zlib-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://ftp.gnu.org/non-gnu/cvs/source/stable/$pkgver/$pkgname-$pkgver.tar.gz
+ cvs-musl.patch
+ "
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --with-external-zlib \
+ --with-tmpdir=/tmp
+ make
+}
+
+package() {
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
+}
+
+sha512sums="e486df1d2aaf13605b9abc8ea5e8e2261dd015483cef82a9489919646f0d5d52a7bf4385f4fdb5f845a9c2287184153a0d456510089f1e2609957ba48ad9f96a cvs-1.11.23.tar.gz
+7de04d5ec797430f8405b00e271d9edb5dffa3be855fc1e1dc35b134d981418c969486da668a78e1da88a4dba57952bfa14ffafbe3ff3ffc081de9cc908cf245 cvs-musl.patch"
diff --git a/system/cvs/cvs-musl.patch b/system/cvs/cvs-musl.patch
new file mode 100644
index 000000000..313377dbd
--- /dev/null
+++ b/system/cvs/cvs-musl.patch
@@ -0,0 +1,27 @@
+--- cvs-1.11.23.org/lib/getline.h 2013-09-16 18:28:13.026099577 +0000
++++ cvs-1.11.23/lib/getline.h 2013-09-16 18:44:33.356064387 +0000
+@@ -12,8 +12,6 @@
+ #define GETLINE_NO_LIMIT -1
+
+ int
+- getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
+-int
+ getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
+ int limit));
+ int
+--- cvs-1.11.23.org/lib/getline.c 2013-09-16 18:28:13.021099577 +0000
++++ cvs-1.11.23/lib/getline.c 2013-09-16 18:45:14.463062911 +0000
+@@ -154,12 +154,7 @@
+ return ret;
+ }
+
+-int
+-getline (lineptr, n, stream)
+- char **lineptr;
+- size_t *n;
+- FILE *stream;
+-{
++ssize_t getline(char ** lineptr, size_t * n, FILE *stream) {
+ return getstr (lineptr, n, stream, '\n', 0, GETLINE_NO_LIMIT);
+ }
+