X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from st11p00mm-asmtp001.mac.com (st11p00mm-asmtpout001.mac.com [17.172.81.0]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id A3A78DC01CB for ; Thu, 26 Mar 2015 18:46:05 +0000 (UTC) Received: from st.ilet.to (weisshorn.alpinelinux.uk [31.193.133.175]) by st11p00mm-asmtp001.mac.com (Oracle Communications Messaging Server 7.0.5.35.0 64bit (built Dec 4 2014)) with ESMTPSA id <0NLU0008Z1GQVU20@st11p00mm-asmtp001.mac.com> for alpine-devel@lists.alpinelinux.org; Thu, 26 Mar 2015 18:46:04 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.13.68,1.0.33,0.0.0000 definitions=2015-03-26_04:2015-03-26,2015-03-26,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=2 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1503260175 Date: Thu, 26 Mar 2015 18:46:02 +0000 (GMT) From: ScrumpyJack X-X-Sender: nicholas@st.ilet.to To: Alpine Devel List Subject: [alpine-devel] [PATCH] testing/tsocks new aports Message-id: User-Agent: Alpine 2.20 (LNX 67 2015-01-07) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII A transparent SOCKS proxying library http://tsocks.sourceforge.net/ --- testing/tsocks/APKBUILD | 50 +++++++++++++++++++++++++++++ testing/tsocks/configure.patch | 71 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 testing/tsocks/APKBUILD create mode 100644 testing/tsocks/configure.patch diff --git a/testing/tsocks/APKBUILD b/testing/tsocks/APKBUILD new file mode 100644 index 0000000..c91482b --- /dev/null +++ b/testing/tsocks/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: ScrumpyJack +# Maintainer: +pkgname=tsocks +pkgver=1.8_beta5 +_ver=${pkgver/_beta/beta} +pkgrel=0 +pkgdesc="A transparent SOCKS proxying library" +url="http://tsocks.sourceforge.net/" +arch="all" +license="GPL2" +depends="" +depends_dev="" +makedepends="" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${_ver}.tar.gz + configure.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 \ + --mandir=/usr/share/man \ + --libdir=/usr/lib \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="${pkgdir}" install || return 1 +} + +md5sums="51caefd77e5d440d0bbd6443db4fc0f8 tsocks-1.8beta5.tar.gz +644111485855c4d436fe89b9de9426d6 configure.patch" +sha256sums="849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347 tsocks-1.8beta5.tar.gz +264628c26991c8c380dd6b2e0ced1cacfd52d33743477dac245360ef730474c4 configure.patch" +sha512sums="b41636ea6b77abf0d1e3cda7bbca4e7ee96f3cdb1843f3a2c530650931e5567f67921de67b28ba9bab0f51df39770a3f7fb458cf7ac78aad7aa861923df2c4a9 tsocks-1.8beta5.tar.gz +919479e359cafe4b331f5e5b058e0f07d1e6a37aa614891f9b16b4ea12a2358f8f42bb75c8cf9ebbecb223f88b1326e35f490c166247bd00d58e1eee57955800 configure.patch" diff --git a/testing/tsocks/configure.patch b/testing/tsocks/configure.patch new file mode 100644 index 0000000..e33485e --- /dev/null +++ b/testing/tsocks/configure.patch @@ -0,0 +1,71 @@ +*** tsocks-1.8/configure Mon Jul 15 22:51:08 2002 +--- tsocks-1.8/configure.modified Thu Mar 26 18:34:09 2015 +*************** +*** 1299,1314 **** + fi + + +! ac_safe=`echo "sys/poll.h" | sed 'y%./+-%__p_%'` +! echo $ac_n "checking for sys/poll.h""... $ac_c" 1>&6 +! echo "configure:1305: checking for sys/poll.h" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" + { (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +--- 1299,1314 ---- + fi + + +! ac_safe=`echo "poll.h" | sed 'y%./+-%__p_%'` +! echo $ac_n "checking for poll.h""... $ac_c" 1>&6 +! echo "configure:1305: checking for poll.h" >&5 + if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then + echo $ac_n "(cached) $ac_c" 1>&6 + else + cat > conftest.$ac_ext < + EOF + ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" + { (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +*************** +*** 1330,1336 **** + : + else + echo "$ac_t""no" 1>&6 +! { echo "configure: error: "sys/poll.h not found"" 1>&2; exit 1; } + fi + + +--- 1330,1336 ---- + : + else + echo "$ac_t""no" 1>&6 +! { echo "configure: error: "poll.h not found"" 1>&2; exit 1; } + fi + + +*************** +*** 2235,2241 **** + #line 2236 "configure" + #include "confdefs.h" + +! #include + int poll($testproto); + + int main() { +--- 2235,2241 ---- + #line 2236 "configure" + #include "confdefs.h" + +! #include + int poll($testproto); + + int main() { -- 2.3.4 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---