summaryrefslogtreecommitdiff
path: root/data/nano
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 /data/nano
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
Diffstat (limited to 'data/nano')
-rw-r--r--data/nano/make.sh6
-rwxr-xr-xdata/nano/nano.sh1
2 files changed, 5 insertions, 2 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