wok-next rev 20425

Add netselect
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 13 06:00:55 2018 +0200 (2018-01-13)
parents 52ab08658b11
children a4b4c8029351
files netselect/description.txt netselect/receipt netselect/stuff/patches/netselect-0.4.patch netselect/stuff/patches/series
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netselect/description.txt	Sat Jan 13 06:00:55 2018 +0200
     1.3 @@ -0,0 +1,4 @@
     1.4 +This is **netselect**, an ultrafast intelligent parallelizing binary-search
     1.5 +implementation of `ping`. You give it a (possibly very long) list of servers,
     1.6 +and it chooses the fastest/closest one automatically. It's good for finding the
     1.7 +fastest mirror, the least laggy IRC server, or the best Squid neighbour.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/netselect/receipt	Sat Jan 13 06:00:55 2018 +0200
     2.3 @@ -0,0 +1,22 @@
     2.4 +# SliTaz package receipt v2.
     2.5 +
     2.6 +PACKAGE="netselect"
     2.7 +VERSION="0.4"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="Choose the fastest server automatically"
    2.10 +MAINTAINER="al.bobylev@gmail.com"
    2.11 +LICENSE="BSD"
    2.12 +WEB_SITE="https://github.com/apenwarr/netselect"
    2.13 +
    2.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.15 +WGET_URL="https://github.com/apenwarr/netselect/archive/$TARBALL"
    2.16 +
    2.17 +compile_rules() {
    2.18 +	make && make install &&
    2.19 +	# weird but `install -m 4755 ...` in Makefile didn't work
    2.20 +	chmod u+s $install/usr/bin/netselect
    2.21 +}
    2.22 +
    2.23 +genpkg_rules() {
    2.24 +	copy netselect
    2.25 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/netselect/stuff/patches/netselect-0.4.patch	Sat Jan 13 06:00:55 2018 +0200
     3.3 @@ -0,0 +1,31 @@
     3.4 +--- a/Makefile
     3.5 ++++ b/Makefile
     3.6 +@@ -1,6 +1,6 @@
     3.7 +-PREFIX = /usr/local
     3.8 ++PREFIX = /usr
     3.9 + BINDEST = ${PREFIX}/bin
    3.10 +-MANDEST = ${PREFIX}/man/man1
    3.11 ++MANDEST = ${PREFIX}/share/man/man1
    3.12 + 
    3.13 + CC = gcc
    3.14 + CFLAGS = -O2 -Wall -I. -g
    3.15 +@@ -29,13 +29,13 @@
    3.16 + 	chown root netselect && chmod u+s netselect
    3.17 + endif
    3.18 + 	
    3.19 +-	-install -d ${BINDEST}
    3.20 +-	-install -d ${MANDEST}
    3.21 ++	-install -d ${DESTDIR}${BINDEST}
    3.22 ++	-install -d ${DESTDIR}${MANDEST}
    3.23 + 	install -o root -g root -m 4755 \
    3.24 +-		netselect${BINSUFFIX} ${BINDEST}
    3.25 +-	install -o root -g root -m 0755 netselect-apt ${BINDEST}
    3.26 +-	install -o root -g root -m 0644 netselect.1 ${MANDEST}
    3.27 +-	install -o root -g root -m 0644 netselect-apt.1 ${MANDEST}
    3.28 ++		netselect${BINSUFFIX} ${DESTDIR}${BINDEST}
    3.29 ++	install -o root -g root -m 0755 netselect-apt ${DESTDIR}${BINDEST}
    3.30 ++	install -o root -g root -m 0644 netselect.1 ${DESTDIR}${MANDEST}
    3.31 ++	install -o root -g root -m 0644 netselect-apt.1 ${DESTDIR}${MANDEST}
    3.32 + 
    3.33 + 	
    3.34 + uninstall:
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/netselect/stuff/patches/series	Sat Jan 13 06:00:55 2018 +0200
     4.3 @@ -0,0 +1,1 @@
     4.4 +netselect-0.4.patch