summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-23 22:54:10 +0000
committerJay Freeman <saurik@saurik.com>2008-02-23 22:54:10 +0000
commit5b225e7e2e5f164ea01dad426bc5be6ab7af2168 (patch)
treea3412b79d9ff2e3e5f96ffb0cfe6fb7ac66787e8
parent3836a71b84c27cffe96bb5d46694dd0a7904a506 (diff)
Added EDITOR support to nano, and made visudo honor it.
git-svn-id: http://svn.telesphoreo.org/trunk@93 514c082c-b64e-11dc-b46d-3d985efe055d
-rw-r--r--data/nano/make.sh6
-rwxr-xr-xdata/nano/nano.sh1
-rw-r--r--data/sudo/make.sh2
3 files changed, 6 insertions, 3 deletions
diff --git a/data/nano/make.sh b/data/nano/make.sh
index 4b04980d0..cfdb36162 100644
--- a/data/nano/make.sh
+++ b/data/nano/make.sh
@@ -1,5 +1,7 @@
-tar -zxvf "${PKG_DATA}/nano-2.0.7.tar.gz"
-cd nano-2.0.7
+pkg:extract
+cd *
pkg:configure
make
pkg:install
+pkg: mkdir -p /etc/profile.d
+pkg: cp -a %/nano.sh /etc/profile.d
diff --git a/data/nano/nano.sh b/data/nano/nano.sh
new file mode 100755
index 000000000..9e0db0f05
--- /dev/null
+++ b/data/nano/nano.sh
@@ -0,0 +1 @@
+export EDITOR=nano
diff --git a/data/sudo/make.sh b/data/sudo/make.sh
index 11bc08fce..bd48d8d9e 100644
--- a/data/sudo/make.sh
+++ b/data/sudo/make.sh
@@ -1,6 +1,6 @@
pkg:extract
cd *
pkg:patch
-pkg:configure sudo_cv_uid_t_len=10 sudo_cv_type_long_is_quad=no --without-pam
+pkg:configure sudo_cv_uid_t_len=10 sudo_cv_type_long_is_quad=no --without-pam --with-env-editor
make
pkg:install