From fa8637266d490e569fbd4807d82e9142d5b75fd0 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 6 Jan 2011 13:44:08 +0000 Subject: main/alpine-conf: use vi as default editor ref #496 --- main/alpine-conf/APKBUILD | 8 +++++--- main/alpine-conf/editor.patch | 27 +++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 main/alpine-conf/editor.patch (limited to 'main/alpine-conf') diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD index 8a8c3a55b..778a9ba69 100644 --- a/main/alpine-conf/APKBUILD +++ b/main/alpine-conf/APKBUILD @@ -1,14 +1,15 @@ # Maintainer: Natanael Copa pkgname=alpine-conf pkgver=2.5.4 -pkgrel=1 +pkgrel=2 pkgdesc="Alpine configuration management scripts" url=http://git.alpinelinux.org/cgit/$pkgname depends="openrc" source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch + editor.patch " -arch="x86 x86_64" +arch="noarch" license="GPL-2" _builddir="$srcdir"/$pkgname-$pkgver @@ -37,4 +38,5 @@ package() { done } md5sums="91a2b8a150917cc06f6c9ec839b70bb0 alpine-conf-2.5.4.tar.bz2 -9245a4bc53b24584d43b3a3f1556c500 0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch" +9245a4bc53b24584d43b3a3f1556c500 0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch +c6f425ae21ff983f94b64eef8c236b22 editor.patch" diff --git a/main/alpine-conf/editor.patch b/main/alpine-conf/editor.patch new file mode 100644 index 000000000..bec421e5f --- /dev/null +++ b/main/alpine-conf/editor.patch @@ -0,0 +1,27 @@ +commit ca0e10950a5db60121ac741f0bad28af9bb504b9 +Author: Natanael Copa +Date: Tue Dec 28 13:27:55 2010 +0000 + + setup-interfaces: use vi as default editor + + since nano is not shipped with mini iso. + +diff --git a/setup-interfaces.in b/setup-interfaces.in +index aad042d..b96ee58 100755 +--- a/setup-interfaces.in ++++ b/setup-interfaces.in +@@ -141,12 +141,11 @@ while [ "$answer" != "yes" ] && [ "$answer" != "no" ] ; do + done + + if [ "$answer" = "yes" ]; then +- [ -z "$EDITOR" ] && EDITOR=nano +- case $EDITOR in ++ case "$EDITOR" in + nano) pkg_inst nano;; + vim) pkg_inst vim;; + esac +- $EDITOR interfaces ++ ${EDITOR:-vi} interfaces + fi + + mkdir -p $ROOT/etc/network -- cgit v1.2.3