summaryrefslogtreecommitdiff
path: root/system/nvi
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2020-06-12 23:45:08 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2020-06-12 23:45:08 +0000
commit3d6323a05f1465d6845e258d7c4efa841d0b42e7 (patch)
treefe3b91496145c4375c0e8ba4bc779c412b496d0a /system/nvi
parent9e4610f3f6ee6c60d3ce10f3b9e97abb22290fc4 (diff)
parentabf398c74f2fd97ffc0f69ea51ec7ccfb10f43d6 (diff)
downloadpackages-3d6323a05f1465d6845e258d7c4efa841d0b42e7.tar.gz
packages-3d6323a05f1465d6845e258d7c4efa841d0b42e7.tar.bz2
packages-3d6323a05f1465d6845e258d7c4efa841d0b42e7.tar.xz
packages-3d6323a05f1465d6845e258d7c4efa841d0b42e7.zip
Merge branch 'debian-nvi' into 'master'
[RFC] system/nvi: [CVE] switch upstream to Debian (#140) See merge request adelie/packages!414
Diffstat (limited to 'system/nvi')
-rw-r--r--system/nvi/APKBUILD17
1 files changed, 14 insertions, 3 deletions
diff --git a/system/nvi/APKBUILD b/system/nvi/APKBUILD
index c0daf1a1e..a148971ea 100644
--- a/system/nvi/APKBUILD
+++ b/system/nvi/APKBUILD
@@ -2,7 +2,8 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=nvi
pkgver=1.81.6
-pkgrel=0
+_debver=15
+pkgrel=1
pkgdesc="Berkeley text editor"
url="https://sites.google.com/a/bostic.com/keithbostic/vi/"
arch="all"
@@ -11,12 +12,21 @@ license="BSD-4-Clause-UC"
depends=""
makedepends="db-dev ncurses-dev"
subpackages="$pkgname-doc"
-source="https://fossies.org/linux/privat/old/nvi-$pkgver.tar.gz
+source="http://deb.debian.org/debian/pool/main/n/nvi/nvi_$pkgver.orig.tar.gz
+ http://deb.debian.org/debian/pool/main/n/nvi/nvi_$pkgver-$_debver.debian.tar.xz
build-fix.patch
"
+# secfixes:
+# 1.81.6-r1:
+# - CVE-2001-1562
+
prepare() {
default_prepare
+ while read -r i; do
+ msg "$i"
+ patch -p1 -i "../debian/patches/$i"
+ done < ../debian/patches/series
cd "$builddir"/dist
chmod u+w config.sub
@@ -49,5 +59,6 @@ package() {
mv "$pkgdir"/usr/share/man/man1/view.1 "$pkgdir"/usr/share/man/man1/view.nvi.1
}
-sha512sums="1be798daf0cd05010ddaf0aa0510dc799708fd79d4b243e2700adff18e931ddd9d11621796fa8086088c3e93ba20f15ab86783732665169c52b73eaf587ff0b3 nvi-1.81.6.tar.gz
+sha512sums="1be798daf0cd05010ddaf0aa0510dc799708fd79d4b243e2700adff18e931ddd9d11621796fa8086088c3e93ba20f15ab86783732665169c52b73eaf587ff0b3 nvi_1.81.6.orig.tar.gz
+7756ca0ba9503516fcbf1a5fe51465bebf74bf107e040cea80de0dd501854fe0f25d67ddbd4142e58057ad015be12f8b711ef861fd6ad3f317bc619327579513 nvi_1.81.6-15.debian.tar.xz
b84cfb83ea5ed15f5c7d9e608771a2248531be388fa19340e90074d37e10f6f75c8b965a40f5288275973f23ed6fda54aa4ef990b43d4828d174b66fd3ced1e9 build-fix.patch"