summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <haubi@gentoo.org>2012-10-02 13:47:12 +0000
committerMichael Haubenwallner <haubi@gentoo.org>2012-10-02 13:47:12 +0000
commit787e2f4d39ce002c5f47006e5c7c7f0c0bf7fe90 (patch)
tree138d4bc79af0573349573ddc90f1f303f1b40e77 /net-proxy/cntlm
parenthttp://my.opera.com/desktopteam/blog/2012/10/02/opera-12-10-beta (diff)
downloadhistorical-787e2f4d39ce002c5f47006e5c7c7f0c0bf7fe90.tar.gz
historical-787e2f4d39ce002c5f47006e5c7c7f0c0bf7fe90.tar.bz2
historical-787e2f4d39ce002c5f47006e5c7c7f0c0bf7fe90.zip
Revbump beta version, bug#403375.
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'net-proxy/cntlm')
-rw-r--r--net-proxy/cntlm/ChangeLog8
-rw-r--r--net-proxy/cntlm/Manifest11
-rw-r--r--net-proxy/cntlm/cntlm-0.93_beta5.ebuild55
-rw-r--r--net-proxy/cntlm/files/cntlm-0.93_beta5-buildsystem.patch195
4 files changed, 264 insertions, 5 deletions
diff --git a/net-proxy/cntlm/ChangeLog b/net-proxy/cntlm/ChangeLog
index 6c4f0c4c9be0..010a9dfacc0b 100644
--- a/net-proxy/cntlm/ChangeLog
+++ b/net-proxy/cntlm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-proxy/cntlm
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/ChangeLog,v 1.3 2012/10/02 13:16:42 haubi Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/ChangeLog,v 1.4 2012/10/02 13:47:12 haubi Exp $
+
+*cntlm-0.93_beta5 (02 Oct 2012)
+
+ 02 Oct 2012; Michael Haubenwallner <haubi@gentoo.org>
+ +cntlm-0.93_beta5.ebuild, +files/cntlm-0.93_beta5-buildsystem.patch:
+ Revbump beta version, bug#403375.
*cntlm-0.92.3 (02 Oct 2012)
diff --git a/net-proxy/cntlm/Manifest b/net-proxy/cntlm/Manifest
index 0e371c8006b6..726e8c782fa5 100644
--- a/net-proxy/cntlm/Manifest
+++ b/net-proxy/cntlm/Manifest
@@ -2,19 +2,22 @@
Hash: SHA1
AUX cntlm-0.92.3-buildsystem.patch 4661 RMD160 c9f91e81b53ecc6609dd131457057d66a3184af1 SHA1 409b69b2d1bbb1bd2fe892477e917867d3e26668 SHA256 8e2139f9553c631df8ddd0389afaaf70dbeb7dd0903f9c67671483c3b7c32087
+AUX cntlm-0.93_beta5-buildsystem.patch 6380 RMD160 7ec7269cbde67958c58ed6581d2affda16070fa3 SHA1 d0e629429301e225b620c43c2cac87bf2855a8ec SHA256 988092a399ef78a775c2b1c02bdd49fe1efb3f1c13ba6b07b92102145051410d
AUX cntlm.confd 150 RMD160 d77ff0b0c6f319cfe3fb09ccef7f0376c9693134 SHA1 537b40e1290abe461c932ae97aaa99f834f4f216 SHA256 5a5e6b44ea784bf667308d79f7df3b8519f7a5741a6939c810e0a5eecbbe2afe
AUX cntlm.initd 563 RMD160 7c2960e60717e9d8bc8a2015d4ae75bba3010944 SHA1 37ad9f5e459c3ef7494e4f9f69f4b4e41a89d5d3 SHA256 fc36641def33a160e59e58f200978340a5155159ff262467aa786a3df86896ce
DIST cntlm-0.35.1.tar.gz 74188 RMD160 65a2b97a6ec8340b41acbd0f29dc1096148a02ac SHA1 4bf9f75b0f5fdb4469b5e81013c40ac166c9d235 SHA256 7b3fb7184e72cc3f1743bb8e503a5305e96458bc630a7e1ebfc9f3c07ffa6c5e
DIST cntlm-0.92.3.tar.bz2 78198 RMD160 6655738ca5f93d15f14681d3c14bbe8ec8e6a543 SHA1 9b68a687218dd202c04b678ba8c559edba6f6f7b SHA256 7b603d6200ab0b26034e9e200fab949cc0a8e5fdd4df2c80b8fc5b1c37e7b930
+DIST cntlm-0.93beta5.tar.gz 718018 RMD160 b977264f04fddb7d9551cc79a5cda8f5e9622ae1 SHA1 cd0300b977824fee225504a860b958b83cd11640 SHA256 97d0d7162e1c782a74958af3b7f48f61ae72b49d2f608d21155f804583a6a754
EBUILD cntlm-0.35.1-r1.ebuild 1026 RMD160 bd9b9c891c9da5490081614a86047349ca94a1f5 SHA1 66ca52f8d805597227a1130bf8eead944e07844e SHA256 d9a614a7cacd48c6a767931fc66821984de2535814e2a4288ea4c024c4796594
EBUILD cntlm-0.35.1-r2.ebuild 1026 RMD160 c24ff611745d999c73c9fe74929ed8df97d44cae SHA1 686058779444526615fa45bbdff08bf47f3998dc SHA256 4ea3eafd5f338556d5d00d23a46d5ecb4390d90f5ebf9a0dad36d003bd06518a
EBUILD cntlm-0.92.3.ebuild 1132 RMD160 3cc139e3b604967e78648e6f07a31db94a526ce5 SHA1 3d536af5be44b7587db0c79e92c6c8e9c8f0a1c0 SHA256 625bd284ab7af905dbee35bd3397f2c15d6ffa9d4459f4f46ca890217fd91971
-MISC ChangeLog 794 RMD160 f4b5ce7fb5b678b7bbad4cccf0d7008499762742 SHA1 e39af0af808068a58bd59fc2e10eb0e7df601aeb SHA256 6fbf81c8641fbaed700eed8fc3ab9211d1cb111fc64d5b193af8487b09c3858d
+EBUILD cntlm-0.93_beta5.ebuild 1157 RMD160 64a6422c0c7ba7804d3efd8c4140b80ac2d936af SHA1 c4b3f63ed8180da32bde2f53e94129c8440be411 SHA256 9dab3225262530610302bac7e96e650e336ca32a53454b6a251bab368efeaa2b
+MISC ChangeLog 991 RMD160 158dd7a88c765f300aab6cb300cefe268cb162e6 SHA1 e03b55ed6e2c70522133554f682afb8e5774e6a6 SHA256 20e94019fb352b339bcf02d9df7227d53c3f6f94c67707720e0d06cc059179f0
MISC metadata.xml 439 RMD160 b04b5061a7ae7031b2f154ea8cd70baeff7b0306 SHA1 0268c1813a57ad32559ca381bb152ad0664f22af SHA256 4a7a82df26f5aec08e2591785e61b0191f6816fc30b98e5b4c06c67c1f0fa815
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
-iEYEARECAAYFAlBq6T8ACgkQLc0TWKYwzLikzwCgoSm0a+BxpN5QRgnurclm+Lfy
-o7sAnAlxnsC+EUkvPiIv8klxlnW+ie1d
-=vGXm
+iEYEARECAAYFAlBq8GQACgkQLc0TWKYwzLgnuwCfWXXHv73ABB+RgyP0tRDI5flZ
+di4AoJwuySricz4uN/iZAUFS/7crnis3
+=ZyT1
-----END PGP SIGNATURE-----
diff --git a/net-proxy/cntlm/cntlm-0.93_beta5.ebuild b/net-proxy/cntlm/cntlm-0.93_beta5.ebuild
new file mode 100644
index 000000000000..ed45a4e49469
--- /dev/null
+++ b/net-proxy/cntlm/cntlm-0.93_beta5.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/cntlm-0.93_beta5.ebuild,v 1.1 2012/10/02 13:47:12 haubi Exp $
+
+EAPI=2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy"
+HOMEPAGE="http://cntlm.sourceforge.net/"
+SRC_URI="http://ftp.awk.cz/pub/${P//_}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${P//_}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-buildsystem.patch # 334647
+}
+
+src_configure() {
+ tc-export CC
+
+ econf || die "econf failed"
+
+ # Replace default config file path in Makefile
+ sed -i -e 's~SYSCONFDIR=/usr/local/etc~SYSCONFDIR=/etc~' \
+ "${S}"/Makefile || die "sed failed"
+}
+
+src_compile() {
+ emake V=1 || die "emake failed"
+}
+
+src_install() {
+ dobin cntlm
+ dodoc COPYRIGHT README VERSION doc/cntlm.conf
+ doman doc/cntlm.1
+ newinitd "${FILESDIR}"/cntlm.initd cntlm
+ newconfd "${FILESDIR}"/cntlm.confd cntlm
+ insinto /etc
+ insopts -m0600
+ doins doc/cntlm.conf
+}
+
+pkg_postinst() {
+ enewgroup cntlm
+ enewuser cntlm -1 -1 -1 cntlm
+}
diff --git a/net-proxy/cntlm/files/cntlm-0.93_beta5-buildsystem.patch b/net-proxy/cntlm/files/cntlm-0.93_beta5-buildsystem.patch
new file mode 100644
index 000000000000..d553e8661484
--- /dev/null
+++ b/net-proxy/cntlm/files/cntlm-0.93_beta5-buildsystem.patch
@@ -0,0 +1,195 @@
+Gentoo Bug#334647:
+Respect CC, CFLAGS, LDFLAGS (with gcc).
+Support verbose building via 'make V=1'.
+--- configure.orig 2012-10-02 14:01:48.735669564 +0200
++++ configure 2012-10-02 14:23:01.224271511 +0200
+@@ -10,7 +10,7 @@
+ # This can be disabled if neccessary.
+ #
+
+-CCS="xlc_r gcc"
++CCS=${CC-"xlc_r gcc"}
+
+ #
+ # Look for supported compilers
+@@ -31,15 +31,21 @@
+ else
+ echo "Using $CCPATH to compile Cntlm"
+ [ -h Makefile ] && rm -f Makefile 2>/dev/null
+- case "$CC" in
+- gcc)
++ if $CC -v >/dev/null 2>&1; then
+ # default Makefile is for GCC; just revert back to
+ # GCC if Makefile is linked to other compiler version
+ if [ ! -f Makefile ]; then
+ mv Makefile.gcc Makefile
+ fi
+- ;;
+- *)
++ : ${CFLAGS=-O3}
++ : ${LDFLAGS=}
++ CFLAGS="$CFLAGS -std=c99 -Wall -Wno-unused-but-set-variable -pedantic -pthread"
++ LDFLAGS="$LDFLAGS -pthread"
++ sed -e "s~^CFLAGS[ :]*=~CFLAGS=$CFLAGS ~" \
++ -e "s~^LDFLAGS[ :]*=.*~LDFLAGS=$LDFLAGS~" \
++ -e "s~^CC[ :]*=.*~CC=$CC~" \
++ -i Makefile
++ else
+ # backup default GCC Makefile and create a link to other
+ if [ -f Makefile ]; then
+ mv Makefile Makefile.gcc
+@@ -47,8 +53,7 @@
+
+ EXT=`echo "$CC" | sed 's/_.*//'`
+ ln -s Makefile.$EXT Makefile
+- ;;
+- esac
++ fi
+ fi
+
+ STAMP=configure-stamp
+@@ -62,7 +67,7 @@
+ for i in $TESTS; do
+ printf "Checking $i... "
+ printf "#define config_$i " >> $CONFIG
+- OUT=`$CC -D_POSIX_C_SOURCE=199506L -D_ISOC99_SOURCE -D_REENTRANT -o config/$i config/$i.c 2>&1`
++ OUT=`$CC $CFLAGS $LDFLAGS -D_POSIX_C_SOURCE=199506L -D_ISOC99_SOURCE -D_REENTRANT -o config/$i config/$i.c 2>&1`
+ rc=$?
+
+ if [ $rc -ne 0 ]; then # -o -n "$OUT" ]; then
+--- Makefile.orig 2012-10-02 15:31:03.986270993 +0200
++++ Makefile 2012-10-02 15:40:10.277689068 +0200
+@@ -16,14 +16,13 @@
+ CC := gcc
+ VER := $(shell cat VERSION)
+ OS := $(shell uname -s)
+-OSLDFLAGS := $(shell [ $(OS) = "SunOS" ] && echo "-lrt -lsocket -lnsl")
+-LDFLAGS := -lpthread $(OSLDFLAGS)
++LIBS := $(shell [ $(OS) = "SunOS" ] && echo "-lrt -lsocket -lnsl")
++LDFLAGS := -pthread
+ CYGWIN_REQS := cygwin1.dll cyggcc_s-1.dll cygstdc++-6.dll cygrunsrv.exe
+
++CFLAGS=-D__BSD_VISIBLE -D_ALL_SOURCE -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112 -D_ISOC99_SOURCE -D_REENTRANT -D_BSD_SOURCE -DVERSION=\"'$(VER)'\"
+ ifeq ($(DEBUG),1)
+- CFLAGS += -g -std=c99 -Wall -pedantic -D__BSD_VISIBLE -D_ALL_SOURCE -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112 -D_ISOC99_SOURCE -D_REENTRANT -D_BSD_SOURCE -DVERSION=\"'$(VER)'\"
+-else
+- CFLAGS += -O3 -std=c99 -D__BSD_VISIBLE -D_ALL_SOURCE -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112 -D_ISOC99_SOURCE -D_REENTRANT -D_BSD_SOURCE -DVERSION=\"'$(VER)'\"
++ CFLAGS += -g -O0
+ endif
+
+ ifneq ($(findstring CYGWIN,$(OS)),)
+@@ -32,28 +31,35 @@
+ OBJS=utils.o ntlm.o xcrypt.o config.o socket.o acl.o auth.o http.o forward.o direct.o scanner.o pages.o main.o
+ endif
+
++VE_=@echo
++VE_1=@:
++VE=$(VE_$(V))
++VV_=@
++VV_1=
++VV=$(VV_$(V))
++
+ $(NAME): configure-stamp $(OBJS)
+- @echo "Linking $@"
+- @$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS)
++ $(VE) "Linking $@"
++ $(VV) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
+
+ main.o: main.c
+- @echo "Compiling $<"
+- @if [ -z "$(SYSCONFDIR)" ]; then \
++ $(VE) "Compiling $<"
++ $(VV) if [ -z "$(SYSCONFDIR)" ]; then \
+ $(CC) $(CFLAGS) -c main.c -o $@; \
+ else \
+ $(CC) $(CFLAGS) -DSYSCONFDIR=\"$(SYSCONFDIR)\" -c main.c -o $@; \
+ fi
+
+ %.o: %.c
+- @echo "Compiling $<"
+- @$(CC) $(CFLAGS) -c -o $@ $<
++ $(VE) "Compiling $<"
++ $(VV) $(CC) $(CFLAGS) -c -o $@ $<
+
+ configure-stamp:
+ ./configure
+
+ win/resources.o: win/resources.rc
+- @echo Adding EXE resources
+- @windres $^ -o $@
++ $(VE) Adding EXE resources
++ $(VV) windres $^ -o $@
+
+ install: $(NAME)
+ # Special handling for install(1)
+@@ -115,31 +121,31 @@
+
+ $(NAME)-$(VER)-win32.exe:
+ @echo - preparing binaries for GUI installer
+- @cp $(patsubst %, /bin/%, $(CYGWIN_REQS)) win/
++ $(VV) cp $(patsubst %, /bin/%, $(CYGWIN_REQS)) win/
+ ifeq ($(DEBUG),1)
+- @cp -p cntlm.exe win/
++ $(VV) cp -p cntlm.exe win/
+ else
+- @strip -o win/cntlm.exe cntlm.exe
++ $(VV) strip -o win/cntlm.exe cntlm.exe
+ endif
+ @echo - generating GUI installer
+- @win/Inno5/ISCC.exe /Q win/setup.iss #/Q win/setup.iss
++ $(VV) win/Inno5/ISCC.exe /Q win/setup.iss #/Q win/setup.iss
+
+ $(NAME)-$(VER)-win32.zip:
+ @echo - creating ZIP release for manual installs
+- @ln -s win $(NAME)-$(VER)
++ $(VV) ln -s win $(NAME)-$(VER)
+ zip -9 $(NAME)-$(VER)-win32.zip $(patsubst %, $(NAME)-$(VER)/%, $(CYGWIN_REQS) cntlm.ini LICENSE.txt cntlm_manual.pdf)
+- @rm -f $(NAME)-$(VER)
++ $(VV) rm -f $(NAME)-$(VER)
+
+ win/cntlm.ini: doc/cntlm.conf
+- @cat doc/cntlm.conf | unix2dos > win/cntlm.ini
++ $(VV) cat doc/cntlm.conf | unix2dos > win/cntlm.ini
+
+ win/LICENSE.txt: COPYRIGHT LICENSE
+- @cat COPYRIGHT LICENSE | unix2dos > win/LICENSE.txt
++ $(VV) cat COPYRIGHT LICENSE | unix2dos > win/LICENSE.txt
+
+ win/cntlm_manual.pdf: doc/cntlm.1
+ @echo - generating PDF manual
+- @rm -f win/cntlm_manual.pdf
+- @groff -t -e -mandoc -Tps doc/cntlm.1 | ps2pdf - win/cntlm_manual.pdf
++ $(VV) rm -f win/cntlm_manual.pdf
++ $(VV) groff -t -e -mandoc -Tps doc/cntlm.1 | ps2pdf - win/cntlm_manual.pdf
+
+ win/setup.iss: win/setup.iss.in
+ ifeq ($(findstring CYGWIN,$(OS)),)
+@@ -148,16 +154,16 @@
+ @echo
+ @exit 1
+ endif
+- @sed "s/\$$VERSION/$(VER)/g" $^ > $@
++ $(VV) sed "s/\$$VERSION/$(VER)/g" $^ > $@
+
+ uninstall:
+ rm -f $(BINDIR)/$(NAME) $(MANDIR)/man1/$(NAME).1 2>/dev/null || true
+
+ clean:
+- @rm -f config/endian config/gethostname config/strdup config/socklen_t config/*.exe
+- @rm -f *.o cntlm cntlm.exe configure-stamp build-stamp config/config.h
++ $(VV) rm -f config/endian config/gethostname config/strdup config/socklen_t config/*.exe
++ $(VV) rm -f *.o cntlm cntlm.exe configure-stamp build-stamp config/config.h
+ rm -f $(patsubst %, win/%, $(CYGWIN_REQS) cntlm.exe cntlm.ini LICENSE.txt setup.iss cntlm_manual.pdf)
+- @if [ -h Makefile ]; then rm -f Makefile; mv Makefile.gcc Makefile; fi
++ $(VV) if [ -h Makefile ]; then rm -f Makefile; mv Makefile.gcc Makefile; fi
+
+ distclean: clean
+ ifeq ($(findstring CYGWIN,$(OS)),)
+@@ -169,6 +175,6 @@
+ fakeroot rpm/rules clean; \
+ fi
+ endif
+- @rm -f *.exe *.deb *.rpm *.tgz *.tar.gz *.tar.bz2 *.zip *.exe tags ctags pid 2>/dev/null
++ $(VV) rm -f *.exe *.deb *.rpm *.tgz *.tar.gz *.tar.bz2 *.zip *.exe tags ctags pid 2>/dev/null
+
+ .PHONY: all install tgz tbz2 deb rpm win uninstall clean distclean