aboutsummaryrefslogtreecommitdiffstats
path: root/main/mosh
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-04-25 14:19:21 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2014-04-25 14:19:21 +0000
commit89074e1e33ba713bea7b858fa96168a5cca589d6 (patch)
tree52c0f1275c50b8d19186f51aaaa4df499220b404 /main/mosh
parent137560ac0ca5d097eb2cd79d9df21ea8853beae7 (diff)
downloadaports-89074e1e33ba713bea7b858fa96168a5cca589d6.tar.bz2
aports-89074e1e33ba713bea7b858fa96168a5cca589d6.tar.xz
main/aports: move to main and split server and client
Diffstat (limited to 'main/mosh')
-rw-r--r--main/mosh/APKBUILD66
-rw-r--r--main/mosh/disable-utf8-check.patch16
2 files changed, 82 insertions, 0 deletions
diff --git a/main/mosh/APKBUILD b/main/mosh/APKBUILD
new file mode 100644
index 0000000000..5da8587c3f
--- /dev/null
+++ b/main/mosh/APKBUILD
@@ -0,0 +1,66 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=mosh
+pkgver=1.2.4
+pkgrel=3
+pkgdesc="Mobile shell (mosh) surviving disconnects with local echo and line editing"
+url="http://mosh.mit.edu"
+arch="noarch"
+license="GPL3+"
+depends="$pkgname-client $pkgname-server"
+makedepends="ncurses-dev zlib-dev openssl-dev perl-dev perl-io-tty protobuf-dev"
+subpackages="$pkgname-doc $pkgname-client $pkgname-server"
+source="http://$pkgname.mit.edu/$pkgname-$pkgver.tar.gz
+ disable-utf8-check.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+server() {
+ arch="all"
+ replaces="mosh"
+ pkgdesc="Mosh server"
+ depends=
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/mosh-server \
+ "$subpkgdir"/usr/bin/ || return 1
+}
+
+client() {
+ arch="all"
+ replaces="mosh"
+ pkgdesc="Mosh client"
+ depends="openssh-client perl-io-tty"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/mosh-client \
+ "$subpkgdir"/usr/bin/ || return 1
+}
+
+md5sums="c2d918f4d91fdc32546e2e089f9281b2 mosh-1.2.4.tar.gz
+f9e6a14dc7a300d95625265ab5e847d7 disable-utf8-check.patch"
+sha256sums="e74d0d323226046e402dd469a176075fc2013b69b0e67cea49762c957175df46 mosh-1.2.4.tar.gz
+60416de55be97a3c80d3b89e44b8602a8b4dcca6de8e70cb15d2c96e30a7de42 disable-utf8-check.patch"
+sha512sums="f7505faffdc8da734179b37339b554f83cbf5450b251cd2aa50d63cd6e4cbefa0da17a1c1b2a61858735ac9e5cee5841ed20e81e244380f5f9a02af1b87199cc mosh-1.2.4.tar.gz
+3c3b60b9aa837d76e53855907c59c3b1648e3a2e166b3ec902aec117e4e56d850553a089401a3bb9901412c125d30d4dac76d204721a17286a0ddc922508f6fc disable-utf8-check.patch"
diff --git a/main/mosh/disable-utf8-check.patch b/main/mosh/disable-utf8-check.patch
new file mode 100644
index 0000000000..3d8716aa15
--- /dev/null
+++ b/main/mosh/disable-utf8-check.patch
@@ -0,0 +1,16 @@
+--- a/src/util/locale_utils.cc
++++ b/src/util/locale_utils.cc
+@@ -86,10 +86,10 @@ const char *locale_charset( void )
+
+ bool is_utf8_locale( void ) {
+ /* Verify locale calls for UTF-8 */
+- if ( strcmp( locale_charset(), "UTF-8" ) != 0 &&
+- strcmp( locale_charset(), "utf-8" ) != 0 ) {
+- return 0;
+- }
++ //if ( strcmp( locale_charset(), "UTF-8" ) != 0 &&
++ // strcmp( locale_charset(), "utf-8" ) != 0 ) {
++ // return 0;
++ //}
+ return 1;
+ }