diff options
author | Michael Haubenwallner <haubi@gentoo.org> | 2012-10-02 13:16:42 +0000 |
---|---|---|
committer | Michael Haubenwallner <haubi@gentoo.org> | 2012-10-02 13:16:42 +0000 |
commit | 7a5f71ed904f2cae9e7432b5a055374470337aa2 (patch) | |
tree | d017109bd0481146a40456037daf6b649aa8f0c9 /net-proxy/cntlm | |
parent | stable arm, bug #436436 (diff) | |
download | historical-7a5f71ed904f2cae9e7432b5a055374470337aa2.tar.gz historical-7a5f71ed904f2cae9e7432b5a055374470337aa2.tar.bz2 historical-7a5f71ed904f2cae9e7432b5a055374470337aa2.zip |
Revbump. Respect CC/CFLAGS/LDFLAGS, build verbose, bug#334647.
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'net-proxy/cntlm')
-rw-r--r-- | net-proxy/cntlm/ChangeLog | 10 | ||||
-rw-r--r-- | net-proxy/cntlm/Manifest | 11 | ||||
-rw-r--r-- | net-proxy/cntlm/cntlm-0.92.3.ebuild | 53 | ||||
-rw-r--r-- | net-proxy/cntlm/files/cntlm-0.92.3-buildsystem.patch | 140 |
4 files changed, 208 insertions, 6 deletions
diff --git a/net-proxy/cntlm/ChangeLog b/net-proxy/cntlm/ChangeLog index 80888381b5c1..6c4f0c4c9be0 100644 --- a/net-proxy/cntlm/ChangeLog +++ b/net-proxy/cntlm/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-proxy/cntlm -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-proxy/cntlm/ChangeLog,v 1.2 2011/11/07 07:29:31 mduft Exp $ +# 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 $ + +*cntlm-0.92.3 (02 Oct 2012) + + 02 Oct 2012; Michael Haubenwallner <haubi@gentoo.org> +cntlm-0.92.3.ebuild, + +files/cntlm-0.92.3-buildsystem.patch: + Revbump. Respect CC/CFLAGS/LDFLAGS, build verbose, bug#334647. *cntlm-0.35.1-r2 (07 Nov 2011) diff --git a/net-proxy/cntlm/Manifest b/net-proxy/cntlm/Manifest index f900beac3e3d..0e371c8006b6 100644 --- a/net-proxy/cntlm/Manifest +++ b/net-proxy/cntlm/Manifest @@ -1,17 +1,20 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX cntlm-0.92.3-buildsystem.patch 4661 RMD160 c9f91e81b53ecc6609dd131457057d66a3184af1 SHA1 409b69b2d1bbb1bd2fe892477e917867d3e26668 SHA256 8e2139f9553c631df8ddd0389afaaf70dbeb7dd0903f9c67671483c3b7c32087 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 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 -MISC ChangeLog 580 RMD160 766ad519154cbb52d36e79a180073c434a4a2021 SHA1 fe61781f02f6ba0922514ce419f13b7317ce8531 SHA256 95c3f3da7ff8bf156022b8eb3ff8131160cf502598203ce8647a07dd501fdd83 +EBUILD cntlm-0.92.3.ebuild 1132 RMD160 3cc139e3b604967e78648e6f07a31db94a526ce5 SHA1 3d536af5be44b7587db0c79e92c6c8e9c8f0a1c0 SHA256 625bd284ab7af905dbee35bd3397f2c15d6ffa9d4459f4f46ca890217fd91971 +MISC ChangeLog 794 RMD160 f4b5ce7fb5b678b7bbad4cccf0d7008499762742 SHA1 e39af0af808068a58bd59fc2e10eb0e7df601aeb SHA256 6fbf81c8641fbaed700eed8fc3ab9211d1cb111fc64d5b193af8487b09c3858d MISC metadata.xml 439 RMD160 b04b5061a7ae7031b2f154ea8cd70baeff7b0306 SHA1 0268c1813a57ad32559ca381bb152ad0664f22af SHA256 4a7a82df26f5aec08e2591785e61b0191f6816fc30b98e5b4c06c67c1f0fa815 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk63iOQACgkQaBSIl5HlrrIVtwCdEmD4kv/mit1SoP60TPU0N3Qy -/HkAn2IqEGdmLzQc4CGqpZbA4wj8+u9z -=KTmu +iEYEARECAAYFAlBq6T8ACgkQLc0TWKYwzLikzwCgoSm0a+BxpN5QRgnurclm+Lfy +o7sAnAlxnsC+EUkvPiIv8klxlnW+ie1d +=vGXm -----END PGP SIGNATURE----- diff --git a/net-proxy/cntlm/cntlm-0.92.3.ebuild b/net-proxy/cntlm/cntlm-0.92.3.ebuild new file mode 100644 index 000000000000..d4af4b867904 --- /dev/null +++ b/net-proxy/cntlm/cntlm-0.92.3.ebuild @@ -0,0 +1,53 @@ +# 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.92.3.ebuild,v 1.1 2012/10/02 13:16:42 haubi Exp $ + +EAPI=2 + +inherit eutils toolchain-funcs + +DESCRIPTION="Cntlm is an NTLM/NTLMv2 authenticating HTTP proxy" +HOMEPAGE="http://cntlm.sourceforge.net/" +SRC_URI="mirror://sourceforge/cntlm/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +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.92.3-buildsystem.patch b/net-proxy/cntlm/files/cntlm-0.92.3-buildsystem.patch new file mode 100644 index 000000000000..608ddfecf464 --- /dev/null +++ b/net-proxy/cntlm/files/cntlm-0.92.3-buildsystem.patch @@ -0,0 +1,140 @@ +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:05:58.924914577 +0200 ++++ Makefile 2012-10-02 15:10:09.644014197 +0200 +@@ -15,10 +15,10 @@ + NAME=cntlm + CC=gcc + VER=`cat VERSION` +-CFLAGS+=$(FLAGS) -std=c99 -Wall -Wno-unused-but-set-variable -pedantic -O3 -D__BSD_VISIBLE -D_ALL_SOURCE -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112 -D_ISOC99_SOURCE -D_REENTRANT -D_BSD_SOURCE -DVERSION=\"`cat VERSION`\" ++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=\"`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= + + ifeq ($(findstring CYGWIN,$(OS)),) + 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 +@@ -26,21 +26,28 @@ + 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 win/resources.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 + + .c.o: +- @echo "Compiling $<" +- @$(CC) $(CFLAGS) -c -o $@ $< ++ $(VE) "Compiling $<" ++ $(VV) $(CC) $(CFLAGS) -c -o $@ $< + + install: $(NAME) + # Special handling for install(1) +@@ -123,17 +130,17 @@ + @echo + + win/resources.o: win/resources.rc +- @echo Adding EXE resources +- @windres $^ -o $@ ++ $(VE) Adding EXE resources ++ $(VV) windres $^ -o $@ + + uninstall: + rm -f $(BINDIR)/$(NAME) $(MANDIR)/man1/$(NAME).1 2>/dev/null || true + + clean: +- @rm -f *.o cntlm cntlm.exe configure-stamp build-stamp config/config.h 2>/dev/null +- @rm -f win/*.exe win/*.dll win/*.iss win/*.pdf win/cntlm.ini win/license.txt win/resouces.o 2>/dev/null +- @rm -f config/endian config/gethostname config/strdup config/socklen_t config/*.exe +- @if [ -h Makefile ]; then rm -f Makefile; mv Makefile.gcc Makefile; fi ++ $(VV) rm -f *.o cntlm cntlm.exe configure-stamp build-stamp config/config.h 2>/dev/null ++ $(VV) rm -f win/*.exe win/*.dll win/*.iss win/*.pdf win/cntlm.ini win/license.txt win/resouces.o 2>/dev/null ++ $(VV) rm -f config/endian config/gethostname config/strdup config/socklen_t config/*.exe ++ $(VV) if [ -h Makefile ]; then rm -f Makefile; mv Makefile.gcc Makefile; fi + + distclean: clean + if [ `id -u` = 0 ]; then \ +@@ -143,4 +150,4 @@ + fakeroot debian/rules clean; \ + fakeroot rpm/rules clean; \ + fi +- @rm -f *.exe *.deb *.rpm *.tgz *.tar.gz *.tar.bz2 tags ctags pid 2>/dev/null ++ $(VV) rm -f *.exe *.deb *.rpm *.tgz *.tar.gz *.tar.bz2 tags ctags pid 2>/dev/null |