[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: b4b0aaa72c3a9563736ae657f51e30b5f6584c81 Author: Eli Schwartz gmail com> AuthorDate: Sun Mar 17 04:06:59 2024 + Commit: Sam James gentoo org> CommitDate: Sun Mar 17 05:28:44 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4b0aaa7 www-servers/gatling: drop old Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> www-servers/gatling/gatling-0.16-r3.ebuild | 63 - www-servers/gatling/gatling-0.16-r4.ebuild | 64 -- 2 files changed, 127 deletions(-) diff --git a/www-servers/gatling/gatling-0.16-r3.ebuild b/www-servers/gatling/gatling-0.16-r3.ebuild deleted file mode 100644 index 6070f0332438.. --- a/www-servers/gatling/gatling-0.16-r3.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit toolchain-funcs - -DESCRIPTION="High performance web server" -HOMEPAGE="https://www.fefe.de/gatling/; -SRC_URI="https://www.fefe.de/gatling/${P}.tar.xz; -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="ssl diet" -REQUIRED_USE="ssl? ( !diet )" - -DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] - virtual/libcrypt:= - diet? ( dev-libs/dietlibc ) - ssl? ( - dev-libs/openssl:0= - )" -RDEPEND="${DEPEND} - acct-group/gatling - acct-user/gatling - " - -PATCHES=( - "${FILESDIR}/${PN}-0.13-compile.patch" - "${FILESDIR}/${PN}-0.15-ar.patch" -) - -src_prepare() { - default - rm Makefile # leaves us with GNUmakefile -} - -src_compile() { - local DIET= - use diet && DIET='/usr/bin/diet' - - local targets='gatling' - use ssl && targets+=' tlsgatling' - - emake DIET="${DIET}" CC="$(tc-getCC)" \ - CFLAGS="${CFLAGS} -I${ESYSROOT}/usr/include/libowfat" \ - LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} -} - -src_install() { - doman gatling.1 - - newconfd "${FILESDIR}/gatling.confd" gatling - newinitd "${FILESDIR}/gatling.initd-3" gatling - dodoc README.{ftp,http} - - dobin gatling - use ssl && { - dodoc README.tls - dobin tlsgatling - } -} diff --git a/www-servers/gatling/gatling-0.16-r4.ebuild b/www-servers/gatling/gatling-0.16-r4.ebuild deleted file mode 100644 index 5562859bec4a.. --- a/www-servers/gatling/gatling-0.16-r4.ebuild +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit toolchain-funcs - -DESCRIPTION="High performance web server" -HOMEPAGE="https://www.fefe.de/gatling/; -SRC_URI="https://www.fefe.de/gatling/${P}.tar.xz; -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="ssl diet" -REQUIRED_USE="ssl? ( !diet )" - -DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] - virtual/libcrypt:= - diet? ( dev-libs/dietlibc ) - ssl? ( - dev-libs/openssl:0= - )" -RDEPEND="${DEPEND} - acct-group/gatling - acct-user/gatling - " - -PATCHES=( - "${FILESDIR}/${PN}-0.13-compile.patch" - "${FILESDIR}/${PN}-0.15-ar.patch" - "${FILESDIR}/${PN}-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch" -) - -src_prepare() { - default - rm Makefile # leaves us with GNUmakefile -} - -src_compile() { - local DIET= - use diet && DIET='/usr/bin/diet' - - local targets='gatling' - use ssl && targets+=' tlsgatling' - - emake DIET="${DIET}" CC="$(tc-getCC)" \ - CFLAGS="${CFLAGS} -I${ESYSROOT}/usr/include/libowfat" \ - LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} -} - -src_install() { - doman gatling.1 - - newconfd "${FILESDIR}/gatling.confd" gatling - newinitd "${FILESDIR}/gatling.initd-3" gatling - dodoc README.{ftp,http} - - dobin gatling - use ssl && { - dodoc README.tls - dobin tlsgatling - } -}
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: 9ed38b2181406a8baccc8af06c5462e3bc39c361 Author: Eli Schwartz gmail com> AuthorDate: Sun Mar 17 04:06:05 2024 + Commit: Sam James gentoo org> CommitDate: Sun Mar 17 05:28:43 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ed38b21 www-servers/gatling: update EAPI 7 -> 8 Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> www-servers/gatling/{gatling-0.16-r5.ebuild => gatling-0.16-r6.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www-servers/gatling/gatling-0.16-r5.ebuild b/www-servers/gatling/gatling-0.16-r6.ebuild similarity index 99% rename from www-servers/gatling/gatling-0.16-r5.ebuild rename to www-servers/gatling/gatling-0.16-r6.ebuild index fbdd4d3032e1..1116ae3dbd93 100644 --- a/www-servers/gatling/gatling-0.16-r5.ebuild +++ b/www-servers/gatling/gatling-0.16-r6.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="7" +EAPI="8" inherit flag-o-matic toolchain-funcs
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: 5474c37574505cb692d629cb2469f5256e7cbcd5 Author: Eli Schwartz gmail com> AuthorDate: Sun Mar 17 04:03:55 2024 + Commit: Sam James gentoo org> CommitDate: Sun Mar 17 05:28:42 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5474c375 www-servers/gatling: mark as LTO-unsafe Closes: https://bugs.gentoo.org/864133 Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> www-servers/gatling/gatling-0.16-r5.ebuild | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www-servers/gatling/gatling-0.16-r5.ebuild b/www-servers/gatling/gatling-0.16-r5.ebuild index 795c4d890c67..fbdd4d3032e1 100644 --- a/www-servers/gatling/gatling-0.16-r5.ebuild +++ b/www-servers/gatling/gatling-0.16-r5.ebuild @@ -3,7 +3,7 @@ EAPI="7" -inherit toolchain-funcs +inherit flag-o-matic toolchain-funcs DESCRIPTION="High performance web server" HOMEPAGE="https://www.fefe.de/gatling/; @@ -39,6 +39,12 @@ src_prepare() { } src_compile() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/864133 + # + # Last released in 2016, sources are in cvs so I cannot check for activity. + filter-lto + local DIET= use diet && DIET='/usr/bin/diet'
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: 34e6f15897ea966807a8ecd21a728ef0b887503d Author: Sebastian Pipping gentoo org> AuthorDate: Fri Mar 8 13:22:00 2024 + Commit: Sebastian Pipping gentoo org> CommitDate: Fri Mar 8 13:22:00 2024 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34e6f158 www-servers/gatling: Add missing dependency on sys-libs/zlib Closes: https://bugs.gentoo.org/914347 Signed-off-by: Sebastian Pipping gentoo.org> www-servers/gatling/gatling-0.16-r5.ebuild | 65 ++ 1 file changed, 65 insertions(+) diff --git a/www-servers/gatling/gatling-0.16-r5.ebuild b/www-servers/gatling/gatling-0.16-r5.ebuild new file mode 100644 index ..795c4d890c67 --- /dev/null +++ b/www-servers/gatling/gatling-0.16-r5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +DESCRIPTION="High performance web server" +HOMEPAGE="https://www.fefe.de/gatling/; +SRC_URI="https://www.fefe.de/gatling/${P}.tar.xz; +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="ssl diet" +REQUIRED_USE="ssl? ( !diet )" + +DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] + sys-libs/zlib + virtual/libcrypt:= + diet? ( dev-libs/dietlibc ) + ssl? ( + dev-libs/openssl:0= + )" +RDEPEND="${DEPEND} + acct-group/gatling + acct-user/gatling + " + +PATCHES=( + "${FILESDIR}/${PN}-0.13-compile.patch" + "${FILESDIR}/${PN}-0.15-ar.patch" + "${FILESDIR}/${PN}-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch" +) + +src_prepare() { + default + rm Makefile # leaves us with GNUmakefile +} + +src_compile() { + local DIET= + use diet && DIET='/usr/bin/diet' + + local targets='gatling' + use ssl && targets+=' tlsgatling' + + emake DIET="${DIET}" CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -I${ESYSROOT}/usr/include/libowfat" \ + LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} +} + +src_install() { + doman gatling.1 + + newconfd "${FILESDIR}/gatling.confd" gatling + newinitd "${FILESDIR}/gatling.initd-3" gatling + dodoc README.{ftp,http} + + dobin gatling + use ssl && { + dodoc README.tls + dobin tlsgatling + } +}
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/files/, www-servers/gatling/
commit: 81c8e794315833732c1e89eb18734b50b90c5276 Author: Arsen Arsenović aarsen me> AuthorDate: Sun Sep 18 19:09:13 2022 + Commit: Sam James gentoo org> CommitDate: Tue Sep 20 19:31:58 2022 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81c8e794 www-servers/gatling: add patches for Clang 16 Closes: https://bugs.gentoo.org/871495 Signed-off-by: Arsen Arsenović aarsen.me> Signed-off-by: Sam James gentoo.org> ...-0001-try-alloca-socket-fix-Wimplicit-int.patch | 41 ++ www-servers/gatling/gatling-0.16-r4.ebuild | 64 ++ 2 files changed, 105 insertions(+) diff --git a/www-servers/gatling/files/gatling-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch b/www-servers/gatling/files/gatling-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch new file mode 100644 index ..4b22b7a5c13d --- /dev/null +++ b/www-servers/gatling/files/gatling-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch @@ -0,0 +1,41 @@ +From d1a28da112988112a37feb9050733717bfc176df Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= +Date: Sun, 18 Sep 2022 19:48:16 +0200 +Subject: [PATCH] try{alloca,socket}: fix -Wimplicit-int + +This warning becomes fatal with Clang 16. +--- +https://bugs.gentoo.org/871495 + tryalloca.c | 2 +- + trysocket.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tryalloca.c b/tryalloca.c +index c8927ab..b6e4f71 100644 +--- a/tryalloca.c b/tryalloca.c +@@ -5,7 +5,7 @@ + #include + #endif + +-main() { ++int main() { + char* c=alloca(23); + return c!=NULL; + } +diff --git a/trysocket.c b/trysocket.c +index a01f395..381b794 100644 +--- a/trysocket.c b/trysocket.c +@@ -6,7 +6,7 @@ + #include + #endif + +-main() { ++int main() { + int fd=socket(PF_INET,SOCK_STREAM,IPPROTO_TCP); + return fd!=-1; + } +-- +2.35.1 + diff --git a/www-servers/gatling/gatling-0.16-r4.ebuild b/www-servers/gatling/gatling-0.16-r4.ebuild new file mode 100644 index ..5562859bec4a --- /dev/null +++ b/www-servers/gatling/gatling-0.16-r4.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit toolchain-funcs + +DESCRIPTION="High performance web server" +HOMEPAGE="https://www.fefe.de/gatling/; +SRC_URI="https://www.fefe.de/gatling/${P}.tar.xz; +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="ssl diet" +REQUIRED_USE="ssl? ( !diet )" + +DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] + virtual/libcrypt:= + diet? ( dev-libs/dietlibc ) + ssl? ( + dev-libs/openssl:0= + )" +RDEPEND="${DEPEND} + acct-group/gatling + acct-user/gatling + " + +PATCHES=( + "${FILESDIR}/${PN}-0.13-compile.patch" + "${FILESDIR}/${PN}-0.15-ar.patch" + "${FILESDIR}/${PN}-0.16-r4-0001-try-alloca-socket-fix-Wimplicit-int.patch" +) + +src_prepare() { + default + rm Makefile # leaves us with GNUmakefile +} + +src_compile() { + local DIET= + use diet && DIET='/usr/bin/diet' + + local targets='gatling' + use ssl && targets+=' tlsgatling' + + emake DIET="${DIET}" CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -I${ESYSROOT}/usr/include/libowfat" \ + LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} +} + +src_install() { + doman gatling.1 + + newconfd "${FILESDIR}/gatling.confd" gatling + newinitd "${FILESDIR}/gatling.initd-3" gatling + dodoc README.{ftp,http} + + dobin gatling + use ssl && { + dodoc README.tls + dobin tlsgatling + } +}
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: b962ed0777cfee10b3a3e6e875d313f4d0b301ab Author: Sam James gentoo org> AuthorDate: Thu Jun 24 23:20:09 2021 + Commit: Sam James gentoo org> CommitDate: Thu Jun 24 23:27:43 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b962ed07 www-servers/gatling: add dependency on virtual/libcrypt Needed for libxcrypt migration which is upcoming. Acked-by: David Seifert gentoo.org> Reported-by: Ionen Wolkens gentoo.org> Signed-off-by: Sam James gentoo.org> www-servers/gatling/{gatling-0.16-r2.ebuild => gatling-0.16-r3.ebuild} | 1 + 1 file changed, 1 insertion(+) diff --git a/www-servers/gatling/gatling-0.16-r2.ebuild b/www-servers/gatling/gatling-0.16-r3.ebuild similarity index 98% rename from www-servers/gatling/gatling-0.16-r2.ebuild rename to www-servers/gatling/gatling-0.16-r3.ebuild index 5dc968c933d..6070f033243 100644 --- a/www-servers/gatling/gatling-0.16-r2.ebuild +++ b/www-servers/gatling/gatling-0.16-r3.ebuild @@ -16,6 +16,7 @@ IUSE="ssl diet" REQUIRED_USE="ssl? ( !diet )" DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] + virtual/libcrypt:= diet? ( dev-libs/dietlibc ) ssl? ( dev-libs/openssl:0=
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: f561b635a8f39cacbd3ccea531e7ad8eba51e14c Author: Ionen Wolkens gentoo org> AuthorDate: Tue Jun 22 00:00:09 2021 + Commit: Sam James gentoo org> CommitDate: Tue Jun 22 18:19:00 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f561b635 www-servers/gatling: use binding := for dev-libs/openssl Needed for upcoming upgrade to OpenSSL 3.0.0 which has changed ABI. Acked-by: David Seifert gentoo.org> Signed-off-by: Ionen Wolkens gentoo.org> Signed-off-by: Sam James gentoo.org> www-servers/gatling/{gatling-0.16-r1.ebuild => gatling-0.16-r2.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www-servers/gatling/gatling-0.16-r1.ebuild b/www-servers/gatling/gatling-0.16-r2.ebuild similarity index 98% rename from www-servers/gatling/gatling-0.16-r1.ebuild rename to www-servers/gatling/gatling-0.16-r2.ebuild index ba75a8d4e97..5dc968c933d 100644 --- a/www-servers/gatling/gatling-0.16-r1.ebuild +++ b/www-servers/gatling/gatling-0.16-r2.ebuild @@ -18,7 +18,7 @@ REQUIRED_USE="ssl? ( !diet )" DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] diet? ( dev-libs/dietlibc ) ssl? ( - dev-libs/openssl:0 + dev-libs/openssl:0= )" RDEPEND="${DEPEND} acct-group/gatling
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: 037fc0eeb568b659c8eac6b3c8ebdd1bf854c9b6 Author: Mikle Kolyada gentoo org> AuthorDate: Sun May 2 20:26:11 2021 + Commit: Mikle Kolyada gentoo org> CommitDate: Sun May 2 20:26:37 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=037fc0ee www-servers/gatling: remove libressl support Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Mikle Kolyada gentoo.org> www-servers/gatling/gatling-0.16-r1.ebuild | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www-servers/gatling/gatling-0.16-r1.ebuild b/www-servers/gatling/gatling-0.16-r1.ebuild index 25265f0c79e..ba75a8d4e97 100644 --- a/www-servers/gatling/gatling-0.16-r1.ebuild +++ b/www-servers/gatling/gatling-0.16-r1.ebuild @@ -12,14 +12,13 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="libressl ssl diet" +IUSE="ssl diet" REQUIRED_USE="ssl? ( !diet )" DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] diet? ( dev-libs/dietlibc ) ssl? ( - !libressl? ( dev-libs/openssl:0 ) - libressl? ( dev-libs/libressl ) + dev-libs/openssl:0 )" RDEPEND="${DEPEND} acct-group/gatling
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: 9390033d504a9ad5cfecf92350f3119fa1044c89 Author: Sam James gentoo org> AuthorDate: Fri Apr 16 08:07:01 2021 + Commit: Sam James gentoo org> CommitDate: Fri Apr 16 11:22:52 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9390033d www-servers/gatling: eutils-- Signed-off-by: Sam James gentoo.org> www-servers/gatling/gatling-0.16-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www-servers/gatling/gatling-0.16-r1.ebuild b/www-servers/gatling/gatling-0.16-r1.ebuild index 828f977142d..25265f0c79e 100644 --- a/www-servers/gatling/gatling-0.16-r1.ebuild +++ b/www-servers/gatling/gatling-0.16-r1.ebuild @@ -3,7 +3,7 @@ EAPI="7" -inherit eutils toolchain-funcs +inherit toolchain-funcs DESCRIPTION="High performance web server" HOMEPAGE="https://www.fefe.de/gatling/;
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: cae07e89a6f75ec4c45803666e17ffabf0d24dc7 Author: Sam James gentoo org> AuthorDate: Sat Apr 10 06:04:56 2021 + Commit: Sam James gentoo org> CommitDate: Mon Apr 12 22:49:47 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cae07e89 www-servers/gatling: fix ROOT in src_compile (VariableScope) Signed-off-by: Sam James gentoo.org> www-servers/gatling/gatling-0.16-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www-servers/gatling/gatling-0.16-r1.ebuild b/www-servers/gatling/gatling-0.16-r1.ebuild index 6616e0b4eca..828f977142d 100644 --- a/www-servers/gatling/gatling-0.16-r1.ebuild +++ b/www-servers/gatling/gatling-0.16-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="7" @@ -44,7 +44,7 @@ src_compile() { use ssl && targets+=' tlsgatling' emake DIET="${DIET}" CC="$(tc-getCC)" \ - CFLAGS="${CFLAGS} -I${ROOT}/usr/include/libowfat" \ + CFLAGS="${CFLAGS} -I${ESYSROOT}/usr/include/libowfat" \ LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} }
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/, www-servers/gatling/files/
commit: 6bbbdac109fefb19b38123742c98ce8eee3411fe Author: Sebastian Pipping gentoo org> AuthorDate: Mon Dec 7 14:18:33 2020 + Commit: Sebastian Pipping gentoo org> CommitDate: Mon Dec 7 14:18:33 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bbbdac1 www-servers/gatling: Drop old versions causing DeprecatedEclass Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-3.0.0, Repoman-2.3.23 www-servers/gatling/Manifest | 1 - www-servers/gatling/files/gatling-0.15-gcc10.patch | 38 www-servers/gatling/gatling-0.15.ebuild| 67 -- www-servers/gatling/gatling-0.16.ebuild| 66 - 4 files changed, 172 deletions(-) diff --git a/www-servers/gatling/Manifest b/www-servers/gatling/Manifest index 59942cd426c..f422906b732 100644 --- a/www-servers/gatling/Manifest +++ b/www-servers/gatling/Manifest @@ -1,2 +1 @@ -DIST gatling-0.15.tar.xz 121804 BLAKE2B 7df5f6d4fc823e8a1252bacca2b57d0848dd3a920216d1d3185d5f471f786eee1eb36396114b367660ead816bd4ee6c734099bbb9bdb5ffbd5b70a59e0fb0667 SHA512 b76d220a0644f1e6e7ea966a4eff409964c564fc4a31c4efdb764e5f7b5857bc58c26bc31e860fe35df932cbd60fb2b0f4f21c75cb5aa56427e8a2a453684716 DIST gatling-0.16.tar.xz 126844 BLAKE2B 33dd2e93833b216ffadae4dbd5650af87b23ed5d62caf181d8005acb4dce889b86d1afb711676377ba2b7c4fe08b8f2350a32965cf6292a268281b28c4310c27 SHA512 9446ea0ae862509b1a892e5bdef14d3a2320c3c3e846362b4679c0834aa906ab5b16ef54e4a7c8e7ee839d30317436dd411e891e3105035a9ee31b0facc0b8c1 diff --git a/www-servers/gatling/files/gatling-0.15-gcc10.patch b/www-servers/gatling/files/gatling-0.15-gcc10.patch deleted file mode 100644 index 446ea5cffde..000 --- a/www-servers/gatling/files/gatling-0.15-gcc10.patch +++ /dev/null @@ -1,38 +0,0 @@ -From b815fc02179e8f25a6bea2bc1ee7306ffea37258 Mon Sep 17 00:00:00 2001 -From: Sebastian Pipping -Date: Thu, 26 Nov 2020 16:05:26 +0100 -Subject: [PATCH] Fix build with -fno-common or GCC 10 - - dirfd.c | 1 + - dirfd.h | 2 +- - 2 files changed, 2 insertions(+), 1 deletion(-) - -diff --git a/dirfd.c b/dirfd.c -index 6a0217e..792bd29 100644 a/dirfd.c -+++ b/dirfd.c -@@ -34,6 +34,7 @@ struct hashtable dc; - - #ifdef __linux__ - int rootwd; -+int ifd; - #endif - - /* initialize a hashtable as empty */ -diff --git a/dirfd.h b/dirfd.h -index cdfc4a3..a76c5d8 100644 a/dirfd.h -+++ b/dirfd.h -@@ -21,7 +21,7 @@ - * given dir, and it will return the fd or -1 on error. */ - - #ifdef __linux__ --int ifd; /* inotify fd */ -+extern int ifd; /* inotify fd */ - #endif - - struct dircacheentry { --- -2.27.0 - diff --git a/www-servers/gatling/gatling-0.15.ebuild b/www-servers/gatling/gatling-0.15.ebuild deleted file mode 100644 index c18fb7fe868..000 --- a/www-servers/gatling/gatling-0.15.ebuild +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit eutils toolchain-funcs user - -DESCRIPTION="High performance web server" -HOMEPAGE="https://www.fefe.de/gatling/; -SRC_URI="https://www.fefe.de/gatling/${P}.tar.xz; -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="libressl ssl diet" -REQUIRED_USE="ssl? ( !diet )" - -DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] - diet? ( dev-libs/dietlibc ) - ssl? ( - !libressl? ( dev-libs/openssl:0 ) - libressl? ( dev-libs/libressl ) - )" -RDEPEND="${DEPEND}" - -PATCHES=( - "${FILESDIR}/${PN}-0.13-compile.patch" - "${FILESDIR}/${P}-ar.patch" - "${FILESDIR}/${P}-gcc10.patch" -) - -src_prepare() { - default - rm Makefile # leaves us with GNUmakefile -} - -src_compile() { - local DIET= - use diet && DIET='/usr/bin/diet' - - local targets='gatling' - use ssl && targets+=' tlsgatling' - - emake DIET="${DIET}" CC="$(tc-getCC)" \ - CFLAGS="${CFLAGS} -I${ROOT}usr/include/libowfat" \ - LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} -} - -src_install() { - doman gatling.1 - - newconfd "${FILESDIR}/gatling.confd" gatling - newinitd "${FILESDIR}/gatling.initd-3" gatling - dodoc README.{ftp,http} - - dobin gatling - use ssl && { - dodoc README.tls - dobin tlsgatling - } -} - -pkg_setup() { - ebegin "Creating gatling user and group" - enewgroup gatling - enewuser ${PN} -1 -1 /var/www/localhost ${PN} -} diff --git a/www-servers/gatling/gatling-0.16.ebuild b/www-servers/gatling/gatling-0.16.ebuild deleted file mode 100644 index c1b0e8bf0ab..000 --- a/www-servers/gatling/gatling-0.16.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -inherit eutils toolchain-funcs user -
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: 98311870bd9a7e8649d46991460a8a77012ee613 Author: Sebastian Pipping gentoo org> AuthorDate: Sat Nov 28 20:42:50 2020 + Commit: Sebastian Pipping gentoo org> CommitDate: Sat Nov 28 20:44:52 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98311870 www-servers/gatling: 0.16 + EAPI 7 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-3.0.0, Repoman-2.3.23 www-servers/gatling/Manifest| 1 + www-servers/gatling/gatling-0.16.ebuild | 66 + 2 files changed, 67 insertions(+) diff --git a/www-servers/gatling/Manifest b/www-servers/gatling/Manifest index ea5623b0165..59942cd426c 100644 --- a/www-servers/gatling/Manifest +++ b/www-servers/gatling/Manifest @@ -1 +1,2 @@ DIST gatling-0.15.tar.xz 121804 BLAKE2B 7df5f6d4fc823e8a1252bacca2b57d0848dd3a920216d1d3185d5f471f786eee1eb36396114b367660ead816bd4ee6c734099bbb9bdb5ffbd5b70a59e0fb0667 SHA512 b76d220a0644f1e6e7ea966a4eff409964c564fc4a31c4efdb764e5f7b5857bc58c26bc31e860fe35df932cbd60fb2b0f4f21c75cb5aa56427e8a2a453684716 +DIST gatling-0.16.tar.xz 126844 BLAKE2B 33dd2e93833b216ffadae4dbd5650af87b23ed5d62caf181d8005acb4dce889b86d1afb711676377ba2b7c4fe08b8f2350a32965cf6292a268281b28c4310c27 SHA512 9446ea0ae862509b1a892e5bdef14d3a2320c3c3e846362b4679c0834aa906ab5b16ef54e4a7c8e7ee839d30317436dd411e891e3105035a9ee31b0facc0b8c1 diff --git a/www-servers/gatling/gatling-0.16.ebuild b/www-servers/gatling/gatling-0.16.ebuild new file mode 100644 index 000..c1b0e8bf0ab --- /dev/null +++ b/www-servers/gatling/gatling-0.16.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit eutils toolchain-funcs user + +DESCRIPTION="High performance web server" +HOMEPAGE="https://www.fefe.de/gatling/; +SRC_URI="https://www.fefe.de/gatling/${P}.tar.xz; +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="libressl ssl diet" +REQUIRED_USE="ssl? ( !diet )" + +DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] + diet? ( dev-libs/dietlibc ) + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + )" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${PN}-0.13-compile.patch" + "${FILESDIR}/${PN}-0.15-ar.patch" +) + +src_prepare() { + default + rm Makefile # leaves us with GNUmakefile +} + +src_compile() { + local DIET= + use diet && DIET='/usr/bin/diet' + + local targets='gatling' + use ssl && targets+=' tlsgatling' + + emake DIET="${DIET}" CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -I${ROOT}/usr/include/libowfat" \ + LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} +} + +src_install() { + doman gatling.1 + + newconfd "${FILESDIR}/gatling.confd" gatling + newinitd "${FILESDIR}/gatling.initd-3" gatling + dodoc README.{ftp,http} + + dobin gatling + use ssl && { + dodoc README.tls + dobin tlsgatling + } +} + +pkg_setup() { + ebegin "Creating gatling user and group" + enewgroup gatling + enewuser ${PN} -1 -1 /var/www/localhost ${PN} +}
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/, www-servers/gatling/files/
commit: e3576b0b403212275e8779457e127522b210da8c Author: Sebastian Pipping gentoo org> AuthorDate: Sat Nov 28 19:39:01 2020 + Commit: Sebastian Pipping gentoo org> CommitDate: Sat Nov 28 19:41:28 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3576b0b www-servers/gatling: Respect variable AR Closes: https://bugs.gentoo.org/756850 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-3.0.0, Repoman-2.3.23 www-servers/gatling/files/gatling-0.15-ar.patch | 30 + www-servers/gatling/gatling-0.15.ebuild | 1 + 2 files changed, 31 insertions(+) diff --git a/www-servers/gatling/files/gatling-0.15-ar.patch b/www-servers/gatling/files/gatling-0.15-ar.patch new file mode 100644 index 000..84b13293e42 --- /dev/null +++ b/www-servers/gatling/files/gatling-0.15-ar.patch @@ -0,0 +1,30 @@ +From 64933921d28aa96cbece18e43723117661a8056d Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping +Date: Sat, 28 Nov 2020 20:33:21 +0100 +Subject: [PATCH] GNUmakefile: Respect variable AR + +GNU make comes with AR predefined: +$ make -f <(echo $'.PHONY: all\nall:\n\t@echo "AR is \\"$(AR)\\"."') +AR is "ar". + +Original bug report at https://bugs.gentoo.org/756850 +--- + GNUmakefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/GNUmakefile b/GNUmakefile +index 6af7b35..e6b32fe 100644 +--- a/GNUmakefile b/GNUmakefile +@@ -195,7 +195,7 @@ dummy.c: + touch $@ + + libsocketkludge.a: libsocket libiconv dummy.o +- ar q $@ dummy.o ++ $(AR) q $@ dummy.o + -ranlib $@ + + LDLIBS+=`cat libsocket libiconv libcrypt` +-- +2.27.0 + diff --git a/www-servers/gatling/gatling-0.15.ebuild b/www-servers/gatling/gatling-0.15.ebuild index e59507c318f..c18fb7fe868 100644 --- a/www-servers/gatling/gatling-0.15.ebuild +++ b/www-servers/gatling/gatling-0.15.ebuild @@ -25,6 +25,7 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PN}-0.13-compile.patch" + "${FILESDIR}/${P}-ar.patch" "${FILESDIR}/${P}-gcc10.patch" )
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: f1e37cba1143f0404c2fa4af8dc729b299b886cc Author: Sebastian Pipping gentoo org> AuthorDate: Fri Nov 27 13:46:10 2020 + Commit: Sebastian Pipping gentoo org> CommitDate: Fri Nov 27 13:46:10 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1e37cba www-servers/gatling: Depend on dev-libs/libowfat with GCC 10 fix Bug: https://bugs.gentoo.org/756847 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-3.0.0, Repoman-2.3.23 www-servers/gatling/gatling-0.15.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www-servers/gatling/gatling-0.15.ebuild b/www-servers/gatling/gatling-0.15.ebuild index e206f26d046..e59507c318f 100644 --- a/www-servers/gatling/gatling-0.15.ebuild +++ b/www-servers/gatling/gatling-0.15.ebuild @@ -15,7 +15,7 @@ KEYWORDS="~amd64 ~x86" IUSE="libressl ssl diet" REQUIRED_USE="ssl? ( !diet )" -DEPEND=">=dev-libs/libowfat-0.25[diet=] +DEPEND=">=dev-libs/libowfat-0.32-r2[diet=] diet? ( dev-libs/dietlibc ) ssl? ( !libressl? ( dev-libs/openssl:0 )
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/files/, www-servers/gatling/
commit: c00abe05e686dff46288a9ae7c887d92b93c3cef Author: Sebastian Pipping gentoo org> AuthorDate: Thu Nov 26 15:10:25 2020 + Commit: Sebastian Pipping gentoo org> CommitDate: Thu Nov 26 15:13:14 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c00abe05 www-servers/gatling: Fix compile for GCC 10 Closes: https://bugs.gentoo.org/706396 Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-3.0.0, Repoman-2.3.23 www-servers/gatling/files/gatling-0.15-gcc10.patch | 38 ++ www-servers/gatling/gatling-0.15.ebuild| 3 +- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/www-servers/gatling/files/gatling-0.15-gcc10.patch b/www-servers/gatling/files/gatling-0.15-gcc10.patch new file mode 100644 index 000..446ea5cffde --- /dev/null +++ b/www-servers/gatling/files/gatling-0.15-gcc10.patch @@ -0,0 +1,38 @@ +From b815fc02179e8f25a6bea2bc1ee7306ffea37258 Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping +Date: Thu, 26 Nov 2020 16:05:26 +0100 +Subject: [PATCH] Fix build with -fno-common or GCC 10 + +--- + dirfd.c | 1 + + dirfd.h | 2 +- + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/dirfd.c b/dirfd.c +index 6a0217e..792bd29 100644 +--- a/dirfd.c b/dirfd.c +@@ -34,6 +34,7 @@ struct hashtable dc; + + #ifdef __linux__ + int rootwd; ++int ifd; + #endif + + /* initialize a hashtable as empty */ +diff --git a/dirfd.h b/dirfd.h +index cdfc4a3..a76c5d8 100644 +--- a/dirfd.h b/dirfd.h +@@ -21,7 +21,7 @@ + * given dir, and it will return the fd or -1 on error. */ + + #ifdef __linux__ +-int ifd; /* inotify fd */ ++extern int ifd; /* inotify fd */ + #endif + + struct dircacheentry { +-- +2.27.0 + diff --git a/www-servers/gatling/gatling-0.15.ebuild b/www-servers/gatling/gatling-0.15.ebuild index ba78c1bb2f6..e206f26d046 100644 --- a/www-servers/gatling/gatling-0.15.ebuild +++ b/www-servers/gatling/gatling-0.15.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI="6" @@ -25,6 +25,7 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PN}-0.13-compile.patch" + "${FILESDIR}/${P}-gcc10.patch" ) src_prepare() {
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/files/
commit: 83987709d1e866c6314eef26aff7e45fae6f921c Author: Michael Mair-Keimberger gmail com> AuthorDate: Fri Jan 10 08:46:28 2020 + Commit: Sebastian Pipping gentoo org> CommitDate: Sat Jan 18 19:55:10 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83987709 www-servers/gatling: remove unused files Closes: https://github.com/gentoo/gentoo/pull/14295 Signed-off-by: Michael Mair-Keimberger gmail.com> Signed-off-by: Sebastian Pipping gentoo.org> www-servers/gatling/files/gatling.initd | 63 --- www-servers/gatling/files/gatling.initd-2 | 63 --- 2 files changed, 126 deletions(-) diff --git a/www-servers/gatling/files/gatling.initd b/www-servers/gatling/files/gatling.initd deleted file mode 100644 index fadb1ce9d17..000 --- a/www-servers/gatling/files/gatling.initd +++ /dev/null @@ -1,63 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Gatling high performance web server init script" -opts="reload" - -depend() { - need net -} - -checkconfig() { - # Verify UID is valid for running process. - if [[ ! $(id ${GATLING_UID} 2>/dev/null) ]]; then - ewarn "User ${GATLING_UID} not found!" - return 1 - fi - - # Set gatling run opts - if yesno ${VHOST};then VHOST=-v;else VHOST=-V;fi - if yesno ${SSL};then SSL=-e;else SSL=-E;fi - if yesno ${DIR_INDEXING};then DIR_INDEXING=-d;else DIR_INDEXING=-D;fi - if yesno ${FTP}; then FTP=-f;else FTP=-F;fi - if yesno ${FTP_AUTH}; then FTP_AUTH=-l;else unset FTP_AUTH;fi - if yesno ${FTP_UP};then unset FTP_UP;else FTP_UP=-U;fi - yesno ${TRANS_PROXY} && TRANS_PROXY=-t -} - -start() { - checkconfig || return 1 - - ebegin "Starting gatling" - start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PID} \ ---name gatling --exec /usr/bin/gatling -- -T ${HTTP_TIMEOUT} -i ${IP} -p ${PORT} -P ${PREFETCH} \ -${VHOST} -c ${ROOTDIR} ${DIR_INDEXING} ${TRANS_PROXY} -u ${GATLING_UID} ${FTP} -T ${FTP_TIMEOUT} \ -${FTP_AUTH} ${FTP_UPLOADS} - eend $? -} - -stop() { - ebegin "Stopping gatling" - start-stop-daemon --quiet --stop --pidfile ${PID} - eend $? -} - -reload() { -if ! service_started "${SVCNAME}" ; then -eerror "${SVCNAME} isn't running" -return 1 -fi - - checkconfig || return 1 - - ebegin "Sending gatling the HUP signal" - start-stop-daemon --quiet --signal HUP --pidfile ${PID} - - ebegin "Restarting gatling server" -start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PID} \ ---name gatling --exec /usr/bin/gatling -- -T ${HTTP_TIMEOUT} -i ${IP} -p ${PORT} -P ${PREFETCH} \ -${VHOST} -c ${ROOTDIR} ${DIR_INDEXING} ${TRANS_PROXY} -u ${GATLING_UID} ${FTP} -T ${FTP_TIMEOUT} \ -${FTP_AUTH} ${FTP_UPLOADS} -eend $? -} diff --git a/www-servers/gatling/files/gatling.initd-2 b/www-servers/gatling/files/gatling.initd-2 deleted file mode 100644 index 77f436009b3..000 --- a/www-servers/gatling/files/gatling.initd-2 +++ /dev/null @@ -1,63 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Gatling high performance web server init script" -extra_started_commands="reload" - -depend() { - need net -} - -checkconfig() { - # Verify UID is valid for running process. - if [[ ! $(id ${GATLING_UID} 2>/dev/null) ]]; then - ewarn "User ${GATLING_UID} not found!" - return 1 - fi - - # Set gatling run opts - if yesno ${VHOST};then VHOST=-v;else VHOST=-V;fi - if yesno ${SSL};then SSL=-e;else SSL=-E;fi - if yesno ${DIR_INDEXING};then DIR_INDEXING=-d;else DIR_INDEXING=-D;fi - if yesno ${FTP}; then FTP=-f;else FTP=-F;fi - if yesno ${FTP_AUTH}; then FTP_AUTH=-l;else unset FTP_AUTH;fi - if yesno ${FTP_UP};then unset FTP_UP;else FTP_UP=-U;fi -if yesno ${TRANS_PROXY};then TRANS_PROXY=-t;else unset TRANS_PROXY;fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting gatling" - start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PID} \ ---name gatling --exec /usr/bin/gatling -- -T ${HTTP_TIMEOUT} -i ${IP} -p ${PORT} -P ${PREFETCH} \ -${VHOST} -c ${ROOTDIR} ${DIR_INDEXING} ${TRANS_PROXY} -u ${GATLING_UID} ${FTP} -T ${FTP_TIMEOUT} \ -${FTP_AUTH} ${FTP_UPLOADS} - eend $? -} - -stop() { - ebegin "Stopping gatling" - start-stop-daemon --quiet --stop --pidfile ${PID} - eend $? -} - -reload() { -if ! service_started "${SVCNAME}" ; then -eerror "${SVCNAME} isn't running" -return 1 -fi - - checkconfig ||
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: 6a76512ff823a9c0fd9221a50e060f1fa71999c8 Author: Sebastian Pipping gentoo org> AuthorDate: Sat Nov 23 17:46:35 2019 + Commit: Sebastian Pipping gentoo org> CommitDate: Sat Nov 23 17:51:00 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a76512f www-servers/gatling: Drop old Signed-off-by: Sebastian Pipping gentoo.org> Package-Manager: Portage-2.3.78, Repoman-2.3.16 www-servers/gatling/Manifest | 1 - www-servers/gatling/gatling-0.13-r1.ebuild | 63 -- 2 files changed, 64 deletions(-) diff --git a/www-servers/gatling/Manifest b/www-servers/gatling/Manifest index 288ce4137c2..ea5623b0165 100644 --- a/www-servers/gatling/Manifest +++ b/www-servers/gatling/Manifest @@ -1,2 +1 @@ -DIST gatling-0.13.tar.bz2 108128 BLAKE2B a8226bb9c608dd77491e4a922a79c310a40e155afcb28602a0cf279e45919bd86a0e93e58d7f33a3551820de20ae219e7af75bc0402eab27c95ba0530575f4c0 SHA512 b9fa604aa8bb8c5d40d9c3eaaa536ed5e73d0ed93eccb41ca4744316ad893dc6fe92fe2c1f0247de82d4eda63b0ab7ab338355d9963fb58f23d39a2c678a1db8 DIST gatling-0.15.tar.xz 121804 BLAKE2B 7df5f6d4fc823e8a1252bacca2b57d0848dd3a920216d1d3185d5f471f786eee1eb36396114b367660ead816bd4ee6c734099bbb9bdb5ffbd5b70a59e0fb0667 SHA512 b76d220a0644f1e6e7ea966a4eff409964c564fc4a31c4efdb764e5f7b5857bc58c26bc31e860fe35df932cbd60fb2b0f4f21c75cb5aa56427e8a2a453684716 diff --git a/www-servers/gatling/gatling-0.13-r1.ebuild b/www-servers/gatling/gatling-0.13-r1.ebuild deleted file mode 100644 index 45cbd582781..000 --- a/www-servers/gatling/gatling-0.13-r1.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" - -inherit eutils toolchain-funcs user - -DESCRIPTION="High performance web server" -HOMEPAGE="http://www.fefe.de/gatling/; -SRC_URI="http://dl.fefe.de/${P}.tar.bz2; - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="libressl ssl diet" -REQUIRED_USE="ssl? ( !diet )" - -DEPEND=">=dev-libs/libowfat-0.25[diet=] - diet? ( dev-libs/dietlibc ) - ssl? ( - !libressl? ( dev-libs/openssl:0 ) - libressl? ( dev-libs/libressl ) - )" -RDEPEND="${DEPEND}" - -src_prepare() { - rm Makefile # leaves us with GNUmakefile - epatch "${FILESDIR}/${P}-compile.patch" -} - -src_compile() { - local DIET= - use diet && DIET='/usr/bin/diet' - - local targets='gatling' - use ssl && targets+=' tlsgatling' - - emake DIET="${DIET}" CC="$(tc-getCC)" \ - CFLAGS="${CFLAGS} -I${ROOT}usr/include/libowfat" \ - LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} \ - || die "emake ${targets} failed" -} - -src_install() { - doman gatling.1 || die "installing manpage failed" - - newconfd "${FILESDIR}/gatling.confd" gatling || die - newinitd "${FILESDIR}/gatling.initd-2" gatling || die - dodoc README.{ftp,http} || die "installing docs failed" - - dobin gatling || die "installing gatling binary failed" - use ssl && { - dodoc README.tls || die "installing docs failed" - dobin tlsgatling || die "installing tlsgatling binary failed" - } -} - -pkg_setup() { - ebegin "Creating gatling user and group" - enewgroup gatling - enewuser ${PN} -1 -1 /var/www/localhost ${PN} -}
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/files/
commit: 4adbfbc959bc6bea766108e26c4a002f5adb2c31 Author: Michael Mair-Keimberger gmail com> AuthorDate: Thu Nov 21 14:33:24 2019 + Commit: Sebastian Pipping gentoo org> CommitDate: Sat Nov 23 17:50:59 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4adbfbc9 www-servers/gatling: remove unused patch Closes: https://github.com/gentoo/gentoo/pull/13730 Signed-off-by: Michael Mair-Keimberger gmail.com> Signed-off-by: Sebastian Pipping gentoo.org> www-servers/gatling/files/gatling-0.12-compile.patch | 20 1 file changed, 20 deletions(-) diff --git a/www-servers/gatling/files/gatling-0.12-compile.patch b/www-servers/gatling/files/gatling-0.12-compile.patch deleted file mode 100644 index db609836332..000 --- a/www-servers/gatling/files/gatling-0.12-compile.patch +++ /dev/null @@ -1,20 +0,0 @@ GNUmakefile2012-04-10 04:31:14.505474482 +0200 -+++ GNUmakefile2012-04-10 04:31:53.821982958 +0200 -@@ -64,7 +64,7 @@ - acc: acc.c - $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) -lowfat - --CC:=$(DIET) $(CC) -+override CC:=$(DIET) $(CC) - - pthreadbench: pthreadbench.o - $(CC) $< -o $@ -I. $(CFLAGS) $(LDFLAGS) $(LDLIBS) -lpthread -@@ -80,7 +80,7 @@ - $(OBJS) https.o gatling.o: gatling.h version.h gatling_features.h - - tlsgatling: gatling.c ssl.o $(HTTPS_OBJS) -- -$(CC) -o $@ gatling.c ssl.o $(HTTPS_OBJS) $(CFLAGS) -DSUPPORT_HTTPS $(LDFLAGS) -lssl -lcrypto $(LDLIBS) -+ $(CC) -o $@ gatling.c ssl.o $(HTTPS_OBJS) $(CFLAGS) -DSUPPORT_HTTPS $(LDFLAGS) -lssl -lcrypto $(LDLIBS) - - gatling: gatling.o $(OBJS) md5lib - $(CC) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LDLIBS) `cat md5lib`
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: bf8dfe3607a467ed58dcd60e710d1bc9d26bc0d1 Author: Aaron Bauman gentoo org> AuthorDate: Thu Nov 14 00:46:22 2019 + Commit: Aaron Bauman gentoo org> CommitDate: Thu Nov 14 00:46:22 2019 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf8dfe36 www-servers/gatling: drop old EAPI Signed-off-by: Aaron Bauman gentoo.org> www-servers/gatling/Manifest | 1 - www-servers/gatling/gatling-0.12-r2.ebuild | 60 -- www-servers/gatling/gatling-0.13.ebuild| 60 -- 3 files changed, 121 deletions(-) diff --git a/www-servers/gatling/Manifest b/www-servers/gatling/Manifest index c78dda5671e..288ce4137c2 100644 --- a/www-servers/gatling/Manifest +++ b/www-servers/gatling/Manifest @@ -1,3 +1,2 @@ -DIST gatling-0.12.tar.bz2 99540 BLAKE2B 5711c1960d62979397919cceaee1331b71ea516ab0a4e877244c83e24ab8b6aa3978f7646dbf4f54b71e41eb32f7739800748e6a49c80adcaaa1491dd5158cd4 SHA512 50330e92576ce8002acaba9692cb9270ed2d794b1118e697193bd47beadac8ae75a8e2e0b802923172961d74e50cbe114b5e39c083b79a975c0a1bf4c86cab0a DIST gatling-0.13.tar.bz2 108128 BLAKE2B a8226bb9c608dd77491e4a922a79c310a40e155afcb28602a0cf279e45919bd86a0e93e58d7f33a3551820de20ae219e7af75bc0402eab27c95ba0530575f4c0 SHA512 b9fa604aa8bb8c5d40d9c3eaaa536ed5e73d0ed93eccb41ca4744316ad893dc6fe92fe2c1f0247de82d4eda63b0ab7ab338355d9963fb58f23d39a2c678a1db8 DIST gatling-0.15.tar.xz 121804 BLAKE2B 7df5f6d4fc823e8a1252bacca2b57d0848dd3a920216d1d3185d5f471f786eee1eb36396114b367660ead816bd4ee6c734099bbb9bdb5ffbd5b70a59e0fb0667 SHA512 b76d220a0644f1e6e7ea966a4eff409964c564fc4a31c4efdb764e5f7b5857bc58c26bc31e860fe35df932cbd60fb2b0f4f21c75cb5aa56427e8a2a453684716 diff --git a/www-servers/gatling/gatling-0.12-r2.ebuild b/www-servers/gatling/gatling-0.12-r2.ebuild deleted file mode 100644 index ffa25cc9ce3..000 --- a/www-servers/gatling/gatling-0.12-r2.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="4" - -inherit eutils toolchain-funcs user - -DESCRIPTION="High performance web server" -HOMEPAGE="http://www.fefe.de/gatling/; -SRC_URI="http://dl.fefe.de/${P}.tar.bz2; - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="ssl diet" -REQUIRED_USE="ssl? ( !diet )" - -DEPEND=">=dev-libs/libowfat-0.25[diet=] - diet? ( dev-libs/dietlibc ) - ssl? ( dev-libs/openssl )" -RDEPEND="${DEPEND}" - -src_prepare() { - rm Makefile # leaves us with GNUmakefile - epatch "${FILESDIR}/${P}-compile.patch" -} - -src_compile() { - local DIET= - use diet && DIET='/usr/bin/diet' - - local targets='gatling' - use ssl && targets+=' tlsgatling' - - emake DIET="${DIET}" CC="$(tc-getCC)" \ - CFLAGS="${CFLAGS} -I/usr/include/libowfat" \ - LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} \ - || die "emake ${targets} failed" -} - -src_install() { - doman gatling.1 || die "installing manpage failed" - - newconfd "${FILESDIR}/gatling.confd" gatling || die - newinitd "${FILESDIR}/gatling.initd-2" gatling || die - dodoc README.{ftp,http} || die "installing docs failed" - - dobin gatling || die "installing gatling binary failed" - use ssl && { - dodoc README.tls || die "installing docs failed" - dobin tlsgatling || die "installing tlsgatling binary failed" - } -} - -pkg_setup() { - ebegin "Creating gatling user and group" - enewgroup gatling - enewuser ${PN} -1 -1 /var/www/localhost ${PN} -} diff --git a/www-servers/gatling/gatling-0.13.ebuild b/www-servers/gatling/gatling-0.13.ebuild deleted file mode 100644 index a3f6ea2f13d..000 --- a/www-servers/gatling/gatling-0.13.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="4" - -inherit eutils toolchain-funcs user - -DESCRIPTION="High performance web server" -HOMEPAGE="http://www.fefe.de/gatling/; -SRC_URI="http://dl.fefe.de/${P}.tar.bz2; - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -IUSE="ssl diet" -REQUIRED_USE="ssl? ( !diet )" - -DEPEND=">=dev-libs/libowfat-0.25[diet=] - diet? ( dev-libs/dietlibc ) - ssl? ( dev-libs/openssl )" -RDEPEND="${DEPEND}" - -src_prepare() { - rm Makefile # leaves us with GNUmakefile - epatch "${FILESDIR}/${P}-compile.patch" -} - -src_compile() { - local DIET= - use diet && DIET='/usr/bin/diet' - - local targets='gatling' - use ssl && targets+=' tlsgatling' - - emake DIET="${DIET}" CC="$(tc-getCC)" \ - CFLAGS="${CFLAGS} -I${ROOT}usr/include/libowfat" \ - LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} \ - || die "emake ${targets} failed" -} - -src_install() { -
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/files/, www-servers/gatling/
commit: 149e967321483b5d1934b897a9ac7c18f715b1fa Author: Marty E. Plummer startmail com> AuthorDate: Fri Apr 20 14:36:34 2018 + Commit: Sebastian Pipping gentoo org> CommitDate: Sat Apr 21 20:56:10 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=149e9673 www-servers/gatling: epatch->PATCHES=() Also reworked the patch to be -p1. Package-Manager: Portage-2.3.31, Repoman-2.3.9 www-servers/gatling/files/gatling-0.13-compile.patch | 4 ++-- www-servers/gatling/gatling-0.15.ebuild | 9 ++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/www-servers/gatling/files/gatling-0.13-compile.patch b/www-servers/gatling/files/gatling-0.13-compile.patch index 7b4d44af9c0..a87a9541bec 100644 --- a/www-servers/gatling/files/gatling-0.13-compile.patch +++ b/www-servers/gatling/files/gatling-0.13-compile.patch @@ -1,5 +1,5 @@ GNUmakefile2012-04-10 04:31:14.505474482 +0200 -+++ GNUmakefile2012-04-10 04:31:53.821982958 +0200 +--- a/GNUmakefile b/GNUmakefile @@ -64,7 +64,7 @@ acc: acc.c $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) -lowfat diff --git a/www-servers/gatling/gatling-0.15.ebuild b/www-servers/gatling/gatling-0.15.ebuild index f2b75dd2546..b404cfd8a5c 100644 --- a/www-servers/gatling/gatling-0.15.ebuild +++ b/www-servers/gatling/gatling-0.15.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI="6" @@ -23,10 +23,13 @@ DEPEND=">=dev-libs/libowfat-0.25[diet=] )" RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}/${PN}-0.13-compile.patch" +) + src_prepare() { + default rm Makefile # leaves us with GNUmakefile - epatch "${FILESDIR}/${PN}-0.13-compile.patch" - eapply_user } src_compile() {
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/files/, www-servers/gatling/
commit: 4221a4e4035cb01ca03fe4ceba8bde369f1806a6 Author: Sebastian Pipping gentoo org> AuthorDate: Sun Aug 27 20:21:16 2017 + Commit: Sebastian Pipping gentoo org> CommitDate: Sun Aug 27 20:55:33 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4221a4e4 www-servers/gatling: 0.15 Also bump EAPI 6, use SSL URLs, and address init script Bashism Package-Manager: Portage-2.3.8, Repoman-2.3.3 www-servers/gatling/Manifest | 1 + www-servers/gatling/files/gatling.initd-3 | 63 +++ www-servers/gatling/gatling-0.15.ebuild | 63 +++ 3 files changed, 127 insertions(+) diff --git a/www-servers/gatling/Manifest b/www-servers/gatling/Manifest index fa8313c8501..d209c348c91 100644 --- a/www-servers/gatling/Manifest +++ b/www-servers/gatling/Manifest @@ -1,2 +1,3 @@ DIST gatling-0.12.tar.bz2 99540 SHA256 ffe4dbff99404eb80e6aac215fdf6bf8174355edc33dd1848a51fc1093296a7c SHA512 50330e92576ce8002acaba9692cb9270ed2d794b1118e697193bd47beadac8ae75a8e2e0b802923172961d74e50cbe114b5e39c083b79a975c0a1bf4c86cab0a WHIRLPOOL 5f169bfc0e91281833b543c050daaa5fe9f6f419e5a0a3b03f6853cb40468b375df849cfc4b036544131e1cefa97ccdde377629499f0a010cb56add33881 DIST gatling-0.13.tar.bz2 108128 SHA256 b42145fdf7b66602fa8bc64661c2762172f6d33dbd9d53efebf821cd81e89245 SHA512 b9fa604aa8bb8c5d40d9c3eaaa536ed5e73d0ed93eccb41ca4744316ad893dc6fe92fe2c1f0247de82d4eda63b0ab7ab338355d9963fb58f23d39a2c678a1db8 WHIRLPOOL c9d90bec09cf07bc506bd84491d550834d48e0e3b19b2e7095ab43a4a3cd7a182fc1660d5a5cef878f1e1a7b3d367c5e76efc75df77269ab89d64c73c2af7a59 +DIST gatling-0.15.tar.xz 121804 SHA256 6fa329d0ced0c80deb8dde5460e9d9e984bee94f265043d7fdec0e253dce9aa4 SHA512 b76d220a0644f1e6e7ea966a4eff409964c564fc4a31c4efdb764e5f7b5857bc58c26bc31e860fe35df932cbd60fb2b0f4f21c75cb5aa56427e8a2a453684716 WHIRLPOOL 74d4613ca83500d11e81fc4a59e4a1749d0cac7baf1da16d7cbfb4573e3d94bddd1adc7f563de61942f46dd1e5dc88b19f498182eb63919ff71773ef31a19a38 diff --git a/www-servers/gatling/files/gatling.initd-3 b/www-servers/gatling/files/gatling.initd-3 new file mode 100644 index 000..33c5e5a3095 --- /dev/null +++ b/www-servers/gatling/files/gatling.initd-3 @@ -0,0 +1,63 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Gatling high performance web server init script" +extra_started_commands="reload" + +depend() { + need net +} + +checkconfig() { + # Verify UID is valid for running process. + if [ ! "$(id ${GATLING_UID} 2>/dev/null)" ]; then + ewarn "User ${GATLING_UID} not found!" + return 1 + fi + + # Set gatling run opts + if yesno ${VHOST};then VHOST=-v;else VHOST=-V;fi + if yesno ${SSL};then SSL=-e;else SSL=-E;fi + if yesno ${DIR_INDEXING};then DIR_INDEXING=-d;else DIR_INDEXING=-D;fi + if yesno ${FTP}; then FTP=-f;else FTP=-F;fi + if yesno ${FTP_AUTH}; then FTP_AUTH=-l;else unset FTP_AUTH;fi + if yesno ${FTP_UP};then unset FTP_UP;else FTP_UP=-U;fi +if yesno ${TRANS_PROXY};then TRANS_PROXY=-t;else unset TRANS_PROXY;fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting gatling" + start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PID} \ +--name gatling --exec /usr/bin/gatling -- -T ${HTTP_TIMEOUT} -i ${IP} -p ${PORT} -P ${PREFETCH} \ +${VHOST} -c ${ROOTDIR} ${DIR_INDEXING} ${TRANS_PROXY} -u ${GATLING_UID} ${FTP} -T ${FTP_TIMEOUT} \ +${FTP_AUTH} ${FTP_UPLOADS} + eend $? +} + +stop() { + ebegin "Stopping gatling" + start-stop-daemon --quiet --stop --pidfile ${PID} + eend $? +} + +reload() { +if ! service_started "${SVCNAME}" ; then +eerror "${SVCNAME} isn't running" +return 1 +fi + + checkconfig || return 1 + + ebegin "Sending gatling the HUP signal" + start-stop-daemon --quiet --signal HUP --pidfile ${PID} + + ebegin "Restarting gatling server" +start-stop-daemon --start --quiet --background --make-pidfile --pidfile ${PID} \ +--name gatling --exec /usr/bin/gatling -- -T ${HTTP_TIMEOUT} -i ${IP} -p ${PORT} -P ${PREFETCH} \ +${VHOST} -c ${ROOTDIR} ${DIR_INDEXING} ${TRANS_PROXY} -u ${GATLING_UID} ${FTP} -T ${FTP_TIMEOUT} \ +${FTP_AUTH} ${FTP_UPLOADS} +eend $? +} diff --git a/www-servers/gatling/gatling-0.15.ebuild b/www-servers/gatling/gatling-0.15.ebuild new file mode 100644 index 000..f2b75dd2546 --- /dev/null +++ b/www-servers/gatling/gatling-0.15.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit eutils toolchain-funcs user + +DESCRIPTION="High performance web server" +HOMEPAGE="https://www.fefe.de/gatling/; +SRC_URI="https://www.fefe.de/gatling/${P}.tar.xz;
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/files/
commit: 81db6bd2c75a31ea907eceb6534533cd540fb355 Author: Michael Mair-Keimberger (asterix) gmail com> AuthorDate: Wed Feb 15 16:53:30 2017 + Commit: Michael Palimaka gentoo org> CommitDate: Thu Feb 16 11:11:45 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81db6bd2 www-servers/gatling: remove unused patch www-servers/gatling/files/gatling-0.12-FLAGS.patch | 40 -- 1 file changed, 40 deletions(-) diff --git a/www-servers/gatling/files/gatling-0.12-FLAGS.patch b/www-servers/gatling/files/gatling-0.12-FLAGS.patch deleted file mode 100644 index c7bd1fe4ce..00 --- a/www-servers/gatling/files/gatling-0.12-FLAGS.patch +++ /dev/null @@ -1,40 +0,0 @@ -diff -NrU5 gatling-0.12.original/GNUmakefile gatling-0.12/GNUmakefile gatling-0.12.original/GNUmakefile 2010-05-30 16:58:29.0 -0600 -+++ gatling-0.12/GNUmakefile 2010-05-30 17:03:21.0 -0600 -@@ -1,8 +1,8 @@ - #DEBUG=1 - ZLIB=1 --prefix=/opt/diet -+prefix=/usr - BINDIR=${prefix}/bin - MANDIR=${prefix}/man - man1dir=$(MANDIR)/man1 - - TARGETS=gatling httpbench bindbench dl ioerr bench tlsgatling \ -@@ -14,12 +14,12 @@ - all: $(ALLTARGETS) - - CROSS= - #CROSS=i686-mingw32- - CC=$(CROSS)gcc --CFLAGS=-pipe -Wall --LDFLAGS= -+CFLAGS+=-pipe -Wall -I/usr/include/libowfat -+LDFLAGS+= - - path = $(subst :, ,$(PATH)) - diet_path = $(foreach dir,$(path),$(wildcard $(dir)/diet)) - ifeq ($(strip $(diet_path)),) - ifneq ($(wildcard /opt/diet/bin/diet),) -@@ -37,11 +37,10 @@ - ifneq ($(DEBUG),) - CFLAGS+=-g - LDFLAGS+=-g - else - CFLAGS+=-O2 -fomit-frame-pointer -I/usr/local/include --LDFLAGS+=-s - ifneq ($(DIET),) - DIET+=-Os - endif - endif -
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: a14a9a8001144113ead6183adae076e72db4b435 Author: Pacho Ramos gentoo org> AuthorDate: Sun Aug 7 06:30:15 2016 + Commit: Pacho Ramos gentoo org> CommitDate: Sun Aug 7 06:31:38 2016 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a14a9a80 www-servers/gatling: Cleanup per bug #267342 Package-Manager: portage-2.3.0 www-servers/gatling/metadata.xml | 4 1 file changed, 4 deletions(-) diff --git a/www-servers/gatling/metadata.xml b/www-servers/gatling/metadata.xml index 32c74b3..94889d6 100644 --- a/www-servers/gatling/metadata.xml +++ b/www-servers/gatling/metadata.xml @@ -6,10 +6,6 @@ Patrick Lauer - vosto...@gentoo.org - Víctor Ostorga - - sp...@gentoo.org Sebastian Pipping
[gentoo-commits] repo/gentoo:master commit in: www-servers/gatling/
commit: dd6472d4ccf5d94031e48875e39a3309c5f368df Author: Anthony G. Basile gentoo org> AuthorDate: Mon Oct 12 01:19:15 2015 + Commit: Anthony G. Basile gentoo org> CommitDate: Mon Oct 12 01:19:15 2015 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd6472d4 www-servers/gatling: add libressl support Package-Manager: portage-2.2.20.1 www-servers/gatling/gatling-0.13-r1.ebuild | 64 ++ 1 file changed, 64 insertions(+) diff --git a/www-servers/gatling/gatling-0.13-r1.ebuild b/www-servers/gatling/gatling-0.13-r1.ebuild new file mode 100644 index 000..2c6b7b1 --- /dev/null +++ b/www-servers/gatling/gatling-0.13-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils toolchain-funcs user + +DESCRIPTION="High performance web server" +HOMEPAGE="http://www.fefe.de/gatling/; +SRC_URI="http://dl.fefe.de/${P}.tar.bz2; + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="libressl ssl diet" +REQUIRED_USE="ssl? ( !diet )" + +DEPEND=">=dev-libs/libowfat-0.25[diet=] + diet? ( dev-libs/dietlibc ) + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + )" +RDEPEND="${DEPEND}" + +src_prepare() { + rm Makefile # leaves us with GNUmakefile + epatch "${FILESDIR}/${P}-compile.patch" +} + +src_compile() { + local DIET= + use diet && DIET='/usr/bin/diet' + + local targets='gatling' + use ssl && targets+=' tlsgatling' + + emake DIET="${DIET}" CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS} -I${ROOT}usr/include/libowfat" \ + LDFLAGS="${LDFLAGS}" prefix=/usr ${targets} \ + || die "emake ${targets} failed" +} + +src_install() { + doman gatling.1 || die "installing manpage failed" + + newconfd "${FILESDIR}/gatling.confd" gatling || die + newinitd "${FILESDIR}/gatling.initd-2" gatling || die + dodoc README.{ftp,http} || die "installing docs failed" + + dobin gatling || die "installing gatling binary failed" + use ssl && { + dodoc README.tls || die "installing docs failed" + dobin tlsgatling || die "installing tlsgatling binary failed" + } +} + +pkg_setup() { + ebegin "Creating gatling user and group" + enewgroup gatling + enewuser ${PN} -1 -1 /var/www/localhost ${PN} +}