From 920c0cc68b18dc09a6029f72c2cb013339c6c75d Mon Sep 17 00:00:00 2001 From: Ypnose Date: Mon, 29 Jul 2013 20:03:22 +0200 Subject: [PATCH 1/3] New package: cntlm-0.92.3 --- srcpkgs/cntlm/files/cntlm.service | 11 ++++++++ .../cntlm/patches/configure-makefile.patch | 22 +++++++++++++++ srcpkgs/cntlm/template | 28 +++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 srcpkgs/cntlm/files/cntlm.service create mode 100644 srcpkgs/cntlm/patches/configure-makefile.patch create mode 100644 srcpkgs/cntlm/template diff --git a/srcpkgs/cntlm/files/cntlm.service b/srcpkgs/cntlm/files/cntlm.service new file mode 100644 index 00000000000..dcefce60fec --- /dev/null +++ b/srcpkgs/cntlm/files/cntlm.service @@ -0,0 +1,11 @@ +[Unit] +Description=Cntlm Proxy Server +After=network.target + +[Service] +Type=forking +ExecStart=/usr/bin/cntlm -P /run/cntlm.pid +PIDFile=/run/cntlm.pid + +[Install] +WantedBy=multi-user.target diff --git a/srcpkgs/cntlm/patches/configure-makefile.patch b/srcpkgs/cntlm/patches/configure-makefile.patch new file mode 100644 index 00000000000..e2ccd5d2b97 --- /dev/null +++ b/srcpkgs/cntlm/patches/configure-makefile.patch @@ -0,0 +1,22 @@ +Avoids wrong Makefile symlinks (for example Makefile.arm-linux-gnueabihf) and missing CC to compile tiny executables in ./config (cross-compile). +--- configure 2010-05-07 10:12:26.000000000 +0200 ++++ configure 2013-07-29 19:40:09.650716890 +0200 +@@ -10,17 +10,7 @@ + # This can be disabled if neccessary. + # + +-CCS="xlc_r gcc" +- +-# +-# Look for supported compilers +-# +-for c in $CCS; do +- if CCPATH=`which $c 2>&1` && [ -z "${CCPATH%%/*}" ]; then +- CC="$c" +- break +- fi +-done ++CC=gcc + + # + # Make a link to a proper Makefile.* diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template new file mode 100644 index 00000000000..83ac2eac4d1 --- /dev/null +++ b/srcpkgs/cntlm/template @@ -0,0 +1,28 @@ +# Template file for 'cntlm' +pkgname=cntlm +version=0.92.3 +revision=1 +build_style=gnu-configure +makedepends="which" +short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy" +maintainer="Ypnose " +license="GPL-2" +homepage="http://cntlm.sourceforge.net/" +distfiles="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname%20$version/$pkgname-$version.tar.gz" +checksum=9c3ad10924d43f7248df9ecd33cbc033afbd7ea8d9545de0d68a2782fed76298 + +do_build() { + sed -i 's|/sbin|/bin|' Makefile + make CC=$CC ${makejobs} +} + +post_install() { + vinstall ${FILESDIR}/cntlm.service 644 usr/lib/systemd/system +} + +cntlm_package() { + conf_files="/etc/cntlm.conf" + pkg_install() { + vmove all + } +} From ec11e47057f3c3c83d4d4cf35c90dd426f205bb3 Mon Sep 17 00:00:00 2001 From: Ypnose Date: Mon, 29 Jul 2013 20:36:32 +0200 Subject: [PATCH 2/3] cntlm: changed makedepends to hostmakedepends --- srcpkgs/cntlm/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/cntlm/template b/srcpkgs/cntlm/template index 83ac2eac4d1..e1c21341d77 100644 --- a/srcpkgs/cntlm/template +++ b/srcpkgs/cntlm/template @@ -3,7 +3,7 @@ pkgname=cntlm version=0.92.3 revision=1 build_style=gnu-configure -makedepends="which" +hostmakedepends="which" short_desc="NTLM / NTLM Session Response / NTLMv2 authenticating HTTP proxy" maintainer="Ypnose " license="GPL-2" From d4311ddbf53d1112ff44039bc9c750d85595f63f Mon Sep 17 00:00:00 2001 From: Ypnose Date: Mon, 29 Jul 2013 20:49:04 +0200 Subject: [PATCH 3/3] cntlm: removed patch (hostmakedepends fixed issue) --- .../cntlm/patches/configure-makefile.patch | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 srcpkgs/cntlm/patches/configure-makefile.patch diff --git a/srcpkgs/cntlm/patches/configure-makefile.patch b/srcpkgs/cntlm/patches/configure-makefile.patch deleted file mode 100644 index e2ccd5d2b97..00000000000 --- a/srcpkgs/cntlm/patches/configure-makefile.patch +++ /dev/null @@ -1,22 +0,0 @@ -Avoids wrong Makefile symlinks (for example Makefile.arm-linux-gnueabihf) and missing CC to compile tiny executables in ./config (cross-compile). ---- configure 2010-05-07 10:12:26.000000000 +0200 -+++ configure 2013-07-29 19:40:09.650716890 +0200 -@@ -10,17 +10,7 @@ - # This can be disabled if neccessary. - # - --CCS="xlc_r gcc" -- --# --# Look for supported compilers --# --for c in $CCS; do -- if CCPATH=`which $c 2>&1` && [ -z "${CCPATH%%/*}" ]; then -- CC="$c" -- break -- fi --done -+CC=gcc - - # - # Make a link to a proper Makefile.*