summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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