diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-01-06 13:44:08 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-01-06 13:46:43 +0000 |
commit | cb11b51277a9c3247e032b7e823150e59318f691 (patch) | |
tree | 5044464dacac734520bbcaf55c947a6ac7b0cdae | |
parent | 1677b3850f361b22a7abde8cbd245d240cf885fb (diff) | |
download | alpine_aports-cb11b51277a9c3247e032b7e823150e59318f691.tar.bz2 alpine_aports-cb11b51277a9c3247e032b7e823150e59318f691.tar.xz alpine_aports-cb11b51277a9c3247e032b7e823150e59318f691.zip |
main/alpine-conf: use vi as default editor
fixes #496
-rw-r--r-- | main/alpine-conf/APKBUILD | 10 | ||||
-rw-r--r-- | main/alpine-conf/editor.patch | 27 |
2 files changed, 34 insertions, 3 deletions
diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD index a32c86e434..ab17d1e55b 100644 --- a/main/alpine-conf/APKBUILD +++ b/main/alpine-conf/APKBUILD | |||
@@ -1,11 +1,14 @@ | |||
1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> | 1 | # Maintainer: Natanael Copa <ncopa@alpinelinux.org> |
2 | pkgname=alpine-conf | 2 | pkgname=alpine-conf |
3 | pkgver=2.5.4 | 3 | pkgver=2.5.4 |
4 | pkgrel=0 | 4 | pkgrel=1 |
5 | pkgdesc="Alpine configuration management scripts" | 5 | pkgdesc="Alpine configuration management scripts" |
6 | url=http://git.alpinelinux.org/cgit/$pkgname | 6 | url=http://git.alpinelinux.org/cgit/$pkgname |
7 | depends="openrc" | 7 | depends="openrc" |
8 | source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2" | 8 | source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 |
9 | editor.patch | ||
10 | " | ||
11 | arch="noarch" | ||
9 | license="GPL-2" | 12 | license="GPL-2" |
10 | 13 | ||
11 | _builddir="$srcdir"/$pkgname-$pkgver | 14 | _builddir="$srcdir"/$pkgname-$pkgver |
@@ -33,4 +36,5 @@ package() { | |||
33 | ln -s lbu "$pkgdir"/sbin/lbu_$i | 36 | ln -s lbu "$pkgdir"/sbin/lbu_$i |
34 | done | 37 | done |
35 | } | 38 | } |
36 | md5sums="91a2b8a150917cc06f6c9ec839b70bb0 alpine-conf-2.5.4.tar.bz2" | 39 | md5sums="91a2b8a150917cc06f6c9ec839b70bb0 alpine-conf-2.5.4.tar.bz2 |
40 | c6f425ae21ff983f94b64eef8c236b22 editor.patch" | ||
diff --git a/main/alpine-conf/editor.patch b/main/alpine-conf/editor.patch new file mode 100644 index 0000000000..bec421e5fa --- /dev/null +++ b/main/alpine-conf/editor.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | commit ca0e10950a5db60121ac741f0bad28af9bb504b9 | ||
2 | Author: Natanael Copa <ncopa@alpinelinux.org> | ||
3 | Date: Tue Dec 28 13:27:55 2010 +0000 | ||
4 | |||
5 | setup-interfaces: use vi as default editor | ||
6 | |||
7 | since nano is not shipped with mini iso. | ||
8 | |||
9 | diff --git a/setup-interfaces.in b/setup-interfaces.in | ||
10 | index aad042d..b96ee58 100755 | ||
11 | --- a/setup-interfaces.in | ||
12 | +++ b/setup-interfaces.in | ||
13 | @@ -141,12 +141,11 @@ while [ "$answer" != "yes" ] && [ "$answer" != "no" ] ; do | ||
14 | done | ||
15 | |||
16 | if [ "$answer" = "yes" ]; then | ||
17 | - [ -z "$EDITOR" ] && EDITOR=nano | ||
18 | - case $EDITOR in | ||
19 | + case "$EDITOR" in | ||
20 | nano) pkg_inst nano;; | ||
21 | vim) pkg_inst vim;; | ||
22 | esac | ||
23 | - $EDITOR interfaces | ||
24 | + ${EDITOR:-vi} interfaces | ||
25 | fi | ||
26 | |||
27 | mkdir -p $ROOT/etc/network | ||